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,1021 +1,1019 @@
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
- <modal v-show="shownotices" :show.sync="shownotices" :backdrop="false">
163
- <header slot="modal-header" class="text-center"><h3>公告</h3></header>
164
- <article slot="modal-body" class="modal-body">
165
- <form class="form-horizontal">
166
- <div class="head text-center">
167
- <span class="PF-Bold" style="font-size: 20px;color: #29bdd9">{{notices.f_title}}</span>
168
- </div>
169
- <div class="body">
170
- <br/>
171
- <p class="PF-Medium" style="font-size:16px;text-indent: 2em;" v-html="notices.f_explain"></p>
172
- <!-- <p class="text-right PF-Medium">{{companyName}}</p>-->
173
- <br/>
174
- <p class="text-right PF-Medium">{{notices.f_date}}</p>
175
- </div>
176
- <div slot="modal-body" class="modal-body" v-if="tqpath">
177
- <img-self :width="150" :height="150" alt="无照片!!!" :src="tqpath"></img-self>
178
- </div>
179
- </form>
180
- </article>
181
- <footer slot="modal-footer" style="height: 8vh" class="modal-footer">
182
- <button class="button_search" @click="stpoCles">确认</button>
183
- </footer>
184
- </modal>
185
-
186
- <!-- 变更录入 模态框 -->
187
- <add-changemsg :show="AddChangeMsgShow" v-on:toggle="AddChangeMsgShow = false"></add-changemsg>
188
- <!-- 修改密码组件 -->
189
- <modify-pw :show.sync="show" v-if="show"></modify-pw>
190
- <!-- 手机扫描二维码 -->
191
- <modal :show.sync="qrCode" v-if="qrCode" v-ref:qrmodal backdrop="false">
192
- <header slot="modal-header" class="modal-header">
193
- 请打开手机扫一扫功能进行扫描下载App
194
- </header>
195
- <article slot="modal-body" class="modal-body">
196
- <img style="width: 300px;height: 300px;display: block;margin: auto" src="/images/DownLoadQRCode.png"/>
197
- </article>
198
- <footer slot="modal-footer" class="modal-footer">
199
- <button type="button" class="btn btn-success" @click='qrCode=false'>关闭</button>
200
- </footer>
201
- </modal>
202
- </div>
203
- </template>
204
-
205
- <script>
206
- import vue from 'vue'
207
- import co from 'co'
208
- import {HttpResetClass} from "vue-client";
209
-
210
- let getwartermakr = async function (self) {
211
- let param = {
212
- tablename: 't_singlevalue',
213
- condition: " 1=1 and name=\'水印内容\'"
214
- };
215
- // todo v4
216
- let result = await self.$resetpost('api/af-revenue/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
217
- if (result && result.data.length > 0) {
218
- self.showwatermakeflag = true;
219
- createWaterMark(`${result.data[0].value}${self.$login.f.ename}`);
220
- } else {
221
- self.showwatermakeflag = false;
222
- }
223
- }
224
-
225
- let createWaterMark = function (userName) {
226
- let style;
227
- if (style) style.remove();
228
- let width = window.parseInt(document.body.clientWidth);
229
- let canvasWidth = width / window.parseInt(width / 320);
230
- let fontFamily = window.getComputedStyle(document.body)["font-family"];
231
- let canvas = document.createElement("canvas");
232
- canvas.width = canvasWidth;
233
- canvas.height = 200;
234
- let ctx = canvas.getContext("2d");
235
- ctx.rotate((-20 * Math.PI) / 180);
236
- ctx.font = `20px ${fontFamily}`;
237
- ctx.fillStyle = "rgba(8,8,8,.1)";
238
- ctx.fillText(userName, 50, 200);
239
- let imgSrc = canvas.toDataURL("image/png");
240
- style = document.createElement("style");
241
- style.innerHTML = `.with-watermark:before{
242
- pointer-events: none;
243
- content: "";
244
- width: 100%;
245
- height: 100%;
246
- display: block;
247
- position: absolute;
248
- background-image: url("${imgSrc}");
249
- }`;
250
- (document.head.append || document.head.appendChild).apply(document.head, [style]);
251
- }
252
-
253
- window.onunload = () => {
254
- vue.http({url: `rs/user/update/${this.$login.f.ename}`, method: 'GET'})
255
- }
256
- window.onbeforeunload = () => {
257
- vue.http({url: `rs/user/update/${this.$login.f.ename}`, method: 'GET'})
258
- }
259
- export default {
260
- title: '主界面',
261
- props: ['functions', 'userid', 'config'],
262
- data() {
263
- return {
264
- // 页面提示信息定时器
265
- interval: null,
266
- intervaltx: null,
267
- newTipShow: false,
268
- newTipContextShow: false,
269
- AppDaiBan: '',
270
- OrderDaiBan: '',
271
- flowDaiBan: '',
272
- // 左侧树下部三个小图标
273
- imgs: {
274
- open: '/images/lefticon/菜单伸缩.png',
275
- set: '/images/lefticon/系统设置.png',
276
- out: '/images/lefticon/退出系统.png',
277
- img1: '/images/newStyle/login-user.png',
278
- logoimg: '/static/newStyle/fife.png'
279
- // img2: '/images/lefticon/退出系统.png',
280
- },
281
- treeOrIcon: false,
282
- qrCode:false,
283
- isManger: false,
284
- show: false,
285
- orgpathnames: `${this.$login.f.orgs}-${this.$login.f.deps}-${this.$login.f.name}`,
286
- systemname: '客服系统',
287
- date: this.$login.toStandardDateString(),
288
- tabs: [], //已初始化页签数组
289
- selecttab: '',
290
- setting: true,
291
- srcsetting: '../../static/newStyle/setting.png',
292
- showwatermakeflag: false,
293
- gasbrandIdData: [],
294
- showRemind: false,
295
- dataRemind: [],
296
- notices: null,
297
- shownotices: false,
298
- model: {
299
- f_stopgas_id: '',
300
- f_user_id: '',
301
- f_pcstate: '已确认'
302
- },
303
- tqpath: null
304
- // headerHint: true, // 右侧顶部提示信息
305
- // value: 25645.26,
306
- // AddChangeMsgShow: false,
307
- // showsum: false
308
- }
309
- },
310
- ready() {
311
- getwartermakr(this);
312
- let component = this.$login.getUrlCompileParames('component')
313
- if (component) {
314
- this.isManger = true
315
- this.$refs.route.init(component, {data: this.functions.functions})
316
- }
317
- if (this.$login.f.password == '1') {
318
- this.$showMessage('本地登录系统为此账户的初始密码,请确认修改密码!!!', ['confirm', 'cancel']).then((res) => {
319
- if (res == 'confirm')
320
- this.show = true
321
- })
322
- }
323
- console.log("系统名称", this.$appdata.getSingleValue("系统名称"))
324
- this.systemname = this.$appdata.getSingleValue("系统名称") ? this.$appdata.getSingleValue("系统名称") : '客服系统'
325
- // let oBox = this.getElement("box")
326
- // let oTop = this.getElement("top")
327
- // let oBottom = this.getElement("bottom")
328
- // let oLine = this.getElement("line")
329
- // let that = this
330
- // oLine.onmousedown = function(e) {
331
- // let disX = (e || event).clientX
332
- // oLine.left = oLine.offsetLeft
333
- // document.onmousemove = function(e) {
334
- // let iT = oLine.left + ((e || event).clientX - disX)
335
- // var e = e || window.event
336
- // let tarnameb = e.target || e.srcElement
337
- // let maxT = oBox.clientWight - oLine.offsetWidth
338
- // oLine.style.margin = 0
339
- // iT < 0 && (iT = 0)
340
- // iT > maxT && (iT = maxT)
341
- // oLine.style.left = oTop.style.width = iT + "px"
342
- // oBottom.style.width = oBox.clientWidth - iT + "px"
343
- // that.$set('treeWidth', iT)
344
- // return false
345
- // }
346
- // document.onmouseup = function() {
347
- // document.onmousemove = null
348
- // document.onmouseup = null
349
- // oLine.releaseCapture && oLine.releaseCapture()
350
- // }
351
- // oLine.setCapture && oLine.setCapture()
352
- // return false
353
- // }
354
- this.changeShow()
355
- const istelRemindTimes =this.$appdata.getSingleValue("是否开启工单提醒定时器")
356
- if(istelRemindTimes=='是'){
357
- this.getTimesgotoWorkOrderSite()
358
- }
359
- const isapplyRemind =this.$appdata.getSingleValue("是否开启提醒")
360
- const times =this.$appdata.getSingleValue("提示间隔分钟")
361
- if(isapplyRemind=='是'){
362
- this.config.isTip = true
363
- this.config.times = times
364
- }
365
- // 获取预约列表
366
- this.functions.f_role_name && this.functions.f_role_name.includes(this.config.msgRole) && this.config.isTip && this.getOrderList()
367
- if (this.config.approve) {
368
- this.getFlowList()
369
- }
370
- // 获取卡表动态库到期时间
371
- this.getExpireDate()
372
- this.stopsPC()
373
- },
374
- methods: {
375
- stpoCles() {
376
- this.shownotices = false
377
- this.model.f_stopgas_id = this.notices.id
378
- this.model.f_user_id = this.$login.f.id
379
- console.log('保存', this.model)
380
- // todo v4
381
- this.$resetpost('rs/logic/savenoticenotarize', this.model, {resolveMsg: '保存成功', rejectMsg: '保存失败'}).then((res) => {
382
- this.model.f_stopgas_id = ''
383
- this.model.f_user_id = ''
384
- }).catch((res) => {
385
- console.log('打印报错信息'+ res)
386
- })
387
-
388
- },
389
- isNotarize (stopId,userid) {
390
- let http = new HttpResetClass()
391
- var condition = `f_stopgas_id = '${stopId}' and f_user_id = '${userid}'`
392
- let data = {
393
- items: '*',
394
- tablename: 't_notice_notarize',
395
- condition: condition,
396
- orderitem: 'f_id desc'
397
- }
398
- http.load('POST', 'rs/sql/singleTable_OrderBy', {data: data}, {
399
- resolveMsg: null,
400
- rejectMsg: null
401
- }).then((res) => {
402
- if (res.data.length === 0) {
403
- this.shownotices = true
404
- }else if (res.data[0].f_pcstate !== '已确认' ){
405
- this.model.f_id = res.data[0].f_id
406
- this.shownotices = false
407
- } else {
408
- this.shownotices = false
409
- }
410
- }).catch((e)=>{
411
- console.log('报错了!!')
412
- console.error(e)
413
- })
414
-
415
- },
416
- async stopsPC () {
417
- let http = new HttpResetClass()
418
- var condition = `f_orgstr = '${this.$login.f.orgid}' and f_state = '公告中' and f_typeofreceipt = 'PC端'`
419
- let data = {
420
- items: '*',
421
- tablename: 't_stopgas',
422
- condition: condition,
423
- orderitem: 'f_date desc'
424
- }
425
- await http.load('POST', 'rs/sql/singleTable_OrderBy', {data: data}, {
426
- resolveMsg: null,
427
- rejectMsg: null
428
- }).then((res) => {
429
- if (res.data[0].f_downloadfile === ''||res.data[0].f_downloadfile === null || !res.data[0].f_downloadfile){
430
- }else {
431
- this.tqpath= (res.data[0].f_downloadfile).split(":")[1]
432
- }
433
- this.notices = res.data[0]
434
- this.isNotarize(res.data[0].id,this.$login.f.id)
435
- }).catch((e)=>{
436
- console.log('报错了!!')
437
- console.error(e)
438
- })
439
- },
440
- getOrderList(){
441
- let times = this.config.times * 60 * 1000
442
- console.log("=定时提示间隔=", times)
443
- try {
444
- this.interval = setInterval(() => {
445
- this.getDaiBan()
446
- }, times)
447
- } catch (error) {
448
- console.log('捕获到异常', error)
449
- }
450
- },
451
- getFlowList(){
452
- console.log('======获取流程审核待办=====')
453
- let times = this.config.approveTimes * 60 * 1000
454
- console.log("=定时提示间隔=", times)
455
- try {
456
- this.interval = setInterval(() => {
457
- this.getFlowDaiBan()
458
- }, times)
459
- } catch (error) {
460
- console.log('捕获到异常', error)
461
- }
462
- },
463
- async getFlowDaiBan(){
464
- this.flowDaiBan = ''
465
- let http = new HttpResetClass()
466
- let data = {
467
- condition: `f_handler = '${this.$login.f.name}'`
468
- }
469
- await http.load('POST', 'rs/sql/future_getMyWorkFlowList', {data: data}, {
470
- resolveMsg: null,
471
- rejectMsg: null
472
- }).then((res) => {
473
- if (res.data.length > 0){
474
- this.flowDaiBan = `您有${res.data.length}条需要处理的审核流程业务!`
475
- }
476
- }).catch((e)=>{
477
- console.log('报错了!!')
478
- console.error(e)
479
- })
480
- if(this.flowDaiBan){
481
- this.newTipShow = true
482
- }
483
- },
484
- getTimesgotoWorkOrderSite(){
485
- let teltimes = 2*60*1000 // 两分钟
486
- try {
487
- this.intervaltx =setInterval(()=>{
488
- this.gotoWorkOrderSite()
489
- },teltimes)
490
- }catch (e) {
491
- console.log('捕获到异常', e)
492
- }
493
- },
494
- async getDaiBan(){
495
- this.OrderDaiBan = ''
496
- this.AppDaiBan = ''
497
- let http = new HttpResetClass()
498
- await http.load('POST', '/api/af-system/sql/singleTable', {data: {
499
- tablename:'t_order_center',
500
- condition:` (f_orderstate != '预约成功' and f_orgstr ='${this.$login.f.orgid}' and f_orderstate != '预约失败' ) or f_orderstate is null`
501
- }}, {
502
- resolveMsg: null,
503
- rejectMsg: null
504
- }).then((res) => {
505
- let OrderDaiBan = {}
506
- res.data.forEach(item=>{
507
- OrderDaiBan[item.f_ordertype] = OrderDaiBan[item.f_ordertype] || []
508
- OrderDaiBan[item.f_ordertype].push(item)
509
- })
510
- if (res.data.length> 0){
511
- this.OrderDaiBan = `您有${res.data.length}条需要处理的微信预约业务!`
512
- this.OrderDaiBan += `其中 ${Object.keys(OrderDaiBan).map(key=>`${key}:${OrderDaiBan[key].length}条`).join(', ')}`
513
- }
514
- })
515
- let data = {
516
- condition: '1 = 1',
517
- data: {
518
- orgid: this.$login.f.orgid,
519
- id: this.$login.f.id
520
- }
521
- }
522
- await http.load('POST', '/rs/sql/checkuser', {data: data}, {
523
- resolveMsg: null,
524
- rejectMsg: null
525
- }).then((res) => {
526
- let AppDaiBan = {}
527
- res.data.forEach(item=>{
528
- AppDaiBan[item.defname] = AppDaiBan[item.defname] || []
529
- AppDaiBan[item.defname].push(item)
530
- })
531
- if (res.data.length> 0){
532
- this.AppDaiBan = `您有${res.data.length}条需要处理的报建待办业务!`
533
- this.AppDaiBan += `其中 ${Object.keys(AppDaiBan).map(key=>`${key}:${AppDaiBan[key].length}条`).join(', ')}`
534
- }
535
- }).catch((e)=>{
536
- console.error(e)
537
- })
538
- if(this.AppDaiBan || this.OrderDaiBan){
539
- this.newTipShow = true
540
- }
541
- },
542
- // 获取动态库卡表到期日
543
- async getExpireDate(){
544
- // 获取分公司的表品牌id
545
- let http = new HttpResetClass()
546
- await http.load('POST', '/api/af-system/sql/singleTable', {data: {
547
- tablename:'t_gasbrand_orgid',
548
- condition:`f_using_orgid ='${this.$login.f.orgid}'`
549
- }}, {
550
- resolveMsg: null,
551
- rejectMsg: null
552
- }).then((res) => {
553
- if (res.data.length > 0) {
554
- res.data.forEach(item => {
555
- this.gasbrandIdData.push(item.f_gasbrand_id)
556
- })
557
- }
558
- if (this.gasbrandIdData.length > 0) {
559
- // 获取卡表到期时间
560
- http.load('POST', '/api/af-system/sql/singleTable', {data: {
561
- tablename:'t_gasbrand',
562
- condition:`id in (${this.gasbrandIdData}) and f_meter_type like '%卡表%'`
563
- }}, {
564
- resolveMsg: null,
565
- rejectMsg: null
566
- }).then((res) => {
567
- if (res.data.length > 0) {
568
- res.data.forEach(itre => {
569
- let band = null
570
- if ('f_dynamic_expire' in itre) {
571
- if (itre.f_dynamic_expire !== null && itre.f_dynamic_expire !== '') {
572
- let todayold = new Date(itre.f_dynamic_expire)
573
- todayold.setDate(todayold.getDate() - parseInt(this.$appdata.getSingleValue('动态库提醒天数设置')))
574
- let today = new Date()
575
- if (today > todayold) {
576
- band = {type:'卡表',brand:itre.f_meter_brand}
577
- this.dataRemind.push(band)
578
- }
579
- }
580
- }
581
- })
582
-
583
- }
584
- if (this.dataRemind.length > 0) {
585
- this.showRemind = true
586
- // this.$showMessage(band + '' +
587
- // '卡表动态库到期,请联系售后尽快注册!')
588
- }
589
- })
590
- }
591
- })
592
- },
593
- // 提醒框被点击
594
- tipClick(){
595
- this.newTipShow = false
596
- this.newTipContextShow = true
597
- },
598
- gotoWorkOrderSite(){
599
- const isRemind =this.$appdata.getSingleValue("站点工单提醒")
600
- console.log('站点工单是否提醒',isRemind)
601
- if(isRemind && isRemind !== '是'){
602
- return
603
- }
604
- if(this.functions && this.functions.f_role_name && this.functions.f_role_name.indexOf('派单员') !== -1){
605
- const data = {
606
- "condition":
607
- {
608
- "condition":" 1=1 and processins.activities[ state='开始活动' and (defname in('站点接单'))].count(*) > 0 ",
609
- "sign":"1=1"
610
- },
611
- "userid":this.functions.name
612
- }
613
- new HttpResetClass().load('POST','rs/path/operatorService/n', {data}, {resolveMsg: null, rejectMsg: null}).then(res=>{
614
- if(res.data && res.data.n !== 0){
615
- this.$showMessage('你有'+res.data.n+'个工单待处理,请尽快前往站点工单页面进行处理')
616
- }
617
- })
618
- }
619
- },
620
- openUrl() {
621
- 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}`
622
- window.open(url, '_blank')
623
- },
624
- hindsetting() {
625
- this.setting = !this.setting
626
- if (this.setting) {
627
- this.srcsetting = '../../static/newStyle/setting.png'
628
- } else {
629
- this.srcsetting = '../../static/newStyle/setting1.png'
630
- }
631
-
632
- },
633
- hindsetting1() {
634
-
635
- if (!this.setting) {
636
- this.srcsetting = '../../static/newStyle/setting.png'
637
- this.setting = true
638
- }
639
-
640
- },
641
- isnodo(val) {
642
- console.log(val, 'ss')
643
- this.selecttab = val
644
- },
645
- unfurl() {
646
- if (this.showsum) {
647
- this.showsum = false
648
- } else {
649
- this.showsum = true
650
- }
651
- },
652
- // getElement(id) {
653
- // return document.getElementById(id)
654
- // },
655
- changeShow() {
656
- // this.treeOrIcon = !this.treeOrIcon
657
- // let oBox = this.getElement("box")
658
- // let oTop = this.getElement("top")
659
- // let oBottom = this.getElement("bottom")
660
- // let oLine = this.getElement("line")
661
- // if (this.treeOrIcon) {
662
- // // oLine.style.left = oTop.style.width = 300 + "px"
663
- // oTop.style.width = 150 + "px"
664
- // oBottom.style.width = oBox.clientWidth - 150 + "px"
665
- // }else {
666
- // oLine.style.left = oTop.style.width = 50 + "px"
667
- // oBottom.style.width = oBox.clientWidth - 50 + "px"
668
- // }
669
- // }
670
- this.treeOrIcon = !this.treeOrIcon
671
- // if (this.treeOrIcon) {
672
- // this.$els.top.style.width = 14 + "%"
673
- // this.$els.bottom.style.width = this.$els.box.clientWidth - 14 + "%"
674
- // }else {
675
- // this.$els.top.style.width = 8 + "%"
676
- // this.$els.bottom.style.width = this.$els.box.clientWidth - 8 + "%"
677
- // }
678
- },
679
- changeMain(userid) {
680
- this.$goto('res-main', {userid: this.userid}, 'self')
681
- },
682
- tabChange(name) {
683
- console.log(name, 'tabchanage')
684
- this.selecttab = name
685
- this.$refs.tree.changeSelect(name)
686
- },
687
- tabcg(val) {
688
- console.log(val)
689
- this.tabs = val
690
- },
691
- logOut() {
692
- console.log(this.$login.f)
693
- this.$showMessage('您确定要退出系统吗?', ['confirm', 'cancel']).then(async (res) => {
694
- if (res == 'confirm') {
695
- let data = {
696
- userid: this.$login.f.id,
697
- username: this.$login.f.name,
698
- usertelephone: this.$login.f.f_user_telephone
699
- }
700
- // todo v4
701
- await this.$resetpost('rs/logic/logOut', data, {resolveMsg: '退出成功', rejectMsg: null})
702
- window.location.reload()
703
- }
704
- })
705
- }
706
- },
707
- computed: {
708
- nowDate() {
709
- return this.$login.getNowDate()
710
- }
711
- }
712
- }
713
- </script>
714
- <style lang="less">
715
- .newTip-transition {
716
- transition: all .4s ease;
717
- }
718
- .newTip-enter, .newTip-leave {
719
- height: 0;
720
- padding: 0 10px;
721
- opacity: 0;
722
- }
723
- .newTip a {
724
- color: #333;
725
- }
726
- .newTip {
727
- cursor: pointer;
728
- text-align: center;
729
- position: absolute;
730
- top: 3em;
731
- margin: 0 auto;
732
- width: 200px;
733
- left: 48%;
734
- line-height: 2;
735
- z-index: 10010;
736
- box-shadow: 0 4px 12px rgba(0,0,0,0.38);
737
- pointer-events: all;
738
- border-radius: 4px;
739
- background-color: whitesmoke;
740
- }
741
- /* 组件内通用样式 */
742
- .select-error {
743
- button {
744
- border-bottom: 1px solid #a94442 !important;
745
- }
746
- }
747
-
748
- // input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{
749
- // -webkit-appearance:textfield;
750
- // }
751
- /* 表单输入框组 */
752
- .form-input-group {
753
- display: flex;
754
-
755
- label {
756
- width: 100px;
757
- text-align: right;
758
-
759
- + * {
760
- flex: 1;
761
- }
762
- }
763
- }
764
-
765
- // 日期组件在表单中沾满
766
- .form-horizontal .datepicker {
767
- width: 100%;
768
- }
769
-
770
- // 下拉选择框占据剩余全部空间
771
- .select-overspread {
772
- .form-group {
773
- // margin: 0px 5px 10px 0px;
774
- .form-control {
775
- margin-right: 0px;
776
- }
777
- }
778
-
779
- .btn-group, .btn-group-vertical {
780
- width: 100%;
781
- // padding-right: 5px;
782
- button {
783
- width: 100%;
784
- display: flex;
785
- justify-content: space-between;
786
- align-items: center;
787
- }
788
- }
789
-
790
- .dropdown-menu {
791
- width: 100%
792
- }
793
- }
794
-
795
- // 需要特定宽度的的样式
796
- .width-60 {
797
- width: 60px;
798
- }
799
-
800
- .userpanel {
801
- font-weight: 300;
802
- color: #333;
803
- position: fixed;
804
- right: 30px;
805
- top: 45px;
806
- background-color: white;
807
- box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
808
- padding: 4px 10px 4px 10px;
809
- border-radius: 2px;
810
- }
811
-
812
- .width-80 {
813
- width: 80px;
814
- }
815
-
816
- .width-100 {
817
- width: 100px;
818
- }
819
-
820
-
821
- /*右侧区域的背景*/
822
- .right-bg {
823
- width: 100%;
824
- flex: 1;
825
- color: #304A66;
826
- }
827
-
828
- .tree-flex {
829
- height: 100%;
830
- // width: 150px;
831
- /*width: 60px;*/
832
- background: #4a7cae;
833
- color: #fff;
834
-
835
- }
836
-
837
- .tree-flex-icon {
838
- width: 50px;
839
- /*transition: 0.5s;*/
840
-
841
- > .span {
842
- overflow-x: visible;
843
- }
844
- }
845
-
846
- .tree-flex h3 {
847
- text-align: center;
848
- margin: 1em 0;
849
- }
850
-
851
- .tree-flex-footer {
852
- height: 50px;
853
- display: flex;
854
- flex-direction: column;
855
- color: #fff;
856
- }
857
-
858
- .tree-flex-footer a, .tree-flex-footer button {
859
- flex: 1;
860
- padding: 8px 5px;
861
- font-size: 1.2em;
862
- // border-top: 1px solid #697D93;
863
- border-top: 1px solid #4a7cae;
864
- text-decoration: none;
865
- color: #fff;
866
- cursor: pointer;
867
- }
868
-
869
- .tree-flex-footer button {
870
- height: auto;
871
- width: 100%;
872
- border-radius: 0px;
873
- background-color: rgba(255, 255, 255, 0);
874
- border: none;
875
- border-top: 1px solid #4a7cae;
876
- // border-top: 1px solid #697D93;
877
- text-align: left;
878
- }
879
-
880
- .tree-flex-footer button:hover {
881
- outline: none;
882
- background-color: rgba(255, 255, 255, 0.2);
883
- }
884
-
885
- .tree-flex-footer button:focus {
886
- outline: none;
887
- background-color: rgba(255, 255, 255, 0.5);
888
- }
889
-
890
- .tree-flex-footer a:hover {
891
- color: #FFF;
892
- background-color: rgba(255, 255, 255, 0.2);
893
- }
894
-
895
- .tree-flex .btn-group {
896
- height: 50px !important;
897
- }
898
-
899
- .tree-flex .dropdown-menu {
900
- /* 控制显示列表的样式 */
901
- background: #4a7cae;
902
- border-radius: 0px;
903
- color: #fff;
904
- width: auto;
905
- margin: 0px;
906
- padding: 0px;
907
- }
908
-
909
- .tree-flex .dropdown-menu-up {
910
- /* bottom,top控制上下,left和right控制左右*/
911
- left: 100% !important;
912
- top: auto !important;
913
- bottom: 0;
914
- }
915
-
916
- .tree-flex .dropdown-menu-down {
917
- /* bottom,top控制上下,left和right控制左右*/
918
- left: 100% !important;
919
- top: 0 !important;
920
- }
921
-
922
- .tree-flex .dropdown-menu li {
923
- text-align: center;
924
- line-height: 50px;
925
- border-bottom: 1px solid #697D93;
926
- font-size: 1.2em;
927
- width: auto;
928
- white-space: nowrap;
929
- cursor: default;
930
-
931
- }
932
-
933
- .tree-flex .dropdown-menu li + li {
934
- text-align: left;
935
- border: 0;
936
- line-height: 40px;
937
- padding-left: 15px;
938
- padding-right: 15px;
939
- font-size: 1em;
940
- cursor: pointer;
941
- }
942
-
943
- .tree-flex .dropdown-menu li + li:hover {
944
- background-color: rgba(255, 255, 255, 0.2);
945
- }
946
-
947
- .tree-flex .dropdown-menu li a {
948
- border: none;
949
- color: #fff;
950
- height: 40px;
951
- line-height: 40px;
952
- font-size: 1em;
953
- padding: 0px;
954
- }
955
-
956
- .tree-flex .dropdown-menu li a:hover {
957
- color: #fff;
958
- background-color: rgba(255, 255, 255, 0);
959
- }
960
-
961
- .tree-flex img {
962
- height: 1.2em;
963
- width: 1.2em;
964
- margin-right: 15px;
965
- margin-left: 5px;
966
- }
967
-
968
- .line {
969
- height: 100%;
970
- width: 5px;
971
- background: #4C637B;
972
- cursor: e-resize;
973
- }
974
-
975
- /*为树(tree)组件写的样式*/
976
- .tree-img {
977
- font-size: 1.2em;
978
- }
979
-
980
- /*将较长信息截断显示,鼠标悬停显示全部信息*/
981
- .cutout50 {
982
- max-width: 50px;
983
- overflow: hidden;
984
- text-overflow: ellipsis;
985
- white-space: nowrap;
986
- }
987
-
988
- /* 滚动条样式 */
989
- /*---滚动条默认显示样式--*/
990
- ::-webkit-scrollbar-thumb {
991
- // display: none;
992
- background-color: rgba(0, 0, 0, 0.4);
993
- /*background-color:red;*/
994
- height: 50px;
995
- outline-offset: -2px;
996
- /*outline:2px solid #fff;*/
997
- -webkit-border-radius: 4px;
998
- /*border: 2px solid #fff;*/
999
- }
1000
-
1001
- /*---鼠标点击滚动条显示样式--*/
1002
- ::-webkit-scrollbar-thumb:hover {
1003
- // display: inherit;
1004
- background-color: rgba(0, 0, 0, 0.4);
1005
- height: 50px;
1006
- -webkit-border-radius: 4px;
1007
- }
1008
-
1009
- /*---滚动条大小--*/
1010
- ::-webkit-scrollbar {
1011
- width: 8px;
1012
- height: 8px;
1013
- }
1014
-
1015
- /*---滚动框背景样式--*/
1016
- ::-webkit-scrollbar-track-piece {
1017
- /* 全透明,不显示 */
1018
- background-color: rgba(255, 255, 255, 0);
1019
- -webkit-border-radius: 0;
1020
- }
1021
- </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
+ <modal v-show="shownotices" :show.sync="shownotices" :backdrop="false">
163
+ <header slot="modal-header" class="text-center"><h3>公告</h3></header>
164
+ <article slot="modal-body" class="modal-body">
165
+ <form class="form-horizontal">
166
+ <div class="head text-center">
167
+ <span class="PF-Bold" style="font-size: 20px;color: #29bdd9">{{notices.f_title}}</span>
168
+ </div>
169
+ <div class="body">
170
+ <br/>
171
+ <p class="PF-Medium" style="font-size:16px;text-indent: 2em;" v-html="notices.f_explain"></p>
172
+ <!-- <p class="text-right PF-Medium">{{companyName}}</p>-->
173
+ <br/>
174
+ <p class="text-right PF-Medium">{{notices.f_date}}</p>
175
+ </div>
176
+ <div slot="modal-body" class="modal-body" v-if="tqpath">
177
+ <img-self :width="150" :height="150" alt="无照片!!!" :src="tqpath"></img-self>
178
+ </div>
179
+ </form>
180
+ </article>
181
+ <footer slot="modal-footer" style="height: 8vh" class="modal-footer">
182
+ <button class="button_search" @click="stpoCles">确认</button>
183
+ </footer>
184
+ </modal>
185
+
186
+ <!-- 变更录入 模态框 -->
187
+ <add-changemsg :show="AddChangeMsgShow" v-on:toggle="AddChangeMsgShow = false"></add-changemsg>
188
+ <!-- 修改密码组件 -->
189
+ <modify-pw :show.sync="show" v-if="show"></modify-pw>
190
+ <!-- 手机扫描二维码 -->
191
+ <modal :show.sync="qrCode" v-if="qrCode" v-ref:qrmodal backdrop="false">
192
+ <header slot="modal-header" class="modal-header">
193
+ 请打开手机扫一扫功能进行扫描下载App
194
+ </header>
195
+ <article slot="modal-body" class="modal-body">
196
+ <img style="width: 300px;height: 300px;display: block;margin: auto" src="/images/DownLoadQRCode.png"/>
197
+ </article>
198
+ <footer slot="modal-footer" class="modal-footer">
199
+ <button type="button" class="btn btn-success" @click='qrCode=false'>关闭</button>
200
+ </footer>
201
+ </modal>
202
+ </div>
203
+ </template>
204
+
205
+ <script>
206
+ import vue from 'vue'
207
+ import co from 'co'
208
+ import {HttpResetClass} from "vue-client";
209
+
210
+ let getwartermakr = async function (self) {
211
+ let param = {
212
+ tablename: 't_singlevalue',
213
+ condition: " 1=1 and name=\'水印内容\'"
214
+ };
215
+ let result = await self.$resetpost('rs/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
216
+ if (result && result.data.length > 0) {
217
+ self.showwatermakeflag = true;
218
+ createWaterMark(`${result.data[0].value}${self.$login.f.ename}`);
219
+ } else {
220
+ self.showwatermakeflag = false;
221
+ }
222
+ }
223
+
224
+ let createWaterMark = function (userName) {
225
+ let style;
226
+ if (style) style.remove();
227
+ let width = window.parseInt(document.body.clientWidth);
228
+ let canvasWidth = width / window.parseInt(width / 320);
229
+ let fontFamily = window.getComputedStyle(document.body)["font-family"];
230
+ let canvas = document.createElement("canvas");
231
+ canvas.width = canvasWidth;
232
+ canvas.height = 200;
233
+ let ctx = canvas.getContext("2d");
234
+ ctx.rotate((-20 * Math.PI) / 180);
235
+ ctx.font = `20px ${fontFamily}`;
236
+ ctx.fillStyle = "rgba(8,8,8,.1)";
237
+ ctx.fillText(userName, 50, 200);
238
+ let imgSrc = canvas.toDataURL("image/png");
239
+ style = document.createElement("style");
240
+ style.innerHTML = `.with-watermark:before{
241
+ pointer-events: none;
242
+ content: "";
243
+ width: 100%;
244
+ height: 100%;
245
+ display: block;
246
+ position: absolute;
247
+ background-image: url("${imgSrc}");
248
+ }`;
249
+ (document.head.append || document.head.appendChild).apply(document.head, [style]);
250
+ }
251
+
252
+ window.onunload = () => {
253
+ vue.http({url: `rs/user/update/${this.$login.f.ename}`, method: 'GET'})
254
+ }
255
+ window.onbeforeunload = () => {
256
+ vue.http({url: `rs/user/update/${this.$login.f.ename}`, method: 'GET'})
257
+ }
258
+ export default {
259
+ title: '主界面',
260
+ props: ['functions', 'userid', 'config'],
261
+ data() {
262
+ return {
263
+ // 页面提示信息定时器
264
+ interval: null,
265
+ intervaltx: null,
266
+ newTipShow: false,
267
+ newTipContextShow: false,
268
+ AppDaiBan: '',
269
+ OrderDaiBan: '',
270
+ flowDaiBan: '',
271
+ // 左侧树下部三个小图标
272
+ imgs: {
273
+ open: '/images/lefticon/菜单伸缩.png',
274
+ set: '/images/lefticon/系统设置.png',
275
+ out: '/images/lefticon/退出系统.png',
276
+ img1: '/images/newStyle/login-user.png',
277
+ logoimg: '/static/newStyle/fife.png'
278
+ // img2: '/images/lefticon/退出系统.png',
279
+ },
280
+ treeOrIcon: false,
281
+ qrCode:false,
282
+ isManger: false,
283
+ show: false,
284
+ orgpathnames: `${this.$login.f.orgs}-${this.$login.f.deps}-${this.$login.f.name}`,
285
+ systemname: '客服系统',
286
+ date: this.$login.toStandardDateString(),
287
+ tabs: [], //已初始化页签数组
288
+ selecttab: '',
289
+ setting: true,
290
+ srcsetting: '../../static/newStyle/setting.png',
291
+ showwatermakeflag: false,
292
+ gasbrandIdData: [],
293
+ showRemind: false,
294
+ dataRemind: [],
295
+ notices: null,
296
+ shownotices: false,
297
+ model: {
298
+ f_stopgas_id: '',
299
+ f_user_id: '',
300
+ f_pcstate: '已确认'
301
+ },
302
+ tqpath: null
303
+ // headerHint: true, // 右侧顶部提示信息
304
+ // value: 25645.26,
305
+ // AddChangeMsgShow: false,
306
+ // showsum: false
307
+ }
308
+ },
309
+ ready() {
310
+ getwartermakr(this);
311
+ let component = this.$login.getUrlCompileParames('component')
312
+ if (component) {
313
+ this.isManger = true
314
+ this.$refs.route.init(component, {data: this.functions.functions})
315
+ }
316
+ if (this.$login.f.password == '1') {
317
+ this.$showMessage('本地登录系统为此账户的初始密码,请确认修改密码!!!', ['confirm', 'cancel']).then((res) => {
318
+ if (res == 'confirm')
319
+ this.show = true
320
+ })
321
+ }
322
+ console.log("系统名称", this.$appdata.getSingleValue("系统名称"))
323
+ this.systemname = this.$appdata.getSingleValue("系统名称") ? this.$appdata.getSingleValue("系统名称") : '客服系统'
324
+ // let oBox = this.getElement("box")
325
+ // let oTop = this.getElement("top")
326
+ // let oBottom = this.getElement("bottom")
327
+ // let oLine = this.getElement("line")
328
+ // let that = this
329
+ // oLine.onmousedown = function(e) {
330
+ // let disX = (e || event).clientX
331
+ // oLine.left = oLine.offsetLeft
332
+ // document.onmousemove = function(e) {
333
+ // let iT = oLine.left + ((e || event).clientX - disX)
334
+ // var e = e || window.event
335
+ // let tarnameb = e.target || e.srcElement
336
+ // let maxT = oBox.clientWight - oLine.offsetWidth
337
+ // oLine.style.margin = 0
338
+ // iT < 0 && (iT = 0)
339
+ // iT > maxT && (iT = maxT)
340
+ // oLine.style.left = oTop.style.width = iT + "px"
341
+ // oBottom.style.width = oBox.clientWidth - iT + "px"
342
+ // that.$set('treeWidth', iT)
343
+ // return false
344
+ // }
345
+ // document.onmouseup = function() {
346
+ // document.onmousemove = null
347
+ // document.onmouseup = null
348
+ // oLine.releaseCapture && oLine.releaseCapture()
349
+ // }
350
+ // oLine.setCapture && oLine.setCapture()
351
+ // return false
352
+ // }
353
+ this.changeShow()
354
+ const istelRemindTimes =this.$appdata.getSingleValue("是否开启工单提醒定时器")
355
+ if(istelRemindTimes=='是'){
356
+ this.getTimesgotoWorkOrderSite()
357
+ }
358
+ const isapplyRemind =this.$appdata.getSingleValue("是否开启提醒")
359
+ const times =this.$appdata.getSingleValue("提示间隔分钟")
360
+ if(isapplyRemind=='是'){
361
+ this.config.isTip = true
362
+ this.config.times = times
363
+ }
364
+ // 获取预约列表
365
+ this.functions.f_role_name && this.functions.f_role_name.includes(this.config.msgRole) && this.config.isTip && this.getOrderList()
366
+ if (this.config.approve) {
367
+ this.getFlowList()
368
+ }
369
+ // 获取卡表动态库到期时间
370
+ this.getExpireDate()
371
+ this.stopsPC()
372
+ },
373
+ methods: {
374
+ stpoCles() {
375
+ this.shownotices = false
376
+ this.model.f_stopgas_id = this.notices.id
377
+ this.model.f_user_id = this.$login.f.id
378
+ console.log('保存', this.model)
379
+ this.$resetpost('rs/logic/savenoticenotarize', this.model, {resolveMsg: '保存成功', rejectMsg: '保存失败'}).then((res) => {
380
+ this.model.f_stopgas_id = ''
381
+ this.model.f_user_id = ''
382
+ }).catch((res) => {
383
+ console.log('打印报错信息'+ res)
384
+ })
385
+
386
+ },
387
+ isNotarize (stopId,userid) {
388
+ let http = new HttpResetClass()
389
+ var condition = `f_stopgas_id = '${stopId}' and f_user_id = '${userid}'`
390
+ let data = {
391
+ items: '*',
392
+ tablename: 't_notice_notarize',
393
+ condition: condition,
394
+ orderitem: 'f_id desc'
395
+ }
396
+ http.load('POST', 'rs/sql/singleTable_OrderBy', {data: data}, {
397
+ resolveMsg: null,
398
+ rejectMsg: null
399
+ }).then((res) => {
400
+ if (res.data.length === 0) {
401
+ this.shownotices = true
402
+ }else if (res.data[0].f_pcstate !== '已确认' ){
403
+ this.model.f_id = res.data[0].f_id
404
+ this.shownotices = false
405
+ } else {
406
+ this.shownotices = false
407
+ }
408
+ }).catch((e)=>{
409
+ console.log('报错了!!')
410
+ console.error(e)
411
+ })
412
+
413
+ },
414
+ async stopsPC () {
415
+ let http = new HttpResetClass()
416
+ var condition = `f_orgstr = '${this.$login.f.orgid}' and f_state = '公告中' and f_typeofreceipt = 'PC端'`
417
+ let data = {
418
+ items: '*',
419
+ tablename: 't_stopgas',
420
+ condition: condition,
421
+ orderitem: 'f_date desc'
422
+ }
423
+ await http.load('POST', 'rs/sql/singleTable_OrderBy', {data: data}, {
424
+ resolveMsg: null,
425
+ rejectMsg: null
426
+ }).then((res) => {
427
+ if (res.data[0].f_downloadfile === ''||res.data[0].f_downloadfile === null || !res.data[0].f_downloadfile){
428
+ }else {
429
+ this.tqpath= (res.data[0].f_downloadfile).split(":")[1]
430
+ }
431
+ this.notices = res.data[0]
432
+ this.isNotarize(res.data[0].id,this.$login.f.id)
433
+ }).catch((e)=>{
434
+ console.log('报错了!!')
435
+ console.error(e)
436
+ })
437
+ },
438
+ getOrderList(){
439
+ let times = this.config.times * 60 * 1000
440
+ console.log("=定时提示间隔=", times)
441
+ try {
442
+ this.interval = setInterval(() => {
443
+ this.getDaiBan()
444
+ }, times)
445
+ } catch (error) {
446
+ console.log('捕获到异常', error)
447
+ }
448
+ },
449
+ getFlowList(){
450
+ console.log('======获取流程审核待办=====')
451
+ let times = this.config.approveTimes * 60 * 1000
452
+ console.log("=定时提示间隔=", times)
453
+ try {
454
+ this.interval = setInterval(() => {
455
+ this.getFlowDaiBan()
456
+ }, times)
457
+ } catch (error) {
458
+ console.log('捕获到异常', error)
459
+ }
460
+ },
461
+ async getFlowDaiBan(){
462
+ this.flowDaiBan = ''
463
+ let http = new HttpResetClass()
464
+ let data = {
465
+ condition: `f_handler = '${this.$login.f.name}'`
466
+ }
467
+ await http.load('POST', 'rs/sql/future_getMyWorkFlowList', {data: data}, {
468
+ resolveMsg: null,
469
+ rejectMsg: null
470
+ }).then((res) => {
471
+ if (res.data.length > 0){
472
+ this.flowDaiBan = `您有${res.data.length}条需要处理的审核流程业务!`
473
+ }
474
+ }).catch((e)=>{
475
+ console.log('报错了!!')
476
+ console.error(e)
477
+ })
478
+ if(this.flowDaiBan){
479
+ this.newTipShow = true
480
+ }
481
+ },
482
+ getTimesgotoWorkOrderSite(){
483
+ let teltimes = 2*60*1000 // 两分钟
484
+ try {
485
+ this.intervaltx =setInterval(()=>{
486
+ this.gotoWorkOrderSite()
487
+ },teltimes)
488
+ }catch (e) {
489
+ console.log('捕获到异常', e)
490
+ }
491
+ },
492
+ async getDaiBan(){
493
+ this.OrderDaiBan = ''
494
+ this.AppDaiBan = ''
495
+ let http = new HttpResetClass()
496
+ await http.load('POST', '/rs/sql/singleTable', {data: {
497
+ tablename:'t_order_center',
498
+ condition:` (f_orderstate != '预约成功' and f_orgstr ='${this.$login.f.orgid}' and f_orderstate != '预约失败' ) or f_orderstate is null`
499
+ }}, {
500
+ resolveMsg: null,
501
+ rejectMsg: null
502
+ }).then((res) => {
503
+ let OrderDaiBan = {}
504
+ res.data.forEach(item=>{
505
+ OrderDaiBan[item.f_ordertype] = OrderDaiBan[item.f_ordertype] || []
506
+ OrderDaiBan[item.f_ordertype].push(item)
507
+ })
508
+ if (res.data.length> 0){
509
+ this.OrderDaiBan = `您有${res.data.length}条需要处理的微信预约业务!`
510
+ this.OrderDaiBan += `其中 ${Object.keys(OrderDaiBan).map(key=>`${key}:${OrderDaiBan[key].length}条`).join(', ')}`
511
+ }
512
+ })
513
+ let data = {
514
+ condition: '1 = 1',
515
+ data: {
516
+ orgid: this.$login.f.orgid,
517
+ id: this.$login.f.id
518
+ }
519
+ }
520
+ await http.load('POST', '/rs/sql/checkuser', {data: data}, {
521
+ resolveMsg: null,
522
+ rejectMsg: null
523
+ }).then((res) => {
524
+ let AppDaiBan = {}
525
+ res.data.forEach(item=>{
526
+ AppDaiBan[item.defname] = AppDaiBan[item.defname] || []
527
+ AppDaiBan[item.defname].push(item)
528
+ })
529
+ if (res.data.length> 0){
530
+ this.AppDaiBan = `您有${res.data.length}条需要处理的报建待办业务!`
531
+ this.AppDaiBan += `其中 ${Object.keys(AppDaiBan).map(key=>`${key}:${AppDaiBan[key].length}条`).join(', ')}`
532
+ }
533
+ }).catch((e)=>{
534
+ console.error(e)
535
+ })
536
+ if(this.AppDaiBan || this.OrderDaiBan){
537
+ this.newTipShow = true
538
+ }
539
+ },
540
+ // 获取动态库卡表到期日
541
+ async getExpireDate(){
542
+ // 获取分公司的表品牌id
543
+ let http = new HttpResetClass()
544
+ await http.load('POST', '/rs/sql/singleTable', {data: {
545
+ tablename:'t_gasbrand_orgid',
546
+ condition:`f_using_orgid ='${this.$login.f.orgid}'`
547
+ }}, {
548
+ resolveMsg: null,
549
+ rejectMsg: null
550
+ }).then((res) => {
551
+ if (res.data.length > 0) {
552
+ res.data.forEach(item => {
553
+ this.gasbrandIdData.push(item.f_gasbrand_id)
554
+ })
555
+ }
556
+ if (this.gasbrandIdData.length > 0) {
557
+ // 获取卡表到期时间
558
+ http.load('POST', '/rs/sql/singleTable', {data: {
559
+ tablename:'t_gasbrand',
560
+ condition:`id in (${this.gasbrandIdData}) and f_meter_type like '%卡表%'`
561
+ }}, {
562
+ resolveMsg: null,
563
+ rejectMsg: null
564
+ }).then((res) => {
565
+ if (res.data.length > 0) {
566
+ res.data.forEach(itre => {
567
+ let band = null
568
+ if ('f_dynamic_expire' in itre) {
569
+ console.log(itre.f_dynamic_expire)
570
+ if (itre.f_dynamic_expire !== null && itre.f_dynamic_expire !== '') {
571
+ let todayold = new Date(itre.f_dynamic_expire)
572
+ todayold.setDate(todayold.getDate() - parseInt(this.$appdata.getSingleValue('动态库提醒天数设置')))
573
+ let today = new Date()
574
+ if (today > todayold) {
575
+ band = {type:'卡表',brand:itre.f_meter_brand}
576
+ this.dataRemind.push(band)
577
+ }
578
+ }
579
+ }
580
+ })
581
+
582
+ }
583
+ if (this.dataRemind.length > 0) {
584
+ this.showRemind = true
585
+ // this.$showMessage(band + '。' +
586
+ // '卡表动态库到期,请联系售后尽快注册!')
587
+ }
588
+ })
589
+ }
590
+ })
591
+ },
592
+ // 提醒框被点击
593
+ tipClick(){
594
+ this.newTipShow = false
595
+ this.newTipContextShow = true
596
+ },
597
+ gotoWorkOrderSite(){
598
+ const isRemind =this.$appdata.getSingleValue("站点工单提醒")
599
+ console.log('站点工单是否提醒',isRemind)
600
+ if(isRemind && isRemind !== ''){
601
+ return
602
+ }
603
+ if(this.functions && this.functions.f_role_name && this.functions.f_role_name.indexOf('派单员') !== -1){
604
+ const data = {
605
+ "condition":
606
+ {
607
+ "condition":" 1=1 and processins.activities[ state='开始活动' and (defname in('站点接单'))].count(*) > 0 ",
608
+ "sign":"1=1"
609
+ },
610
+ "userid":this.functions.name
611
+ }
612
+ new HttpResetClass().load('POST','rs/path/operatorService/n', {data}, {resolveMsg: null, rejectMsg: null}).then(res=>{
613
+ if(res.data && res.data.n !== 0){
614
+ this.$showMessage('你有'+res.data.n+'个工单待处理,请尽快前往站点工单页面进行处理')
615
+ }
616
+ })
617
+ }
618
+ },
619
+ openUrl() {
620
+ 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}`
621
+ window.open(url, '_blank')
622
+ },
623
+ hindsetting() {
624
+ this.setting = !this.setting
625
+ if (this.setting) {
626
+ this.srcsetting = '../../static/newStyle/setting.png'
627
+ } else {
628
+ this.srcsetting = '../../static/newStyle/setting1.png'
629
+ }
630
+
631
+ },
632
+ hindsetting1() {
633
+
634
+ if (!this.setting) {
635
+ this.srcsetting = '../../static/newStyle/setting.png'
636
+ this.setting = true
637
+ }
638
+
639
+ },
640
+ isnodo(val) {
641
+ console.log(val, 'ss')
642
+ this.selecttab = val
643
+ },
644
+ unfurl() {
645
+ if (this.showsum) {
646
+ this.showsum = false
647
+ } else {
648
+ this.showsum = true
649
+ }
650
+ },
651
+ // getElement(id) {
652
+ // return document.getElementById(id)
653
+ // },
654
+ changeShow() {
655
+ // this.treeOrIcon = !this.treeOrIcon
656
+ // let oBox = this.getElement("box")
657
+ // let oTop = this.getElement("top")
658
+ // let oBottom = this.getElement("bottom")
659
+ // let oLine = this.getElement("line")
660
+ // if (this.treeOrIcon) {
661
+ // // oLine.style.left = oTop.style.width = 300 + "px"
662
+ // oTop.style.width = 150 + "px"
663
+ // oBottom.style.width = oBox.clientWidth - 150 + "px"
664
+ // }else {
665
+ // oLine.style.left = oTop.style.width = 50 + "px"
666
+ // oBottom.style.width = oBox.clientWidth - 50 + "px"
667
+ // }
668
+ // }
669
+ this.treeOrIcon = !this.treeOrIcon
670
+ // if (this.treeOrIcon) {
671
+ // this.$els.top.style.width = 14 + "%"
672
+ // this.$els.bottom.style.width = this.$els.box.clientWidth - 14 + "%"
673
+ // }else {
674
+ // this.$els.top.style.width = 8 + "%"
675
+ // this.$els.bottom.style.width = this.$els.box.clientWidth - 8 + "%"
676
+ // }
677
+ },
678
+ changeMain(userid) {
679
+ this.$goto('res-main', {userid: this.userid}, 'self')
680
+ },
681
+ tabChange(name) {
682
+ console.log(name, 'tabchanage')
683
+ this.selecttab = name
684
+ this.$refs.tree.changeSelect(name)
685
+ },
686
+ tabcg(val) {
687
+ console.log(val)
688
+ this.tabs = val
689
+ },
690
+ logOut() {
691
+ console.log(this.$login.f)
692
+ this.$showMessage('您确定要退出系统吗?', ['confirm', 'cancel']).then(async (res) => {
693
+ if (res == 'confirm') {
694
+ let data = {
695
+ userid: this.$login.f.id,
696
+ username: this.$login.f.name,
697
+ usertelephone: this.$login.f.f_user_telephone
698
+ }
699
+ await this.$resetpost('rs/logic/logOut', data, {resolveMsg: '退出成功', rejectMsg: null})
700
+ window.location.reload()
701
+ }
702
+ })
703
+ }
704
+ },
705
+ computed: {
706
+ nowDate() {
707
+ return this.$login.getNowDate()
708
+ }
709
+ }
710
+ }
711
+ </script>
712
+ <style lang="less">
713
+ .newTip-transition {
714
+ transition: all .4s ease;
715
+ }
716
+ .newTip-enter, .newTip-leave {
717
+ height: 0;
718
+ padding: 0 10px;
719
+ opacity: 0;
720
+ }
721
+ .newTip a {
722
+ color: #333;
723
+ }
724
+ .newTip {
725
+ cursor: pointer;
726
+ text-align: center;
727
+ position: absolute;
728
+ top: 3em;
729
+ margin: 0 auto;
730
+ width: 200px;
731
+ left: 48%;
732
+ line-height: 2;
733
+ z-index: 10010;
734
+ box-shadow: 0 4px 12px rgba(0,0,0,0.38);
735
+ pointer-events: all;
736
+ border-radius: 4px;
737
+ background-color: whitesmoke;
738
+ }
739
+ /* 组件内通用样式 */
740
+ .select-error {
741
+ button {
742
+ border-bottom: 1px solid #a94442 !important;
743
+ }
744
+ }
745
+
746
+ // input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{
747
+ // -webkit-appearance:textfield;
748
+ // }
749
+ /* 表单输入框组 */
750
+ .form-input-group {
751
+ display: flex;
752
+
753
+ label {
754
+ width: 100px;
755
+ text-align: right;
756
+
757
+ + * {
758
+ flex: 1;
759
+ }
760
+ }
761
+ }
762
+
763
+ // 日期组件在表单中沾满
764
+ .form-horizontal .datepicker {
765
+ width: 100%;
766
+ }
767
+
768
+ // 下拉选择框占据剩余全部空间
769
+ .select-overspread {
770
+ .form-group {
771
+ // margin: 0px 5px 10px 0px;
772
+ .form-control {
773
+ margin-right: 0px;
774
+ }
775
+ }
776
+
777
+ .btn-group, .btn-group-vertical {
778
+ width: 100%;
779
+ // padding-right: 5px;
780
+ button {
781
+ width: 100%;
782
+ display: flex;
783
+ justify-content: space-between;
784
+ align-items: center;
785
+ }
786
+ }
787
+
788
+ .dropdown-menu {
789
+ width: 100%
790
+ }
791
+ }
792
+
793
+ // 需要特定宽度的的样式
794
+ .width-60 {
795
+ width: 60px;
796
+ }
797
+
798
+ .userpanel {
799
+ font-weight: 300;
800
+ color: #333;
801
+ position: fixed;
802
+ right: 30px;
803
+ top: 45px;
804
+ background-color: white;
805
+ box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
806
+ padding: 4px 10px 4px 10px;
807
+ border-radius: 2px;
808
+ }
809
+
810
+ .width-80 {
811
+ width: 80px;
812
+ }
813
+
814
+ .width-100 {
815
+ width: 100px;
816
+ }
817
+
818
+
819
+ /*右侧区域的背景*/
820
+ .right-bg {
821
+ width: 100%;
822
+ flex: 1;
823
+ color: #304A66;
824
+ }
825
+
826
+ .tree-flex {
827
+ height: 100%;
828
+ // width: 150px;
829
+ /*width: 60px;*/
830
+ background: #4a7cae;
831
+ color: #fff;
832
+
833
+ }
834
+
835
+ .tree-flex-icon {
836
+ width: 50px;
837
+ /*transition: 0.5s;*/
838
+
839
+ > .span {
840
+ overflow-x: visible;
841
+ }
842
+ }
843
+
844
+ .tree-flex h3 {
845
+ text-align: center;
846
+ margin: 1em 0;
847
+ }
848
+
849
+ .tree-flex-footer {
850
+ height: 50px;
851
+ display: flex;
852
+ flex-direction: column;
853
+ color: #fff;
854
+ }
855
+
856
+ .tree-flex-footer a, .tree-flex-footer button {
857
+ flex: 1;
858
+ padding: 8px 5px;
859
+ font-size: 1.2em;
860
+ // border-top: 1px solid #697D93;
861
+ border-top: 1px solid #4a7cae;
862
+ text-decoration: none;
863
+ color: #fff;
864
+ cursor: pointer;
865
+ }
866
+
867
+ .tree-flex-footer button {
868
+ height: auto;
869
+ width: 100%;
870
+ border-radius: 0px;
871
+ background-color: rgba(255, 255, 255, 0);
872
+ border: none;
873
+ border-top: 1px solid #4a7cae;
874
+ // border-top: 1px solid #697D93;
875
+ text-align: left;
876
+ }
877
+
878
+ .tree-flex-footer button:hover {
879
+ outline: none;
880
+ background-color: rgba(255, 255, 255, 0.2);
881
+ }
882
+
883
+ .tree-flex-footer button:focus {
884
+ outline: none;
885
+ background-color: rgba(255, 255, 255, 0.5);
886
+ }
887
+
888
+ .tree-flex-footer a:hover {
889
+ color: #FFF;
890
+ background-color: rgba(255, 255, 255, 0.2);
891
+ }
892
+
893
+ .tree-flex .btn-group {
894
+ height: 50px !important;
895
+ }
896
+
897
+ .tree-flex .dropdown-menu {
898
+ /* 控制显示列表的样式 */
899
+ background: #4a7cae;
900
+ border-radius: 0px;
901
+ color: #fff;
902
+ width: auto;
903
+ margin: 0px;
904
+ padding: 0px;
905
+ }
906
+
907
+ .tree-flex .dropdown-menu-up {
908
+ /* bottom,top控制上下,left和right控制左右*/
909
+ left: 100% !important;
910
+ top: auto !important;
911
+ bottom: 0;
912
+ }
913
+
914
+ .tree-flex .dropdown-menu-down {
915
+ /* bottom,top控制上下,left和right控制左右*/
916
+ left: 100% !important;
917
+ top: 0 !important;
918
+ }
919
+
920
+ .tree-flex .dropdown-menu li {
921
+ text-align: center;
922
+ line-height: 50px;
923
+ border-bottom: 1px solid #697D93;
924
+ font-size: 1.2em;
925
+ width: auto;
926
+ white-space: nowrap;
927
+ cursor: default;
928
+
929
+ }
930
+
931
+ .tree-flex .dropdown-menu li + li {
932
+ text-align: left;
933
+ border: 0;
934
+ line-height: 40px;
935
+ padding-left: 15px;
936
+ padding-right: 15px;
937
+ font-size: 1em;
938
+ cursor: pointer;
939
+ }
940
+
941
+ .tree-flex .dropdown-menu li + li:hover {
942
+ background-color: rgba(255, 255, 255, 0.2);
943
+ }
944
+
945
+ .tree-flex .dropdown-menu li a {
946
+ border: none;
947
+ color: #fff;
948
+ height: 40px;
949
+ line-height: 40px;
950
+ font-size: 1em;
951
+ padding: 0px;
952
+ }
953
+
954
+ .tree-flex .dropdown-menu li a:hover {
955
+ color: #fff;
956
+ background-color: rgba(255, 255, 255, 0);
957
+ }
958
+
959
+ .tree-flex img {
960
+ height: 1.2em;
961
+ width: 1.2em;
962
+ margin-right: 15px;
963
+ margin-left: 5px;
964
+ }
965
+
966
+ .line {
967
+ height: 100%;
968
+ width: 5px;
969
+ background: #4C637B;
970
+ cursor: e-resize;
971
+ }
972
+
973
+ /*为树(tree)组件写的样式*/
974
+ .tree-img {
975
+ font-size: 1.2em;
976
+ }
977
+
978
+ /*将较长信息截断显示,鼠标悬停显示全部信息*/
979
+ .cutout50 {
980
+ max-width: 50px;
981
+ overflow: hidden;
982
+ text-overflow: ellipsis;
983
+ white-space: nowrap;
984
+ }
985
+
986
+ /* 滚动条样式 */
987
+ /*---滚动条默认显示样式--*/
988
+ ::-webkit-scrollbar-thumb {
989
+ // display: none;
990
+ background-color: rgba(0, 0, 0, 0.4);
991
+ /*background-color:red;*/
992
+ height: 50px;
993
+ outline-offset: -2px;
994
+ /*outline:2px solid #fff;*/
995
+ -webkit-border-radius: 4px;
996
+ /*border: 2px solid #fff;*/
997
+ }
998
+
999
+ /*---鼠标点击滚动条显示样式--*/
1000
+ ::-webkit-scrollbar-thumb:hover {
1001
+ // display: inherit;
1002
+ background-color: rgba(0, 0, 0, 0.4);
1003
+ height: 50px;
1004
+ -webkit-border-radius: 4px;
1005
+ }
1006
+
1007
+ /*---滚动条大小--*/
1008
+ ::-webkit-scrollbar {
1009
+ width: 8px;
1010
+ height: 8px;
1011
+ }
1012
+
1013
+ /*---滚动框背景样式--*/
1014
+ ::-webkit-scrollbar-track-piece {
1015
+ /* 全透明,不显示 */
1016
+ background-color: rgba(255, 255, 255, 0);
1017
+ -webkit-border-radius: 0;
1018
+ }
1019
+ </style>