system-clients 3.3.6 → 4.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (224) hide show
  1. package/.eslintrc.js +16 -16
  2. package/SystemClient.iml +8 -8
  3. package/build/webpack.base.conf.js +85 -85
  4. package/build.gradle +6 -6
  5. package/examples/LoginPage/App.vue +21 -21
  6. package/examples/LoginPage/index.html +11 -11
  7. package/examples/LoginPage/main.js +15 -15
  8. package/index.html +21 -21
  9. package/package.json +105 -105
  10. package/src/App.vue +24 -24
  11. package/src/LodopFuncs.js +155 -155
  12. package/src/components/Main.vue +935 -935
  13. package/src/components/TabButton.vue +201 -201
  14. package/src/components/Tabs.vue +67 -67
  15. package/src/components/Util.js +343 -343
  16. package/src/components/addressManage/AddressCascadingMenu.vue +145 -145
  17. package/src/components/common/ProgressBase.vue +83 -83
  18. package/src/components/equipment/EquipmentManage.vue +83 -83
  19. package/src/components/equipment/PcAdd.vue +115 -115
  20. package/src/components/equipment/PcList.vue +119 -119
  21. package/src/components/equipment/PcManage.vue +61 -61
  22. package/src/components/equipment/PhoneAdd.vue +118 -118
  23. package/src/components/equipment/PhoneList.vue +113 -113
  24. package/src/components/equipment/PhoneManage.vue +61 -61
  25. package/src/components/equipment/PosAdd.vue +319 -319
  26. package/src/components/equipment/PosList.vue +292 -292
  27. package/src/components/equipment/PosManage.vue +138 -138
  28. package/src/components/equipment/PosManageBoth.vue +125 -125
  29. package/src/components/equipment/PosParamAdd.vue +236 -236
  30. package/src/components/equipment/PosParamList.vue +121 -121
  31. package/src/components/equipment/PosParamManage.vue +51 -51
  32. package/src/components/materialManage/materialData.vue +44 -44
  33. package/src/components/materialManage/materialList.vue +255 -255
  34. package/src/components/parammanage/ParamManage.vue +42 -42
  35. package/src/components/parammanage/ParamPage.vue +337 -337
  36. package/src/components/parammanage/ParamPages.vue +222 -222
  37. package/src/components/parammanage/SinglePage.vue +235 -235
  38. package/src/components/parammanage/SinglePages.vue +167 -167
  39. package/src/components/server/AddChangeMsg.vue +66 -66
  40. package/src/components/server/ChangeDeclare.vue +45 -45
  41. package/src/components/server/ImageVieweTest.vue +56 -56
  42. package/src/components/server/ImageViewer.vue +350 -350
  43. package/src/components/server/LeftTree.vue +111 -111
  44. package/src/components/server/LoadData.vue +55 -55
  45. package/src/components/server/Login.vue +615 -615
  46. package/src/components/server/LoginPage.vue +235 -235
  47. package/src/components/server/LoginView.vue +128 -128
  48. package/src/components/server/Menu.vue +188 -188
  49. package/src/components/server/ModifyPw.vue +126 -126
  50. package/src/components/server/PcdBuildingSelect.vue +243 -243
  51. package/src/components/server/ResSelect.vue +172 -172
  52. package/src/components/server/ResSelectGroup.vue +211 -211
  53. package/src/components/server/RightTree.vue +348 -348
  54. package/src/components/server/RoleSelector.vue +90 -90
  55. package/src/components/server/TestResSelect.vue +58 -58
  56. package/src/components/server/TestResSelectGroup.vue +388 -388
  57. package/src/filiale/baole/Login.vue +570 -570
  58. package/src/filiale/baole/system.js +5 -5
  59. package/src/filiale/bayan/PosAdd.vue +368 -368
  60. package/src/filiale/bayan/PosList.vue +341 -341
  61. package/src/filiale/bayan/PosManage.vue +138 -138
  62. package/src/filiale/bayan/system.js +6 -6
  63. package/src/filiale/chengtou/Login.vue +539 -539
  64. package/src/filiale/chengtou/system.js +5 -5
  65. package/src/filiale/dongguan/Login.vue +902 -902
  66. package/src/filiale/dongguan/Main.vue +717 -717
  67. package/src/filiale/dongguan/system.js +6 -6
  68. package/src/filiale/furuike/Login.vue +587 -587
  69. package/src/filiale/furuike/Main.vue +840 -840
  70. package/src/filiale/furuike/system.js +7 -7
  71. package/src/filiale/gehua/Main.vue +809 -809
  72. package/src/filiale/gehua/system.js +6 -6
  73. package/src/filiale/konggang/Login.vue +472 -472
  74. package/src/filiale/konggang/system.js +7 -7
  75. package/src/filiale/qianneng/Login.vue +584 -584
  76. package/src/filiale/qianneng/Main.vue +818 -818
  77. package/src/filiale/qianneng/ModifyPw.vue +108 -108
  78. package/src/filiale/qianneng/system.js +11 -11
  79. package/src/filiale/rizhao/LeftTree.vue +111 -111
  80. package/src/filiale/rizhao/Login.vue +793 -793
  81. package/src/filiale/rizhao/Main.vue +611 -611
  82. package/src/filiale/rizhao/system.js +14 -14
  83. package/src/filiale/ruihua/Login.vue +576 -576
  84. package/src/filiale/ruihua/system.js +5 -5
  85. package/src/filiale/shiquan/Login.vue +566 -566
  86. package/src/filiale/shiquan/system.js +8 -8
  87. package/src/filiale/tianyi/Login.vue +573 -573
  88. package/src/filiale/tianyi/system.js +5 -5
  89. package/src/filiale/tongchuan/Login.vue +563 -563
  90. package/src/filiale/tongchuan/Main.vue +1021 -1021
  91. package/src/filiale/tongchuan/system.js +7 -7
  92. package/src/filiale/weinan/Main.vue +924 -924
  93. package/src/filiale/weinan/system.js +7 -7
  94. package/src/filiale/wenxi/Login.vue +537 -537
  95. package/src/filiale/wenxi/Main.vue +787 -787
  96. package/src/filiale/wenxi/system.js +10 -10
  97. package/src/filiale/wuhai/LeftTree.vue +141 -141
  98. package/src/filiale/wuhai/Main.vue +810 -810
  99. package/src/filiale/wuhai/system.js +10 -10
  100. package/src/filiale/yuchuan/Login.vue +891 -891
  101. package/src/filiale/yuchuan/Main.vue +866 -866
  102. package/src/filiale/yuchuan/system.js +10 -10
  103. package/src/filiale/zhoukou/Main.vue +809 -809
  104. package/src/filiale/zhoukou/system.js +6 -6
  105. package/src/plugins/EncryptUtil.js +53 -53
  106. package/src/plugins/GetLoginInfoService.js +480 -480
  107. package/src/plugins/HeatGetLoginInfoService.js +491 -491
  108. package/src/plugins/validation.js +15 -15
  109. package/src/project/State.js +17 -17
  110. package/src/stores/AppData.js +38 -38
  111. package/src/stores/HeatAppData.js +38 -38
  112. package/src/styles/fonts/glyphicons-halflings-regular.svg +288 -288
  113. package/src/styles/less/.csscomb.json +304 -304
  114. package/src/styles/less/.csslintrc +19 -19
  115. package/src/styles/less/alerts.less +73 -73
  116. package/src/styles/less/aofeng/animate.min.css +10 -10
  117. package/src/styles/less/aofeng/expandcss.less +569 -569
  118. package/src/styles/less/aofeng/login.less +367 -367
  119. package/src/styles/less/aofeng/standard.less +2507 -2507
  120. package/src/styles/less/aofeng/themeOne/BinaryTemplate.less +690 -690
  121. package/src/styles/less/aofeng/themeOne/loginStyle.less +1586 -1586
  122. package/src/styles/less/aofeng/themeOne/systemStyle.less +2650 -2650
  123. package/src/styles/less/aofeng/themeOne.less +17 -17
  124. package/src/styles/less/aofeng/themeTwo/newStyle1.less +415 -415
  125. package/src/styles/less/aofeng/themeTwo.less +3 -3
  126. package/src/styles/less/badges.less +66 -66
  127. package/src/styles/less/bootstrap.less +66 -66
  128. package/src/styles/less/breadcrumbs.less +26 -26
  129. package/src/styles/less/button-groups.less +247 -247
  130. package/src/styles/less/buttons.less +172 -172
  131. package/src/styles/less/carousel.less +269 -269
  132. package/src/styles/less/close.less +34 -34
  133. package/src/styles/less/code.less +69 -69
  134. package/src/styles/less/component-animations.less +33 -33
  135. package/src/styles/less/dropdowns.less +216 -216
  136. package/src/styles/less/fonts-list.less +25 -25
  137. package/src/styles/less/forms.less +626 -626
  138. package/src/styles/less/glyphicons.less +305 -305
  139. package/src/styles/less/grid.less +84 -84
  140. package/src/styles/less/input-groups.less +167 -167
  141. package/src/styles/less/jumbotron.less +52 -52
  142. package/src/styles/less/labels.less +64 -64
  143. package/src/styles/less/list-group.less +141 -141
  144. package/src/styles/less/manageStyle/manageChile.less +180 -180
  145. package/src/styles/less/manageStyle/manageStyle/manageChile.less +180 -180
  146. package/src/styles/less/manageStyle/manageStyle/manageStyle.less +1102 -1102
  147. package/src/styles/less/manageStyle/manageStyle/safeStyle.less +498 -498
  148. package/src/styles/less/manageStyle/manageStyle.less +1102 -1102
  149. package/src/styles/less/manageStyle/safeStyle.less +498 -498
  150. package/src/styles/less/media.less +66 -66
  151. package/src/styles/less/mixins/alerts.less +14 -14
  152. package/src/styles/less/mixins/background-variant.less +9 -9
  153. package/src/styles/less/mixins/border-radius.less +18 -18
  154. package/src/styles/less/mixins/buttons.less +69 -69
  155. package/src/styles/less/mixins/center-block.less +7 -7
  156. package/src/styles/less/mixins/clearfix.less +22 -22
  157. package/src/styles/less/mixins/forms.less +90 -90
  158. package/src/styles/less/mixins/gradients.less +59 -59
  159. package/src/styles/less/mixins/grid-framework.less +92 -92
  160. package/src/styles/less/mixins/grid.less +122 -122
  161. package/src/styles/less/mixins/hide-text.less +21 -21
  162. package/src/styles/less/mixins/image.less +33 -33
  163. package/src/styles/less/mixins/labels.less +12 -12
  164. package/src/styles/less/mixins/list-group.less +30 -30
  165. package/src/styles/less/mixins/nav-divider.less +10 -10
  166. package/src/styles/less/mixins/nav-vertical-align.less +9 -9
  167. package/src/styles/less/mixins/opacity.less +8 -8
  168. package/src/styles/less/mixins/pagination.less +24 -24
  169. package/src/styles/less/mixins/panels.less +24 -24
  170. package/src/styles/less/mixins/progress-bar.less +10 -10
  171. package/src/styles/less/mixins/reset-filter.less +8 -8
  172. package/src/styles/less/mixins/reset-text.less +18 -18
  173. package/src/styles/less/mixins/resize.less +6 -6
  174. package/src/styles/less/mixins/responsive-visibility.less +15 -15
  175. package/src/styles/less/mixins/size.less +10 -10
  176. package/src/styles/less/mixins/tab-focus.less +9 -9
  177. package/src/styles/less/mixins/table-row.less +44 -44
  178. package/src/styles/less/mixins/text-emphasis.less +9 -9
  179. package/src/styles/less/mixins/text-overflow.less +8 -8
  180. package/src/styles/less/mixins/vendor-prefixes.less +227 -227
  181. package/src/styles/less/mixins.less +40 -40
  182. package/src/styles/less/modals.less +151 -151
  183. package/src/styles/less/navbar.less +660 -660
  184. package/src/styles/less/navs.less +285 -285
  185. package/src/styles/less/normalize.less +424 -424
  186. package/src/styles/less/pager.less +76 -76
  187. package/src/styles/less/pagination.less +89 -89
  188. package/src/styles/less/panels.less +275 -275
  189. package/src/styles/less/popovers.less +131 -131
  190. package/src/styles/less/print.less +101 -101
  191. package/src/styles/less/progress-bars.less +87 -87
  192. package/src/styles/less/responsive-embed.less +35 -35
  193. package/src/styles/less/responsive-utilities.less +194 -194
  194. package/src/styles/less/scaffolding.less +161 -161
  195. package/src/styles/less/stand.less +207 -207
  196. package/src/styles/less/tables.less +312 -312
  197. package/src/styles/less/theme.less +291 -291
  198. package/src/styles/less/thumbnails.less +36 -36
  199. package/src/styles/less/tooltip.less +102 -102
  200. package/src/styles/less/type.less +316 -316
  201. package/src/styles/less/utilities.less +55 -55
  202. package/src/styles/less/variables.less +899 -899
  203. package/src/styles/less/wells.less +29 -29
  204. package/src/system.js +122 -122
  205. package/src/util/Daiban.json +12 -12
  206. package/yarn-error.log +6896 -6896
  207. package/.gradle/8.5/checksums/checksums.lock +0 -0
  208. package/.gradle/8.5/dependencies-accessors/dependencies-accessors.lock +0 -0
  209. package/.gradle/8.5/dependencies-accessors/gc.properties +0 -0
  210. package/.gradle/8.5/executionHistory/executionHistory.bin +0 -0
  211. package/.gradle/8.5/executionHistory/executionHistory.lock +0 -0
  212. package/.gradle/8.5/fileChanges/last-build.bin +0 -0
  213. package/.gradle/8.5/fileHashes/fileHashes.bin +0 -0
  214. package/.gradle/8.5/fileHashes/fileHashes.lock +0 -0
  215. package/.gradle/8.5/gc.properties +0 -0
  216. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  217. package/.gradle/buildOutputCleanup/cache.properties +0 -2
  218. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  219. package/.gradle/file-system.probe +0 -0
  220. package/.gradle/vcs-1/gc.properties +0 -0
  221. package/gradle/wrapper/gradle-wrapper.jar +0 -0
  222. package/gradle/wrapper/gradle-wrapper.properties +0 -7
  223. package/gradlew +0 -249
  224. package/gradlew.bat +0 -92
@@ -1,935 +1,935 @@
1
- <template>
2
- <div @click="hindsetting1()" :class="{'with-watermark':showwatermakeflag}">
3
- <span class="newTip" transition="newTip" @click="tipClick" v-if="newTipShow">
4
- <span>您有一条新提醒</span>
5
- </span>
6
- <!-- <div class="system-main" id="box" v-el:box v-if="!isManger">-->
7
- <!-- <div class="system-logo" style="height: auto">-->
8
- <!-- <img :src="imgs.logoimg" alt=""/>-->
9
- <!-- <label>{{systemname}}</label>-->
10
- <!-- <div class="system-logo-chi" >-->
11
- <!-- <div v-if="userpane" class="auto system-logo-prompt" style="float: right">-->
12
- <!-- <span>{{orgpathnames}}</span>-->
13
- <!-- </div>-->
14
- <!-- &lt;!&ndash;<div class="system-logo-chi-img1" style="float: right" @mouseenter="mouseenteruser()" @mouseleave="mouseleaveuser()"></div>&ndash;&gt;-->
15
- <!-- <span style="float: right; padding-top: 2px" @mouseenter="mouseenteruser()" @mouseleave="mouseleaveuser()" class="system-logo-chi-span-1">{{$login.f.name}}</span>-->
16
- <!-- <span style="border-left: 1px solid;float: right;padding-top: 2px" class="system-logo-chi-span-1"> <img src="../../static/newStyle/login-f.png" height="20" width="20"> </span>-->
17
- <!-- <a href="index.html" onclick="return confirm('您确定要退出系统吗?');" style="float: right;padding-top: 2px">-->
18
- <!-- <img src="../../static/newStyle/system-off.png" alt="" >-->
19
- <!-- <span class="system-logo-chi-span-1">退出系统</span>-->
20
- <!-- </a>-->
21
- <!-- <div style="float: right" :class="{'dropstyle':setting,'dropstyle-1':!setting}">-->
22
- <!-- <dropdown class="auto" >-->
23
- <!-- <span data-toggle="dropdown" @click="hindsetting()" >-->
24
- <!-- <img :src="srcsetting" alt=""><span>系统设置</span>-->
25
- <!-- </span>-->
26
- <!-- <ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-up dropstyle-chi" >-->
27
- <!-- &lt;!&ndash; <li>系统信息及设置</li>&ndash;&gt;-->
28
- <!-- <li style="color: #ffffff;white-space: nowrap" @click="show=true">修改密码</li>-->
29
- <!-- <li style="color: #ffffff;white-space: nowrap" @click="AddChangeMsgShow=true">系统版本</li>-->
30
- <!-- </ul>-->
31
- <!-- </dropdown>-->
32
- <!-- </div>-->
33
-
34
- <!-- </div>-->
35
- <!-- </div>-->
36
- <!-- <div class="system-left tree-flex" :class="{'system-left-1': !treeOrIcon}" id="top" v-el:top >-->
37
- <!-- <div class="system-left-chi" :class="{'system-left-icon': !treeOrIcon}" >-->
38
- <!-- <div class="span system-left-tree" >-->
39
- <!-- <left-tree :functions='functions.functions' :userid='userid' @isnodo="isnodo" :treeOrIcon="treeOrIcon" :tabs="tabs" v-ref:tree></left-tree>-->
40
- <!-- &lt;!&ndash; <icon-tree :functions='functions.functions' :userid='userid' v-show="!treeOrIcon"></icon-tree>&ndash;&gt;-->
41
- <!-- </div>-->
42
- <!-- </div>-->
43
- <!-- <div class="system-foot-stretch" >-->
44
- <!-- <a @click="changeShow()"><img src="../../static/images/lefticon/菜单伸缩.png" alt=""></a>-->
45
- <!-- </div>-->
46
- <!-- </div>-->
47
-
48
-
49
- <!-- <div class="system-right" :class="{'system-right-1': !treeOrIcon}" id="bottom" v-el:bottom>-->
50
- <!-- <div class="span">-->
51
- <!-- <echarts-box v-if="$refs.mic.tabs.length === 0"></echarts-box>-->
52
- <!-- <dynamic :comps='[]' :showup="true" :showhide="false" name='main' :selecttab.sync="selecttab" @tab-changed="tabChange" @tabscg="tabcg" v-ref:mic v-show="!($refs.mic.tabs.length === 0)"></dynamic>-->
53
- <!-- </div>-->
54
- <!-- </div>-->
55
- <!-- <div class="system-foot" v-el:bottom>-->
56
-
57
- <!-- <div class="system-foot-box">-->
58
-
59
- <!-- </div>-->
60
- <!-- </div>-->
61
- <!-- </div>-->
62
- <div class='flex-row system-main' id="box" v-el:box v-if="!isManger">
63
- <div class="auto login-operator1" v-if="$refs.mic.tabs.length === 0">
64
- <span>
65
- <img
66
- src="../assets/people.png" height="15" width="15">
67
- 登录人:</span>
68
- <label>{{ orgpathnames }}</label>
69
- </div>
70
- <div class="system-left tree-flex" :class="{'tree-flex-icon': !treeOrIcon}" id="top" v-el:top>
71
- <div class="system-left-chi" :class="{'system-left-icon': !treeOrIcon}">
72
- <div class="span system-left-tree " style="height:85%">
73
- <h3>{{ systemname }}</h3>
74
- <!-- <div class="span" style="margin-bottom:10px;padding-bottom:5px;padding-top:5px;flex: 1;border-top: 1px solid #e5e5e5;border-bottom: 1px solid #e5e5e5;">-->
75
- <left-tree :functions='functions.functions' :userid='userid' @isnodo="isnodo" v-show="treeOrIcon"
76
- :tabs="tabs" v-ref:tree></left-tree>
77
- <!--&lt;!&ndash; <icon-tree :functions='functions.functions' :userid='userid' v-show="!treeOrIcon"></icon-tree>&ndash;&gt;-->
78
- </div>
79
-
80
- <div class="tree-flex-footer">
81
- <!-- <a @click="changeShow()"><img :src="imgs.open" alt=""><span v-if="treeOrIcon">菜单伸缩</span></a>-->
82
- <!-- <a><img src="../../../static/treeset.png" alt="">系统设置</a> -->
83
- <dropdown class="auto">
84
- <button type="button" data-toggle="dropdown">
85
- <img :src="imgs.set" alt=""><span v-if="treeOrIcon">系统设置</span>
86
- </button>
87
- <ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-up">
88
- <li>系统信息及设置</li>
89
- <!-- <li>{{name}}</li> -->
90
- <li>{{ date }}</li>
91
- <li @click="openUrl()">售后服务</li>
92
- <li @click="qrCode=true">APP二维码</li>
93
- <li @click="show=true">修改密码</li>
94
- <li @click="AddChangeMsgShow=true">系统版本:V3.0</li>
95
- </ul>
96
-
97
- </dropdown>
98
- <a href="index.html" @click.prevent="logOut">
99
- <img :src="imgs.out" alt=""><span v-if="treeOrIcon">退出系统</span>
100
- </a>
101
- </div>
102
- </div>
103
- </div>
104
- <!-- <div class="line" id="line" v-show="treeOrIcon" v-el:line></div> -->
105
-
106
- <div class="flex right-bg system-right" id="bottom" v-el:bottom>
107
- <!-- <operator-badge></operator-badge> -->
108
- <div class="span">
109
- <echarts-box v-if="$refs.mic.tabs.length === 0"></echarts-box>
110
- <dynamic :comps='[]' name='main' :selecttab.sync="selecttab" :orgpathnames="orgpathnames"
111
- @tab-changed="tabChange" @tabscg="tabcg" v-ref:mic v-show="!($refs.mic.tabs.length === 0)"></dynamic>
112
- </div>
113
- </div>
114
- </div>
115
- <div v-show="isManger">
116
- <route v-ref:route></route>
117
- </div>
118
- <modal v-if="newTipContextShow" :show.sync="newTipContextShow" :backdrop="false">
119
- <header slot="modal-header" style="display:none"> </header>
120
- <article slot="modal-body" class="modal-body">
121
- <form class="form-horizontal">
122
- <div class="row">
123
- <div class="col-sm-12 " v-if="AppDaiBan !==''">
124
- <label class="col-sm-2">报装待办:</label>
125
- <span style="font-weight:normal">{{AppDaiBan}}</span>
126
- </div>
127
- <div class="col-sm-12 " v-if="OrderDaiBan !==''">
128
- <label class="col-sm-2">预约待办:</label>
129
- <span style="font-weight:normal">{{OrderDaiBan}}</span>
130
- </div>
131
- <div class="col-sm-12 " v-if="flowDaiBan !==''">
132
- <label class="col-sm-2">流程审核待办:</label>
133
- <span style="font-weight:normal">{{flowDaiBan}}</span>
134
- </div>
135
- </div>
136
- </form>
137
- </article>
138
- <footer slot="modal-footer" style="height: 8vh" class="modal-footer">
139
- <button class="button_search" @click="newTipContextShow = false">确认</button>
140
- </footer>
141
- </modal>
142
-
143
- <modal v-show="showRemind" :show.sync="showRemind" :backdrop="false">
144
- <header slot="modal-header" class="text-center"><h3>卡表动态库到期</h3></header>
145
- <article slot="modal-body" class="modal-body">
146
- <form class="form-horizontal">
147
- <div class="row">
148
- <div class="col-sm-3 " v-for="item in dataRemind">
149
- <label class="col-sm-3">{{ item.type }}:</label>
150
- <span style="font-weight:normal">{{item.brand}}</span>
151
- </div>
152
- <div class="col-sm-12 text-right">
153
- <span style="font-weight:normal">卡表动态库到期,请联系售后尽快注册!</span>
154
- </div>
155
- </div>
156
- </form>
157
- </article>
158
- <footer slot="modal-footer" style="height: 8vh" class="modal-footer">
159
- <button class="button_search" @click="showRemind = false">确认</button>
160
- </footer>
161
- </modal>
162
-
163
- <!-- 变更录入 模态框 -->
164
- <add-changemsg :show="AddChangeMsgShow" v-on:toggle="AddChangeMsgShow = false"></add-changemsg>
165
- <!-- 修改密码组件 -->
166
- <modify-pw :show.sync="show" v-if="show"></modify-pw>
167
- <!-- 手机扫描二维码 -->
168
- <modal :show.sync="qrCode" v-if="qrCode" v-ref:qrmodal backdrop="false">
169
- <header slot="modal-header" class="modal-header">
170
- 请打开手机扫一扫功能进行扫描下载App
171
- </header>
172
- <article slot="modal-body" class="modal-body">
173
- <img style="width: 300px;height: 300px;display: block;margin: auto" src="/images/DownLoadQRCode.png"/>
174
- </article>
175
- <footer slot="modal-footer" class="modal-footer">
176
- <button type="button" class="btn btn-success" @click='qrCode=false'>关闭</button>
177
- </footer>
178
- </modal>
179
- </div>
180
- </template>
181
-
182
- <script>
183
- import vue from 'vue'
184
- import co from 'co'
185
- import {HttpResetClass} from "vue-client";
186
-
187
- let getwartermakr = async function (self) {
188
- let param = {
189
- tablename: 't_singlevalue',
190
- condition: " 1=1 and name=\'水印内容\'"
191
- };
192
- // todo v4
193
- let result = await self.$resetpost('api/af-revenue/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
194
- if (result && result.data.length > 0) {
195
- self.showwatermakeflag = true;
196
- createWaterMark(`${result.data[0].value}${self.$login.f.ename}`);
197
- } else {
198
- self.showwatermakeflag = false;
199
- }
200
- }
201
-
202
- let createWaterMark = function (userName) {
203
- let style;
204
- if (style) style.remove();
205
- let width = window.parseInt(document.body.clientWidth);
206
- let canvasWidth = width / window.parseInt(width / 320);
207
- let fontFamily = window.getComputedStyle(document.body)["font-family"];
208
- let canvas = document.createElement("canvas");
209
- canvas.width = canvasWidth;
210
- canvas.height = 200;
211
- let ctx = canvas.getContext("2d");
212
- ctx.rotate((-20 * Math.PI) / 180);
213
- ctx.font = `20px ${fontFamily}`;
214
- ctx.fillStyle = "rgba(8,8,8,.1)";
215
- ctx.fillText(userName, 50, 200);
216
- let imgSrc = canvas.toDataURL("image/png");
217
- style = document.createElement("style");
218
- style.innerHTML = `.with-watermark:before{
219
- pointer-events: none;
220
- content: "";
221
- width: 100%;
222
- height: 100%;
223
- display: block;
224
- position: absolute;
225
- background-image: url("${imgSrc}");
226
- }`;
227
- (document.head.append || document.head.appendChild).apply(document.head, [style]);
228
- }
229
-
230
- export default {
231
- title: '主界面',
232
- props: ['functions', 'userid', 'config'],
233
- data() {
234
- return {
235
- // 页面提示信息定时器
236
- interval: null,
237
- intervaltx: null,
238
- newTipShow: false,
239
- newTipContextShow: false,
240
- AppDaiBan: '',
241
- OrderDaiBan: '',
242
- flowDaiBan: '',
243
- // 左侧树下部三个小图标
244
- imgs: {
245
- open: '/images/lefticon/菜单伸缩.png',
246
- set: '/images/lefticon/系统设置.png',
247
- out: '/images/lefticon/退出系统.png',
248
- img1: '/images/newStyle/login-user.png',
249
- logoimg: '/static/newStyle/fife.png'
250
- // img2: '/images/lefticon/退出系统.png',
251
- },
252
- treeOrIcon: false,
253
- qrCode:false,
254
- isManger: false,
255
- show: false,
256
- systemname: '客服系统',
257
- date: this.$login.toStandardDateString(),
258
- tabs: [], //已初始化页签数组
259
- selecttab: '',
260
- setting: true,
261
- srcsetting: '../../static/newStyle/setting.png',
262
- showwatermakeflag: false,
263
- gasbrandIdData: [],
264
- showRemind: false,
265
- dataRemind: [],
266
- // headerHint: true, // 右侧顶部提示信息
267
- // value: 25645.26,
268
- // AddChangeMsgShow: false,
269
- // showsum: false
270
- }
271
- },
272
- ready() {
273
- getwartermakr(this);
274
- let component = this.$login.getUrlCompileParames('component')
275
- if (component) {
276
- this.isManger = true
277
- this.$refs.route.init(component, {data: this.functions.functions})
278
- }
279
- if (this.$login.f.password == '1') {
280
- this.$showMessage('本地登录系统为此账户的初始密码,请确认修改密码!!!', ['confirm', 'cancel']).then((res) => {
281
- if (res == 'confirm')
282
- this.show = true
283
- })
284
- }
285
- console.log("系统名称", this.$appdata.getSingleValue("系统名称"))
286
- this.systemname = this.$appdata.getSingleValue("系统名称") ? this.$appdata.getSingleValue("系统名称") : '客服系统'
287
- // let oBox = this.getElement("box")
288
- // let oTop = this.getElement("top")
289
- // let oBottom = this.getElement("bottom")
290
- // let oLine = this.getElement("line")
291
- // let that = this
292
- // oLine.onmousedown = function(e) {
293
- // let disX = (e || event).clientX
294
- // oLine.left = oLine.offsetLeft
295
- // document.onmousemove = function(e) {
296
- // let iT = oLine.left + ((e || event).clientX - disX)
297
- // var e = e || window.event
298
- // let tarnameb = e.target || e.srcElement
299
- // let maxT = oBox.clientWight - oLine.offsetWidth
300
- // oLine.style.margin = 0
301
- // iT < 0 && (iT = 0)
302
- // iT > maxT && (iT = maxT)
303
- // oLine.style.left = oTop.style.width = iT + "px"
304
- // oBottom.style.width = oBox.clientWidth - iT + "px"
305
- // that.$set('treeWidth', iT)
306
- // return false
307
- // }
308
- // document.onmouseup = function() {
309
- // document.onmousemove = null
310
- // document.onmouseup = null
311
- // oLine.releaseCapture && oLine.releaseCapture()
312
- // }
313
- // oLine.setCapture && oLine.setCapture()
314
- // return false
315
- // }
316
- this.changeShow()
317
- const istelRemindTimes =this.$appdata.getSingleValue("是否开启工单提醒定时器")
318
- if(istelRemindTimes=='是'){
319
- this.getTimesgotoWorkOrderSite()
320
- }
321
- const isapplyRemind =this.$appdata.getSingleValue("是否开启提醒")
322
- const times =this.$appdata.getSingleValue("提示间隔分钟")
323
- if(isapplyRemind=='是'){
324
- this.config.isTip = true
325
- this.config.times = times
326
- }
327
- // 获取预约列表
328
- this.functions.f_role_name && this.functions.f_role_name.includes(this.config.msgRole) && this.config.isTip && this.getOrderList()
329
- if (this.config.approve) {
330
- this.getFlowList()
331
- }
332
- // 获取卡表动态库到期时间
333
- this.getExpireDate()
334
- },
335
- methods: {
336
- getOrderList(){
337
- let times = this.config.times * 60 * 1000
338
- console.log("=定时提示间隔=", times)
339
- try {
340
- this.interval = setInterval(() => {
341
- this.getDaiBan()
342
- }, times)
343
- } catch (error) {
344
- console.log('捕获到异常', error)
345
- }
346
- },
347
- getFlowList(){
348
- console.log('======获取流程审核待办=====')
349
- let times = this.config.approveTimes * 60 * 1000
350
- console.log("=定时提示间隔=", times)
351
- try {
352
- this.interval = setInterval(() => {
353
- this.getFlowDaiBan()
354
- }, times)
355
- } catch (error) {
356
- console.log('捕获到异常', error)
357
- }
358
- },
359
- async getFlowDaiBan(){
360
- this.flowDaiBan = ''
361
- let http = new HttpResetClass()
362
- let data = {
363
- condition: `f_handler = '${this.$login.f.name}'`
364
- }
365
- await http.load('POST', 'rs/sql/future_getMyWorkFlowList', {data: data}, {
366
- resolveMsg: null,
367
- rejectMsg: null
368
- }).then((res) => {
369
- if (res.data.length > 0){
370
- this.flowDaiBan = `您有${res.data.length}条需要处理的审核流程业务!`
371
- }
372
- }).catch((e)=>{
373
- console.log('报错了!!')
374
- console.error(e)
375
- })
376
- if(this.flowDaiBan){
377
- this.newTipShow = true
378
- }
379
- },
380
- getTimesgotoWorkOrderSite(){
381
- let teltimes = 2*60*1000 // 两分钟
382
- try {
383
- this.intervaltx =setInterval(()=>{
384
- this.gotoWorkOrderSite()
385
- },teltimes)
386
- }catch (e) {
387
- console.log('捕获到异常', e)
388
- }
389
- },
390
- async getDaiBan(){
391
- this.OrderDaiBan = ''
392
- this.AppDaiBan = ''
393
- let http = new HttpResetClass()
394
- await http.load('POST', '/api/af-system/sql/singleTable', {data: {
395
- tablename:'t_order_center',
396
- condition:` (f_orderstate != '预约成功' and f_orgstr ='${this.$login.f.orgid}' and f_orderstate != '预约失败' ) or f_orderstate is null`
397
- }}, {
398
- resolveMsg: null,
399
- rejectMsg: null
400
- }).then((res) => {
401
- let OrderDaiBan = {}
402
- res.data.forEach(item=>{
403
- OrderDaiBan[item.f_ordertype] = OrderDaiBan[item.f_ordertype] || []
404
- OrderDaiBan[item.f_ordertype].push(item)
405
- })
406
- if (res.data.length> 0){
407
- this.OrderDaiBan = `您有${res.data.length}条需要处理的微信预约业务!`
408
- this.OrderDaiBan += `其中 ${Object.keys(OrderDaiBan).map(key=>`${key}:${OrderDaiBan[key].length}条`).join(', ')}`
409
- }
410
- })
411
- let data = {
412
- condition: '1 = 1',
413
- data: {
414
- orgid: this.$login.f.orgid,
415
- id: this.$login.f.id
416
- }
417
- }
418
- await http.load('POST', '/rs/sql/checkuser', {data: data}, {
419
- resolveMsg: null,
420
- rejectMsg: null
421
- }).then((res) => {
422
- let AppDaiBan = {}
423
- res.data.forEach(item=>{
424
- AppDaiBan[item.defname] = AppDaiBan[item.defname] || []
425
- AppDaiBan[item.defname].push(item)
426
- })
427
- if (res.data.length> 0){
428
- this.AppDaiBan = `您有${res.data.length}条需要处理的报建待办业务!`
429
- this.AppDaiBan += `其中 ${Object.keys(AppDaiBan).map(key=>`${key}:${AppDaiBan[key].length}条`).join(', ')}`
430
- }
431
- }).catch((e)=>{
432
- console.error(e)
433
- })
434
- if(this.AppDaiBan || this.OrderDaiBan){
435
- this.newTipShow = true
436
- }
437
- },
438
- // 获取动态库卡表到期日
439
- async getExpireDate(){
440
- // 获取分公司的表品牌id
441
- let http = new HttpResetClass()
442
- await http.load('POST', '/api/af-system/sql/singleTable', {data: {
443
- tablename:'t_gasbrand_orgid',
444
- condition:`f_using_orgid ='${this.$login.f.orgid}'`
445
- }}, {
446
- resolveMsg: null,
447
- rejectMsg: null
448
- }).then((res) => {
449
- if (res.data.length > 0) {
450
- res.data.forEach(item => {
451
- this.gasbrandIdData.push(item.f_gasbrand_id)
452
- })
453
- }
454
- if (this.gasbrandIdData.length > 0) {
455
- // 获取卡表到期时间
456
- http.load('POST', '/api/af-system/sql/singleTable', {data: {
457
- tablename:'t_gasbrand',
458
- condition:`id in (${this.gasbrandIdData}) and f_meter_type like '%卡表%'`
459
- }}, {
460
- resolveMsg: null,
461
- rejectMsg: null
462
- }).then((res) => {
463
- if (res.data.length > 0) {
464
- res.data.forEach(itre => {
465
- let band = null
466
- if ('f_dynamic_expire' in itre) {
467
- if (itre.f_dynamic_expire !== null && itre.f_dynamic_expire !== '') {
468
- let todayold = new Date(itre.f_dynamic_expire)
469
- todayold.setDate(todayold.getDate() - parseInt(this.$appdata.getSingleValue('动态库提醒天数设置')))
470
- let today = new Date()
471
- if (today > todayold) {
472
- band = {type:'卡表',brand:itre.f_meter_brand}
473
- this.dataRemind.push(band)
474
- }
475
- }
476
- }
477
- })
478
-
479
- }
480
- if (this.dataRemind.length > 0) {
481
- this.showRemind = true
482
- // this.$showMessage(band + '。' +
483
- // '卡表动态库到期,请联系售后尽快注册!')
484
- }
485
- })
486
- }
487
- })
488
- },
489
- // 提醒框被点击
490
- tipClick(){
491
- this.newTipShow = false
492
- this.newTipContextShow = true
493
- },
494
- gotoWorkOrderSite(){
495
- const isRemind =this.$appdata.getSingleValue("站点工单提醒")
496
- console.log('站点工单是否提醒',isRemind)
497
- if(isRemind && isRemind !== '是'){
498
- return
499
- }
500
- if(this.functions && this.functions.f_role_name && this.functions.f_role_name.indexOf('派单员') !== -1){
501
- const data = {
502
- "condition":
503
- {
504
- "condition":" 1=1 and processins.activities[ state='开始活动' and (defname in('站点接单'))].count(*) > 0 ",
505
- "sign":"1=1"
506
- },
507
- "userid":this.functions.name
508
- }
509
- new HttpResetClass().load('POST','rs/path/operatorService/n', {data}, {resolveMsg: null, rejectMsg: null}).then(res=>{
510
- if(res.data && res.data.n !== 0){
511
- this.$showMessage('你有'+res.data.n+'个工单待处理,请尽快前往站点工单页面进行处理')
512
- }
513
- })
514
- }
515
- },
516
- openUrl() {
517
- var url = `http://123.60.214.109:8406/submitTicket?contact=${this.$login.f.name}&orgName=${this.$login.f.orgs}&phone=${this.$login.f.f_user_telephone}`
518
- window.open(url, '_blank')
519
- },
520
- hindsetting() {
521
- this.setting = !this.setting
522
- if (this.setting) {
523
- this.srcsetting = '../../static/newStyle/setting.png'
524
- } else {
525
- this.srcsetting = '../../static/newStyle/setting1.png'
526
- }
527
-
528
- },
529
- hindsetting1() {
530
-
531
- if (!this.setting) {
532
- this.srcsetting = '../../static/newStyle/setting.png'
533
- this.setting = true
534
- }
535
-
536
- },
537
- isnodo(val) {
538
- console.log(val, 'ss')
539
- this.selecttab = val
540
- },
541
- unfurl() {
542
- if (this.showsum) {
543
- this.showsum = false
544
- } else {
545
- this.showsum = true
546
- }
547
- },
548
- // getElement(id) {
549
- // return document.getElementById(id)
550
- // },
551
- changeShow() {
552
- // this.treeOrIcon = !this.treeOrIcon
553
- // let oBox = this.getElement("box")
554
- // let oTop = this.getElement("top")
555
- // let oBottom = this.getElement("bottom")
556
- // let oLine = this.getElement("line")
557
- // if (this.treeOrIcon) {
558
- // // oLine.style.left = oTop.style.width = 300 + "px"
559
- // oTop.style.width = 150 + "px"
560
- // oBottom.style.width = oBox.clientWidth - 150 + "px"
561
- // }else {
562
- // oLine.style.left = oTop.style.width = 50 + "px"
563
- // oBottom.style.width = oBox.clientWidth - 50 + "px"
564
- // }
565
- // }
566
- this.treeOrIcon = !this.treeOrIcon
567
- // if (this.treeOrIcon) {
568
- // this.$els.top.style.width = 14 + "%"
569
- // this.$els.bottom.style.width = this.$els.box.clientWidth - 14 + "%"
570
- // }else {
571
- // this.$els.top.style.width = 8 + "%"
572
- // this.$els.bottom.style.width = this.$els.box.clientWidth - 8 + "%"
573
- // }
574
- },
575
- changeMain(userid) {
576
- this.$goto('res-main', {userid: this.userid}, 'self')
577
- },
578
- tabChange(name) {
579
- console.log(name, 'tabchanage')
580
- this.selecttab = name
581
- this.$refs.tree.changeSelect(name)
582
- },
583
- tabcg(val) {
584
- console.log(val)
585
- this.tabs = val
586
- },
587
- logOut() {
588
- console.log(this.$login.f)
589
- this.$showMessage('您确定要退出系统吗?', ['confirm', 'cancel']).then(async (res) => {
590
- if (res == 'confirm') {
591
- let data = {
592
- userid: this.$login.f.id,
593
- username: this.$login.f.name,
594
- usertelephone: this.$login.f.f_user_telephone
595
- }
596
- // todo v4
597
- try {
598
- await this.$resetget('api/af-system/user/logout', {resolveMsg: '退出成功', rejectMsg: null})
599
- }catch(e){
600
- }
601
- if (window.parent && window.parent !== window) {
602
- window.parent.postMessage('reload', '*')
603
- } else {
604
- window.location.reload()
605
- }
606
- }
607
- })
608
- }
609
- },
610
- computed: {
611
- orgpathnames(){
612
- let names = this.$login.f.name
613
- if(this.$login.f.deps){
614
- names = `${this.$login.f.deps}-${names}`
615
- }
616
- if(this.$login.f.orgs){
617
- names = `${this.$login.f.orgs}-${names}`
618
- }
619
- return names
620
- },
621
-
622
- nowDate() {
623
- return this.$login.getNowDate()
624
- }
625
- }
626
- }
627
- </script>
628
- <style lang="less">
629
- .newTip-transition {
630
- transition: all .4s ease;
631
- }
632
- .newTip-enter, .newTip-leave {
633
- height: 0;
634
- padding: 0 10px;
635
- opacity: 0;
636
- }
637
- .newTip a {
638
- color: #333;
639
- }
640
- .newTip {
641
- cursor: pointer;
642
- text-align: center;
643
- position: absolute;
644
- top: 3em;
645
- margin: 0 auto;
646
- width: 200px;
647
- left: 48%;
648
- line-height: 2;
649
- z-index: 10010;
650
- box-shadow: 0 4px 12px rgba(0,0,0,0.38);
651
- pointer-events: all;
652
- border-radius: 4px;
653
- background-color: whitesmoke;
654
- }
655
- /* 组件内通用样式 */
656
- .select-error {
657
- button {
658
- border-bottom: 1px solid #a94442 !important;
659
- }
660
- }
661
-
662
- // input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{
663
- // -webkit-appearance:textfield;
664
- // }
665
- /* 表单输入框组 */
666
- .form-input-group {
667
- display: flex;
668
-
669
- label {
670
- width: 100px;
671
- text-align: right;
672
-
673
- + * {
674
- flex: 1;
675
- }
676
- }
677
- }
678
-
679
- // 日期组件在表单中沾满
680
- .form-horizontal .datepicker {
681
- width: 100%;
682
- }
683
-
684
- // 下拉选择框占据剩余全部空间
685
- .select-overspread {
686
- .form-group {
687
- // margin: 0px 5px 10px 0px;
688
- .form-control {
689
- margin-right: 0px;
690
- }
691
- }
692
-
693
- .btn-group, .btn-group-vertical {
694
- width: 100%;
695
- // padding-right: 5px;
696
- button {
697
- width: 100%;
698
- display: flex;
699
- justify-content: space-between;
700
- align-items: center;
701
- }
702
- }
703
-
704
- .dropdown-menu {
705
- width: 100%
706
- }
707
- }
708
-
709
- // 需要特定宽度的的样式
710
- .width-60 {
711
- width: 60px;
712
- }
713
-
714
- .userpanel {
715
- font-weight: 300;
716
- color: #333;
717
- position: fixed;
718
- right: 30px;
719
- top: 45px;
720
- background-color: white;
721
- box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
722
- padding: 4px 10px 4px 10px;
723
- border-radius: 2px;
724
- }
725
-
726
- .width-80 {
727
- width: 80px;
728
- }
729
-
730
- .width-100 {
731
- width: 100px;
732
- }
733
-
734
-
735
- /*右侧区域的背景*/
736
- .right-bg {
737
- width: 100%;
738
- flex: 1;
739
- color: #304A66;
740
- }
741
-
742
- .tree-flex {
743
- height: 100%;
744
- // width: 150px;
745
- /*width: 60px;*/
746
- background: #4a7cae;
747
- color: #fff;
748
-
749
- }
750
-
751
- .tree-flex-icon {
752
- width: 50px;
753
- /*transition: 0.5s;*/
754
-
755
- > .span {
756
- overflow-x: visible;
757
- }
758
- }
759
-
760
- .tree-flex h3 {
761
- text-align: center;
762
- margin: 1em 0;
763
- }
764
-
765
- .tree-flex-footer {
766
- height: 50px;
767
- display: flex;
768
- flex-direction: column;
769
- color: #fff;
770
- }
771
-
772
- .tree-flex-footer a, .tree-flex-footer button {
773
- flex: 1;
774
- padding: 8px 5px;
775
- font-size: 1.2em;
776
- // border-top: 1px solid #697D93;
777
- border-top: 1px solid #4a7cae;
778
- text-decoration: none;
779
- color: #fff;
780
- cursor: pointer;
781
- }
782
-
783
- .tree-flex-footer button {
784
- height: auto;
785
- width: 100%;
786
- border-radius: 0px;
787
- background-color: rgba(255, 255, 255, 0);
788
- border: none;
789
- border-top: 1px solid #4a7cae;
790
- // border-top: 1px solid #697D93;
791
- text-align: left;
792
- }
793
-
794
- .tree-flex-footer button:hover {
795
- outline: none;
796
- background-color: rgba(255, 255, 255, 0.2);
797
- }
798
-
799
- .tree-flex-footer button:focus {
800
- outline: none;
801
- background-color: rgba(255, 255, 255, 0.5);
802
- }
803
-
804
- .tree-flex-footer a:hover {
805
- color: #FFF;
806
- background-color: rgba(255, 255, 255, 0.2);
807
- }
808
-
809
- .tree-flex .btn-group {
810
- height: 50px !important;
811
- }
812
-
813
- .tree-flex .dropdown-menu {
814
- /* 控制显示列表的样式 */
815
- background: #4a7cae;
816
- border-radius: 0px;
817
- color: #fff;
818
- width: auto;
819
- margin: 0px;
820
- padding: 0px;
821
- }
822
-
823
- .tree-flex .dropdown-menu-up {
824
- /* bottom,top控制上下,left和right控制左右*/
825
- left: 100% !important;
826
- top: auto !important;
827
- bottom: 0;
828
- }
829
-
830
- .tree-flex .dropdown-menu-down {
831
- /* bottom,top控制上下,left和right控制左右*/
832
- left: 100% !important;
833
- top: 0 !important;
834
- }
835
-
836
- .tree-flex .dropdown-menu li {
837
- text-align: center;
838
- line-height: 50px;
839
- border-bottom: 1px solid #697D93;
840
- font-size: 1.2em;
841
- width: auto;
842
- white-space: nowrap;
843
- cursor: default;
844
-
845
- }
846
-
847
- .tree-flex .dropdown-menu li + li {
848
- text-align: left;
849
- border: 0;
850
- line-height: 40px;
851
- padding-left: 15px;
852
- padding-right: 15px;
853
- font-size: 1em;
854
- cursor: pointer;
855
- }
856
-
857
- .tree-flex .dropdown-menu li + li:hover {
858
- background-color: rgba(255, 255, 255, 0.2);
859
- }
860
-
861
- .tree-flex .dropdown-menu li a {
862
- border: none;
863
- color: #fff;
864
- height: 40px;
865
- line-height: 40px;
866
- font-size: 1em;
867
- padding: 0px;
868
- }
869
-
870
- .tree-flex .dropdown-menu li a:hover {
871
- color: #fff;
872
- background-color: rgba(255, 255, 255, 0);
873
- }
874
-
875
- .tree-flex img {
876
- height: 1.2em;
877
- width: 1.2em;
878
- margin-right: 15px;
879
- margin-left: 5px;
880
- }
881
-
882
- .line {
883
- height: 100%;
884
- width: 5px;
885
- background: #4C637B;
886
- cursor: e-resize;
887
- }
888
-
889
- /*为树(tree)组件写的样式*/
890
- .tree-img {
891
- font-size: 1.2em;
892
- }
893
-
894
- /*将较长信息截断显示,鼠标悬停显示全部信息*/
895
- .cutout50 {
896
- max-width: 50px;
897
- overflow: hidden;
898
- text-overflow: ellipsis;
899
- white-space: nowrap;
900
- }
901
-
902
- /* 滚动条样式 */
903
- /*---滚动条默认显示样式--*/
904
- ::-webkit-scrollbar-thumb {
905
- // display: none;
906
- background-color: rgba(0, 0, 0, 0.4);
907
- /*background-color:red;*/
908
- height: 50px;
909
- outline-offset: -2px;
910
- /*outline:2px solid #fff;*/
911
- -webkit-border-radius: 4px;
912
- /*border: 2px solid #fff;*/
913
- }
914
-
915
- /*---鼠标点击滚动条显示样式--*/
916
- ::-webkit-scrollbar-thumb:hover {
917
- // display: inherit;
918
- background-color: rgba(0, 0, 0, 0.4);
919
- height: 50px;
920
- -webkit-border-radius: 4px;
921
- }
922
-
923
- /*---滚动条大小--*/
924
- ::-webkit-scrollbar {
925
- width: 8px;
926
- height: 8px;
927
- }
928
-
929
- /*---滚动框背景样式--*/
930
- ::-webkit-scrollbar-track-piece {
931
- /* 全透明,不显示 */
932
- background-color: rgba(255, 255, 255, 0);
933
- -webkit-border-radius: 0;
934
- }
935
- </style>
1
+ <template>
2
+ <div @click="hindsetting1()" :class="{'with-watermark':showwatermakeflag}">
3
+ <span class="newTip" transition="newTip" @click="tipClick" v-if="newTipShow">
4
+ <span>您有一条新提醒</span>
5
+ </span>
6
+ <!-- <div class="system-main" id="box" v-el:box v-if="!isManger">-->
7
+ <!-- <div class="system-logo" style="height: auto">-->
8
+ <!-- <img :src="imgs.logoimg" alt=""/>-->
9
+ <!-- <label>{{systemname}}</label>-->
10
+ <!-- <div class="system-logo-chi" >-->
11
+ <!-- <div v-if="userpane" class="auto system-logo-prompt" style="float: right">-->
12
+ <!-- <span>{{orgpathnames}}</span>-->
13
+ <!-- </div>-->
14
+ <!-- &lt;!&ndash;<div class="system-logo-chi-img1" style="float: right" @mouseenter="mouseenteruser()" @mouseleave="mouseleaveuser()"></div>&ndash;&gt;-->
15
+ <!-- <span style="float: right; padding-top: 2px" @mouseenter="mouseenteruser()" @mouseleave="mouseleaveuser()" class="system-logo-chi-span-1">{{$login.f.name}}</span>-->
16
+ <!-- <span style="border-left: 1px solid;float: right;padding-top: 2px" class="system-logo-chi-span-1"> <img src="../../static/newStyle/login-f.png" height="20" width="20"> </span>-->
17
+ <!-- <a href="index.html" onclick="return confirm('您确定要退出系统吗?');" style="float: right;padding-top: 2px">-->
18
+ <!-- <img src="../../static/newStyle/system-off.png" alt="" >-->
19
+ <!-- <span class="system-logo-chi-span-1">退出系统</span>-->
20
+ <!-- </a>-->
21
+ <!-- <div style="float: right" :class="{'dropstyle':setting,'dropstyle-1':!setting}">-->
22
+ <!-- <dropdown class="auto" >-->
23
+ <!-- <span data-toggle="dropdown" @click="hindsetting()" >-->
24
+ <!-- <img :src="srcsetting" alt=""><span>系统设置</span>-->
25
+ <!-- </span>-->
26
+ <!-- <ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-up dropstyle-chi" >-->
27
+ <!-- &lt;!&ndash; <li>系统信息及设置</li>&ndash;&gt;-->
28
+ <!-- <li style="color: #ffffff;white-space: nowrap" @click="show=true">修改密码</li>-->
29
+ <!-- <li style="color: #ffffff;white-space: nowrap" @click="AddChangeMsgShow=true">系统版本</li>-->
30
+ <!-- </ul>-->
31
+ <!-- </dropdown>-->
32
+ <!-- </div>-->
33
+
34
+ <!-- </div>-->
35
+ <!-- </div>-->
36
+ <!-- <div class="system-left tree-flex" :class="{'system-left-1': !treeOrIcon}" id="top" v-el:top >-->
37
+ <!-- <div class="system-left-chi" :class="{'system-left-icon': !treeOrIcon}" >-->
38
+ <!-- <div class="span system-left-tree" >-->
39
+ <!-- <left-tree :functions='functions.functions' :userid='userid' @isnodo="isnodo" :treeOrIcon="treeOrIcon" :tabs="tabs" v-ref:tree></left-tree>-->
40
+ <!-- &lt;!&ndash; <icon-tree :functions='functions.functions' :userid='userid' v-show="!treeOrIcon"></icon-tree>&ndash;&gt;-->
41
+ <!-- </div>-->
42
+ <!-- </div>-->
43
+ <!-- <div class="system-foot-stretch" >-->
44
+ <!-- <a @click="changeShow()"><img src="../../static/images/lefticon/菜单伸缩.png" alt=""></a>-->
45
+ <!-- </div>-->
46
+ <!-- </div>-->
47
+
48
+
49
+ <!-- <div class="system-right" :class="{'system-right-1': !treeOrIcon}" id="bottom" v-el:bottom>-->
50
+ <!-- <div class="span">-->
51
+ <!-- <echarts-box v-if="$refs.mic.tabs.length === 0"></echarts-box>-->
52
+ <!-- <dynamic :comps='[]' :showup="true" :showhide="false" name='main' :selecttab.sync="selecttab" @tab-changed="tabChange" @tabscg="tabcg" v-ref:mic v-show="!($refs.mic.tabs.length === 0)"></dynamic>-->
53
+ <!-- </div>-->
54
+ <!-- </div>-->
55
+ <!-- <div class="system-foot" v-el:bottom>-->
56
+
57
+ <!-- <div class="system-foot-box">-->
58
+
59
+ <!-- </div>-->
60
+ <!-- </div>-->
61
+ <!-- </div>-->
62
+ <div class='flex-row system-main' id="box" v-el:box v-if="!isManger">
63
+ <div class="auto login-operator1" v-if="$refs.mic.tabs.length === 0">
64
+ <span>
65
+ <img
66
+ src="../assets/people.png" height="15" width="15">
67
+ 登录人:</span>
68
+ <label>{{ orgpathnames }}</label>
69
+ </div>
70
+ <div class="system-left tree-flex" :class="{'tree-flex-icon': !treeOrIcon}" id="top" v-el:top>
71
+ <div class="system-left-chi" :class="{'system-left-icon': !treeOrIcon}">
72
+ <div class="span system-left-tree " style="height:85%">
73
+ <h3>{{ systemname }}</h3>
74
+ <!-- <div class="span" style="margin-bottom:10px;padding-bottom:5px;padding-top:5px;flex: 1;border-top: 1px solid #e5e5e5;border-bottom: 1px solid #e5e5e5;">-->
75
+ <left-tree :functions='functions.functions' :userid='userid' @isnodo="isnodo" v-show="treeOrIcon"
76
+ :tabs="tabs" v-ref:tree></left-tree>
77
+ <!--&lt;!&ndash; <icon-tree :functions='functions.functions' :userid='userid' v-show="!treeOrIcon"></icon-tree>&ndash;&gt;-->
78
+ </div>
79
+
80
+ <div class="tree-flex-footer">
81
+ <!-- <a @click="changeShow()"><img :src="imgs.open" alt=""><span v-if="treeOrIcon">菜单伸缩</span></a>-->
82
+ <!-- <a><img src="../../../static/treeset.png" alt="">系统设置</a> -->
83
+ <dropdown class="auto">
84
+ <button type="button" data-toggle="dropdown">
85
+ <img :src="imgs.set" alt=""><span v-if="treeOrIcon">系统设置</span>
86
+ </button>
87
+ <ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-up">
88
+ <li>系统信息及设置</li>
89
+ <!-- <li>{{name}}</li> -->
90
+ <li>{{ date }}</li>
91
+ <li @click="openUrl()">售后服务</li>
92
+ <li @click="qrCode=true">APP二维码</li>
93
+ <li @click="show=true">修改密码</li>
94
+ <li @click="AddChangeMsgShow=true">系统版本:V3.0</li>
95
+ </ul>
96
+
97
+ </dropdown>
98
+ <a href="index.html" @click.prevent="logOut">
99
+ <img :src="imgs.out" alt=""><span v-if="treeOrIcon">退出系统</span>
100
+ </a>
101
+ </div>
102
+ </div>
103
+ </div>
104
+ <!-- <div class="line" id="line" v-show="treeOrIcon" v-el:line></div> -->
105
+
106
+ <div class="flex right-bg system-right" id="bottom" v-el:bottom>
107
+ <!-- <operator-badge></operator-badge> -->
108
+ <div class="span">
109
+ <echarts-box v-if="$refs.mic.tabs.length === 0"></echarts-box>
110
+ <dynamic :comps='[]' name='main' :selecttab.sync="selecttab" :orgpathnames="orgpathnames"
111
+ @tab-changed="tabChange" @tabscg="tabcg" v-ref:mic v-show="!($refs.mic.tabs.length === 0)"></dynamic>
112
+ </div>
113
+ </div>
114
+ </div>
115
+ <div v-show="isManger">
116
+ <route v-ref:route></route>
117
+ </div>
118
+ <modal v-if="newTipContextShow" :show.sync="newTipContextShow" :backdrop="false">
119
+ <header slot="modal-header" style="display:none"> </header>
120
+ <article slot="modal-body" class="modal-body">
121
+ <form class="form-horizontal">
122
+ <div class="row">
123
+ <div class="col-sm-12 " v-if="AppDaiBan !==''">
124
+ <label class="col-sm-2">报装待办:</label>
125
+ <span style="font-weight:normal">{{AppDaiBan}}</span>
126
+ </div>
127
+ <div class="col-sm-12 " v-if="OrderDaiBan !==''">
128
+ <label class="col-sm-2">预约待办:</label>
129
+ <span style="font-weight:normal">{{OrderDaiBan}}</span>
130
+ </div>
131
+ <div class="col-sm-12 " v-if="flowDaiBan !==''">
132
+ <label class="col-sm-2">流程审核待办:</label>
133
+ <span style="font-weight:normal">{{flowDaiBan}}</span>
134
+ </div>
135
+ </div>
136
+ </form>
137
+ </article>
138
+ <footer slot="modal-footer" style="height: 8vh" class="modal-footer">
139
+ <button class="button_search" @click="newTipContextShow = false">确认</button>
140
+ </footer>
141
+ </modal>
142
+
143
+ <modal v-show="showRemind" :show.sync="showRemind" :backdrop="false">
144
+ <header slot="modal-header" class="text-center"><h3>卡表动态库到期</h3></header>
145
+ <article slot="modal-body" class="modal-body">
146
+ <form class="form-horizontal">
147
+ <div class="row">
148
+ <div class="col-sm-3 " v-for="item in dataRemind">
149
+ <label class="col-sm-3">{{ item.type }}:</label>
150
+ <span style="font-weight:normal">{{item.brand}}</span>
151
+ </div>
152
+ <div class="col-sm-12 text-right">
153
+ <span style="font-weight:normal">卡表动态库到期,请联系售后尽快注册!</span>
154
+ </div>
155
+ </div>
156
+ </form>
157
+ </article>
158
+ <footer slot="modal-footer" style="height: 8vh" class="modal-footer">
159
+ <button class="button_search" @click="showRemind = false">确认</button>
160
+ </footer>
161
+ </modal>
162
+
163
+ <!-- 变更录入 模态框 -->
164
+ <add-changemsg :show="AddChangeMsgShow" v-on:toggle="AddChangeMsgShow = false"></add-changemsg>
165
+ <!-- 修改密码组件 -->
166
+ <modify-pw :show.sync="show" v-if="show"></modify-pw>
167
+ <!-- 手机扫描二维码 -->
168
+ <modal :show.sync="qrCode" v-if="qrCode" v-ref:qrmodal backdrop="false">
169
+ <header slot="modal-header" class="modal-header">
170
+ 请打开手机扫一扫功能进行扫描下载App
171
+ </header>
172
+ <article slot="modal-body" class="modal-body">
173
+ <img style="width: 300px;height: 300px;display: block;margin: auto" src="/images/DownLoadQRCode.png"/>
174
+ </article>
175
+ <footer slot="modal-footer" class="modal-footer">
176
+ <button type="button" class="btn btn-success" @click='qrCode=false'>关闭</button>
177
+ </footer>
178
+ </modal>
179
+ </div>
180
+ </template>
181
+
182
+ <script>
183
+ import vue from 'vue'
184
+ import co from 'co'
185
+ import {HttpResetClass} from "vue-client";
186
+
187
+ let getwartermakr = async function (self) {
188
+ let param = {
189
+ tablename: 't_singlevalue',
190
+ condition: " 1=1 and name=\'水印内容\'"
191
+ };
192
+ // todo v4
193
+ let result = await self.$resetpost('api/af-revenue/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
194
+ if (result && result.data.length > 0) {
195
+ self.showwatermakeflag = true;
196
+ createWaterMark(`${result.data[0].value}${self.$login.f.ename}`);
197
+ } else {
198
+ self.showwatermakeflag = false;
199
+ }
200
+ }
201
+
202
+ let createWaterMark = function (userName) {
203
+ let style;
204
+ if (style) style.remove();
205
+ let width = window.parseInt(document.body.clientWidth);
206
+ let canvasWidth = width / window.parseInt(width / 320);
207
+ let fontFamily = window.getComputedStyle(document.body)["font-family"];
208
+ let canvas = document.createElement("canvas");
209
+ canvas.width = canvasWidth;
210
+ canvas.height = 200;
211
+ let ctx = canvas.getContext("2d");
212
+ ctx.rotate((-20 * Math.PI) / 180);
213
+ ctx.font = `20px ${fontFamily}`;
214
+ ctx.fillStyle = "rgba(8,8,8,.1)";
215
+ ctx.fillText(userName, 50, 200);
216
+ let imgSrc = canvas.toDataURL("image/png");
217
+ style = document.createElement("style");
218
+ style.innerHTML = `.with-watermark:before{
219
+ pointer-events: none;
220
+ content: "";
221
+ width: 100%;
222
+ height: 100%;
223
+ display: block;
224
+ position: absolute;
225
+ background-image: url("${imgSrc}");
226
+ }`;
227
+ (document.head.append || document.head.appendChild).apply(document.head, [style]);
228
+ }
229
+
230
+ export default {
231
+ title: '主界面',
232
+ props: ['functions', 'userid', 'config'],
233
+ data() {
234
+ return {
235
+ // 页面提示信息定时器
236
+ interval: null,
237
+ intervaltx: null,
238
+ newTipShow: false,
239
+ newTipContextShow: false,
240
+ AppDaiBan: '',
241
+ OrderDaiBan: '',
242
+ flowDaiBan: '',
243
+ // 左侧树下部三个小图标
244
+ imgs: {
245
+ open: '/images/lefticon/菜单伸缩.png',
246
+ set: '/images/lefticon/系统设置.png',
247
+ out: '/images/lefticon/退出系统.png',
248
+ img1: '/images/newStyle/login-user.png',
249
+ logoimg: '/static/newStyle/fife.png'
250
+ // img2: '/images/lefticon/退出系统.png',
251
+ },
252
+ treeOrIcon: false,
253
+ qrCode:false,
254
+ isManger: false,
255
+ show: false,
256
+ systemname: '客服系统',
257
+ date: this.$login.toStandardDateString(),
258
+ tabs: [], //已初始化页签数组
259
+ selecttab: '',
260
+ setting: true,
261
+ srcsetting: '../../static/newStyle/setting.png',
262
+ showwatermakeflag: false,
263
+ gasbrandIdData: [],
264
+ showRemind: false,
265
+ dataRemind: [],
266
+ // headerHint: true, // 右侧顶部提示信息
267
+ // value: 25645.26,
268
+ // AddChangeMsgShow: false,
269
+ // showsum: false
270
+ }
271
+ },
272
+ ready() {
273
+ getwartermakr(this);
274
+ let component = this.$login.getUrlCompileParames('component')
275
+ if (component) {
276
+ this.isManger = true
277
+ this.$refs.route.init(component, {data: this.functions.functions})
278
+ }
279
+ if (this.$login.f.password == '1') {
280
+ this.$showMessage('本地登录系统为此账户的初始密码,请确认修改密码!!!', ['confirm', 'cancel']).then((res) => {
281
+ if (res == 'confirm')
282
+ this.show = true
283
+ })
284
+ }
285
+ console.log("系统名称", this.$appdata.getSingleValue("系统名称"))
286
+ this.systemname = this.$appdata.getSingleValue("系统名称") ? this.$appdata.getSingleValue("系统名称") : '客服系统'
287
+ // let oBox = this.getElement("box")
288
+ // let oTop = this.getElement("top")
289
+ // let oBottom = this.getElement("bottom")
290
+ // let oLine = this.getElement("line")
291
+ // let that = this
292
+ // oLine.onmousedown = function(e) {
293
+ // let disX = (e || event).clientX
294
+ // oLine.left = oLine.offsetLeft
295
+ // document.onmousemove = function(e) {
296
+ // let iT = oLine.left + ((e || event).clientX - disX)
297
+ // var e = e || window.event
298
+ // let tarnameb = e.target || e.srcElement
299
+ // let maxT = oBox.clientWight - oLine.offsetWidth
300
+ // oLine.style.margin = 0
301
+ // iT < 0 && (iT = 0)
302
+ // iT > maxT && (iT = maxT)
303
+ // oLine.style.left = oTop.style.width = iT + "px"
304
+ // oBottom.style.width = oBox.clientWidth - iT + "px"
305
+ // that.$set('treeWidth', iT)
306
+ // return false
307
+ // }
308
+ // document.onmouseup = function() {
309
+ // document.onmousemove = null
310
+ // document.onmouseup = null
311
+ // oLine.releaseCapture && oLine.releaseCapture()
312
+ // }
313
+ // oLine.setCapture && oLine.setCapture()
314
+ // return false
315
+ // }
316
+ this.changeShow()
317
+ const istelRemindTimes =this.$appdata.getSingleValue("是否开启工单提醒定时器")
318
+ if(istelRemindTimes=='是'){
319
+ this.getTimesgotoWorkOrderSite()
320
+ }
321
+ const isapplyRemind =this.$appdata.getSingleValue("是否开启提醒")
322
+ const times =this.$appdata.getSingleValue("提示间隔分钟")
323
+ if(isapplyRemind=='是'){
324
+ this.config.isTip = true
325
+ this.config.times = times
326
+ }
327
+ // 获取预约列表
328
+ this.functions.f_role_name && this.functions.f_role_name.includes(this.config.msgRole) && this.config.isTip && this.getOrderList()
329
+ if (this.config.approve) {
330
+ this.getFlowList()
331
+ }
332
+ // 获取卡表动态库到期时间
333
+ this.getExpireDate()
334
+ },
335
+ methods: {
336
+ getOrderList(){
337
+ let times = this.config.times * 60 * 1000
338
+ console.log("=定时提示间隔=", times)
339
+ try {
340
+ this.interval = setInterval(() => {
341
+ this.getDaiBan()
342
+ }, times)
343
+ } catch (error) {
344
+ console.log('捕获到异常', error)
345
+ }
346
+ },
347
+ getFlowList(){
348
+ console.log('======获取流程审核待办=====')
349
+ let times = this.config.approveTimes * 60 * 1000
350
+ console.log("=定时提示间隔=", times)
351
+ try {
352
+ this.interval = setInterval(() => {
353
+ this.getFlowDaiBan()
354
+ }, times)
355
+ } catch (error) {
356
+ console.log('捕获到异常', error)
357
+ }
358
+ },
359
+ async getFlowDaiBan(){
360
+ this.flowDaiBan = ''
361
+ let http = new HttpResetClass()
362
+ let data = {
363
+ condition: `f_handler = '${this.$login.f.name}'`
364
+ }
365
+ await http.load('POST', 'rs/sql/future_getMyWorkFlowList', {data: data}, {
366
+ resolveMsg: null,
367
+ rejectMsg: null
368
+ }).then((res) => {
369
+ if (res.data.length > 0){
370
+ this.flowDaiBan = `您有${res.data.length}条需要处理的审核流程业务!`
371
+ }
372
+ }).catch((e)=>{
373
+ console.log('报错了!!')
374
+ console.error(e)
375
+ })
376
+ if(this.flowDaiBan){
377
+ this.newTipShow = true
378
+ }
379
+ },
380
+ getTimesgotoWorkOrderSite(){
381
+ let teltimes = 2*60*1000 // 两分钟
382
+ try {
383
+ this.intervaltx =setInterval(()=>{
384
+ this.gotoWorkOrderSite()
385
+ },teltimes)
386
+ }catch (e) {
387
+ console.log('捕获到异常', e)
388
+ }
389
+ },
390
+ async getDaiBan(){
391
+ this.OrderDaiBan = ''
392
+ this.AppDaiBan = ''
393
+ let http = new HttpResetClass()
394
+ await http.load('POST', '/api/af-system/sql/singleTable', {data: {
395
+ tablename:'t_order_center',
396
+ condition:` (f_orderstate != '预约成功' and f_orgstr ='${this.$login.f.orgid}' and f_orderstate != '预约失败' ) or f_orderstate is null`
397
+ }}, {
398
+ resolveMsg: null,
399
+ rejectMsg: null
400
+ }).then((res) => {
401
+ let OrderDaiBan = {}
402
+ res.data.forEach(item=>{
403
+ OrderDaiBan[item.f_ordertype] = OrderDaiBan[item.f_ordertype] || []
404
+ OrderDaiBan[item.f_ordertype].push(item)
405
+ })
406
+ if (res.data.length> 0){
407
+ this.OrderDaiBan = `您有${res.data.length}条需要处理的微信预约业务!`
408
+ this.OrderDaiBan += `其中 ${Object.keys(OrderDaiBan).map(key=>`${key}:${OrderDaiBan[key].length}条`).join(', ')}`
409
+ }
410
+ })
411
+ let data = {
412
+ condition: '1 = 1',
413
+ data: {
414
+ orgid: this.$login.f.orgid,
415
+ id: this.$login.f.id
416
+ }
417
+ }
418
+ await http.load('POST', '/rs/sql/checkuser', {data: data}, {
419
+ resolveMsg: null,
420
+ rejectMsg: null
421
+ }).then((res) => {
422
+ let AppDaiBan = {}
423
+ res.data.forEach(item=>{
424
+ AppDaiBan[item.defname] = AppDaiBan[item.defname] || []
425
+ AppDaiBan[item.defname].push(item)
426
+ })
427
+ if (res.data.length> 0){
428
+ this.AppDaiBan = `您有${res.data.length}条需要处理的报建待办业务!`
429
+ this.AppDaiBan += `其中 ${Object.keys(AppDaiBan).map(key=>`${key}:${AppDaiBan[key].length}条`).join(', ')}`
430
+ }
431
+ }).catch((e)=>{
432
+ console.error(e)
433
+ })
434
+ if(this.AppDaiBan || this.OrderDaiBan){
435
+ this.newTipShow = true
436
+ }
437
+ },
438
+ // 获取动态库卡表到期日
439
+ async getExpireDate(){
440
+ // 获取分公司的表品牌id
441
+ let http = new HttpResetClass()
442
+ await http.load('POST', '/api/af-system/sql/singleTable', {data: {
443
+ tablename:'t_gasbrand_orgid',
444
+ condition:`f_using_orgid ='${this.$login.f.orgid}'`
445
+ }}, {
446
+ resolveMsg: null,
447
+ rejectMsg: null
448
+ }).then((res) => {
449
+ if (res.data.length > 0) {
450
+ res.data.forEach(item => {
451
+ this.gasbrandIdData.push(item.f_gasbrand_id)
452
+ })
453
+ }
454
+ if (this.gasbrandIdData.length > 0) {
455
+ // 获取卡表到期时间
456
+ http.load('POST', '/api/af-system/sql/singleTable', {data: {
457
+ tablename:'t_gasbrand',
458
+ condition:`id in (${this.gasbrandIdData}) and f_meter_type like '%卡表%'`
459
+ }}, {
460
+ resolveMsg: null,
461
+ rejectMsg: null
462
+ }).then((res) => {
463
+ if (res.data.length > 0) {
464
+ res.data.forEach(itre => {
465
+ let band = null
466
+ if ('f_dynamic_expire' in itre) {
467
+ if (itre.f_dynamic_expire !== null && itre.f_dynamic_expire !== '') {
468
+ let todayold = new Date(itre.f_dynamic_expire)
469
+ todayold.setDate(todayold.getDate() - parseInt(this.$appdata.getSingleValue('动态库提醒天数设置')))
470
+ let today = new Date()
471
+ if (today > todayold) {
472
+ band = {type:'卡表',brand:itre.f_meter_brand}
473
+ this.dataRemind.push(band)
474
+ }
475
+ }
476
+ }
477
+ })
478
+
479
+ }
480
+ if (this.dataRemind.length > 0) {
481
+ this.showRemind = true
482
+ // this.$showMessage(band + '。' +
483
+ // '卡表动态库到期,请联系售后尽快注册!')
484
+ }
485
+ })
486
+ }
487
+ })
488
+ },
489
+ // 提醒框被点击
490
+ tipClick(){
491
+ this.newTipShow = false
492
+ this.newTipContextShow = true
493
+ },
494
+ gotoWorkOrderSite(){
495
+ const isRemind =this.$appdata.getSingleValue("站点工单提醒")
496
+ console.log('站点工单是否提醒',isRemind)
497
+ if(isRemind && isRemind !== '是'){
498
+ return
499
+ }
500
+ if(this.functions && this.functions.f_role_name && this.functions.f_role_name.indexOf('派单员') !== -1){
501
+ const data = {
502
+ "condition":
503
+ {
504
+ "condition":" 1=1 and processins.activities[ state='开始活动' and (defname in('站点接单'))].count(*) > 0 ",
505
+ "sign":"1=1"
506
+ },
507
+ "userid":this.functions.name
508
+ }
509
+ new HttpResetClass().load('POST','rs/path/operatorService/n', {data}, {resolveMsg: null, rejectMsg: null}).then(res=>{
510
+ if(res.data && res.data.n !== 0){
511
+ this.$showMessage('你有'+res.data.n+'个工单待处理,请尽快前往站点工单页面进行处理')
512
+ }
513
+ })
514
+ }
515
+ },
516
+ openUrl() {
517
+ var url = `http://123.60.214.109:8406/submitTicket?contact=${this.$login.f.name}&orgName=${this.$login.f.orgs}&phone=${this.$login.f.f_user_telephone}`
518
+ window.open(url, '_blank')
519
+ },
520
+ hindsetting() {
521
+ this.setting = !this.setting
522
+ if (this.setting) {
523
+ this.srcsetting = '../../static/newStyle/setting.png'
524
+ } else {
525
+ this.srcsetting = '../../static/newStyle/setting1.png'
526
+ }
527
+
528
+ },
529
+ hindsetting1() {
530
+
531
+ if (!this.setting) {
532
+ this.srcsetting = '../../static/newStyle/setting.png'
533
+ this.setting = true
534
+ }
535
+
536
+ },
537
+ isnodo(val) {
538
+ console.log(val, 'ss')
539
+ this.selecttab = val
540
+ },
541
+ unfurl() {
542
+ if (this.showsum) {
543
+ this.showsum = false
544
+ } else {
545
+ this.showsum = true
546
+ }
547
+ },
548
+ // getElement(id) {
549
+ // return document.getElementById(id)
550
+ // },
551
+ changeShow() {
552
+ // this.treeOrIcon = !this.treeOrIcon
553
+ // let oBox = this.getElement("box")
554
+ // let oTop = this.getElement("top")
555
+ // let oBottom = this.getElement("bottom")
556
+ // let oLine = this.getElement("line")
557
+ // if (this.treeOrIcon) {
558
+ // // oLine.style.left = oTop.style.width = 300 + "px"
559
+ // oTop.style.width = 150 + "px"
560
+ // oBottom.style.width = oBox.clientWidth - 150 + "px"
561
+ // }else {
562
+ // oLine.style.left = oTop.style.width = 50 + "px"
563
+ // oBottom.style.width = oBox.clientWidth - 50 + "px"
564
+ // }
565
+ // }
566
+ this.treeOrIcon = !this.treeOrIcon
567
+ // if (this.treeOrIcon) {
568
+ // this.$els.top.style.width = 14 + "%"
569
+ // this.$els.bottom.style.width = this.$els.box.clientWidth - 14 + "%"
570
+ // }else {
571
+ // this.$els.top.style.width = 8 + "%"
572
+ // this.$els.bottom.style.width = this.$els.box.clientWidth - 8 + "%"
573
+ // }
574
+ },
575
+ changeMain(userid) {
576
+ this.$goto('res-main', {userid: this.userid}, 'self')
577
+ },
578
+ tabChange(name) {
579
+ console.log(name, 'tabchanage')
580
+ this.selecttab = name
581
+ this.$refs.tree.changeSelect(name)
582
+ },
583
+ tabcg(val) {
584
+ console.log(val)
585
+ this.tabs = val
586
+ },
587
+ logOut() {
588
+ console.log(this.$login.f)
589
+ this.$showMessage('您确定要退出系统吗?', ['confirm', 'cancel']).then(async (res) => {
590
+ if (res == 'confirm') {
591
+ let data = {
592
+ userid: this.$login.f.id,
593
+ username: this.$login.f.name,
594
+ usertelephone: this.$login.f.f_user_telephone
595
+ }
596
+ // todo v4
597
+ try {
598
+ await this.$resetget('api/af-system/user/logout', {resolveMsg: '退出成功', rejectMsg: null})
599
+ }catch(e){
600
+ }
601
+ if (window.parent && window.parent !== window) {
602
+ window.parent.postMessage('reload', '*')
603
+ } else {
604
+ window.location.reload()
605
+ }
606
+ }
607
+ })
608
+ }
609
+ },
610
+ computed: {
611
+ orgpathnames(){
612
+ let names = this.$login.f.name
613
+ if(this.$login.f.deps){
614
+ names = `${this.$login.f.deps}-${names}`
615
+ }
616
+ if(this.$login.f.orgs){
617
+ names = `${this.$login.f.orgs}-${names}`
618
+ }
619
+ return names
620
+ },
621
+
622
+ nowDate() {
623
+ return this.$login.getNowDate()
624
+ }
625
+ }
626
+ }
627
+ </script>
628
+ <style lang="less">
629
+ .newTip-transition {
630
+ transition: all .4s ease;
631
+ }
632
+ .newTip-enter, .newTip-leave {
633
+ height: 0;
634
+ padding: 0 10px;
635
+ opacity: 0;
636
+ }
637
+ .newTip a {
638
+ color: #333;
639
+ }
640
+ .newTip {
641
+ cursor: pointer;
642
+ text-align: center;
643
+ position: absolute;
644
+ top: 3em;
645
+ margin: 0 auto;
646
+ width: 200px;
647
+ left: 48%;
648
+ line-height: 2;
649
+ z-index: 10010;
650
+ box-shadow: 0 4px 12px rgba(0,0,0,0.38);
651
+ pointer-events: all;
652
+ border-radius: 4px;
653
+ background-color: whitesmoke;
654
+ }
655
+ /* 组件内通用样式 */
656
+ .select-error {
657
+ button {
658
+ border-bottom: 1px solid #a94442 !important;
659
+ }
660
+ }
661
+
662
+ // input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{
663
+ // -webkit-appearance:textfield;
664
+ // }
665
+ /* 表单输入框组 */
666
+ .form-input-group {
667
+ display: flex;
668
+
669
+ label {
670
+ width: 100px;
671
+ text-align: right;
672
+
673
+ + * {
674
+ flex: 1;
675
+ }
676
+ }
677
+ }
678
+
679
+ // 日期组件在表单中沾满
680
+ .form-horizontal .datepicker {
681
+ width: 100%;
682
+ }
683
+
684
+ // 下拉选择框占据剩余全部空间
685
+ .select-overspread {
686
+ .form-group {
687
+ // margin: 0px 5px 10px 0px;
688
+ .form-control {
689
+ margin-right: 0px;
690
+ }
691
+ }
692
+
693
+ .btn-group, .btn-group-vertical {
694
+ width: 100%;
695
+ // padding-right: 5px;
696
+ button {
697
+ width: 100%;
698
+ display: flex;
699
+ justify-content: space-between;
700
+ align-items: center;
701
+ }
702
+ }
703
+
704
+ .dropdown-menu {
705
+ width: 100%
706
+ }
707
+ }
708
+
709
+ // 需要特定宽度的的样式
710
+ .width-60 {
711
+ width: 60px;
712
+ }
713
+
714
+ .userpanel {
715
+ font-weight: 300;
716
+ color: #333;
717
+ position: fixed;
718
+ right: 30px;
719
+ top: 45px;
720
+ background-color: white;
721
+ box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
722
+ padding: 4px 10px 4px 10px;
723
+ border-radius: 2px;
724
+ }
725
+
726
+ .width-80 {
727
+ width: 80px;
728
+ }
729
+
730
+ .width-100 {
731
+ width: 100px;
732
+ }
733
+
734
+
735
+ /*右侧区域的背景*/
736
+ .right-bg {
737
+ width: 100%;
738
+ flex: 1;
739
+ color: #304A66;
740
+ }
741
+
742
+ .tree-flex {
743
+ height: 100%;
744
+ // width: 150px;
745
+ /*width: 60px;*/
746
+ background: #4a7cae;
747
+ color: #fff;
748
+
749
+ }
750
+
751
+ .tree-flex-icon {
752
+ width: 50px;
753
+ /*transition: 0.5s;*/
754
+
755
+ > .span {
756
+ overflow-x: visible;
757
+ }
758
+ }
759
+
760
+ .tree-flex h3 {
761
+ text-align: center;
762
+ margin: 1em 0;
763
+ }
764
+
765
+ .tree-flex-footer {
766
+ height: 50px;
767
+ display: flex;
768
+ flex-direction: column;
769
+ color: #fff;
770
+ }
771
+
772
+ .tree-flex-footer a, .tree-flex-footer button {
773
+ flex: 1;
774
+ padding: 8px 5px;
775
+ font-size: 1.2em;
776
+ // border-top: 1px solid #697D93;
777
+ border-top: 1px solid #4a7cae;
778
+ text-decoration: none;
779
+ color: #fff;
780
+ cursor: pointer;
781
+ }
782
+
783
+ .tree-flex-footer button {
784
+ height: auto;
785
+ width: 100%;
786
+ border-radius: 0px;
787
+ background-color: rgba(255, 255, 255, 0);
788
+ border: none;
789
+ border-top: 1px solid #4a7cae;
790
+ // border-top: 1px solid #697D93;
791
+ text-align: left;
792
+ }
793
+
794
+ .tree-flex-footer button:hover {
795
+ outline: none;
796
+ background-color: rgba(255, 255, 255, 0.2);
797
+ }
798
+
799
+ .tree-flex-footer button:focus {
800
+ outline: none;
801
+ background-color: rgba(255, 255, 255, 0.5);
802
+ }
803
+
804
+ .tree-flex-footer a:hover {
805
+ color: #FFF;
806
+ background-color: rgba(255, 255, 255, 0.2);
807
+ }
808
+
809
+ .tree-flex .btn-group {
810
+ height: 50px !important;
811
+ }
812
+
813
+ .tree-flex .dropdown-menu {
814
+ /* 控制显示列表的样式 */
815
+ background: #4a7cae;
816
+ border-radius: 0px;
817
+ color: #fff;
818
+ width: auto;
819
+ margin: 0px;
820
+ padding: 0px;
821
+ }
822
+
823
+ .tree-flex .dropdown-menu-up {
824
+ /* bottom,top控制上下,left和right控制左右*/
825
+ left: 100% !important;
826
+ top: auto !important;
827
+ bottom: 0;
828
+ }
829
+
830
+ .tree-flex .dropdown-menu-down {
831
+ /* bottom,top控制上下,left和right控制左右*/
832
+ left: 100% !important;
833
+ top: 0 !important;
834
+ }
835
+
836
+ .tree-flex .dropdown-menu li {
837
+ text-align: center;
838
+ line-height: 50px;
839
+ border-bottom: 1px solid #697D93;
840
+ font-size: 1.2em;
841
+ width: auto;
842
+ white-space: nowrap;
843
+ cursor: default;
844
+
845
+ }
846
+
847
+ .tree-flex .dropdown-menu li + li {
848
+ text-align: left;
849
+ border: 0;
850
+ line-height: 40px;
851
+ padding-left: 15px;
852
+ padding-right: 15px;
853
+ font-size: 1em;
854
+ cursor: pointer;
855
+ }
856
+
857
+ .tree-flex .dropdown-menu li + li:hover {
858
+ background-color: rgba(255, 255, 255, 0.2);
859
+ }
860
+
861
+ .tree-flex .dropdown-menu li a {
862
+ border: none;
863
+ color: #fff;
864
+ height: 40px;
865
+ line-height: 40px;
866
+ font-size: 1em;
867
+ padding: 0px;
868
+ }
869
+
870
+ .tree-flex .dropdown-menu li a:hover {
871
+ color: #fff;
872
+ background-color: rgba(255, 255, 255, 0);
873
+ }
874
+
875
+ .tree-flex img {
876
+ height: 1.2em;
877
+ width: 1.2em;
878
+ margin-right: 15px;
879
+ margin-left: 5px;
880
+ }
881
+
882
+ .line {
883
+ height: 100%;
884
+ width: 5px;
885
+ background: #4C637B;
886
+ cursor: e-resize;
887
+ }
888
+
889
+ /*为树(tree)组件写的样式*/
890
+ .tree-img {
891
+ font-size: 1.2em;
892
+ }
893
+
894
+ /*将较长信息截断显示,鼠标悬停显示全部信息*/
895
+ .cutout50 {
896
+ max-width: 50px;
897
+ overflow: hidden;
898
+ text-overflow: ellipsis;
899
+ white-space: nowrap;
900
+ }
901
+
902
+ /* 滚动条样式 */
903
+ /*---滚动条默认显示样式--*/
904
+ ::-webkit-scrollbar-thumb {
905
+ // display: none;
906
+ background-color: rgba(0, 0, 0, 0.4);
907
+ /*background-color:red;*/
908
+ height: 50px;
909
+ outline-offset: -2px;
910
+ /*outline:2px solid #fff;*/
911
+ -webkit-border-radius: 4px;
912
+ /*border: 2px solid #fff;*/
913
+ }
914
+
915
+ /*---鼠标点击滚动条显示样式--*/
916
+ ::-webkit-scrollbar-thumb:hover {
917
+ // display: inherit;
918
+ background-color: rgba(0, 0, 0, 0.4);
919
+ height: 50px;
920
+ -webkit-border-radius: 4px;
921
+ }
922
+
923
+ /*---滚动条大小--*/
924
+ ::-webkit-scrollbar {
925
+ width: 8px;
926
+ height: 8px;
927
+ }
928
+
929
+ /*---滚动框背景样式--*/
930
+ ::-webkit-scrollbar-track-piece {
931
+ /* 全透明,不显示 */
932
+ background-color: rgba(255, 255, 255, 0);
933
+ -webkit-border-radius: 0;
934
+ }
935
+ </style>