system-clients 3.2.98 → 3.2.99-temp

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