system-clients 3.3.3-old → 3.3.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 (69) hide show
  1. package/package.json +105 -105
  2. package/src/LodopFuncs.js +103 -71
  3. package/src/components/Main.vue +935 -927
  4. package/src/components/equipment/PcAdd.vue +1 -1
  5. package/src/components/equipment/PcList.vue +3 -3
  6. package/src/components/equipment/PhoneAdd.vue +1 -1
  7. package/src/components/equipment/PhoneList.vue +2 -2
  8. package/src/components/equipment/PosAdd.vue +7 -11
  9. package/src/components/equipment/PosList.vue +3 -5
  10. package/src/components/equipment/PosManage.vue +1 -1
  11. package/src/components/equipment/PosParamAdd.vue +2 -2
  12. package/src/components/equipment/PosParamList.vue +2 -2
  13. package/src/components/materialManage/materialList.vue +1 -1
  14. package/src/components/parammanage/ParamPage.vue +12 -12
  15. package/src/components/parammanage/ParamPages.vue +2 -2
  16. package/src/components/parammanage/SinglePage.vue +8 -8
  17. package/src/components/parammanage/SinglePages.vue +2 -2
  18. package/src/components/server/AddChangeMsg.vue +1 -1
  19. package/src/components/server/ChangeDeclare.vue +1 -1
  20. package/src/components/server/Login.vue +575 -589
  21. package/src/components/server/ModifyPw.vue +1 -0
  22. package/src/components/server/PcdBuildingSelect.vue +8 -6
  23. package/src/components/server/ResSelect.vue +3 -0
  24. package/src/components/server/ResSelectGroup.vue +1 -1
  25. package/src/components/server/RoleSelector.vue +3 -2
  26. package/src/components/server/TestResSelectGroup.vue +1 -1
  27. package/src/filiale/baole/Login.vue +4 -2
  28. package/src/filiale/chengtou/Login.vue +4 -2
  29. package/src/filiale/dongguan/Login.vue +4 -2
  30. package/src/filiale/dongguan/Main.vue +4 -2
  31. package/src/filiale/furuike/Login.vue +7 -3
  32. package/src/filiale/furuike/Main.vue +38 -25
  33. package/src/filiale/gehua/Main.vue +4 -2
  34. package/src/filiale/konggang/Login.vue +4 -2
  35. package/src/filiale/qianneng/Login.vue +4 -2
  36. package/src/filiale/qianneng/Main.vue +4 -2
  37. package/src/filiale/qianneng/ModifyPw.vue +1 -0
  38. package/src/filiale/rizhao/Login.vue +3 -1
  39. package/src/filiale/rizhao/Main.vue +2 -2
  40. package/src/filiale/ruihua/Login.vue +576 -0
  41. package/src/filiale/ruihua/system.js +5 -0
  42. package/src/filiale/shiquan/Login.vue +4 -2
  43. package/src/filiale/tianyi/Login.vue +4 -2
  44. package/src/filiale/tongchuan/Login.vue +4 -2
  45. package/src/filiale/tongchuan/Main.vue +7 -5
  46. package/src/filiale/weinan/Main.vue +6 -5
  47. package/src/filiale/wenxi/Login.vue +4 -2
  48. package/src/filiale/wenxi/Main.vue +4 -2
  49. package/src/filiale/wuhai/Main.vue +5 -2
  50. package/src/filiale/yuchuan/Login.vue +5 -3
  51. package/src/filiale/yuchuan/Main.vue +4 -2
  52. package/src/filiale/zhoukou/Main.vue +4 -2
  53. package/src/plugins/GetLoginInfoService.js +17 -75
  54. package/src/stores/AppData.js +1 -1
  55. package/static/ruihua/logo.jpg +0 -0
  56. package/.gradle/7.4/checksums/checksums.lock +0 -0
  57. package/.gradle/7.4/dependencies-accessors/dependencies-accessors.lock +0 -0
  58. package/.gradle/7.4/dependencies-accessors/gc.properties +0 -0
  59. package/.gradle/7.4/executionHistory/executionHistory.bin +0 -0
  60. package/.gradle/7.4/executionHistory/executionHistory.lock +0 -0
  61. package/.gradle/7.4/fileChanges/last-build.bin +0 -0
  62. package/.gradle/7.4/fileHashes/fileHashes.bin +0 -0
  63. package/.gradle/7.4/fileHashes/fileHashes.lock +0 -0
  64. package/.gradle/7.4/gc.properties +0 -0
  65. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  66. package/.gradle/buildOutputCleanup/cache.properties +0 -2
  67. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  68. package/.gradle/file-system.probe +0 -0
  69. package/.gradle/vcs-1/gc.properties +0 -0
@@ -0,0 +1,576 @@
1
+ <template>
2
+ <div class="syslogin">
3
+ <div class="login-title" >
4
+ <div class="row auto">
5
+ <marquee style="width:80%;margin-top:25px"><span style="font-size: 1.8rem;color: white;">{{notice}}</span></marquee>
6
+ <div class="login-title-chi" style="white-space: nowrap;margin-right:0">
7
+ <button class="my_button_search button_spacing" style="margin-right: 5px" title="点击清除浏览器缓存" @click.stop="delCookie">
8
+ <img
9
+ src="../../assets/clear-cookie.png" style="height: 25px; width: 95px;margin-bottom: 3px;">
10
+ </button>
11
+ <span v-if="$login.versionTime">构建时间:{{ vTime }}</span>
12
+ <div v-if="titleShow">
13
+ <img src="../../../static/newStyle/login-info.png"/>
14
+ <span @click="showus=true">关于我们</span>
15
+ </div>
16
+ <!-- <img src="../../../static/newStyle/login-con.png"/>-->
17
+ <!-- <span>联系我们</span>-->
18
+ </div>
19
+ </div>
20
+ </div>
21
+
22
+ <modal :show.sync="showus" backdrop="true" width="50%" style="width:auto;">
23
+ <article slot="modal-body" class="modal-body" >
24
+ <img style="height:100%;width:100%" src="../../../static/newStyle/about-us.png"/>
25
+ </article>
26
+ <footer slot="modal-footer" class="modal-footer">
27
+ </footer>
28
+ </modal>
29
+
30
+
31
+ <div class="logoew" v-if="logoandroid" >
32
+ <div v-if="logoandroid" class="imglogo"></div>
33
+ <p class="logocontent">燃气客服系统Android版</p>
34
+ <p class="logofooter">(仅浏览器扫描)</p>
35
+ </div>
36
+ <!--输入框-->
37
+ <div class="loginmain" v-show="showlogin">
38
+ <!-- <img src="../../../static/login_title1.png" alt="图片加载未完成" class="img-responsive" style="margin: 0 auto; padding-top: 150px;" /> -->
39
+ <div class="loginmain-left">
40
+ <img class="loginmain-left-img" src="../../../static/ruihua/logo.jpg">
41
+ </div>
42
+ <div class="loginmain-right">
43
+
44
+ <p style="white-space: nowrap;font-size: 36px;margin: 0 !important;">瑞华能源集团有限公司</p>
45
+ <p @click="theme()" style="white-space: nowrap;margin: 0 !important;">{{config.title}}</p>
46
+
47
+ <form v-show="!login">
48
+ <!-- <input type="text" placeholder="用户名" v-model="model.ename" class="usericon">-->
49
+ <div class="login-input">
50
+ <img src="../../../static/newStyle/login-user.png"/>
51
+ <input type="text" style="display: inline;background-color: white!important;" placeholder="用户名" v-model="model.ename"/>
52
+ </div>
53
+ <div class="login-input">
54
+ <img src="../../../static/newStyle/login-pwd.png"/>
55
+ <input type="password" placeholder="密码" style="display: inline;background-color: darkgray;" v-model="model.password"
56
+ @keyup.enter="confirm('key')"/>
57
+ </div>
58
+ <div class="login-input-1" v-if="$login.Verification">
59
+ <img src="../../../static/newStyle/login-check.png"/>
60
+ <input v-if="$login.Verification" class="login-check" type="text" placeholder="请输入验证码"
61
+ v-model="picLyanzhengma" @keyup.enter="confirm('key')"/>
62
+ </div>
63
+ <div class="login-input-2" >
64
+ <input v-if="$login.Verification" class="login-check-1" style="display: inline;background-color:#eeeeee !important;"
65
+ type="button" @click="createCode" v-model="checkCode"/>
66
+ </div>
67
+ <div class="login-bt" style="margin-top: 10% !important;">
68
+ <button type="button" id="login-button" class="login-button" @click.prevent="confirm('click')">登录</button>
69
+ </div>
70
+ <!-- <input type="password" placeholder="密码" v-model="model.password" class="psicon"-->
71
+ <!-- @keyup.enter="confirm('key')">-->
72
+ <!-- <input v-if="$login.Verification" styljiaoyane="width: 40%; display: inline" type="text" placeholder="请输入验证码"-->
73
+ <!-- v-model="picLyanzhengma" @keyup.enter="confirm('key')">-->
74
+ <!-- <input v-if="$login.Verification" style="width: 30%; display: inline;background-color: darkgray;"-->
75
+ <!-- type="button" @click="createCode" v-model="checkCode"/><br>-->
76
+
77
+ <!-- <button type="button" id="login-button" @click.prevent="confirm()"><strong>注册</strong></button> -->
78
+ <!-- <span @click="register()">还没有注册,现在注册>>></span> -->
79
+ </form>
80
+ <div v-show="login" class="login_load">
81
+ <img src="../../../static/newStyle/login-do.gif">
82
+ </div>
83
+ </div>
84
+ </div>
85
+ <div v-show="!showlogin && isSso" class="loginmain-img">
86
+ <div class="ssoLoadingImg">
87
+ <img src="../../../static/newStyle/login-do.gif">
88
+ </div>
89
+ </div>
90
+ <div class="login-foot" v-show="false">
91
+ 技术支持:西安奥枫软件有限公司
92
+ </div>
93
+ <div class="login-foot" v-show="$login.BAinformation">
94
+ {{{ $login.BAinformation }}}
95
+ </div>
96
+
97
+ <modal v-if="depPromptShow" :show.sync="depPromptShow" :backdrop="false" v-ref:modal >
98
+ <header slot="modal-header" style="height: 8vh" class="modal-header">
99
+ <!--<h4 class="modal-title">登录信息</h4>-->
100
+ </header>
101
+ <article slot="modal-body" class="modal-body">
102
+ <form class="form-horizontal">
103
+ <div class="row">
104
+ <div class="col-sm-12 form-group">
105
+ <label class="col-sm-5 ">当前登录人:</label>
106
+ <label style="font-weight:normal">{{$login.f.name}}</label>
107
+ </div>
108
+ <!--<div class="col-sm-12 form-group" v-if="$login.f.number">-->
109
+ <!--<label class="col-sm-5 ">组&nbsp;织&nbsp;编&nbsp;码:</label>-->
110
+ <!--<label style="font-weight:normal">{{$login.f.number}}</label>-->
111
+ <!-- <div class="col-sm-7">
112
+ <span >{{$login.f.number}}</span>
113
+ </div> -->
114
+ <!--</div>-->
115
+ <div class="col-sm-12 form-group">
116
+ <label class="col-sm-5">所在销售点:</label>
117
+ <label style="font-weight:normal">{{$login.f.deps}}</label>
118
+ <!-- <div class="col-sm-7">
119
+ <span >{{$login.f.deps}}</span>
120
+ </div> -->
121
+ </div>
122
+ <div class="col-sm-12 " v-if="AppDaiBan !==''">
123
+ <label class="col-sm-2">报装待办:</label>
124
+ <span style="font-weight:normal">{{AppDaiBan}}</span>
125
+ </div>
126
+ <div class="col-sm-12 " v-if="OrderDaiBan !==''">
127
+ <label class="col-sm-2">预约待办:</label>
128
+ <span style="font-weight:normal">{{OrderDaiBan}}</span>
129
+ </div>
130
+ <div class="col-sm-12 " v-for="daibanitem in safecheckDaiBan">
131
+ <label class="col-sm-2">{{daibanitem.oldData.title}}:</label>
132
+ <span style="font-weight:normal">{{daibanitem.text}}</span>
133
+ </div>
134
+ </div>
135
+ </form>
136
+ </article>
137
+ <footer slot="modal-footer" style="height: 8vh" class="modal-footer">
138
+ <button class="button_search" @click="depPromptConfirm">确认</button>
139
+ <button class="button_clear" @click="depPromptCancel">取消</button>
140
+ </footer>
141
+ </modal>
142
+
143
+ <!-- 修改密码组件 -->
144
+ <modify-pw :show.sync="modifyPwShow" v-if="modifyPwShow"></modify-pw>
145
+ </div>
146
+
147
+ </template>
148
+
149
+ <script>
150
+ import co from 'co'
151
+ import $ from 'jquery'
152
+ import Vue from 'vue'
153
+ import {HttpResetClass} from 'vue-client'
154
+
155
+ let daibanJson = require('../../util/Daiban.json')
156
+
157
+
158
+ let saveGen = function *(self) {
159
+ try {
160
+ if(self.$login){
161
+ // 账号ename,密码password,是否显示异地登陆
162
+ yield self.$login.login(self.model.ename, self.model.password, self.$login.showYiDi)
163
+ }
164
+ if(self.$appdata){
165
+ yield self.$appdata.load()
166
+ }
167
+ if (Vue.$heatCompatibility) {
168
+ try {
169
+ if(self.$loginHeat){
170
+ yield self.$loginHeat.login(self.model.ename, self.model.password)
171
+ }
172
+ if(self.$appdataHeat){
173
+ yield self.$appdataHeat.load()
174
+ }
175
+ } catch (e) {
176
+ console.log('热力系统登陆失败!')
177
+ }
178
+ }
179
+ yield self.$getConfig(self, 'Login')
180
+ console.log('登录配置', self.config)
181
+ if (self.config.isMac) {
182
+ // 获取该登录人分公司下的mac配置
183
+ let getMacs = yield self.$resetpost('api/af-system/sql/equipmentQuery', {data: {condition: `f_filialeids like '%${self.$login.f.f_orgids}%'`}}, {
184
+ resolveMsg: null,
185
+ rejectMsg: null
186
+ }).catch(() => {
187
+ throw new Error('获取mac配置失败')
188
+ })
189
+ console.log('MAC地址信息', getMacs)
190
+ // 获取本地mac地址
191
+ let getLocalMac = yield self.$resetget('http://127.0.0.1:8003/loadmac', {
192
+ resolveMsg: null,
193
+ rejectMsg: null
194
+ }).catch(() => {
195
+ throw new Error('获取本地mac配置失败')
196
+ })
197
+ console.log('本地MAC地址信息', getLocalMac)
198
+ // 对Mac地址进行匹配
199
+ let macValidate = false
200
+ for (let i = 0; i < getLocalMac.data.mac.length; i++) {
201
+ for (let j = 0; j < getMacs.data.length; j++) {
202
+ if (getMacs.data[j].f_mac_number.toLocaleUpperCase() === getLocalMac.data.mac[i]) {
203
+ macValidate = true
204
+ }
205
+ }
206
+ }
207
+ if (!macValidate) {
208
+ throw new Error('Mac地址验证失败, 请联系管理员!!')
209
+ }
210
+ }
211
+ console.log(self.$login.depPrompt)
212
+ // 弱口令验证
213
+ //跳转过来的不进行验证
214
+ if ((!self.otherLogin) && self.config.weakPassword && !(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?!.*(123|321|abc|cba))[a-zA-Z\d!@#$%^&*()_+-=<>?]{8,16}$/.test(self.model.password))) {
215
+ self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
216
+ self.modifyPwShow = true
217
+ })
218
+ } else if ((!self.otherLogin) && self.$login.depPrompt) {
219
+ self.depPromptShow = true
220
+ if (self.$login.showDaiBan && self.$login.r.includes('展示预约信息')){
221
+ // 获取待办
222
+ self.getDaiBan()
223
+ }
224
+ if (self.$login.showDaiBan && self.$login.r.includes('登录预约信息')){
225
+ // 获取待办 在util下有个Daiban.jsond 文件 ,在里面进行配置,在功能权限界面增加登录预约信息
226
+ self.getDaiBanA()
227
+ }
228
+ } else {
229
+ self.$goto('home-page', {functions: self.$login.f,config: self.config})
230
+ if (self.$login) {
231
+ console.log('登录信息', self.$login.f)
232
+ global.login=self.$login.f
233
+ console.log('登录信息', global.login)
234
+ }
235
+ }
236
+ } catch (ret) {
237
+ console.error('登录失败', ret)
238
+ let msg
239
+ if (ret instanceof Error) {
240
+ msg = ret
241
+ }
242
+ if (ret.status === 0) {
243
+ msg = '服务连接错误,请确认服务状态'
244
+ } else if (ret.status === 401) {
245
+ msg = ret.data
246
+ } else if (ret.status === 710) {
247
+ msg = ret.data
248
+ } else {
249
+ msg = ret.data
250
+ }
251
+ self.createCode()
252
+ self.picLyanzhengma = ''
253
+ yield self.$showMessage(msg)
254
+ self.model.ename = ''
255
+ self.model.password = ''
256
+ self.login = false
257
+ if (self.isSso) {
258
+ if (window.parent && window.parent !== window) {
259
+ window.parent.postMessage('reload', '*')
260
+ }
261
+ }
262
+ $('form').fadeIn(500)
263
+ }
264
+ }
265
+ export default {
266
+ title: '登录',
267
+ async ready () {
268
+ this.titleShow = this.$appdata.getSingleValue('关于我们')
269
+ window.versionTime = window.versionTime ? window.versionTime : new Date().getTime()
270
+ this.vTime = this.format(new Date(window.versionTime));
271
+ $('#login-button').click(function (event) {
272
+ event.preventDefault()
273
+ $('form').fadeOut(500)
274
+ })
275
+ if (window.location.search && window.location.search.indexOf('af_key') !== -1&& window.location.search.indexOf('af_n') !== -1) {
276
+ let url = window.location.search.split('?')[1]
277
+ let obj = {}
278
+ for (let params of url.split("&")) {
279
+ let kv = params.split("=")
280
+ obj[kv[0]] = kv[1]
281
+ }
282
+ console.log('参数', obj)
283
+ if (window.location.search.indexOf('ticket')) {
284
+ this.isSso = true
285
+ this.showlogin = false
286
+ }
287
+ this.model.ename = window.atob(obj.af_key)
288
+ this.model.password = window.atob(obj.af_n)
289
+ this.otherLogin = true
290
+ this.confirm()
291
+ }else{
292
+ //跳转不需要验证码
293
+ this.createCode()
294
+ }
295
+ console.log(this.$login)
296
+ },
297
+ data () {
298
+ return {
299
+ vTime: '',
300
+ image:{
301
+ img1: '/images/newStyle/login-info.png',
302
+ img2: '/images/newStyle/login-con.png',
303
+ img3: '/images/newStyle/login-left.png',
304
+ img4: '/images/newStyle/login-user.png',
305
+ img5: '/images/newStyle/login-pwd.png',
306
+ img6: '/images/newStyle/login-check.png',
307
+ img7: '/images/newStyle/login-do.png',
308
+ },
309
+ config: {
310
+ isMac: false,
311
+ depPrompt: false,
312
+ weakPassword: false,
313
+ title: '燃气客服系统',
314
+ distanceLogin: false,
315
+ // 那些角色可以定时获取预约提示
316
+ isTip : false,
317
+ // 那些角色可以定时获取预约提示
318
+ msgRole : '预约处理人员',
319
+ // 定时获取提示间隔 单位:分钟
320
+ times: 25,
321
+ approve: false, // 是否获取审核提醒
322
+ approveTimes: 1 // 审核时间见间隔
323
+ },
324
+ titleShow: true, //标题显示
325
+ otherLogin:false,
326
+ login: false,
327
+ depPromptShow: false,
328
+ model: {},
329
+ show: false,
330
+ checkCode: '',
331
+ login_do:true,
332
+ picLyanzhengma: '',
333
+ // 修改密码弹框展示
334
+ modifyPwShow: false,
335
+ logoandroid:false,
336
+ showus:false,
337
+ notice:'',
338
+ loginotherflag :true,
339
+ // 报建待办
340
+ AppDaiBan: '',
341
+ //安检待办
342
+ safecheckDaiBan:[],
343
+ // 预约待处理
344
+ OrderDaiBan: '',
345
+ showlogin: true,
346
+ isSso: false
347
+ }
348
+ },
349
+ methods: {
350
+ //格式化时间
351
+ format(dat){
352
+ //获取年月日,时间
353
+ const year = dat.getFullYear();
354
+ const mon = (dat.getMonth()+1) < 10 ? "0"+(dat.getMonth()+1) : dat.getMonth()+1;
355
+ const data = dat.getDate() < 10 ? "0"+(dat.getDate()) : dat.getDate();
356
+ const hour = dat.getHours() < 10 ? "0"+(dat.getHours()) : dat.getHours();
357
+ const min = dat.getMinutes() < 10 ? "0"+(dat.getMinutes()) : dat.getMinutes();
358
+ const seon = dat.getSeconds() < 10 ? "0"+(dat.getSeconds()) : dat.getSeconds();
359
+
360
+ return year + "-" + mon + "-" + data + " " + hour + ":" + min + ":" + seon;
361
+ },
362
+ async getDaiBan(){
363
+ let http = new HttpResetClass()
364
+ let condition = ''
365
+ if(this.$login.f.deps!=='柠条塔'){
366
+ condition = ` (f_orderstate != '预约成功' and f_orderstate != '预约失败' ) or f_orderstate is null `
367
+ } else {
368
+ condition =` f_orderstate is null and (f_address in( select f_address from t_user_address where f_slice_area='柠条塔') or f_address like '%柠条塔%') `
369
+ }
370
+ await http.load('POST', '/api/af-system/sql/singleTable', {data: {
371
+ tablename:'t_order_center',
372
+ condition:condition
373
+ }}, {
374
+ resolveMsg: null,
375
+ rejectMsg: null
376
+ }).then((res) => {
377
+ let OrderDaiBan = {}
378
+ res.data.forEach(item=>{
379
+ OrderDaiBan[item.f_ordertype] = OrderDaiBan[item.f_ordertype] || []
380
+ OrderDaiBan[item.f_ordertype].push(item)
381
+ })
382
+ this.OrderDaiBan = `您有${res.data.length}条需要处理的微信预约业务!`
383
+ if (res.data.length> 0){
384
+ this.OrderDaiBan += `其中 ${Object.keys(OrderDaiBan).map(key=>`${key}:${OrderDaiBan[key].length}条`).join(', ')}`
385
+ }
386
+ })
387
+ let data = {
388
+ condition: '1 = 1',
389
+ data: {
390
+ orgid: this.$login.f.orgid,
391
+ id: this.$login.f.id
392
+ }
393
+ }
394
+ await http.load('POST', '/rs/sql/checkuser', {data: data}, {
395
+ resolveMsg: null,
396
+ rejectMsg: null
397
+ }).then((res) => {
398
+ let AppDaiBan = {}
399
+ res.data.forEach(item=>{
400
+ AppDaiBan[item.defname] = AppDaiBan[item.defname] || []
401
+ AppDaiBan[item.defname].push(item)
402
+ })
403
+ this.AppDaiBan = `您有${res.data.length}条需要处理的报建待办业务!`
404
+ if (res.data.length> 0){
405
+ this.AppDaiBan += `其中 ${Object.keys(AppDaiBan).map(key=>`${key}:${AppDaiBan[key].length}条`).join(', ')}`
406
+ }
407
+ })
408
+
409
+ },
410
+ async getDaiBanA(){
411
+ // 是否全局开启待办通知
412
+ if (daibanJson.enable) {
413
+ console.log("当前获取到待办配置为" + JSON.stringify(daibanJson))
414
+ let http = new HttpResetClass()
415
+ let daibanArray = []
416
+ for (let daibanItem of daibanJson.daiban) {
417
+ console.log("开始处理待办任务:" + daibanItem.title + "当前任务状态:" + daibanItem.enable?"开启":"关闭" )
418
+ if (daibanItem.enable) { // 控制每一项通知是否开启
419
+ let postResult = ''; //提示信息为
420
+ await http.load("POST",daibanItem.url,{data:daibanItem.data},{ resolveMsg: null, rejectMsg: null})
421
+ .then((res)=>{
422
+ let responseData = res.data
423
+ for (let item of responseData) {
424
+ postResult += eval(daibanItem.text) + "\n"
425
+ }
426
+ postResult += '\t'
427
+ daibanArray.push({text:postResult,oldData:daibanItem})
428
+ })
429
+ }
430
+ }
431
+ console.log("安检数据为:"+JSON.stringify(daibanArray))
432
+ this.safecheckDaiBan = daibanArray
433
+ }else {
434
+ console.log("待办提醒全局关闭。")
435
+ }
436
+ },
437
+
438
+ async loginother(){
439
+ // if (this.config.distanceLogin) {
440
+ // if (this.$login && this.$login.getUrlParames('name') ) {
441
+ // let ename = this.$login.getUrlParames('name');
442
+ // // todo v4
443
+ // let logininfo = await this.$resetpost('api/af-revenue/logic/getLoginData',{data:{ename:ename}},{resolveMsg: null, rejectMsg: null});
444
+ // if(logininfo.data){
445
+ // if(logininfo.data.ename && logininfo.data.password){
446
+ // this.model.ename = logininfo.data.ename
447
+ // this.model.password =logininfo.data.password
448
+ // let gen = saveGen(this)
449
+ // return co(gen)
450
+ // }
451
+ // }
452
+ // }
453
+ // }
454
+ },
455
+ theme(){
456
+ // var elementList = document.querySelectorAll('body');
457
+ // console.log(elementList)
458
+ // document.querySelectorAll('body')[0].className='themeTwo'
459
+ // var elementList = document.querySelectorAll('body');
460
+ // console.log(elementList)
461
+ },
462
+ onReady () {
463
+ this.$emit('ready')
464
+ },
465
+ confirm (key) {
466
+ this.login_do=!this.login_do
467
+ // return
468
+ if (key == 'key') {
469
+ $('form').fadeOut(500)
470
+ }
471
+ this.login = true
472
+ // let gen = saveGen(this)
473
+ // return co(gen)
474
+ if((!this.otherLogin) && this.$login && this.$login.Verification){
475
+ console.log('跳转过来的不走验证')
476
+ if(this.picLyanzhengma == '') {
477
+ this.$showMessage("请输入验证码!").then(()=>{
478
+ this.login = false
479
+ $('form').fadeIn(500)
480
+ this.createCode()
481
+ })
482
+ }else if(this.picLyanzhengma.toUpperCase() != this.checkCode ) {
483
+ //若输入的验证码与产生的验证码不一致时
484
+ this.$showMessage("验证码不正确").then(()=>{
485
+ this.login = false
486
+ $('form').fadeIn(500)
487
+ this.createCode();//刷新验证码
488
+ this.picLyanzhengma = '';
489
+ })
490
+ }else {
491
+ this.login = true
492
+ let gen = saveGen(this)
493
+ return co(gen)
494
+ }
495
+ }else {
496
+ this.login = true
497
+ let gen = saveGen(this)
498
+ return co(gen)
499
+ }
500
+ },
501
+ createCode(){
502
+ let code = "";
503
+ let codeLength = 4;//验证码的长度
504
+ let random = new Array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R',
505
+ 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z');//随机数
506
+ for (let i = 0; i < codeLength; i++) {
507
+ //循环操作
508
+ let index = Math.floor(Math.random() * 36);//取得随机数的索引(0~35)
509
+ code += random[index];//根据索引取得随机数加到code上
510
+ }
511
+ this.checkCode = code;//把code值赋给验证码
512
+ },
513
+
514
+ async depPromptConfirm () {
515
+ this.depPromptShow = false
516
+ return this.$goto('home-page', {functions: this.$login.f,config: this.config})
517
+ },
518
+
519
+ depPromptCancel () {
520
+ this.depPromptShow = false
521
+ this.createCode()
522
+ this.picLyanzhengma = ''
523
+ this.model.ename = ''
524
+ this.model.password = ''
525
+ this.login = false
526
+ $('form').fadeIn(500)
527
+ },
528
+ delCookie() {
529
+ let cookies = document.cookie.split(";");
530
+ console.log("点击触发了")
531
+ for (let i = 0; i < cookies.length; i++) {
532
+ let cookie = cookies[i];
533
+ let eqPos = cookie.indexOf("=");
534
+ let name = eqPos > -1 ? cookie.substr(0, eqPos) : cookie;
535
+ document.cookie =
536
+ name + "=;expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/";
537
+ }
538
+ if (cookies.length > 0) {
539
+ for (let i = 0; i < cookies.length; i++) {
540
+ let cookie = cookies[i];
541
+ let eqPos = cookie.indexOf("=");
542
+ let name = eqPos > -1 ? cookie.substr(0, eqPos) : cookie;
543
+ let domain = location.host.substr(location.host.indexOf("."));
544
+ document.cookie =
545
+ name +
546
+ "=;expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; domain=" +
547
+ domain;
548
+ }
549
+ }
550
+ localStorage.clear()
551
+ sessionStorage.clear()
552
+ window.location.reload()
553
+ }
554
+
555
+ },
556
+ watch: {
557
+ 'modifyPwShow' (val){
558
+ if (!val) {
559
+ window.location.reload()
560
+ }
561
+ }
562
+ }
563
+ }
564
+ </script>
565
+
566
+ <style>
567
+ .my_button_search{width: 100px; height: 25px;position: relative; padding-left:2px;top: 0px;line-height: 25px; background:rgba(0,0,0,0); border-radius: 4px; border:none; font-family: PingFang; font-size: 15px}
568
+ .my_button_search:hover img{ filter: opacity(0.8);}
569
+ .loginmain-img{
570
+ margin: 8% 23% 6% 23%;
571
+ width: 54%;
572
+ height: 58%;
573
+ border-radius: 30px;
574
+ text-align: center;
575
+ }
576
+ </style>
@@ -0,0 +1,5 @@
1
+ // 分公司特殊组件页面注册
2
+
3
+ exports.specialComp = {
4
+ 'login': (resolve) => require(['./Login'], resolve)
5
+ }
@@ -174,6 +174,7 @@
174
174
  console.log('登录配置', self.config)
175
175
  if (self.config.isMac) {
176
176
  // 获取该登录人分公司下的mac配置
177
+ // todo v4
177
178
  let getMacs = yield self.$resetpost('rs/sql/equipmentQuery', {data: {condition: `f_filialeids like '%${self.$login.f.f_orgids}%'`}}, {
178
179
  resolveMsg: null,
179
180
  rejectMsg: null
@@ -259,7 +260,7 @@
259
260
  this.vTime = this.format(new Date(window.versionTime));
260
261
  try{
261
262
  let http = new HttpResetClass()
262
- let res = await http.load('POST', 'rs/sql/singleTable',
263
+ let res = await http.load('POST', 'api/af-system/sql/singleTable',
263
264
  {data:{
264
265
  tablename: 't_changedeclare',
265
266
  condition: ` f_type ='变更通知' `
@@ -359,7 +360,7 @@
359
360
  } else {
360
361
  condition =` f_orderstate is null and (f_address in( select f_address from t_user_address where f_slice_area='柠条塔') or f_address like '%柠条塔%') `
361
362
  }
362
- await http.load('POST', '/rs/sql/singleTable', {data: {
363
+ await http.load('POST', '/api/af-system/sql/singleTable', {data: {
363
364
  tablename:'t_order_center',
364
365
  condition:condition
365
366
  }}, {
@@ -435,6 +436,7 @@
435
436
  if (this.config.distanceLogin) {
436
437
  if (this.$login && this.$login.getUrlParames('name') ) {
437
438
  let ename = this.$login.getUrlParames('name');
439
+ // todo v4
438
440
  let logininfo = await this.$resetpost('rs/logic/getLoginData',{data:{ename:ename}},{resolveMsg: null, rejectMsg: null});
439
441
  if(logininfo.data){
440
442
  if(logininfo.data.ename && logininfo.data.password){
@@ -178,6 +178,7 @@ let saveGen = function *(self) {
178
178
  console.log('登录配置', self.config)
179
179
  if (self.config.isMac) {
180
180
  // 获取该登录人分公司下的mac配置
181
+ // todo v4
181
182
  let getMacs = yield self.$resetpost('rs/sql/equipmentQuery', {data: {condition: `f_filialeids like '%${self.$login.f.f_orgids}%'`}}, {
182
183
  resolveMsg: null,
183
184
  rejectMsg: null
@@ -266,7 +267,7 @@ export default {
266
267
  this.vTime = this.format(new Date(window.versionTime));
267
268
  try{
268
269
  let http = new HttpResetClass()
269
- let res = await http.load('POST', 'rs/sql/singleTable',
270
+ let res = await http.load('POST', 'api/af-system/sql/singleTable',
270
271
  {data:{
271
272
  tablename: 't_changedeclare',
272
273
  condition: ` f_type ='变更通知' `
@@ -366,7 +367,7 @@ export default {
366
367
  } else {
367
368
  condition =` f_orderstate is null and (f_address in( select f_address from t_user_address where f_slice_area='柠条塔') or f_address like '%柠条塔%') `
368
369
  }
369
- await http.load('POST', '/rs/sql/singleTable', {data: {
370
+ await http.load('POST', '/api/af-system/sql/singleTable', {data: {
370
371
  tablename:'t_order_center',
371
372
  condition:condition
372
373
  }}, {
@@ -442,6 +443,7 @@ export default {
442
443
  if (this.config.distanceLogin) {
443
444
  if (this.$login && this.$login.getUrlParames('name') ) {
444
445
  let ename = this.$login.getUrlParames('name');
446
+ // todo v4
445
447
  let logininfo = await this.$resetpost('rs/logic/getLoginData',{data:{ename:ename}},{resolveMsg: null, rejectMsg: null});
446
448
  if(logininfo.data){
447
449
  if(logininfo.data.ename && logininfo.data.password){
@@ -171,6 +171,7 @@ let saveGen = function *(self) {
171
171
  console.log('登录配置', self.config)
172
172
  if (self.config.isMac) {
173
173
  // 获取该登录人分公司下的mac配置
174
+ // todo v4
174
175
  let getMacs = yield self.$resetpost('rs/sql/equipmentQuery', {data: {condition: `f_filialeids like '%${self.$login.f.f_orgids}%'`}}, {
175
176
  resolveMsg: null,
176
177
  rejectMsg: null
@@ -257,7 +258,7 @@ export default {
257
258
  this.titleShow = this.$appdata.getSingleValue('关于我们')
258
259
  try{
259
260
  let http = new HttpResetClass()
260
- let res = await http.load('POST', 'rs/sql/singleTable',
261
+ let res = await http.load('POST', 'api/af-system/sql/singleTable',
261
262
  {data:{
262
263
  tablename: 't_changedeclare',
263
264
  condition: ` f_type ='变更通知' `
@@ -371,7 +372,7 @@ export default {
371
372
  } else {
372
373
  condition =` f_orderstate is null and (f_address in( select f_address from t_user_address where f_slice_area='柠条塔') or f_address like '%柠条塔%') `
373
374
  }
374
- await http.load('POST', '/rs/sql/singleTable', {data: {
375
+ await http.load('POST', '/api/af-system/sql/singleTable', {data: {
375
376
  tablename:'t_order_center',
376
377
  condition:condition
377
378
  }}, {
@@ -447,6 +448,7 @@ export default {
447
448
  if (this.config.distanceLogin) {
448
449
  if (this.$login && this.$login.getUrlParames('name') ) {
449
450
  let ename = this.$login.getUrlParames('name');
451
+ // todo v4
450
452
  let logininfo = await this.$resetpost('rs/logic/getLoginData',{data:{ename:ename}},{resolveMsg: null, rejectMsg: null});
451
453
  if(logininfo.data){
452
454
  if(logininfo.data.ename && logininfo.data.password){