system-clients 4.0.3 → 4.0.4

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 (207) hide show
  1. package/.eslintrc.js +16 -16
  2. package/SystemClient.iml +8 -8
  3. package/build/webpack.base.conf.js +85 -85
  4. package/build.gradle +6 -6
  5. package/examples/LoginPage/App.vue +21 -21
  6. package/examples/LoginPage/index.html +11 -11
  7. package/examples/LoginPage/main.js +15 -15
  8. package/index.html +21 -21
  9. package/package-lock.json +11773 -0
  10. package/package.json +1 -1
  11. package/src/App.vue +24 -24
  12. package/src/LodopFuncs.js +155 -155
  13. package/src/components/Main.vue +935 -935
  14. package/src/components/TabButton.vue +201 -201
  15. package/src/components/Tabs.vue +67 -67
  16. package/src/components/Util.js +343 -343
  17. package/src/components/addressManage/AddressCascadingMenu.vue +145 -145
  18. package/src/components/common/ProgressBase.vue +83 -83
  19. package/src/components/equipment/EquipmentManage.vue +83 -83
  20. package/src/components/equipment/PcAdd.vue +115 -115
  21. package/src/components/equipment/PcList.vue +119 -119
  22. package/src/components/equipment/PcManage.vue +61 -61
  23. package/src/components/equipment/PhoneAdd.vue +118 -118
  24. package/src/components/equipment/PhoneList.vue +113 -113
  25. package/src/components/equipment/PhoneManage.vue +61 -61
  26. package/src/components/equipment/PosAdd.vue +319 -319
  27. package/src/components/equipment/PosList.vue +292 -292
  28. package/src/components/equipment/PosManage.vue +138 -138
  29. package/src/components/equipment/PosManageBoth.vue +125 -125
  30. package/src/components/equipment/PosParamAdd.vue +236 -236
  31. package/src/components/equipment/PosParamList.vue +121 -121
  32. package/src/components/equipment/PosParamManage.vue +51 -51
  33. package/src/components/materialManage/materialData.vue +44 -44
  34. package/src/components/materialManage/materialList.vue +255 -255
  35. package/src/components/parammanage/ParamManage.vue +42 -42
  36. package/src/components/parammanage/ParamPage.vue +337 -337
  37. package/src/components/parammanage/ParamPages.vue +222 -222
  38. package/src/components/parammanage/SinglePage.vue +235 -235
  39. package/src/components/parammanage/SinglePages.vue +167 -167
  40. package/src/components/server/AddChangeMsg.vue +66 -66
  41. package/src/components/server/ChangeDeclare.vue +45 -45
  42. package/src/components/server/ImageVieweTest.vue +56 -56
  43. package/src/components/server/ImageViewer.vue +350 -350
  44. package/src/components/server/LeftTree.vue +111 -111
  45. package/src/components/server/LoadData.vue +55 -55
  46. package/src/components/server/Login.vue +615 -615
  47. package/src/components/server/LoginPage.vue +235 -235
  48. package/src/components/server/LoginView.vue +128 -128
  49. package/src/components/server/Menu.vue +188 -188
  50. package/src/components/server/ModifyPw.vue +126 -126
  51. package/src/components/server/PcdBuildingSelect.vue +243 -243
  52. package/src/components/server/ResSelect.vue +172 -172
  53. package/src/components/server/ResSelectGroup.vue +211 -211
  54. package/src/components/server/RightTree.vue +348 -348
  55. package/src/components/server/RoleSelector.vue +90 -90
  56. package/src/components/server/TestResSelect.vue +58 -58
  57. package/src/components/server/TestResSelectGroup.vue +388 -388
  58. package/src/filiale/baole/Login.vue +570 -570
  59. package/src/filiale/baole/system.js +5 -5
  60. package/src/filiale/bayan/PosAdd.vue +368 -368
  61. package/src/filiale/bayan/PosList.vue +341 -341
  62. package/src/filiale/bayan/PosManage.vue +138 -138
  63. package/src/filiale/bayan/system.js +6 -6
  64. package/src/filiale/chengtou/Login.vue +539 -539
  65. package/src/filiale/chengtou/system.js +5 -5
  66. package/src/filiale/dongguan/Login.vue +902 -902
  67. package/src/filiale/dongguan/Main.vue +717 -717
  68. package/src/filiale/dongguan/system.js +6 -6
  69. package/src/filiale/furuike/Login.vue +587 -587
  70. package/src/filiale/furuike/Main.vue +840 -840
  71. package/src/filiale/furuike/system.js +7 -7
  72. package/src/filiale/gehua/Main.vue +809 -809
  73. package/src/filiale/gehua/system.js +6 -6
  74. package/src/filiale/konggang/Login.vue +472 -472
  75. package/src/filiale/konggang/system.js +7 -7
  76. package/src/filiale/qianneng/Login.vue +584 -584
  77. package/src/filiale/qianneng/Main.vue +818 -818
  78. package/src/filiale/qianneng/ModifyPw.vue +108 -108
  79. package/src/filiale/qianneng/system.js +11 -11
  80. package/src/filiale/rizhao/LeftTree.vue +111 -111
  81. package/src/filiale/rizhao/Login.vue +793 -793
  82. package/src/filiale/rizhao/Main.vue +611 -611
  83. package/src/filiale/rizhao/system.js +14 -14
  84. package/src/filiale/ruihua/Login.vue +576 -576
  85. package/src/filiale/ruihua/Main.vue +977 -977
  86. package/src/filiale/shiquan/Login.vue +566 -566
  87. package/src/filiale/shiquan/system.js +8 -8
  88. package/src/filiale/tianyi/Login.vue +573 -573
  89. package/src/filiale/tianyi/system.js +5 -5
  90. package/src/filiale/tongchuan/Login.vue +563 -563
  91. package/src/filiale/tongchuan/Main.vue +1021 -1021
  92. package/src/filiale/tongchuan/system.js +7 -7
  93. package/src/filiale/weinan/Main.vue +924 -924
  94. package/src/filiale/weinan/system.js +7 -7
  95. package/src/filiale/wenxi/Login.vue +537 -537
  96. package/src/filiale/wenxi/Main.vue +787 -787
  97. package/src/filiale/wenxi/system.js +10 -10
  98. package/src/filiale/wuhai/LeftTree.vue +141 -141
  99. package/src/filiale/wuhai/Main.vue +810 -810
  100. package/src/filiale/wuhai/system.js +10 -10
  101. package/src/filiale/yuchuan/Login.vue +891 -891
  102. package/src/filiale/yuchuan/Main.vue +866 -866
  103. package/src/filiale/yuchuan/system.js +10 -10
  104. package/src/filiale/zhoukou/Main.vue +809 -809
  105. package/src/filiale/zhoukou/system.js +6 -6
  106. package/src/plugins/EncryptUtil.js +53 -53
  107. package/src/plugins/GetLoginInfoService.js +480 -480
  108. package/src/plugins/HeatGetLoginInfoService.js +491 -491
  109. package/src/plugins/validation.js +15 -15
  110. package/src/project/State.js +17 -17
  111. package/src/stores/AppData.js +38 -38
  112. package/src/stores/HeatAppData.js +38 -38
  113. package/src/styles/fonts/glyphicons-halflings-regular.svg +288 -288
  114. package/src/styles/less/.csscomb.json +304 -304
  115. package/src/styles/less/.csslintrc +19 -19
  116. package/src/styles/less/alerts.less +73 -73
  117. package/src/styles/less/aofeng/animate.min.css +10 -10
  118. package/src/styles/less/aofeng/expandcss.less +569 -569
  119. package/src/styles/less/aofeng/login.less +367 -367
  120. package/src/styles/less/aofeng/standard.less +2507 -2507
  121. package/src/styles/less/aofeng/themeOne/BinaryTemplate.less +690 -690
  122. package/src/styles/less/aofeng/themeOne/loginStyle.less +1586 -1586
  123. package/src/styles/less/aofeng/themeOne/systemStyle.less +2650 -2650
  124. package/src/styles/less/aofeng/themeOne.less +17 -17
  125. package/src/styles/less/aofeng/themeTwo/newStyle1.less +415 -415
  126. package/src/styles/less/aofeng/themeTwo.less +3 -3
  127. package/src/styles/less/badges.less +66 -66
  128. package/src/styles/less/bootstrap.less +66 -66
  129. package/src/styles/less/breadcrumbs.less +26 -26
  130. package/src/styles/less/button-groups.less +247 -247
  131. package/src/styles/less/buttons.less +172 -172
  132. package/src/styles/less/carousel.less +269 -269
  133. package/src/styles/less/close.less +34 -34
  134. package/src/styles/less/code.less +69 -69
  135. package/src/styles/less/component-animations.less +33 -33
  136. package/src/styles/less/dropdowns.less +216 -216
  137. package/src/styles/less/fonts-list.less +25 -25
  138. package/src/styles/less/forms.less +626 -626
  139. package/src/styles/less/glyphicons.less +305 -305
  140. package/src/styles/less/grid.less +84 -84
  141. package/src/styles/less/input-groups.less +167 -167
  142. package/src/styles/less/jumbotron.less +52 -52
  143. package/src/styles/less/labels.less +64 -64
  144. package/src/styles/less/list-group.less +141 -141
  145. package/src/styles/less/manageStyle/manageChile.less +180 -180
  146. package/src/styles/less/manageStyle/manageStyle/manageChile.less +180 -180
  147. package/src/styles/less/manageStyle/manageStyle/manageStyle.less +1102 -1102
  148. package/src/styles/less/manageStyle/manageStyle/safeStyle.less +498 -498
  149. package/src/styles/less/manageStyle/manageStyle.less +1102 -1102
  150. package/src/styles/less/manageStyle/safeStyle.less +498 -498
  151. package/src/styles/less/media.less +66 -66
  152. package/src/styles/less/mixins/alerts.less +14 -14
  153. package/src/styles/less/mixins/background-variant.less +9 -9
  154. package/src/styles/less/mixins/border-radius.less +18 -18
  155. package/src/styles/less/mixins/buttons.less +69 -69
  156. package/src/styles/less/mixins/center-block.less +7 -7
  157. package/src/styles/less/mixins/clearfix.less +22 -22
  158. package/src/styles/less/mixins/forms.less +90 -90
  159. package/src/styles/less/mixins/gradients.less +59 -59
  160. package/src/styles/less/mixins/grid-framework.less +92 -92
  161. package/src/styles/less/mixins/grid.less +122 -122
  162. package/src/styles/less/mixins/hide-text.less +21 -21
  163. package/src/styles/less/mixins/image.less +33 -33
  164. package/src/styles/less/mixins/labels.less +12 -12
  165. package/src/styles/less/mixins/list-group.less +30 -30
  166. package/src/styles/less/mixins/nav-divider.less +10 -10
  167. package/src/styles/less/mixins/nav-vertical-align.less +9 -9
  168. package/src/styles/less/mixins/opacity.less +8 -8
  169. package/src/styles/less/mixins/pagination.less +24 -24
  170. package/src/styles/less/mixins/panels.less +24 -24
  171. package/src/styles/less/mixins/progress-bar.less +10 -10
  172. package/src/styles/less/mixins/reset-filter.less +8 -8
  173. package/src/styles/less/mixins/reset-text.less +18 -18
  174. package/src/styles/less/mixins/resize.less +6 -6
  175. package/src/styles/less/mixins/responsive-visibility.less +15 -15
  176. package/src/styles/less/mixins/size.less +10 -10
  177. package/src/styles/less/mixins/tab-focus.less +9 -9
  178. package/src/styles/less/mixins/table-row.less +44 -44
  179. package/src/styles/less/mixins/text-emphasis.less +9 -9
  180. package/src/styles/less/mixins/text-overflow.less +8 -8
  181. package/src/styles/less/mixins/vendor-prefixes.less +227 -227
  182. package/src/styles/less/mixins.less +40 -40
  183. package/src/styles/less/modals.less +151 -151
  184. package/src/styles/less/navbar.less +660 -660
  185. package/src/styles/less/navs.less +285 -285
  186. package/src/styles/less/normalize.less +424 -424
  187. package/src/styles/less/pager.less +76 -76
  188. package/src/styles/less/pagination.less +89 -89
  189. package/src/styles/less/panels.less +275 -275
  190. package/src/styles/less/popovers.less +131 -131
  191. package/src/styles/less/print.less +101 -101
  192. package/src/styles/less/progress-bars.less +87 -87
  193. package/src/styles/less/responsive-embed.less +35 -35
  194. package/src/styles/less/responsive-utilities.less +194 -194
  195. package/src/styles/less/scaffolding.less +161 -161
  196. package/src/styles/less/stand.less +207 -207
  197. package/src/styles/less/tables.less +312 -312
  198. package/src/styles/less/theme.less +291 -291
  199. package/src/styles/less/thumbnails.less +36 -36
  200. package/src/styles/less/tooltip.less +102 -102
  201. package/src/styles/less/type.less +316 -316
  202. package/src/styles/less/utilities.less +55 -55
  203. package/src/styles/less/variables.less +899 -899
  204. package/src/styles/less/wells.less +29 -29
  205. package/src/system.js +122 -122
  206. package/src/util/Daiban.json +12 -12
  207. package/yarn-error.log +0 -6896
@@ -1,717 +1,717 @@
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
+ // 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>