system-clients 3.3.3-old → 3.3.3-v3-test

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 (56) hide show
  1. package/package.info +1 -0
  2. package/package.json +105 -105
  3. package/src/components/Main.vue +910 -927
  4. package/src/components/Util.js +15 -0
  5. package/src/components/equipment/PosList.vue +2 -3
  6. package/src/components/equipment/PosParamAdd.vue +2 -3
  7. package/src/components/materialManage/materialList.vue +1 -1
  8. package/src/components/parammanage/ParamPage.vue +1 -1
  9. package/src/components/parammanage/ParamPages.vue +2 -2
  10. package/src/components/parammanage/SinglePage.vue +1 -1
  11. package/src/components/parammanage/SinglePages.vue +2 -2
  12. package/src/components/server/AddChangeMsg.vue +4 -3
  13. package/src/components/server/ChangeDeclare.vue +2 -9
  14. package/src/components/server/Login.vue +557 -589
  15. package/src/components/server/PcdBuildingSelect.vue +8 -53
  16. package/src/filiale/baole/Login.vue +33 -30
  17. package/src/filiale/chengtou/Login.vue +33 -38
  18. package/src/filiale/dongguan/Login.vue +33 -30
  19. package/src/filiale/dongguan/Main.vue +3 -10
  20. package/src/filiale/furuike/Login.vue +40 -38
  21. package/src/filiale/furuike/Main.vue +7 -17
  22. package/src/filiale/gehua/Main.vue +3 -10
  23. package/src/filiale/konggang/Login.vue +38 -43
  24. package/src/filiale/qianneng/Login.vue +38 -43
  25. package/src/filiale/qianneng/Main.vue +3 -10
  26. package/src/filiale/rizhao/Login.vue +22 -18
  27. package/src/filiale/rizhao/Main.vue +2 -6
  28. package/src/filiale/shiquan/Login.vue +38 -43
  29. package/src/filiale/tianyi/Login.vue +33 -38
  30. package/src/filiale/tongchuan/Login.vue +33 -38
  31. package/src/filiale/tongchuan/Main.vue +22 -47
  32. package/src/filiale/weinan/Main.vue +5 -18
  33. package/src/filiale/wenxi/Login.vue +38 -43
  34. package/src/filiale/wenxi/Main.vue +3 -10
  35. package/src/filiale/wuhai/Main.vue +5 -19
  36. package/src/filiale/yuchuan/Login.vue +33 -30
  37. package/src/filiale/yuchuan/Main.vue +3 -10
  38. package/src/filiale/zhoukou/Main.vue +3 -10
  39. package/src/plugins/EncryptUtil.js +1 -1
  40. package/src/plugins/GetLoginInfoService.js +10 -3
  41. package/src/stores/AppData.js +1 -0
  42. package/.gradle/7.4/checksums/checksums.lock +0 -0
  43. package/.gradle/7.4/dependencies-accessors/dependencies-accessors.lock +0 -0
  44. package/.gradle/7.4/dependencies-accessors/gc.properties +0 -0
  45. package/.gradle/7.4/executionHistory/executionHistory.bin +0 -0
  46. package/.gradle/7.4/executionHistory/executionHistory.lock +0 -0
  47. package/.gradle/7.4/fileChanges/last-build.bin +0 -0
  48. package/.gradle/7.4/fileHashes/fileHashes.bin +0 -0
  49. package/.gradle/7.4/fileHashes/fileHashes.lock +0 -0
  50. package/.gradle/7.4/gc.properties +0 -0
  51. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  52. package/.gradle/buildOutputCleanup/cache.properties +0 -2
  53. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  54. package/.gradle/file-system.probe +0 -0
  55. package/.gradle/vcs-1/gc.properties +0 -0
  56. package/build.gradle +0 -6
@@ -174,11 +174,7 @@ import co from 'co'
174
174
  import {HttpResetClass} from "vue-client";
175
175
 
176
176
  let getwartermakr = async function (self) {
177
- let param = {
178
- tablename: 't_singlevalue',
179
- condition: " 1=1 and name=\'水印内容\'"
180
- };
181
- let result = await self.$resetpost('rs/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
177
+ let result = await self.$resetpost('rs/sql/safeWatermarkQuery', {}, {resolveMsg: null, rejectMsg: null});
182
178
  if (result && result.data.length > 0) {
183
179
  self.showwatermakeflag = true;
184
180
  createWaterMark(`${result.data[0].value}${self.$login.f.ename}`);
@@ -327,10 +323,7 @@ export default {
327
323
  this.OrderDaiBan = ''
328
324
  this.AppDaiBan = ''
329
325
  let http = new HttpResetClass()
330
- await http.load('POST', '/rs/sql/singleTable', {data: {
331
- tablename:'t_order_center',
332
- condition:` (f_orderstate != '预约成功' and f_orgstr ='${this.$login.f.orgid}' and f_orderstate != '预约失败' ) or f_orderstate is null`
333
- }}, {
326
+ await http.load('POST', '/rs/sql/safeOrderCenterQueryByOrgStr', {f_orgstr: this.$login.f.orgid}, {
334
327
  resolveMsg: null,
335
328
  rejectMsg: null
336
329
  }).then((res) => {
@@ -400,12 +393,8 @@ export default {
400
393
  },
401
394
  async workorderOverRemind(){
402
395
  if(this.functions && this.functions.f_role_name && this.functions.f_role_name.indexOf('管理员') !== -1 && this.functions.f_role_name.indexOf('管理人员') == -1){
403
- let res = await new HttpResetClass().load('POST', '/rs/sql/tel_singleTable', {
404
- "data": {
405
- "items": "*",
406
- "tablename": "t_organization",
407
- "condition": `parentid = '${this.functions.orgid}'`
408
- }
396
+ let res = await new HttpResetClass().load('POST', '/rs/sql/safeOrganizationQueryByParentId', {
397
+ parentid: this.functions.orgid
409
398
  }, {resolveMsg: null, rejectMsg: null})
410
399
  const f_filialeids = [this.functions.orgid]
411
400
  for (const f of res.data) {
@@ -413,7 +402,8 @@ export default {
413
402
  }
414
403
 
415
404
  const data = {
416
- condition: `f_filiale_id in (${f_filialeids.join(',')}) and overday >= 0`
405
+ f_filiale_ids: f_filialeids.join(','),
406
+ overday: 0
417
407
  }
418
408
  new HttpResetClass().load('POST','rs/sql/serviceDetails/n', {data}, {resolveMsg: null, rejectMsg: null}).then(res=>{
419
409
  if(res.data && res.data.n !== 0){
@@ -425,7 +415,7 @@ export default {
425
415
  }
426
416
  },
427
417
  openUrl() {
428
- 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}`
418
+ var url = `https://liuli.aofengcloud.com:31467`
429
419
  window.open(url, '_blank')
430
420
  },
431
421
  hindsetting() {
@@ -147,11 +147,7 @@ import co from 'co'
147
147
  import {HttpResetClass} from "vue-client";
148
148
 
149
149
  let getwartermakr = async function (self) {
150
- let param = {
151
- tablename: 't_singlevalue',
152
- condition: " 1=1 and name=\'水印内容\'"
153
- };
154
- let result = await self.$resetpost('rs/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
150
+ let result = await self.$resetpost('rs/sql/safeWatermarkQuery', {}, {resolveMsg: null, rejectMsg: null});
155
151
  if (result && result.data.length > 0) {
156
152
  self.showwatermakeflag = true;
157
153
  createWaterMark(`${result.data[0].value}${self.$login.f.ename}`);
@@ -291,10 +287,7 @@ export default {
291
287
  this.OrderDaiBan = ''
292
288
  this.AppDaiBan = ''
293
289
  let http = new HttpResetClass()
294
- await http.load('POST', '/rs/sql/singleTable', {data: {
295
- tablename:'t_order_center',
296
- condition:` (f_orderstate != '预约成功' and f_orgstr ='${this.$login.f.orgid}' and f_orderstate != '预约失败' ) or f_orderstate is null`
297
- }}, {
290
+ await http.load('POST', '/rs/sql/safeOrderCenterQueryByOrgStr', {f_orgstr: this.$login.f.orgid}, {
298
291
  resolveMsg: null,
299
292
  rejectMsg: null
300
293
  }).then((res) => {
@@ -363,7 +356,7 @@ export default {
363
356
  }
364
357
  },
365
358
  openUrl() {
366
- var url = `http://123.60.214.109:8406/submitTicket?personName=${this.$login.f.name}&orgName=${this.$login.f.orgs}`
359
+ var url = `https://liuli.aofengcloud.com:31467`
367
360
  window.open(url, '_blank')
368
361
  },
369
362
  hindsetting() {
@@ -134,6 +134,7 @@
134
134
  import $ from 'jquery'
135
135
  import Vue from 'vue'
136
136
  import {HttpResetClass} from 'vue-client'
137
+ import {isPasswordModificationExpired} from '../../components/Util'
137
138
 
138
139
 
139
140
 
@@ -191,12 +192,15 @@
191
192
  }
192
193
  }
193
194
  console.log(self.$login.depPrompt)
194
- // 弱口令验证
195
- //跳转过来的不进行验证
196
- if ((!self.otherLogin) && self.config.weakPassword && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
195
+ // 弱口令验证(默认开启,跳转过来的不进行验证)
196
+ if ((!self.otherLogin) && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
197
197
  self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
198
198
  self.modifyPwShow = true
199
199
  })
200
+ } else if ((!self.otherLogin) && isPasswordModificationExpired(self.$login.f.f_last_modification_time)) {
201
+ self.$showMessage('登录系统: 您的密码已超过两个半月未修改,请修改密码后重新登录!!!', ['confirm']).then((res) => {
202
+ self.modifyPwShow = true
203
+ })
200
204
  } else if ((!self.otherLogin) && self.$login.depPrompt) {
201
205
  self.depPromptShow = true
202
206
  if (self.$login.showDaiBan && self.$login.r.includes('展示预约信息')){
@@ -217,6 +221,8 @@
217
221
 
218
222
  } catch (ret) {
219
223
  console.error('登录失败', ret)
224
+ self.$login.s = null
225
+ self.$login['v3-session-key'] = null
220
226
  let msg
221
227
  if (ret instanceof Error) {
222
228
  msg = ret
@@ -240,19 +246,19 @@
240
246
  export default {
241
247
  title: '登录',
242
248
  async ready () {
243
- try{
244
- let http = new HttpResetClass()
245
- let res = await http.load('POST', 'rs/sql/singleTable',
246
- {data:{
247
- tablename: 't_changedeclare',
248
- condition: ` f_type ='变更通知' `
249
- }
250
- }, {resolveMsg: null, rejectMsg: null})
251
- if(res.data.length>0){
252
- console.log("---------------获取通知",res.data[0].f_change_message)
253
- this.notice=res.data[0].f_change_message
254
- }
255
- }catch(e){}
249
+ // try{
250
+ // let http = new HttpResetClass()
251
+ // let res = await http.load('POST', 'rs/sql/singleTable',
252
+ // {data:{
253
+ // tablename: 't_changedeclare',
254
+ // condition: ` f_type ='变更通知' `
255
+ // }
256
+ // }, {resolveMsg: null, rejectMsg: null})
257
+ // if(res.data.length>0){
258
+ // console.log("---------------获取通知",res.data[0].f_change_message)
259
+ // this.notice=res.data[0].f_change_message
260
+ // }
261
+ // }catch(e){}
256
262
 
257
263
  this.loginother();
258
264
  $('#login-button').click(function (event) {
@@ -261,10 +267,8 @@
261
267
  })
262
268
  if (window.location.search && window.location.search.indexOf('af_key') !== -1&& window.location.search.indexOf('af_n') !== -1) {
263
269
  const subUrl = window.location.search.replace('?af_key=','').split('&af_n=')
264
- console.log(subUrl)
265
270
  this.model.ename = window.atob(subUrl[0])
266
271
  this.model.password = window.atob(subUrl[1])
267
- console.log('this.model.ename',this.model.ename)
268
272
  this.otherLogin = true
269
273
  this.confirm()
270
274
  }else{
@@ -320,37 +324,28 @@
320
324
  methods: {
321
325
  async getDaiBan(){
322
326
  let http = new HttpResetClass()
323
- let condition = ''
327
+ let res
324
328
  if(this.$login.f.deps!=='柠条塔'){
325
- condition = ` (f_orderstate != '预约成功' and f_orderstate != '预约失败' ) or f_orderstate is null `
329
+ res = await http.load('POST', '/rs/sql/safeOrderCenterQuery', {}, {
330
+ resolveMsg: null,
331
+ rejectMsg: null
332
+ })
326
333
  } else {
327
- condition =` f_orderstate is null and (f_address in( select f_address from t_user_address where f_slice_area='柠条塔') or f_address like '%柠条塔%') `
328
- }
329
- await http.load('POST', '/rs/sql/singleTable', {data: {
330
- tablename:'t_order_center',
331
- condition:condition
332
- }}, {
334
+ res = await http.load('POST', '/rs/sql/safeOrderCenterQueryBySliceArea', {f_slice_area: '柠条塔'}, {
333
335
  resolveMsg: null,
334
336
  rejectMsg: null
335
- }).then((res) => {
336
- let OrderDaiBan = {}
337
- res.data.forEach(item=>{
338
- OrderDaiBan[item.f_ordertype] = OrderDaiBan[item.f_ordertype] || []
339
- OrderDaiBan[item.f_ordertype].push(item)
340
- })
341
- this.OrderDaiBan = `您有${res.data.length}条需要处理的微信预约业务!`
342
- if (res.data.length> 0){
343
- this.OrderDaiBan += `其中 ${Object.keys(OrderDaiBan).map(key=>`${key}:${OrderDaiBan[key].length}条`).join(', ')}`
344
- }
345
337
  })
346
- let data = {
347
- condition: '1 = 1',
348
- data: {
349
- orgid: this.$login.f.orgid,
350
- id: this.$login.f.id
351
- }
352
338
  }
353
- await http.load('POST', '/rs/sql/checkuser', {data: data}, {
339
+ let OrderDaiBan = {}
340
+ res.data.forEach(item=>{
341
+ OrderDaiBan[item.f_ordertype] = OrderDaiBan[item.f_ordertype] || []
342
+ OrderDaiBan[item.f_ordertype].push(item)
343
+ })
344
+ this.OrderDaiBan = `您有${res.data.length}条需要处理的微信预约业务!`
345
+ if (res.data.length> 0){
346
+ this.OrderDaiBan += `其中 ${Object.keys(OrderDaiBan).map(key=>`${key}:${OrderDaiBan[key].length}条`).join(', ')}`
347
+ }
348
+ },
354
349
  resolveMsg: null,
355
350
  rejectMsg: null
356
351
  }).then((res) => {
@@ -145,6 +145,7 @@ import co from 'co'
145
145
  import $ from 'jquery'
146
146
  import Vue from 'vue'
147
147
  import {HttpResetClass} from 'vue-client'
148
+ import {isPasswordModificationExpired} from '../../components/Util'
148
149
  import cryptJS from "../../plugins/EncryptUtil";
149
150
 
150
151
  let daibanJson = require('../../util/Daiban.json')
@@ -204,12 +205,15 @@ let saveGen = function *(self) {
204
205
  }
205
206
  }
206
207
  console.log(self.$login.depPrompt)
207
- // 弱口令验证
208
- //跳转过来的不进行验证
209
- if ((!self.otherLogin) && self.config.weakPassword && !(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?!.*(.)(\1)+)(?!.*(123|321|abc|cba))[a-zA-Z\d!@#$%^&*()_+-=<>?]{8,16}$/.test(self.model.password))) {
208
+ // 弱口令验证(默认开启,跳转过来的不进行验证)
209
+ if ((!self.otherLogin) && !(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?!.*(.)(\1)+)(?!.*(123|321|abc|cba))[a-zA-Z\d!@#$%^&*()_+-=<>?]{8,16}$/.test(self.model.password))) {
210
210
  self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
211
211
  self.modifyPwShow = true
212
212
  })
213
+ } else if ((!self.otherLogin) && isPasswordModificationExpired(self.$login.f.f_last_modification_time)) {
214
+ self.$showMessage('登录系统: 您的密码已超过两个半月未修改,请修改密码后重新登录!!!', ['confirm']).then((res) => {
215
+ self.modifyPwShow = true
216
+ })
213
217
  } else if ((!self.otherLogin) && self.$login.depPrompt) {
214
218
  self.depPromptShow = true
215
219
  if (self.$login.showDaiBan && self.$login.r.includes('展示预约信息')){
@@ -230,6 +234,8 @@ let saveGen = function *(self) {
230
234
  }
231
235
  } catch (ret) {
232
236
  console.error('登录失败', ret)
237
+ self.$login.s = null
238
+ self.$login['v3-session-key'] = null
233
239
  let msg
234
240
  if (ret instanceof Error) {
235
241
  msg = ret
@@ -258,19 +264,19 @@ export default {
258
264
  this.titleShow = this.$appdata.getSingleValue('关于我们')
259
265
  window.versionTime = window.versionTime ? window.versionTime : new Date().getTime()
260
266
  this.vTime = this.format(new Date(window.versionTime));
261
- try{
262
- let http = new HttpResetClass()
263
- let res = await http.load('POST', 'rs/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){}
267
+ // try{
268
+ // let http = new HttpResetClass()
269
+ // let res = await http.load('POST', 'rs/sql/singleTable',
270
+ // {data:{
271
+ // tablename: 't_changedeclare',
272
+ // condition: ` f_type ='变更通知' `
273
+ // }
274
+ // }, {resolveMsg: null, rejectMsg: null})
275
+ // if(res.data.length>0){
276
+ // console.log("---------------获取通知",res.data[0].f_change_message)
277
+ // this.notice=res.data[0].f_change_message
278
+ // }
279
+ // }catch(e){}
274
280
 
275
281
  this.loginother();
276
282
  $('#login-button').click(function (event) {
@@ -294,10 +300,8 @@ export default {
294
300
  this.confirm()
295
301
  } else if (window.location.search && window.location.search.indexOf('af_key') !== -1&& window.location.search.indexOf('af_n') !== -1) {
296
302
  const subUrl = window.location.search.replace('?af_key=','').split('&af_n=')
297
- console.log(subUrl)
298
303
  this.model.ename = window.atob(subUrl[0])
299
304
  this.model.password = window.atob(subUrl[1])
300
- console.log('this.model.ename',this.model.ename)
301
305
  this.otherLogin = true
302
306
  this.confirm()
303
307
  }else{
@@ -371,37 +375,28 @@ export default {
371
375
  },
372
376
  async getDaiBan(){
373
377
  let http = new HttpResetClass()
374
- let condition = ''
378
+ let res
375
379
  if(this.$login.f.deps!=='柠条塔'){
376
- condition = ` (f_orderstate != '预约成功' and f_orderstate != '预约失败' ) or f_orderstate is null `
380
+ res = await http.load('POST', '/rs/sql/safeOrderCenterQuery', {}, {
381
+ resolveMsg: null,
382
+ rejectMsg: null
383
+ })
377
384
  } else {
378
- condition =` f_orderstate is null and (f_address in( select f_address from t_user_address where f_slice_area='柠条塔') or f_address like '%柠条塔%') `
379
- }
380
- await http.load('POST', '/rs/sql/singleTable', {data: {
381
- tablename:'t_order_center',
382
- condition:condition
383
- }}, {
385
+ res = await http.load('POST', '/rs/sql/safeOrderCenterQueryBySliceArea', {f_slice_area: '柠条塔'}, {
384
386
  resolveMsg: null,
385
387
  rejectMsg: null
386
- }).then((res) => {
387
- let OrderDaiBan = {}
388
- res.data.forEach(item=>{
389
- OrderDaiBan[item.f_ordertype] = OrderDaiBan[item.f_ordertype] || []
390
- OrderDaiBan[item.f_ordertype].push(item)
391
- })
392
- this.OrderDaiBan = `您有${res.data.length}条需要处理的微信预约业务!`
393
- if (res.data.length> 0){
394
- this.OrderDaiBan += `其中 ${Object.keys(OrderDaiBan).map(key=>`${key}:${OrderDaiBan[key].length}条`).join(', ')}`
395
- }
396
388
  })
397
- let data = {
398
- condition: '1 = 1',
399
- data: {
400
- orgid: this.$login.f.orgid,
401
- id: this.$login.f.id
402
- }
403
389
  }
404
- await http.load('POST', '/rs/sql/checkuser', {data: data}, {
390
+ let OrderDaiBan = {}
391
+ res.data.forEach(item=>{
392
+ OrderDaiBan[item.f_ordertype] = OrderDaiBan[item.f_ordertype] || []
393
+ OrderDaiBan[item.f_ordertype].push(item)
394
+ })
395
+ this.OrderDaiBan = `您有${res.data.length}条需要处理的微信预约业务!`
396
+ if (res.data.length> 0){
397
+ this.OrderDaiBan += `其中 ${Object.keys(OrderDaiBan).map(key=>`${key}:${OrderDaiBan[key].length}条`).join(', ')}`
398
+ }
399
+ },
405
400
  resolveMsg: null,
406
401
  rejectMsg: null
407
402
  }).then((res) => {
@@ -157,11 +157,7 @@ import co from 'co'
157
157
  import {HttpResetClass} from "vue-client";
158
158
 
159
159
  let getwartermakr = async function (self) {
160
- let param = {
161
- tablename: 't_singlevalue',
162
- condition: " 1=1 and name=\'水印内容\'"
163
- };
164
- let result = await self.$resetpost('rs/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
160
+ let result = await self.$resetpost('rs/sql/safeWatermarkQuery', {}, {resolveMsg: null, rejectMsg: null});
165
161
  if (result && result.data.length > 0) {
166
162
  self.showwatermakeflag = true;
167
163
  createWaterMark(`${result.data[0].value}${self.$login.f.ename}`);
@@ -300,10 +296,7 @@ export default {
300
296
  this.OrderDaiBan = ''
301
297
  this.AppDaiBan = ''
302
298
  let http = new HttpResetClass()
303
- await http.load('POST', '/rs/sql/singleTable', {data: {
304
- tablename:'t_order_center',
305
- condition:` (f_orderstate != '预约成功' and f_orgstr ='${this.$login.f.orgid}' and f_orderstate != '预约失败' ) or f_orderstate is null`
306
- }}, {
299
+ await http.load('POST', '/rs/sql/safeOrderCenterQueryByOrgStr', {f_orgstr: this.$login.f.orgid}, {
307
300
  resolveMsg: null,
308
301
  rejectMsg: null
309
302
  }).then((res) => {
@@ -372,7 +365,7 @@ export default {
372
365
  }
373
366
  },
374
367
  openUrl() {
375
- var url = `http://123.60.214.109:8406/submitTicket?personName=${this.$login.f.name}&orgName=${this.$login.f.orgs}`
368
+ var url = `https://liuli.aofengcloud.com:31467`
376
369
  window.open(url, '_blank')
377
370
  },
378
371
  hindsetting() {
@@ -124,6 +124,7 @@ import co from 'co'
124
124
  import $ from 'jquery'
125
125
  import Vue from 'vue'
126
126
  import {HttpResetClass} from 'vue-client'
127
+ import {isPasswordModificationExpired} from '../../components/Util'
127
128
 
128
129
 
129
130
 
@@ -182,12 +183,15 @@ let saveGen = function *(self) {
182
183
  }
183
184
  }
184
185
  console.log(self.$login.depPrompt)
185
- // 弱口令验证
186
- //跳转过来的不进行验证
187
- if ((!self.otherLogin) && self.config.weakPassword && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
186
+ // 弱口令验证(默认开启,跳转过来的不进行验证)
187
+ if ((!self.otherLogin) && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
188
188
  self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
189
189
  self.modifyPwShow = true
190
190
  })
191
+ } else if ((!self.otherLogin) && isPasswordModificationExpired(self.$login.f.f_last_modification_time)) {
192
+ self.$showMessage('登录系统: 您的密码已超过两个半月未修改,请修改密码后重新登录!!!', ['confirm']).then((res) => {
193
+ self.modifyPwShow = true
194
+ })
191
195
  } else if ((!self.otherLogin) && self.$login.depPrompt) {
192
196
  self.depPromptShow = true
193
197
  } else {
@@ -204,6 +208,8 @@ let saveGen = function *(self) {
204
208
 
205
209
  } catch (ret) {
206
210
  console.error('登录失败', ret)
211
+ self.$login.s = null
212
+ self.$login['v3-session-key'] = null
207
213
  let msg
208
214
  if (ret instanceof Error) {
209
215
  msg = ret
@@ -227,19 +233,19 @@ let saveGen = function *(self) {
227
233
  export default {
228
234
  title: '登录',
229
235
  async ready () {
230
- try{
231
- let http = new HttpResetClass()
232
- let res = await http.load('POST', 'rs/sql/singleTable',
233
- {data:{
234
- tablename: 't_changedeclare',
235
- condition: ` f_type ='变更通知' `
236
- }
237
- }, {resolveMsg: null, rejectMsg: null})
238
- if(res.data.length>0){
239
- console.log("---------------获取通知",res.data[0].f_change_message)
240
- this.notice=res.data[0].f_change_message
241
- }
242
- }catch(e){}
236
+ // try{
237
+ // let http = new HttpResetClass()
238
+ // let res = await http.load('POST', 'rs/sql/singleTable',
239
+ // {data:{
240
+ // tablename: 't_changedeclare',
241
+ // condition: ` f_type ='变更通知' `
242
+ // }
243
+ // }, {resolveMsg: null, rejectMsg: null})
244
+ // if(res.data.length>0){
245
+ // console.log("---------------获取通知",res.data[0].f_change_message)
246
+ // this.notice=res.data[0].f_change_message
247
+ // }
248
+ // }catch(e){}
243
249
 
244
250
  this.loginother();
245
251
  $('#login-button').click(function (event) {
@@ -248,10 +254,8 @@ export default {
248
254
  })
249
255
  if (window.location.search && window.location.search.indexOf('af_key') !== -1&& window.location.search.indexOf('af_n') !== -1) {
250
256
  const subUrl = window.location.search.replace('?af_key=','').split('&af_n=')
251
- console.log(subUrl)
252
257
  this.model.ename = window.atob(subUrl[0])
253
258
  this.model.password = window.atob(subUrl[1])
254
- console.log('this.model.ename',this.model.ename)
255
259
  this.otherLogin = true
256
260
  this.confirm()
257
261
  }else{
@@ -64,11 +64,7 @@ import co from 'co'
64
64
  import {HttpResetClass} from "vue-client";
65
65
 
66
66
  let getwartermakr = async function (self) {
67
- let param = {
68
- tablename: 't_singlevalue',
69
- condition: " 1=1 and name=\'水印内容\'"
70
- };
71
- let result = await self.$resetpost('rs/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
67
+ let result = await self.$resetpost('rs/sql/safeWatermarkQuery', {}, {resolveMsg: null, rejectMsg: null});
72
68
  if (result && result.data.length > 0) {
73
69
  self.showwatermakeflag = true;
74
70
  createWaterMark(result.data[0].value);
@@ -216,7 +212,7 @@ export default {
216
212
  }
217
213
  },
218
214
  openUrl() {
219
- 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}`
215
+ var url = `https://liuli.aofengcloud.com:31467`
220
216
  window.open(url, '_blank')
221
217
  },
222
218
  hindsetting() {
@@ -145,6 +145,7 @@
145
145
  import $ from 'jquery'
146
146
  import Vue from 'vue'
147
147
  import {HttpResetClass} from 'vue-client'
148
+ import {isPasswordModificationExpired} from '../../components/Util'
148
149
 
149
150
  let daibanJson = require('../../util/Daiban.json')
150
151
 
@@ -203,12 +204,15 @@
203
204
  }
204
205
  }
205
206
  console.log(self.$login.depPrompt)
206
- // 弱口令验证
207
- //跳转过来的不进行验证
208
- if ((!self.otherLogin) && self.config.weakPassword && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
207
+ // 弱口令验证(默认开启,跳转过来的不进行验证)
208
+ if ((!self.otherLogin) && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
209
209
  self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
210
210
  self.modifyPwShow = true
211
211
  })
212
+ } else if ((!self.otherLogin) && isPasswordModificationExpired(self.$login.f.f_last_modification_time)) {
213
+ self.$showMessage('登录系统: 您的密码已超过两个半月未修改,请修改密码后重新登录!!!', ['confirm']).then((res) => {
214
+ self.modifyPwShow = true
215
+ })
212
216
  } else if ((!self.otherLogin) && self.$login.depPrompt) {
213
217
  self.depPromptShow = true
214
218
  if (self.$login.showDaiBan && self.$login.r.includes('展示预约信息')){
@@ -229,6 +233,8 @@
229
233
  }
230
234
  } catch (ret) {
231
235
  console.error('登录失败', ret)
236
+ self.$login.s = null
237
+ self.$login['v3-session-key'] = null
232
238
  let msg
233
239
  if (ret instanceof Error) {
234
240
  msg = ret
@@ -257,19 +263,19 @@
257
263
  this.titleShow = this.$appdata.getSingleValue('关于我们')
258
264
  window.versionTime = window.versionTime ? window.versionTime : new Date().getTime()
259
265
  this.vTime = this.format(new Date(window.versionTime));
260
- try{
261
- let http = new HttpResetClass()
262
- let res = await http.load('POST', 'rs/sql/singleTable',
263
- {data:{
264
- tablename: 't_changedeclare',
265
- condition: ` f_type ='变更通知' `
266
- }
267
- }, {resolveMsg: null, rejectMsg: null})
268
- if(res.data.length>0){
269
- console.log("---------------获取通知",res.data[0].f_change_message)
270
- this.notice=res.data[0].f_change_message
271
- }
272
- }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){}
273
279
 
274
280
  this.loginother();
275
281
  $('#login-button').click(function (event) {
@@ -278,10 +284,8 @@
278
284
  })
279
285
  if (window.location.search && window.location.search.indexOf('af_key') !== -1&& window.location.search.indexOf('af_n') !== -1) {
280
286
  const subUrl = window.location.search.replace('?af_key=','').split('&af_n=')
281
- console.log(subUrl)
282
287
  this.model.ename = window.atob(subUrl[0])
283
288
  this.model.password = window.atob(subUrl[1])
284
- console.log('this.model.ename',this.model.ename)
285
289
  this.otherLogin = true
286
290
  this.confirm()
287
291
  }else{
@@ -353,37 +357,28 @@
353
357
  },
354
358
  async getDaiBan(){
355
359
  let http = new HttpResetClass()
356
- let condition = ''
360
+ let res
357
361
  if(this.$login.f.deps!=='柠条塔'){
358
- condition = ` (f_orderstate != '预约成功' and f_orderstate != '预约失败' ) or f_orderstate is null `
362
+ res = await http.load('POST', '/rs/sql/safeOrderCenterQuery', {}, {
363
+ resolveMsg: null,
364
+ rejectMsg: null
365
+ })
359
366
  } else {
360
- 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
- await http.load('POST', '/rs/sql/singleTable', {data: {
363
- tablename:'t_order_center',
364
- condition:condition
365
- }}, {
367
+ res = await http.load('POST', '/rs/sql/safeOrderCenterQueryBySliceArea', {f_slice_area: '柠条塔'}, {
366
368
  resolveMsg: null,
367
369
  rejectMsg: null
368
- }).then((res) => {
369
- let OrderDaiBan = {}
370
- res.data.forEach(item=>{
371
- OrderDaiBan[item.f_ordertype] = OrderDaiBan[item.f_ordertype] || []
372
- OrderDaiBan[item.f_ordertype].push(item)
373
- })
374
- this.OrderDaiBan = `您有${res.data.length}条需要处理的微信预约业务!`
375
- if (res.data.length> 0){
376
- this.OrderDaiBan += `其中 ${Object.keys(OrderDaiBan).map(key=>`${key}:${OrderDaiBan[key].length}条`).join(', ')}`
377
- }
378
370
  })
379
- let data = {
380
- condition: '1 = 1',
381
- data: {
382
- orgid: this.$login.f.orgid,
383
- id: this.$login.f.id
384
- }
385
371
  }
386
- await http.load('POST', '/rs/sql/checkuser', {data: data}, {
372
+ let OrderDaiBan = {}
373
+ res.data.forEach(item=>{
374
+ OrderDaiBan[item.f_ordertype] = OrderDaiBan[item.f_ordertype] || []
375
+ OrderDaiBan[item.f_ordertype].push(item)
376
+ })
377
+ this.OrderDaiBan = `您有${res.data.length}条需要处理的微信预约业务!`
378
+ if (res.data.length> 0){
379
+ this.OrderDaiBan += `其中 ${Object.keys(OrderDaiBan).map(key=>`${key}:${OrderDaiBan[key].length}条`).join(', ')}`
380
+ }
381
+ },
387
382
  resolveMsg: null,
388
383
  rejectMsg: null
389
384
  }).then((res) => {