system-clients 3.3.2 → 3.3.3-v3

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 (58) hide show
  1. package/package.info +1 -0
  2. package/package.json +105 -105
  3. package/src/LodopFuncs.js +71 -103
  4. package/src/components/Main.vue +923 -935
  5. package/src/components/Util.js +15 -0
  6. package/src/components/equipment/PcAdd.vue +1 -1
  7. package/src/components/equipment/PcList.vue +3 -3
  8. package/src/components/equipment/PhoneAdd.vue +1 -1
  9. package/src/components/equipment/PhoneList.vue +2 -2
  10. package/src/components/equipment/PosAdd.vue +11 -7
  11. package/src/components/equipment/PosList.vue +5 -3
  12. package/src/components/equipment/PosManage.vue +1 -1
  13. package/src/components/equipment/PosParamAdd.vue +2 -2
  14. package/src/components/equipment/PosParamList.vue +2 -2
  15. package/src/components/materialManage/materialList.vue +1 -1
  16. package/src/components/parammanage/ParamPage.vue +12 -12
  17. package/src/components/parammanage/ParamPages.vue +2 -2
  18. package/src/components/parammanage/SinglePage.vue +8 -8
  19. package/src/components/parammanage/SinglePages.vue +2 -2
  20. package/src/components/server/AddChangeMsg.vue +1 -1
  21. package/src/components/server/ChangeDeclare.vue +1 -1
  22. package/src/components/server/Login.vue +558 -575
  23. package/src/components/server/ModifyPw.vue +0 -1
  24. package/src/components/server/PcdBuildingSelect.vue +6 -8
  25. package/src/components/server/ResSelect.vue +0 -3
  26. package/src/components/server/ResSelectGroup.vue +1 -1
  27. package/src/components/server/RoleSelector.vue +2 -3
  28. package/src/components/server/TestResSelectGroup.vue +1 -1
  29. package/src/filiale/baole/Login.vue +23 -21
  30. package/src/filiale/chengtou/Login.vue +23 -21
  31. package/src/filiale/dongguan/Login.vue +23 -21
  32. package/src/filiale/dongguan/Main.vue +3 -5
  33. package/src/filiale/furuike/Login.vue +24 -24
  34. package/src/filiale/furuike/Main.vue +26 -39
  35. package/src/filiale/gehua/Main.vue +3 -5
  36. package/src/filiale/konggang/Login.vue +23 -21
  37. package/src/filiale/qianneng/Login.vue +23 -21
  38. package/src/filiale/qianneng/Main.vue +3 -5
  39. package/src/filiale/qianneng/ModifyPw.vue +0 -1
  40. package/src/filiale/rizhao/Login.vue +22 -20
  41. package/src/filiale/rizhao/Main.vue +3 -3
  42. package/src/filiale/shiquan/Login.vue +23 -21
  43. package/src/filiale/tianyi/Login.vue +23 -21
  44. package/src/filiale/tongchuan/Login.vue +23 -21
  45. package/src/filiale/tongchuan/Main.vue +6 -8
  46. package/src/filiale/weinan/Main.vue +6 -7
  47. package/src/filiale/wenxi/Login.vue +23 -21
  48. package/src/filiale/wenxi/Main.vue +3 -5
  49. package/src/filiale/wuhai/Main.vue +3 -6
  50. package/src/filiale/yuchuan/Login.vue +24 -22
  51. package/src/filiale/yuchuan/Main.vue +3 -5
  52. package/src/filiale/zhoukou/Main.vue +3 -5
  53. package/src/plugins/EncryptUtil.js +1 -1
  54. package/src/plugins/GetLoginInfoService.js +85 -20
  55. package/src/stores/AppData.js +1 -1
  56. package/build.gradle +0 -6
  57. package/src/filiale/ruihua/Login.vue +0 -549
  58. package/src/filiale/ruihua/system.js +0 -5
@@ -148,6 +148,7 @@ import co from 'co'
148
148
  import $ from 'jquery'
149
149
  import Vue from 'vue'
150
150
  import {HttpResetClass} from 'vue-client'
151
+ import {isPasswordModificationExpired} from '../../components/Util'
151
152
 
152
153
  let daibanJson = require('../../util/Daiban.json')
153
154
 
@@ -178,7 +179,6 @@ let saveGen = function *(self) {
178
179
  console.log('登录配置', self.config)
179
180
  if (self.config.isMac) {
180
181
  // 获取该登录人分公司下的mac配置
181
- // todo v4
182
182
  let getMacs = yield self.$resetpost('rs/sql/equipmentQuery', {data: {condition: `f_filialeids like '%${self.$login.f.f_orgids}%'`}}, {
183
183
  resolveMsg: null,
184
184
  rejectMsg: null
@@ -208,12 +208,15 @@ let saveGen = function *(self) {
208
208
  }
209
209
  }
210
210
  console.log(self.$login.depPrompt)
211
- // 弱口令验证
212
- //跳转过来的不进行验证
213
- if ((!self.otherLogin) && self.config.weakPassword && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
211
+ // 弱口令验证(默认开启,跳转过来的不进行验证)
212
+ if ((!self.otherLogin) && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
214
213
  self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
215
214
  self.modifyPwShow = true
216
215
  })
216
+ } else if ((!self.otherLogin) && isPasswordModificationExpired(self.$login.f.f_last_modification_time)) {
217
+ self.$showMessage('登录系统: 您的密码已超过两个半月未修改,请修改密码后重新登录!!!', ['confirm']).then((res) => {
218
+ self.modifyPwShow = true
219
+ })
217
220
  } else if ((!self.otherLogin) && self.$login.depPrompt) {
218
221
  self.depPromptShow = true
219
222
  if (self.$login.showDaiBan && self.$login.r.includes('展示预约信息')){
@@ -239,6 +242,8 @@ let saveGen = function *(self) {
239
242
 
240
243
  } catch (ret) {
241
244
  console.error('登录失败', ret)
245
+ self.$login.s = null
246
+ self.$login['v3-session-key'] = null
242
247
  let msg
243
248
  if (ret instanceof Error) {
244
249
  msg = ret
@@ -265,19 +270,19 @@ export default {
265
270
  this.titleShow = this.$appdata.getSingleValue('关于我们')
266
271
  window.versionTime = window.versionTime ? window.versionTime : new Date().getTime()
267
272
  this.vTime = this.format(new Date(window.versionTime));
268
- try{
269
- let http = new HttpResetClass()
270
- let res = await http.load('POST', 'api/af-system/sql/singleTable',
271
- {data:{
272
- tablename: 't_changedeclare',
273
- condition: ` f_type ='变更通知' `
274
- }
275
- }, {resolveMsg: null, rejectMsg: null})
276
- if(res.data.length>0){
277
- console.log("---------------获取通知",res.data[0].f_change_message)
278
- this.notice=res.data[0].f_change_message
279
- }
280
- }catch(e){}
273
+ // try{
274
+ // let http = new HttpResetClass()
275
+ // let res = await http.load('POST', 'rs/sql/singleTable',
276
+ // {data:{
277
+ // tablename: 't_changedeclare',
278
+ // condition: ` f_type ='变更通知' `
279
+ // }
280
+ // }, {resolveMsg: null, rejectMsg: null})
281
+ // if(res.data.length>0){
282
+ // console.log("---------------获取通知",res.data[0].f_change_message)
283
+ // this.notice=res.data[0].f_change_message
284
+ // }
285
+ // }catch(e){}
281
286
 
282
287
  this.loginother();
283
288
  $('#login-button').click(function (event) {
@@ -286,10 +291,8 @@ export default {
286
291
  })
287
292
  if (window.location.search && window.location.search.indexOf('af_key') !== -1&& window.location.search.indexOf('af_n') !== -1) {
288
293
  const subUrl = window.location.search.replace('?af_key=','').split('&af_n=')
289
- console.log(subUrl)
290
294
  this.model.ename = window.atob(subUrl[0])
291
295
  this.model.password = window.atob(subUrl[1])
292
- console.log('this.model.ename',this.model.ename)
293
296
  this.otherLogin = true
294
297
  this.confirm()
295
298
  }else{
@@ -367,7 +370,7 @@ export default {
367
370
  } else {
368
371
  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
372
  }
370
- await http.load('POST', '/api/af-system/sql/singleTable', {data: {
373
+ await http.load('POST', '/rs/sql/singleTable', {data: {
371
374
  tablename:'t_order_center',
372
375
  condition:condition
373
376
  }}, {
@@ -443,7 +446,6 @@ export default {
443
446
  if (this.config.distanceLogin) {
444
447
  if (this.$login && this.$login.getUrlParames('name') ) {
445
448
  let ename = this.$login.getUrlParames('name');
446
- // todo v4
447
449
  let logininfo = await this.$resetpost('rs/logic/getLoginData',{data:{ename:ename}},{resolveMsg: null, rejectMsg: null});
448
450
  if(logininfo.data){
449
451
  if(logininfo.data.ename && logininfo.data.password){
@@ -141,6 +141,7 @@ import co from 'co'
141
141
  import $ from 'jquery'
142
142
  import Vue from 'vue'
143
143
  import {HttpResetClass} from 'vue-client'
144
+ import {isPasswordModificationExpired} from '../../components/Util'
144
145
 
145
146
  let daibanJson = require('../../util/Daiban.json')
146
147
 
@@ -171,7 +172,6 @@ let saveGen = function *(self) {
171
172
  console.log('登录配置', self.config)
172
173
  if (self.config.isMac) {
173
174
  // 获取该登录人分公司下的mac配置
174
- // todo v4
175
175
  let getMacs = yield self.$resetpost('rs/sql/equipmentQuery', {data: {condition: `f_filialeids like '%${self.$login.f.f_orgids}%'`}}, {
176
176
  resolveMsg: null,
177
177
  rejectMsg: null
@@ -201,12 +201,15 @@ let saveGen = function *(self) {
201
201
  }
202
202
  }
203
203
  console.log(self.$login.depPrompt)
204
- // 弱口令验证
205
- //跳转过来的不进行验证
206
- if ((!self.otherLogin) && self.config.weakPassword && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
204
+ // 弱口令验证(默认开启,跳转过来的不进行验证)
205
+ if ((!self.otherLogin) && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
207
206
  self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
208
207
  self.modifyPwShow = true
209
208
  })
209
+ } else if ((!self.otherLogin) && isPasswordModificationExpired(self.$login.f.f_last_modification_time)) {
210
+ self.$showMessage('登录系统: 您的密码已超过两个半月未修改,请修改密码后重新登录!!!', ['confirm']).then((res) => {
211
+ self.modifyPwShow = true
212
+ })
210
213
  } else if ((!self.otherLogin) && self.$login.depPrompt) {
211
214
  self.depPromptShow = true
212
215
  if (self.$login.showDaiBan && self.$login.r.includes('展示预约信息')){
@@ -232,6 +235,8 @@ let saveGen = function *(self) {
232
235
 
233
236
  } catch (ret) {
234
237
  console.error('登录失败', ret)
238
+ self.$login.s = null
239
+ self.$login['v3-session-key'] = null
235
240
  let msg
236
241
  if (ret instanceof Error) {
237
242
  msg = ret
@@ -256,19 +261,19 @@ export default {
256
261
  title: '登录',
257
262
  async ready () {
258
263
  this.titleShow = this.$appdata.getSingleValue('关于我们')
259
- try{
260
- let http = new HttpResetClass()
261
- let res = await http.load('POST', 'api/af-system/sql/singleTable',
262
- {data:{
263
- tablename: 't_changedeclare',
264
- condition: ` f_type ='变更通知' `
265
- }
266
- }, {resolveMsg: null, rejectMsg: null})
267
- if(res.data.length>0){
268
- console.log("---------------获取通知",res.data[0].f_change_message)
269
- this.notice=res.data[0].f_change_message
270
- }
271
- }catch(e){}
264
+ // try{
265
+ // let http = new HttpResetClass()
266
+ // let res = await http.load('POST', 'rs/sql/singleTable',
267
+ // {data:{
268
+ // tablename: 't_changedeclare',
269
+ // condition: ` f_type ='变更通知' `
270
+ // }
271
+ // }, {resolveMsg: null, rejectMsg: null})
272
+ // if(res.data.length>0){
273
+ // console.log("---------------获取通知",res.data[0].f_change_message)
274
+ // this.notice=res.data[0].f_change_message
275
+ // }
276
+ // }catch(e){}
272
277
 
273
278
  this.loginother();
274
279
  $('#login-button').click(function (event) {
@@ -277,10 +282,8 @@ export default {
277
282
  })
278
283
  if (window.location.search && window.location.search.indexOf('af_key') !== -1&& window.location.search.indexOf('af_n') !== -1) {
279
284
  const subUrl = window.location.search.replace('?af_key=','').split('&af_n=')
280
- console.log(subUrl)
281
285
  this.model.ename = window.atob(subUrl[0])
282
286
  this.model.password = window.atob(subUrl[1])
283
- console.log('this.model.ename',this.model.ename)
284
287
  this.otherLogin = true
285
288
  this.confirm()
286
289
  }else{
@@ -372,7 +375,7 @@ export default {
372
375
  } else {
373
376
  condition =` f_orderstate is null and (f_address in( select f_address from t_user_address where f_slice_area='柠条塔') or f_address like '%柠条塔%') `
374
377
  }
375
- await http.load('POST', '/api/af-system/sql/singleTable', {data: {
378
+ await http.load('POST', '/rs/sql/singleTable', {data: {
376
379
  tablename:'t_order_center',
377
380
  condition:condition
378
381
  }}, {
@@ -448,7 +451,6 @@ export default {
448
451
  if (this.config.distanceLogin) {
449
452
  if (this.$login && this.$login.getUrlParames('name') ) {
450
453
  let ename = this.$login.getUrlParames('name');
451
- // todo v4
452
454
  let logininfo = await this.$resetpost('rs/logic/getLoginData',{data:{ename:ename}},{resolveMsg: null, rejectMsg: null});
453
455
  if(logininfo.data){
454
456
  if(logininfo.data.ename && logininfo.data.password){
@@ -212,8 +212,7 @@ let getwartermakr = async function (self) {
212
212
  tablename: 't_singlevalue',
213
213
  condition: " 1=1 and name=\'水印内容\'"
214
214
  };
215
- // todo v4
216
- let result = await self.$resetpost('api/af-revenue/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
215
+ let result = await self.$resetpost('rs/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
217
216
  if (result && result.data.length > 0) {
218
217
  self.showwatermakeflag = true;
219
218
  createWaterMark(`${result.data[0].value}${self.$login.f.ename}`);
@@ -377,7 +376,6 @@ let createWaterMark = function (userName) {
377
376
  this.model.f_stopgas_id = this.notices.id
378
377
  this.model.f_user_id = this.$login.f.id
379
378
  console.log('保存', this.model)
380
- // todo v4
381
379
  this.$resetpost('rs/logic/savenoticenotarize', this.model, {resolveMsg: '保存成功', rejectMsg: '保存失败'}).then((res) => {
382
380
  this.model.f_stopgas_id = ''
383
381
  this.model.f_user_id = ''
@@ -495,7 +493,7 @@ let createWaterMark = function (userName) {
495
493
  this.OrderDaiBan = ''
496
494
  this.AppDaiBan = ''
497
495
  let http = new HttpResetClass()
498
- await http.load('POST', '/api/af-system/sql/singleTable', {data: {
496
+ await http.load('POST', '/rs/sql/singleTable', {data: {
499
497
  tablename:'t_order_center',
500
498
  condition:` (f_orderstate != '预约成功' and f_orgstr ='${this.$login.f.orgid}' and f_orderstate != '预约失败' ) or f_orderstate is null`
501
499
  }}, {
@@ -543,7 +541,7 @@ let createWaterMark = function (userName) {
543
541
  async getExpireDate(){
544
542
  // 获取分公司的表品牌id
545
543
  let http = new HttpResetClass()
546
- await http.load('POST', '/api/af-system/sql/singleTable', {data: {
544
+ await http.load('POST', '/rs/sql/singleTable', {data: {
547
545
  tablename:'t_gasbrand_orgid',
548
546
  condition:`f_using_orgid ='${this.$login.f.orgid}'`
549
547
  }}, {
@@ -557,7 +555,7 @@ let createWaterMark = function (userName) {
557
555
  }
558
556
  if (this.gasbrandIdData.length > 0) {
559
557
  // 获取卡表到期时间
560
- http.load('POST', '/api/af-system/sql/singleTable', {data: {
558
+ http.load('POST', '/rs/sql/singleTable', {data: {
561
559
  tablename:'t_gasbrand',
562
560
  condition:`id in (${this.gasbrandIdData}) and f_meter_type like '%卡表%'`
563
561
  }}, {
@@ -568,6 +566,7 @@ let createWaterMark = function (userName) {
568
566
  res.data.forEach(itre => {
569
567
  let band = null
570
568
  if ('f_dynamic_expire' in itre) {
569
+ console.log(itre.f_dynamic_expire)
571
570
  if (itre.f_dynamic_expire !== null && itre.f_dynamic_expire !== '') {
572
571
  let todayold = new Date(itre.f_dynamic_expire)
573
572
  todayold.setDate(todayold.getDate() - parseInt(this.$appdata.getSingleValue('动态库提醒天数设置')))
@@ -618,7 +617,7 @@ let createWaterMark = function (userName) {
618
617
  }
619
618
  },
620
619
  openUrl() {
621
- var url = `http://123.60.214.109:8406/submitTicket?contact=${this.$login.f.name}&orgName=${this.$login.f.orgs}&phone=${this.$login.f.f_user_telephone}`
620
+ var url = `https://liuli.aofengcloud.com:31467`
622
621
  window.open(url, '_blank')
623
622
  },
624
623
  hindsetting() {
@@ -697,7 +696,6 @@ let createWaterMark = function (userName) {
697
696
  username: this.$login.f.name,
698
697
  usertelephone: this.$login.f.f_user_telephone
699
698
  }
700
- // todo v4
701
699
  await this.$resetpost('rs/logic/logOut', data, {resolveMsg: '退出成功', rejectMsg: null})
702
700
  window.location.reload()
703
701
  }
@@ -189,8 +189,7 @@ let getwartermakr = async function (self) {
189
189
  tablename: 't_singlevalue',
190
190
  condition: " 1=1 and name=\'水印内容\'"
191
191
  };
192
- // todo v4
193
- let result = await self.$resetpost('api/af-revenue/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
192
+ let result = await self.$resetpost('rs/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
194
193
  if (result && result.data.length > 0) {
195
194
  self.showwatermakeflag = true;
196
195
  createWaterMark(`${result.data[0].value}${self.$login.f.ename}`);
@@ -398,7 +397,7 @@ export default {
398
397
  this.OrderDaiBan = ''
399
398
  this.AppDaiBan = ''
400
399
  let http = new HttpResetClass()
401
- await http.load('POST', '/api/af-system/sql/singleTable', {data: {
400
+ await http.load('POST', '/rs/sql/singleTable', {data: {
402
401
  tablename:'t_order_center',
403
402
  condition:` (f_orderstate != '预约成功' and f_orgstr ='${this.$login.f.orgid}' and f_orderstate != '预约失败' ) or f_orderstate is null`
404
403
  }}, {
@@ -446,7 +445,7 @@ export default {
446
445
  async getExpireDate(){
447
446
  // 获取分公司的表品牌id
448
447
  let http = new HttpResetClass()
449
- await http.load('POST', '/api/af-system/sql/singleTable', {data: {
448
+ await http.load('POST', '/rs/sql/singleTable', {data: {
450
449
  tablename:'t_gasbrand_orgid',
451
450
  condition:`f_using_orgid ='${this.$login.f.orgid}'`
452
451
  }}, {
@@ -460,7 +459,7 @@ export default {
460
459
  }
461
460
  if (this.gasbrandIdData.length > 0) {
462
461
  // 获取卡表到期时间
463
- http.load('POST', '/api/af-system/sql/singleTable', {data: {
462
+ http.load('POST', '/rs/sql/singleTable', {data: {
464
463
  tablename:'t_gasbrand',
465
464
  condition:`id in (${this.gasbrandIdData}) and f_meter_type like '%卡表%'`
466
465
  }}, {
@@ -471,6 +470,7 @@ export default {
471
470
  res.data.forEach(itre => {
472
471
  let band = null
473
472
  if ('f_dynamic_expire' in itre) {
473
+ console.log(itre.f_dynamic_expire)
474
474
  if (itre.f_dynamic_expire !== null && itre.f_dynamic_expire !== '') {
475
475
  let todayold = new Date(itre.f_dynamic_expire)
476
476
  todayold.setDate(todayold.getDate() - parseInt(this.$appdata.getSingleValue('动态库提醒天数设置')))
@@ -521,7 +521,7 @@ export default {
521
521
  }
522
522
  },
523
523
  openUrl() {
524
- var url = `http://172.168.1.13:9999/submitTicket?contact=${this.$login.f.name}&orgName=${this.$login.f.orgs}&phone=${this.$login.f.f_user_telephone}`
524
+ var url = `https://liuli.aofengcloud.com:31467`
525
525
  window.open(url, '_blank')
526
526
  },
527
527
  hindsetting() {
@@ -600,7 +600,6 @@ export default {
600
600
  username: this.$login.f.name,
601
601
  usertelephone: this.$login.f.f_user_telephone
602
602
  }
603
- // todo v4
604
603
  await this.$resetpost('rs/logic/logOut', data, {resolveMsg: '退出成功', rejectMsg: null})
605
604
  window.location.reload()
606
605
  }
@@ -141,6 +141,7 @@ import co from 'co'
141
141
  import $ from 'jquery'
142
142
  import Vue from 'vue'
143
143
  import {HttpResetClass} from 'vue-client'
144
+ import {isPasswordModificationExpired} from '../../components/Util'
144
145
 
145
146
  let daibanJson = require('../../util/Daiban.json')
146
147
 
@@ -171,7 +172,6 @@ let saveGen = function *(self) {
171
172
  console.log('登录配置', self.config)
172
173
  if (self.config.isMac) {
173
174
  // 获取该登录人分公司下的mac配置
174
- // todo v4
175
175
  let getMacs = yield self.$resetpost('rs/sql/equipmentQuery', {data: {condition: `f_filialeids like '%${self.$login.f.f_orgids}%'`}}, {
176
176
  resolveMsg: null,
177
177
  rejectMsg: null
@@ -201,12 +201,15 @@ let saveGen = function *(self) {
201
201
  }
202
202
  }
203
203
  console.log(self.$login.depPrompt)
204
- // 弱口令验证
205
- //跳转过来的不进行验证
206
- if ((!self.otherLogin) && self.config.weakPassword && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
204
+ // 弱口令验证(默认开启,跳转过来的不进行验证)
205
+ if ((!self.otherLogin) && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
207
206
  self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
208
207
  self.modifyPwShow = true
209
208
  })
209
+ } else if ((!self.otherLogin) && isPasswordModificationExpired(self.$login.f.f_last_modification_time)) {
210
+ self.$showMessage('登录系统: 您的密码已超过两个半月未修改,请修改密码后重新登录!!!', ['confirm']).then((res) => {
211
+ self.modifyPwShow = true
212
+ })
210
213
  } else if ((!self.otherLogin) && self.$login.depPrompt) {
211
214
  self.depPromptShow = true
212
215
  if (self.$login.showDaiBan && self.$login.r.includes('展示预约信息')){
@@ -232,6 +235,8 @@ let saveGen = function *(self) {
232
235
 
233
236
  } catch (ret) {
234
237
  console.error('登录失败', ret)
238
+ self.$login.s = null
239
+ self.$login['v3-session-key'] = null
235
240
  let msg
236
241
  if (ret instanceof Error) {
237
242
  msg = ret
@@ -258,19 +263,19 @@ export default {
258
263
  this.titleShow = this.$appdata.getSingleValue('关于我们')
259
264
  window.versionTime = window.versionTime ? window.versionTime : new Date().getTime()
260
265
  this.vTime = this.format(new Date(window.versionTime));
261
- try{
262
- let http = new HttpResetClass()
263
- let res = await http.load('POST', 'api/af-system/sql/singleTable',
264
- {data:{
265
- tablename: 't_changedeclare',
266
- condition: ` f_type ='变更通知' `
267
- }
268
- }, {resolveMsg: null, rejectMsg: null})
269
- if(res.data.length>0){
270
- console.log("---------------获取通知",res.data[0].f_change_message)
271
- this.notice=res.data[0].f_change_message
272
- }
273
- }catch(e){}
266
+ // try{
267
+ // let http = new HttpResetClass()
268
+ // let res = await http.load('POST', 'rs/sql/singleTable',
269
+ // {data:{
270
+ // tablename: 't_changedeclare',
271
+ // condition: ` f_type ='变更通知' `
272
+ // }
273
+ // }, {resolveMsg: null, rejectMsg: null})
274
+ // if(res.data.length>0){
275
+ // console.log("---------------获取通知",res.data[0].f_change_message)
276
+ // this.notice=res.data[0].f_change_message
277
+ // }
278
+ // }catch(e){}
274
279
 
275
280
  this.loginother();
276
281
  $('#login-button').click(function (event) {
@@ -279,10 +284,8 @@ export default {
279
284
  })
280
285
  if (window.location.search && window.location.search.indexOf('af_key') !== -1&& window.location.search.indexOf('af_n') !== -1) {
281
286
  const subUrl = window.location.search.replace('?af_key=','').split('&af_n=')
282
- console.log(subUrl)
283
287
  this.model.ename = window.atob(subUrl[0])
284
288
  this.model.password = window.atob(subUrl[1])
285
- console.log('this.model.ename',this.model.ename)
286
289
  this.otherLogin = true
287
290
  this.confirm()
288
291
  }else{
@@ -360,7 +363,7 @@ export default {
360
363
  } else {
361
364
  condition =` f_orderstate is null and (f_address in( select f_address from t_user_address where f_slice_area='柠条塔') or f_address like '%柠条塔%') `
362
365
  }
363
- await http.load('POST', '/api/af-system/sql/singleTable', {data: {
366
+ await http.load('POST', '/rs/sql/singleTable', {data: {
364
367
  tablename:'t_order_center',
365
368
  condition:condition
366
369
  }}, {
@@ -436,7 +439,6 @@ export default {
436
439
  if (this.config.distanceLogin) {
437
440
  if (this.$login && this.$login.getUrlParames('name') ) {
438
441
  let ename = this.$login.getUrlParames('name');
439
- // todo v4
440
442
  let logininfo = await this.$resetpost('rs/logic/getLoginData',{data:{ename:ename}},{resolveMsg: null, rejectMsg: null});
441
443
  if(logininfo.data){
442
444
  if(logininfo.data.ename && logininfo.data.password){
@@ -165,8 +165,7 @@ let getwartermakr = async function (self) {
165
165
  tablename: 't_singlevalue',
166
166
  condition: " 1=1 and name=\'水印内容\'"
167
167
  };
168
- // todo v4
169
- let result = await self.$resetpost('api/af-revenue/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
168
+ let result = await self.$resetpost('rs/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
170
169
  if (result && result.data.length > 0) {
171
170
  self.showwatermakeflag = true;
172
171
  createWaterMark(`${result.data[0].value}${self.$login.f.ename}`);
@@ -312,7 +311,7 @@ export default {
312
311
  this.OrderDaiBan = ''
313
312
  this.AppDaiBan = ''
314
313
  let http = new HttpResetClass()
315
- await http.load('POST', '/api/af-system/sql/singleTable', {data: {
314
+ await http.load('POST', '/rs/sql/singleTable', {data: {
316
315
  tablename:'t_order_center',
317
316
  condition:` (f_orderstate != '预约成功' and f_orgstr ='${this.$login.f.orgid}' and f_orderstate != '预约失败' ) or f_orderstate is null`
318
317
  }}, {
@@ -384,7 +383,7 @@ export default {
384
383
  }
385
384
  },
386
385
  openUrl() {
387
- var url = `http://123.60.214.109:8406/submitTicket?contact=${this.$login.f.name}&orgName=${this.$login.f.orgs}&phone=${this.$login.f.f_user_telephone}`
386
+ var url = `https://liuli.aofengcloud.com:31467`
388
387
  window.open(url, '_blank')
389
388
  },
390
389
  hindsetting() {
@@ -463,7 +462,6 @@ export default {
463
462
  username: this.$login.f.name,
464
463
  usertelephone: this.$login.f.f_user_telephone
465
464
  }
466
- // todo v4
467
465
  await this.$resetpost('rs/logic/logOut', data, {resolveMsg: '退出成功', rejectMsg: null})
468
466
  window.location.reload()
469
467
  }
@@ -165,8 +165,7 @@ let getwartermakr = async function (self) {
165
165
  tablename: 't_singlevalue',
166
166
  condition: " 1=1 and name=\'水印内容\'"
167
167
  };
168
- // todo v4
169
- let result = await self.$resetpost('api/af-revenue/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
168
+ let result = await self.$resetpost('rs/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
170
169
  if (result && result.data.length > 0) {
171
170
  self.showwatermakeflag = true;
172
171
  createWaterMark(`${result.data[0].value}${self.$login.f.ename}`);
@@ -317,7 +316,7 @@ export default {
317
316
  this.OrderDaiBan = ''
318
317
  this.AppDaiBan = ''
319
318
  let http = new HttpResetClass()
320
- await http.load('POST', '/api/af-system/sql/singleTable', {data: {
319
+ await http.load('POST', '/rs/sql/singleTable', {data: {
321
320
  tablename:'t_order_center',
322
321
  condition:` (f_orderstate != '预约成功' and f_orgstr ='${this.$login.f.orgid}' and f_orderstate != '预约失败' ) or f_orderstate is null`
323
322
  }}, {
@@ -389,7 +388,7 @@ export default {
389
388
  }
390
389
  },
391
390
  openUrl() {
392
- var url = `http://123.60.214.109:8406/submitTicket?contact=${this.$login.f.name}&orgName=${this.$login.f.orgs}&phone=${this.$login.f.f_user_telephone}`
391
+ var url = `https://liuli.aofengcloud.com:31467`
393
392
  window.open(url, '_blank')
394
393
  },
395
394
  hindsetting() {
@@ -468,7 +467,6 @@ export default {
468
467
  username: this.$login.f.name,
469
468
  usertelephone: this.$login.f.f_user_telephone
470
469
  }
471
- // todo v4
472
470
  await this.$resetpost('rs/logic/logOut', data, {resolveMsg: '退出成功', rejectMsg: null})
473
471
  window.location.reload()
474
472
  }
@@ -477,7 +475,6 @@ export default {
477
475
  // 微信统计投诉和咨询的条数
478
476
  async WechatOfComplaintAndConsult () {
479
477
  console.log('开始执行')
480
- // todo v4
481
478
  let WeChatData = await this.$resetpost('rs/sql/singleTable_OrderBy',{
482
479
  data:{
483
480
  items: 'f_isreply',
@@ -140,6 +140,7 @@ import co from 'co'
140
140
  import $ from 'jquery'
141
141
  import Vue from 'vue'
142
142
  import {HttpResetClass} from 'vue-client'
143
+ import {isPasswordModificationExpired} from '../../components/Util'
143
144
 
144
145
  let daibanJson = require('../../util/Daiban.json')
145
146
 
@@ -170,7 +171,6 @@ let saveGen = function *(self) {
170
171
  console.log('登录配置', self.config)
171
172
  if (self.config.isMac) {
172
173
  // 获取该登录人分公司下的mac配置
173
- // todo v4
174
174
  let getMacs = yield self.$resetpost('rs/sql/equipmentQuery', {data: {condition: `f_filialeids like '%${self.$login.f.f_orgids}%'`}}, {
175
175
  resolveMsg: null,
176
176
  rejectMsg: null
@@ -200,12 +200,15 @@ let saveGen = function *(self) {
200
200
  }
201
201
  }
202
202
  console.log(self.$login.depPrompt)
203
- // 弱口令验证
204
- //跳转过来的不进行验证
205
- if ((!self.otherLogin) && self.config.weakPassword && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
203
+ // 弱口令验证(默认开启,跳转过来的不进行验证)
204
+ if ((!self.otherLogin) && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
206
205
  self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
207
206
  self.modifyPwShow = true
208
207
  })
208
+ } else if ((!self.otherLogin) && isPasswordModificationExpired(self.$login.f.f_last_modification_time)) {
209
+ self.$showMessage('登录系统: 您的密码已超过两个半月未修改,请修改密码后重新登录!!!', ['confirm']).then((res) => {
210
+ self.modifyPwShow = true
211
+ })
209
212
  } else if ((!self.otherLogin) && self.$login.depPrompt) {
210
213
  self.depPromptShow = true
211
214
  if (self.$login.showDaiBan && self.$login.r.includes('展示预约信息')){
@@ -231,6 +234,8 @@ let saveGen = function *(self) {
231
234
 
232
235
  } catch (ret) {
233
236
  console.error('登录失败', ret)
237
+ self.$login.s = null
238
+ self.$login['v3-session-key'] = null
234
239
  let msg
235
240
  if (ret instanceof Error) {
236
241
  msg = ret
@@ -255,19 +260,19 @@ export default {
255
260
  title: '登录',
256
261
  async ready () {
257
262
  this.titleShow = this.$appdata.getSingleValue('关于我们')
258
- try{
259
- let http = new HttpResetClass()
260
- let res = await http.load('POST', 'api/af-system/sql/singleTable',
261
- {data:{
262
- tablename: 't_changedeclare',
263
- condition: ` f_type ='变更通知' `
264
- }
265
- }, {resolveMsg: null, rejectMsg: null})
266
- if(res.data.length>0){
267
- console.log("---------------获取通知",res.data[0].f_change_message)
268
- this.notice=res.data[0].f_change_message
269
- }
270
- }catch(e){}
263
+ // try{
264
+ // let http = new HttpResetClass()
265
+ // let res = await http.load('POST', 'rs/sql/singleTable',
266
+ // {data:{
267
+ // tablename: 't_changedeclare',
268
+ // condition: ` f_type ='变更通知' `
269
+ // }
270
+ // }, {resolveMsg: null, rejectMsg: null})
271
+ // if(res.data.length>0){
272
+ // console.log("---------------获取通知",res.data[0].f_change_message)
273
+ // this.notice=res.data[0].f_change_message
274
+ // }
275
+ // }catch(e){}
271
276
 
272
277
  this.loginother();
273
278
  $('#login-button').click(function (event) {
@@ -276,10 +281,8 @@ export default {
276
281
  })
277
282
  if (window.location.search && window.location.search.indexOf('af_key') !== -1&& window.location.search.indexOf('af_n') !== -1) {
278
283
  const subUrl = window.location.search.replace('?af_key=','').split('&af_n=')
279
- console.log(subUrl)
280
284
  this.model.ename = window.atob(subUrl[0])
281
285
  this.model.password = window.atob(subUrl[1])
282
- console.log('this.model.ename',this.model.ename)
283
286
  this.otherLogin = true
284
287
  this.confirm()
285
288
  }else{
@@ -303,7 +306,7 @@ export default {
303
306
  isMac: false,
304
307
  depPrompt: false,
305
308
  weakPassword: false,
306
- title: '榆林榆川客服系统',
309
+ title: '燃气客服系统',
307
310
  distanceLogin: false,
308
311
  // 那些角色可以定时获取预约提示
309
312
  isTip : false,
@@ -344,7 +347,7 @@ export default {
344
347
  } else {
345
348
  condition =` f_orderstate is null and (f_address in( select f_address from t_user_address where f_slice_area='柠条塔') or f_address like '%柠条塔%') `
346
349
  }
347
- await http.load('POST', '/api/af-system/sql/singleTable', {data: {
350
+ await http.load('POST', '/rs/sql/singleTable', {data: {
348
351
  tablename:'t_order_center',
349
352
  condition:condition
350
353
  }}, {
@@ -420,7 +423,6 @@ export default {
420
423
  if (this.config.distanceLogin) {
421
424
  if (this.$login && this.$login.getUrlParames('name') ) {
422
425
  let ename = this.$login.getUrlParames('name');
423
- // todo v4
424
426
  let logininfo = await this.$resetpost('rs/logic/getLoginData',{data:{ename:ename}},{resolveMsg: null, rejectMsg: null});
425
427
  if(logininfo.data){
426
428
  if(logininfo.data.ename && logininfo.data.password){