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
@@ -66,41 +66,20 @@
66
66
  self.arrays.pcd=[{label:'全部',value:''}]
67
67
  if(self.show.pcdShow){
68
68
  let HttpReset = new HttpResetClass()
69
- var pcd = await HttpReset.load('POST', 'rs/sql/singleTable_OrderBy', {
70
- data: {
71
- items: 'f_pcd',
72
- tablename: 't_pcd',
73
- condition: `f_pcd is not null group by f_pcd`,
74
- orderitem: 'f_pcd'
75
- }
76
- }, {resolveMsg: null, rejectMsg: '获取省市区出错!'})
69
+ var pcd = await HttpReset.load('POST', 'rs/sql/safePcdQuery', {}, {resolveMsg: null, rejectMsg: '获取省市区出错!'})
77
70
  for(var i=0;i<pcd.data.length;i++){
78
71
  self.arrays.pcd.push({label:pcd.data[i].f_pcd,value:pcd.data[i].f_pcd})
79
72
  }
80
73
  }else if(self.show.streetShow){
81
74
  console.log("------------查街道")
82
75
  let HttpReset = new HttpResetClass()
83
- var street = await HttpReset.load('POST', 'rs/sql/singleTable_OrderBy', {
84
- data: {
85
- items: 'f_street',
86
- tablename: 't_street',
87
- condition: `f_filialeid = '${self.$login.f.orgid}' and f_street is not null group by f_street`,
88
- orderitem: 'f_street'
89
- }
90
- }, {resolveMsg: null, rejectMsg: '获取街道出错!'})
76
+ var street = await HttpReset.load('POST', 'rs/sql/safeStreetQueryByFiliale', {f_filialeid: self.$login.f.orgid}, {resolveMsg: null, rejectMsg: '获取街道出错!'})
91
77
  for(var i=0;i<street.data.length;i++){
92
78
  self.arrays.street.push({label:street.data[i].f_street,value:street.data[i].f_street})
93
79
  }
94
80
  }else if(self.show.areaShow){
95
81
  let HttpReset = new HttpResetClass()
96
- var area = await HttpReset.load('POST', 'rs/sql/singleTable_OrderBy', {
97
- data: {
98
- items: 'f_residential_area',
99
- tablename: 't_area',
100
- condition: `f_filialeid = '${self.$login.f.orgid}' and f_residential_area is not null group by f_residential_area`,
101
- orderitem: 'f_residential_area'
102
- }
103
- }, {resolveMsg: null, rejectMsg: '获取小区出错!'})
82
+ var area = await HttpReset.load('POST', 'rs/sql/safeAreaQueryByFiliale', {f_filialeid: self.$login.f.orgid}, {resolveMsg: null, rejectMsg: '获取小区出错!'})
104
83
  for(var i=0;i<area.data.length;i++){
105
84
  self.arrays.area.push({label:area.data[i].f_residential_area,value:area.data[i].f_residential_area})
106
85
  }
@@ -154,15 +133,7 @@
154
133
  methods:{
155
134
  async pcdChange(){
156
135
  this.arrays.street=[{label:'全部',value:''}]
157
- var condition = `f_filialeid = '${this.$login.f.orgid}' and f_street is not null group by f_street`
158
- let street = await this.$resetpost('rs/sql/singleTable_OrderBy', {
159
- data: {
160
- items: 'f_street',
161
- tablename: 't_street',
162
- condition: condition,
163
- orderitem: 'f_street'
164
- }
165
- }, {resolveMsg: null, rejectMsg: '获取街道出错'})
136
+ let street = await this.$resetpost('rs/sql/safeStreetQueryByFiliale', {f_filialeid: this.$login.f.orgid}, {resolveMsg: null, rejectMsg: '获取街道出错'})
166
137
  for(var i=0;i<street.data.length;i++){
167
138
  this.arrays.street.push({label:street.data[i].f_street,value:street.data[i].f_street})
168
139
  }
@@ -170,15 +141,7 @@
170
141
  },
171
142
  async streetChange(){
172
143
  this.arrays.area=[{label:'全部',value:''}]
173
- var condition = `f_street = '${this.model.f_street?this.model.f_street:null}' and f_residential_area is not null group by f_residential_area`
174
- let area = await this.$resetpost('rs/sql/singleTable_OrderBy', {
175
- data: {
176
- items: 'f_residential_area',
177
- tablename: 't_area',
178
- condition: condition,
179
- orderitem: 'f_residential_area'
180
- }
181
- }, {resolveMsg: null, rejectMsg: '获取小区出错'})
144
+ let area = await this.$resetpost('rs/sql/safeAreaQueryByStreet', {f_street: this.model.f_street}, {resolveMsg: null, rejectMsg: '获取小区出错'})
182
145
  for(var i=0;i<area.data.length;i++){
183
146
  this.arrays.area.push({label:area.data[i].f_residential_area,value:area.data[i].f_residential_area})
184
147
  }
@@ -186,20 +149,12 @@
186
149
  },
187
150
  async areaChange(){
188
151
  this.building = [{label:'全部',value:''}]
189
- var condition=''
152
+ let build
190
153
  if(this.show.areaShow){
191
- condition = `f_residential_area = '${this.model.f_residential_area?this.model.f_residential_area:null}' and f_building is not null group by f_building`
154
+ build = await this.$resetpost('rs/sql/safeBuildingQueryByArea', {f_residential_area: this.model.f_residential_area}, {resolveMsg: null, rejectMsg: '获取楼栋出错'})
192
155
  }else{
193
- condition = `f_filialeid = '${this.$login.f.orgid}' and f_building is not null group by f_building`
156
+ build = await this.$resetpost('rs/sql/safeBuildingQueryByFiliale', {f_filialeid: this.$login.f.orgid}, {resolveMsg: null, rejectMsg: '获取楼栋出错'})
194
157
  }
195
- let build = await this.$resetpost('rs/sql/singleTable_OrderBy', {
196
- data: {
197
- items: 'f_building',
198
- tablename: 't_user_address',
199
- condition: condition,
200
- orderitem: 'f_building'
201
- }
202
- }, {resolveMsg: null, rejectMsg: '获取楼栋出错'})
203
158
  for(var i=0;i<build.data.length;i++){
204
159
  this.arrays.building.push({label:build.data[i].f_building,value:build.data[i].f_building})
205
160
  }
@@ -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
 
149
150
  let daibanJson = require('../../util/Daiban.json')
150
151
 
@@ -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 && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
208
+ // 弱口令验证(默认开启,跳转过来的不进行验证)
209
+ if ((!self.otherLogin) && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{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('展示预约信息')){
@@ -235,6 +239,8 @@ let saveGen = function *(self) {
235
239
 
236
240
  } catch (ret) {
237
241
  console.error('登录失败', ret)
242
+ self.$login.s = null
243
+ self.$login['v3-session-key'] = null
238
244
  let msg
239
245
  if (ret instanceof Error) {
240
246
  msg = ret
@@ -261,19 +267,19 @@ export default {
261
267
  this.titleShow = this.$appdata.getSingleValue('关于我们')
262
268
  window.versionTime = window.versionTime ? window.versionTime : new Date().getTime()
263
269
  this.vTime = this.format(new Date(window.versionTime));
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){}
270
+ // try{
271
+ // let http = new HttpResetClass()
272
+ // let res = await http.load('POST', 'rs/sql/singleTable',
273
+ // {data:{
274
+ // tablename: 't_changedeclare',
275
+ // condition: ` f_type ='变更通知' `
276
+ // }
277
+ // }, {resolveMsg: null, rejectMsg: null})
278
+ // if(res.data.length>0){
279
+ // console.log("---------------获取通知",res.data[0].f_change_message)
280
+ // this.notice=res.data[0].f_change_message
281
+ // }
282
+ // }catch(e){}
277
283
 
278
284
  this.loginother();
279
285
  $('#login-button').click(function (event) {
@@ -282,10 +288,8 @@ export default {
282
288
  })
283
289
  if (window.location.search && window.location.search.indexOf('af_key') !== -1&& window.location.search.indexOf('af_n') !== -1) {
284
290
  const subUrl = window.location.search.replace('?af_key=','').split('&af_n=')
285
- console.log(subUrl)
286
291
  this.model.ename = window.atob(subUrl[0])
287
292
  this.model.password = window.atob(subUrl[1])
288
- console.log('this.model.ename',this.model.ename)
289
293
  this.otherLogin = true
290
294
  this.confirm()
291
295
  }else{
@@ -357,21 +361,20 @@ export default {
357
361
  },
358
362
  async getDaiBan(){
359
363
  let http = new HttpResetClass()
360
- let condition = ''
364
+ let res
361
365
  if(this.$login.f.deps!=='柠条塔'){
362
- condition = ` (f_orderstate != '预约成功' and f_orderstate != '预约失败' ) or f_orderstate is null `
366
+ res = await http.load('POST', '/rs/sql/safeOrderCenterQuery', {}, {
367
+ resolveMsg: null,
368
+ rejectMsg: null
369
+ })
363
370
  } else {
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 '%柠条塔%') `
365
- }
366
- await http.load('POST', '/rs/sql/singleTable', {data: {
367
- tablename:'t_order_center',
368
- condition:condition
369
- }}, {
371
+ res = await http.load('POST', '/rs/sql/safeOrderCenterQueryBySliceArea', {f_slice_area: '柠条塔'}, {
370
372
  resolveMsg: null,
371
373
  rejectMsg: null
372
- }).then((res) => {
373
- let OrderDaiBan = {}
374
- res.data.forEach(item=>{
374
+ })
375
+ }
376
+ let OrderDaiBan = {}
377
+ res.data.forEach(item=>{
375
378
  OrderDaiBan[item.f_ordertype] = OrderDaiBan[item.f_ordertype] || []
376
379
  OrderDaiBan[item.f_ordertype].push(item)
377
380
  })
@@ -379,7 +382,7 @@ export default {
379
382
  if (res.data.length> 0){
380
383
  this.OrderDaiBan += `其中 ${Object.keys(OrderDaiBan).map(key=>`${key}:${OrderDaiBan[key].length}条`).join(', ')}`
381
384
  }
382
- })
385
+ },
383
386
  let data = {
384
387
  condition: '1 = 1',
385
388
  data: {
@@ -143,6 +143,7 @@ import co from 'co'
143
143
  import $ from 'jquery'
144
144
  import Vue from 'vue'
145
145
  import {HttpResetClass} from 'vue-client'
146
+ import {isPasswordModificationExpired} from '../../components/Util'
146
147
 
147
148
  let daibanJson = require('../../util/Daiban.json')
148
149
 
@@ -202,12 +203,15 @@ let saveGen = function *(self) {
202
203
  }
203
204
  }
204
205
  console.log(self.$login.depPrompt)
205
- // 弱口令验证
206
- //跳转过来的不进行验证
207
- if ((!self.otherLogin) && self.config.weakPassword && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
206
+ // 弱口令验证(默认开启,跳转过来的不进行验证)
207
+ if ((!self.otherLogin) && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
208
208
  self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
209
209
  self.modifyPwShow = true
210
210
  })
211
+ } else if ((!self.otherLogin) && isPasswordModificationExpired(self.$login.f.f_last_modification_time)) {
212
+ self.$showMessage('登录系统: 您的密码已超过两个半月未修改,请修改密码后重新登录!!!', ['confirm']).then((res) => {
213
+ self.modifyPwShow = true
214
+ })
211
215
  } else if ((!self.otherLogin) && self.$login.depPrompt) {
212
216
  self.depPromptShow = true
213
217
  if (self.$login.showDaiBan && self.$login.r.includes('展示预约信息')){
@@ -233,6 +237,8 @@ let saveGen = function *(self) {
233
237
 
234
238
  } catch (ret) {
235
239
  console.error('登录失败', ret)
240
+ self.$login.s = null
241
+ self.$login['v3-session-key'] = null
236
242
  let msg
237
243
  if (ret instanceof Error) {
238
244
  msg = ret
@@ -259,19 +265,19 @@ export default {
259
265
  this.titleShow = this.$appdata.getSingleValue('关于我们')
260
266
  window.versionTime = window.versionTime ? window.versionTime : new Date().getTime()
261
267
  this.vTime = this.format(new Date(window.versionTime));
262
- try{
263
- let http = new HttpResetClass()
264
- let res = await http.load('POST', 'rs/sql/singleTable',
265
- {data:{
266
- tablename: 't_changedeclare',
267
- condition: ` f_type ='变更通知' `
268
- }
269
- }, {resolveMsg: null, rejectMsg: null})
270
- if(res.data.length>0){
271
- console.log("---------------获取通知",res.data[0].f_change_message)
272
- this.notice=res.data[0].f_change_message
273
- }
274
- }catch(e){}
268
+ // try{
269
+ // let http = new HttpResetClass()
270
+ // let res = await http.load('POST', 'rs/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){}
275
281
 
276
282
  this.loginother();
277
283
  $('#login-button').click(function (event) {
@@ -280,10 +286,8 @@ export default {
280
286
  })
281
287
  if (window.location.search && window.location.search.indexOf('af_key') !== -1&& window.location.search.indexOf('af_n') !== -1) {
282
288
  const subUrl = window.location.search.replace('?af_key=','').split('&af_n=')
283
- console.log(subUrl)
284
289
  this.model.ename = window.atob(subUrl[0])
285
290
  this.model.password = window.atob(subUrl[1])
286
- console.log('this.model.ename',this.model.ename)
287
291
  this.otherLogin = true
288
292
  this.confirm()
289
293
  }else{
@@ -355,21 +359,20 @@ export default {
355
359
  },
356
360
  async getDaiBan(){
357
361
  let http = new HttpResetClass()
358
- let condition = ''
362
+ let res
359
363
  if(this.$login.f.deps!=='柠条塔'){
360
- condition = ` (f_orderstate != '预约成功' and f_orderstate != '预约失败' ) or f_orderstate is null `
364
+ res = await http.load('POST', '/rs/sql/safeOrderCenterQuery', {}, {
365
+ resolveMsg: null,
366
+ rejectMsg: null
367
+ })
361
368
  } else {
362
- condition =` f_orderstate is null and (f_address in( select f_address from t_user_address where f_slice_area='柠条塔') or f_address like '%柠条塔%') `
363
- }
364
- await http.load('POST', '/rs/sql/singleTable', {data: {
365
- tablename:'t_order_center',
366
- condition:condition
367
- }}, {
369
+ res = await http.load('POST', '/rs/sql/safeOrderCenterQueryBySliceArea', {f_slice_area: '柠条塔'}, {
368
370
  resolveMsg: null,
369
371
  rejectMsg: null
370
- }).then((res) => {
371
- let OrderDaiBan = {}
372
- res.data.forEach(item=>{
372
+ })
373
+ }
374
+ let OrderDaiBan = {}
375
+ res.data.forEach(item=>{
373
376
  OrderDaiBan[item.f_ordertype] = OrderDaiBan[item.f_ordertype] || []
374
377
  OrderDaiBan[item.f_ordertype].push(item)
375
378
  })
@@ -377,15 +380,7 @@ export default {
377
380
  if (res.data.length> 0){
378
381
  this.OrderDaiBan += `其中 ${Object.keys(OrderDaiBan).map(key=>`${key}:${OrderDaiBan[key].length}条`).join(', ')}`
379
382
  }
380
- })
381
- let data = {
382
- condition: '1 = 1',
383
- data: {
384
- orgid: this.$login.f.orgid,
385
- id: this.$login.f.id
386
- }
387
- }
388
- await http.load('POST', '/rs/sql/checkuser', {data: data}, {
383
+ },
389
384
  resolveMsg: null,
390
385
  rejectMsg: null
391
386
  }).then((res) => {
@@ -149,6 +149,7 @@ import co from 'co'
149
149
  import $ from 'jquery'
150
150
  import Vue from 'vue'
151
151
  import {HttpResetClass} from 'vue-client'
152
+ import {isPasswordModificationExpired} from '../../components/Util'
152
153
 
153
154
  let daibanJson = require('../../util/Daiban.json')
154
155
 
@@ -208,12 +209,15 @@ let saveGen = function *(self) {
208
209
  }
209
210
  }
210
211
  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))) {
212
+ // 弱口令验证(默认开启,跳转过来的不进行验证)
213
+ if ((!self.otherLogin) && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
214
214
  self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
215
215
  self.modifyPwShow = true
216
216
  })
217
+ } else if ((!self.otherLogin) && isPasswordModificationExpired(self.$login.f.f_last_modification_time)) {
218
+ self.$showMessage('登录系统: 您的密码已超过两个半月未修改,请修改密码后重新登录!!!', ['confirm']).then((res) => {
219
+ self.modifyPwShow = true
220
+ })
217
221
  } else if ((!self.otherLogin) && self.$login.depPrompt) {
218
222
  self.depPromptShow = true
219
223
  if (self.$login.showDaiBan && self.$login.r.includes('展示预约信息')){
@@ -239,6 +243,8 @@ let saveGen = function *(self) {
239
243
 
240
244
  } catch (ret) {
241
245
  console.error('登录失败', ret)
246
+ self.$login.s = null
247
+ self.$login['v3-session-key'] = null
242
248
  let msg
243
249
  if (ret instanceof Error) {
244
250
  msg = ret
@@ -263,19 +269,19 @@ export default {
263
269
  title: '登录',
264
270
  async ready () {
265
271
  this.titleShow = true
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){}
272
+ // try{
273
+ // let http = new HttpResetClass()
274
+ // let res = await http.load('POST', 'rs/sql/singleTable',
275
+ // {data:{
276
+ // tablename: 't_changedeclare',
277
+ // condition: ` f_type ='变更通知' `
278
+ // }
279
+ // }, {resolveMsg: null, rejectMsg: null})
280
+ // if(res.data.length>0){
281
+ // console.log("---------------获取通知",res.data[0].f_change_message)
282
+ // this.notice=res.data[0].f_change_message
283
+ // }
284
+ // }catch(e){}
279
285
 
280
286
  this.loginother();
281
287
  $('#login-button').click(function (event) {
@@ -284,10 +290,8 @@ export default {
284
290
  })
285
291
  if (window.location.search && window.location.search.indexOf('af_key') !== -1&& window.location.search.indexOf('af_n') !== -1) {
286
292
  const subUrl = window.location.search.replace('?af_key=','').split('&af_n=')
287
- console.log(subUrl)
288
293
  this.model.ename = window.atob(subUrl[0])
289
294
  this.model.password = window.atob(subUrl[1])
290
- console.log('this.model.ename',this.model.ename)
291
295
  this.otherLogin = true
292
296
  this.confirm()
293
297
  }else{
@@ -346,21 +350,20 @@ export default {
346
350
  methods: {
347
351
  async getDaiBan(){
348
352
  let http = new HttpResetClass()
349
- let condition = ''
353
+ let res
350
354
  if(this.$login.f.deps!=='柠条塔'){
351
- condition = ` (f_orderstate != '预约成功' and f_orderstate != '预约失败' ) or f_orderstate is null `
355
+ res = await http.load('POST', '/rs/sql/safeOrderCenterQuery', {}, {
356
+ resolveMsg: null,
357
+ rejectMsg: null
358
+ })
352
359
  } else {
353
- condition =` f_orderstate is null and (f_address in( select f_address from t_user_address where f_slice_area='柠条塔') or f_address like '%柠条塔%') `
354
- }
355
- await http.load('POST', '/rs/sql/singleTable', {data: {
356
- tablename:'t_order_center',
357
- condition:condition
358
- }}, {
360
+ res = await http.load('POST', '/rs/sql/safeOrderCenterQueryBySliceArea', {f_slice_area: '柠条塔'}, {
359
361
  resolveMsg: null,
360
362
  rejectMsg: null
361
- }).then((res) => {
362
- let OrderDaiBan = {}
363
- res.data.forEach(item=>{
363
+ })
364
+ }
365
+ let OrderDaiBan = {}
366
+ res.data.forEach(item=>{
364
367
  OrderDaiBan[item.f_ordertype] = OrderDaiBan[item.f_ordertype] || []
365
368
  OrderDaiBan[item.f_ordertype].push(item)
366
369
  })
@@ -368,7 +371,7 @@ export default {
368
371
  if (res.data.length> 0){
369
372
  this.OrderDaiBan += `其中 ${Object.keys(OrderDaiBan).map(key=>`${key}:${OrderDaiBan[key].length}条`).join(', ')}`
370
373
  }
371
- })
374
+ },
372
375
  let data = {
373
376
  condition: '1 = 1',
374
377
  data: {
@@ -93,11 +93,7 @@ import co from 'co'
93
93
  import {HttpResetClass} from "vue-client";
94
94
 
95
95
  let getwartermakr = async function (self) {
96
- let param = {
97
- tablename: 't_singlevalue',
98
- condition: " 1=1 and name=\'水印内容\'"
99
- };
100
- let result = await self.$resetpost('rs/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
96
+ let result = await self.$resetpost('rs/sql/safeWatermarkQuery', {}, {resolveMsg: null, rejectMsg: null});
101
97
  if (result && result.data.length > 0) {
102
98
  self.showwatermakeflag = true;
103
99
  createWaterMark(result.data[0].value);
@@ -241,10 +237,7 @@ export default {
241
237
  this.OrderDaiBan = ''
242
238
  this.AppDaiBan = ''
243
239
  let http = new HttpResetClass()
244
- await http.load('POST', '/rs/sql/singleTable', {data: {
245
- tablename:'t_order_center',
246
- condition:` (f_orderstate != '预约成功' and f_orgstr ='${this.$login.f.orgid}' and f_orderstate != '预约失败' ) or f_orderstate is null`
247
- }}, {
240
+ await http.load('POST', '/rs/sql/safeOrderCenterQueryByOrgStr', {f_orgstr: this.$login.f.orgid}, {
248
241
  resolveMsg: null,
249
242
  rejectMsg: null
250
243
  }).then((res) => {
@@ -313,7 +306,7 @@ export default {
313
306
  }
314
307
  },
315
308
  openUrl() {
316
- var url = `http://123.60.214.109:8406/submitTicket?personName=${this.$login.f.name}&orgName=${this.$login.f.orgs}`
309
+ var url = `https://liuli.aofengcloud.com:31467`
317
310
  window.open(url, '_blank')
318
311
  },
319
312
  hindsetting() {
@@ -136,6 +136,7 @@ import co from 'co'
136
136
  import $ from 'jquery'
137
137
  import Vue from 'vue'
138
138
  import {HttpResetClass} from 'vue-client'
139
+ import {isPasswordModificationExpired} from '../../components/Util'
139
140
 
140
141
  let daibanJson = require('../../util/Daiban.json')
141
142
 
@@ -195,12 +196,15 @@ let saveGen = function *(self) {
195
196
  }
196
197
  }
197
198
  console.log(self.$login.depPrompt)
198
- // 弱口令验证
199
- //跳转过来的不进行验证
200
- if ((!self.otherLogin) && self.config.weakPassword && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
199
+ // 弱口令验证(默认开启,跳转过来的不进行验证)
200
+ if ((!self.otherLogin) && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
201
201
  self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
202
202
  self.modifyPwShow = true
203
203
  })
204
+ } else if ((!self.otherLogin) && isPasswordModificationExpired(self.$login.f.f_last_modification_time)) {
205
+ self.$showMessage('登录系统: 您的密码已超过两个半月未修改,请修改密码后重新登录!!!', ['confirm']).then((res) => {
206
+ self.modifyPwShow = true
207
+ })
204
208
  } else if ((!self.otherLogin) && self.$login.depPrompt) {
205
209
  self.depPromptShow = true
206
210
  if (self.$login.showDaiBan && self.$login.r.includes('展示预约信息')){
@@ -227,6 +231,8 @@ let saveGen = function *(self) {
227
231
 
228
232
  } catch (ret) {
229
233
  console.error('登录失败', ret)
234
+ self.$login.s = null
235
+ self.$login['v3-session-key'] = null
230
236
  let msg
231
237
  if (ret instanceof Error) {
232
238
  msg = ret
@@ -267,8 +273,7 @@ export default {
267
273
  // this.$showMessage("re----" + JSON.stringify(re))
268
274
  if (re.data.code === 200) {
269
275
  this.showlogin = false
270
- let condition = `ename = '${re.data.data.userName}'`
271
- this.$resetpost('rs/sql/singleTable', {data: { items: '*', tablename: 't_user', condition: condition}}, {resolveMsg: null, rejectMsg: null}).then((res) => {
276
+ this.$resetpost('rs/sql/safeUserQueryByEname', {ename: re.data.data.userName}, {resolveMsg: null, rejectMsg: null}).then((res) => {
272
277
  if (res.data && res.data.length > 0) {
273
278
  this.model.ename = res.data[0].ename
274
279
  this.model.password = res.data[0].password
@@ -292,19 +297,19 @@ export default {
292
297
  this.titleShow = this.$appdata.getSingleValue('关于我们')
293
298
  window.versionTime = window.versionTime ? window.versionTime : new Date().getTime()
294
299
  this.vTime = this.format(new Date(window.versionTime));
295
- try{
296
- let http = new HttpResetClass()
297
- let res = await http.load('POST', 'rs/sql/singleTable',
298
- {data:{
299
- tablename: 't_changedeclare',
300
- condition: ` f_type ='变更通知' `
301
- }
302
- }, {resolveMsg: null, rejectMsg: null})
303
- if(res.data.length>0){
304
- console.log("---------------获取通知",res.data[0].f_change_message)
305
- this.notice=res.data[0].f_change_message
306
- }
307
- }catch(e){}
300
+ // try{
301
+ // let http = new HttpResetClass()
302
+ // let res = await http.load('POST', 'rs/sql/singleTable',
303
+ // {data:{
304
+ // tablename: 't_changedeclare',
305
+ // condition: ` f_type ='变更通知' `
306
+ // }
307
+ // }, {resolveMsg: null, rejectMsg: null})
308
+ // if(res.data.length>0){
309
+ // console.log("---------------获取通知",res.data[0].f_change_message)
310
+ // this.notice=res.data[0].f_change_message
311
+ // }
312
+ // }catch(e){}
308
313
 
309
314
  this.loginother();
310
315
  $('#login-button').click(function (event) {
@@ -313,10 +318,8 @@ export default {
313
318
  })
314
319
  if (window.location.search && window.location.search.indexOf('af_key') !== -1&& window.location.search.indexOf('af_n') !== -1) {
315
320
  const subUrl = window.location.search.replace('?af_key=','').split('&af_n=')
316
- console.log(subUrl)
317
321
  this.model.ename = window.atob(subUrl[0])
318
322
  this.model.password = window.atob(subUrl[1])
319
- console.log('this.model.ename',this.model.ename)
320
323
  this.otherLogin = true
321
324
  this.confirm()
322
325
  }else{
@@ -392,29 +395,28 @@ export default {
392
395
  },
393
396
  async getDaiBan(){
394
397
  let http = new HttpResetClass()
395
- let condition = ''
398
+ let res
396
399
  if(this.$login.f.deps!=='柠条塔'){
397
- condition = ` (f_orderstate != '预约成功' and f_orderstate != '预约失败' ) or f_orderstate is null `
400
+ res = await http.load('POST', '/rs/sql/safeOrderCenterQuery', {}, {
401
+ resolveMsg: null,
402
+ rejectMsg: null
403
+ })
398
404
  } else {
399
- condition =` f_orderstate is null and (f_address in( select f_address from t_user_address where f_slice_area='柠条塔') or f_address like '%柠条塔%') `
400
- }
401
- await http.load('POST', '/rs/sql/singleTable', {data: {
402
- tablename:'t_order_center',
403
- condition:condition
404
- }}, {
405
+ res = await http.load('POST', '/rs/sql/safeOrderCenterQueryBySliceArea', {f_slice_area: '柠条塔'}, {
405
406
  resolveMsg: null,
406
407
  rejectMsg: null
407
- }).then((res) => {
408
- let OrderDaiBan = {}
409
- res.data.forEach(item=>{
410
- OrderDaiBan[item.f_ordertype] = OrderDaiBan[item.f_ordertype] || []
411
- OrderDaiBan[item.f_ordertype].push(item)
412
- })
413
- this.OrderDaiBan = `您有${res.data.length}条需要处理的微信预约业务!`
414
- if (res.data.length> 0){
415
- this.OrderDaiBan += `其中 ${Object.keys(OrderDaiBan).map(key=>`${key}:${OrderDaiBan[key].length}条`).join(', ')}`
416
- }
417
408
  })
409
+ }
410
+ let OrderDaiBan = {}
411
+ res.data.forEach(item=>{
412
+ OrderDaiBan[item.f_ordertype] = OrderDaiBan[item.f_ordertype] || []
413
+ OrderDaiBan[item.f_ordertype].push(item)
414
+ })
415
+ this.OrderDaiBan = `您有${res.data.length}条需要处理的微信预约业务!`
416
+ if (res.data.length> 0){
417
+ this.OrderDaiBan += `其中 ${Object.keys(OrderDaiBan).map(key=>`${key}:${OrderDaiBan[key].length}条`).join(', ')}`
418
+ }
419
+ },
418
420
  let data = {
419
421
  condition: '1 = 1',
420
422
  data: {