system-clients 3.2.96 → 3.2.97-weinan

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