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