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
@@ -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
 
@@ -199,12 +200,15 @@ let saveGen = function *(self) {
199
200
  }
200
201
  }
201
202
  console.log(self.$login.depPrompt)
202
- // 弱口令验证
203
- //跳转过来的不进行验证
204
- 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))) {
205
205
  self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
206
206
  self.modifyPwShow = true
207
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
+ })
208
212
  } else if ((!self.otherLogin) && self.$login.depPrompt) {
209
213
  self.depPromptShow = true
210
214
  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
@@ -254,19 +260,19 @@ export default {
254
260
  title: '登录',
255
261
  async ready () {
256
262
  this.titleShow = this.$appdata.getSingleValue('关于我们')
257
- try{
258
- let http = new HttpResetClass()
259
- let res = await http.load('POST', 'rs/sql/singleTable',
260
- {data:{
261
- tablename: 't_changedeclare',
262
- condition: ` f_type ='变更通知' `
263
- }
264
- }, {resolveMsg: null, rejectMsg: null})
265
- if(res.data.length>0){
266
- console.log("---------------获取通知",res.data[0].f_change_message)
267
- this.notice=res.data[0].f_change_message
268
- }
269
- }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){}
270
276
 
271
277
  this.loginother();
272
278
  $('#login-button').click(function (event) {
@@ -275,10 +281,8 @@ export default {
275
281
  })
276
282
  if (window.location.search && window.location.search.indexOf('af_key') !== -1&& window.location.search.indexOf('af_n') !== -1) {
277
283
  const subUrl = window.location.search.replace('?af_key=','').split('&af_n=')
278
- console.log(subUrl)
279
284
  this.model.ename = window.atob(subUrl[0])
280
285
  this.model.password = window.atob(subUrl[1])
281
- console.log('this.model.ename',this.model.ename)
282
286
  this.otherLogin = true
283
287
  this.confirm()
284
288
  }else{
@@ -337,21 +341,20 @@ export default {
337
341
  methods: {
338
342
  async getDaiBan(){
339
343
  let http = new HttpResetClass()
340
- let condition = ''
344
+ let res
341
345
  if(this.$login.f.deps!=='柠条塔'){
342
- condition = ` (f_orderstate != '预约成功' and f_orderstate != '预约失败' ) or f_orderstate is null `
346
+ res = await http.load('POST', '/rs/sql/safeOrderCenterQuery', {}, {
347
+ resolveMsg: null,
348
+ rejectMsg: null
349
+ })
343
350
  } else {
344
- condition =` f_orderstate is null and (f_address in( select f_address from t_user_address where f_slice_area='柠条塔') or f_address like '%柠条塔%') `
345
- }
346
- await http.load('POST', '/rs/sql/singleTable', {data: {
347
- tablename:'t_order_center',
348
- condition:condition
349
- }}, {
351
+ res = await http.load('POST', '/rs/sql/safeOrderCenterQueryBySliceArea', {f_slice_area: '柠条塔'}, {
350
352
  resolveMsg: null,
351
353
  rejectMsg: null
352
- }).then((res) => {
353
- let OrderDaiBan = {}
354
- res.data.forEach(item=>{
354
+ })
355
+ }
356
+ let OrderDaiBan = {}
357
+ res.data.forEach(item=>{
355
358
  OrderDaiBan[item.f_ordertype] = OrderDaiBan[item.f_ordertype] || []
356
359
  OrderDaiBan[item.f_ordertype].push(item)
357
360
  })
@@ -359,7 +362,7 @@ export default {
359
362
  if (res.data.length> 0){
360
363
  this.OrderDaiBan += `其中 ${Object.keys(OrderDaiBan).map(key=>`${key}:${OrderDaiBan[key].length}条`).join(', ')}`
361
364
  }
362
- })
365
+ },
363
366
  let data = {
364
367
  condition: '1 = 1',
365
368
  data: {
@@ -151,11 +151,7 @@ import co from 'co'
151
151
  import {HttpResetClass} from "vue-client";
152
152
 
153
153
  let getwartermakr = async function (self) {
154
- let param = {
155
- tablename: 't_singlevalue',
156
- condition: " 1=1 and name=\'水印内容\'"
157
- };
158
- let result = await self.$resetpost('rs/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
154
+ let result = await self.$resetpost('rs/sql/safeWatermarkQuery', {}, {resolveMsg: null, rejectMsg: null});
159
155
  if (result && result.data.length > 0) {
160
156
  self.showwatermakeflag = true;
161
157
  createWaterMark(result.data[0].value);
@@ -390,10 +386,7 @@ export default {
390
386
  this.OrderDaiBan = ''
391
387
  this.AppDaiBan = ''
392
388
  let http = new HttpResetClass()
393
- await http.load('POST', '/rs/sql/singleTable', {data: {
394
- tablename:'t_order_center',
395
- condition:` (f_orderstate != '预约成功' and f_orgstr ='${this.$login.f.orgid}' and f_orderstate != '预约失败' ) or f_orderstate is null`
396
- }}, {
389
+ await http.load('POST', '/rs/sql/safeOrderCenterQueryByOrgStr', {f_orgstr: this.$login.f.orgid}, {
397
390
  resolveMsg: null,
398
391
  rejectMsg: null
399
392
  }).then((res) => {
@@ -462,7 +455,7 @@ export default {
462
455
  }
463
456
  },
464
457
  openUrl() {
465
- var url = `http://123.60.214.109:8406/submitTicket?personName=${this.$login.f.name}&orgName=${this.$login.f.orgs}`
458
+ var url = `https://liuli.aofengcloud.com:31467`
466
459
  window.open(url, '_blank')
467
460
  },
468
461
  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() {
@@ -48,6 +48,6 @@ export default {
48
48
  let encrypt = new RsaEncryptJS();
49
49
  encrypt.setPrivateKey('MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBAKo++i9J9dzAFtbxwowKDCo2mxi7MXxE8A8VvssaydWjjgmEz/HHMPLOhi1182a1si4pWL0/MizKnquD7T2Bu4jpQbAFnkNYEMEyq/kw904Xl0JCQHYFuvnI99RE8Q3KlTP6kEUGDjV34EL6vBGJcQvArLtj1xoP8y0nIfJ2Pw5TAgMBAAECgYAGGB8IllMwxceLhjf6n1l0IWRH7FuHIUieoZ6k0p6rASHSgWiYNRMxfecbtX8zDAoG0QAWNi7rn40ygpR5gS1fWDAKhmnhKgQIT6wW0VmD4hraaeyP78iy8BLhlvblri2nCPIhDH5+l96v7D47ZZi3ZSOzcj89s1eS/k7/N4peEQJBAPEtGGJY+lBoCxQMhGyzuzDmgcS1Un1ZE2pt+XNCVl2b+T8fxWJH3tRRR8wOY5uvtPiK1HM/IjT0T5qwQeH8Yk0CQQC0tcv3d/bDb7bOe9QzUFDQkUSpTdPWAgMX2OVPxjdq3Sls9oA5+fGNYEy0OgyqTjde0b4iRzlD1O0OhLqPSUMfAkEAh5FIvqezdRU2/PsYSR4yoAdCdLdT+h/jGRVefhqQ/6eYUJJkWp15tTFHQX3pIe9/s6IeT/XyHYAjaxmevxAmlQJBAKSdhvQjf9KAjZKDEsa7vyJ/coCXuQUWSCMNHbcR5aGfXgE4e45UtUoIE1eKGcd6AM6LWhx3rR6xdFDpb9je8BkCQB0SpevGfOQkMk5i8xkEt9eeYP0fi8nv6eOUcK96EXbzs4jV2SAoQJ9oJegPtPROHbhIvVUmNQTbuP10Yjg59+8=');
50
50
  let resdata = encrypt.decrypt(word);
51
- return JSON.parse(resdata.toString()) ;
51
+ return resdata.toString();
52
52
  },
53
53
  }
@@ -10,6 +10,9 @@ let loginGen = async function (name, password, cue) {
10
10
  //获取jwt
11
11
  Vue.$login.jwt = getLogin.data.jwt
12
12
  Vue.$login.jwtNew = getLogin.data.jwtNew
13
+ if (getLogin.data.s) {
14
+ Vue.$login['v3-session-key'] = cryptJS.RSADecrypt(getLogin.data.s)
15
+ }
13
16
  // 调用远程登录服务,获取所有有权访问的功能
14
17
  data = {username: name, password: password}
15
18
  data = cryptJS.RSAEncrypt(JSON.stringify(data))
@@ -36,7 +39,7 @@ let loginGen = async function (name, password, cue) {
36
39
  let hasRight = await Vue.resetpost(`/rs/search`, {
37
40
  source: "tool.getFullTree(this.getRights().where(row.getType() == $function$))",
38
41
  userid: Vue.$login.f.id
39
- }, { resolveMsg: null, rejectMsg: null })
42
+ }, {resolveMsg: null, rejectMsg: null})
40
43
  console.log('有权限功能返回数据', JSON.stringify(hasRight.data))
41
44
  //准备替换功能树
42
45
  var fun = []
@@ -219,7 +222,7 @@ let GetLoginInfoService = {
219
222
  //构建时间开关
220
223
  versionTime: true,
221
224
  //
222
- SinglePageToken : {},
225
+ SinglePageToken: {},
223
226
  //登录信息展示开关
224
227
  depPrompt: true,
225
228
  install(Vue, options) {
@@ -239,7 +242,11 @@ let GetLoginInfoService = {
239
242
  if (cue === undefined || cue === null || cue === '') {
240
243
  cue = true
241
244
  }
242
- Vue.$login.SinglePageToken = cryptJS.AESEncrypt(JSON.stringify({name,password}), "3KMKqvgwR8ULbR8Z")
245
+ Vue.$login.SinglePageToken = cryptJS.AESEncrypt(JSON.stringify({
246
+ name,
247
+ password,
248
+ now: Date.now()
249
+ }), "3KMKqvgwR8ULbR8Z")
243
250
  return loginGen(name, password, cue)
244
251
  },
245
252
 
@@ -10,6 +10,7 @@ let GetAppDataService = {
10
10
  // 开启卡监听
11
11
  load () {
12
12
  return Vue.resetpost('rs/logic/getInitData', {data: {f_filialeids: Vue.$login.f.orgid}}, {resolveMsg: null, rejectMsg: null}).then((res) => {
13
+ console.warn("getInitData",JSON.stringify(res),res.data)
13
14
  res.data.singleValues.forEach((item) => {
14
15
  this.singleValues[item.name] = item.value
15
16
  })
File without changes
File without changes
@@ -1,2 +0,0 @@
1
- #Thu Aug 03 14:29:00 CST 2023
2
- gradle.version=7.4
Binary file
File without changes
package/build.gradle DELETED
@@ -1,6 +0,0 @@
1
- version = '3.0.49'
2
-
3
- task release(type:Exec) {
4
- workingDir '.'
5
- commandLine 'cmd', '/c', 'release.bat ' + version
6
- }