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
@@ -155,8 +155,7 @@ let getwartermakr = async function (self) {
155
155
  tablename: 't_singlevalue',
156
156
  condition: " 1=1 and name=\'水印内容\'"
157
157
  };
158
- // todo v4
159
- let result = await self.$resetpost('api/af-revenue/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
158
+ let result = await self.$resetpost('rs/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
160
159
  if (result && result.data.length > 0) {
161
160
  self.showwatermakeflag = true;
162
161
  createWaterMark(result.data[0].value);
@@ -391,7 +390,7 @@ export default {
391
390
  this.OrderDaiBan = ''
392
391
  this.AppDaiBan = ''
393
392
  let http = new HttpResetClass()
394
- await http.load('POST', '/api/af-system/sql/singleTable', {data: {
393
+ await http.load('POST', '/rs/sql/singleTable', {data: {
395
394
  tablename:'t_order_center',
396
395
  condition:` (f_orderstate != '预约成功' and f_orgstr ='${this.$login.f.orgid}' and f_orderstate != '预约失败' ) or f_orderstate is null`
397
396
  }}, {
@@ -463,7 +462,7 @@ export default {
463
462
  }
464
463
  },
465
464
  openUrl() {
466
- var url = `http://123.60.214.109:8406/submitTicket?personName=${this.$login.f.name}&orgName=${this.$login.f.orgs}`
465
+ var url = `https://liuli.aofengcloud.com:31467`
467
466
  window.open(url, '_blank')
468
467
  },
469
468
  hindsetting() {
@@ -542,7 +541,6 @@ export default {
542
541
  username: this.$login.f.name,
543
542
  usertelephone: this.$login.f.f_user_telephone
544
543
  }
545
- // todo v4
546
544
  await this.$resetpost('rs/logic/logOut', data, {resolveMsg: '退出成功', rejectMsg: null})
547
545
  window.location.reload()
548
546
  }
@@ -151,8 +151,7 @@ let getwartermakr = async function (self) {
151
151
  tablename: 't_singlevalue',
152
152
  condition: " 1=1 and name=\'水印内容\'"
153
153
  };
154
- // todo v4
155
- let result = await self.$resetpost('api/af-revenue/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
154
+ let result = await self.$resetpost('rs/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
156
155
  if (result && result.data.length > 0) {
157
156
  self.showwatermakeflag = true;
158
157
  createWaterMark(`${result.data[0].value}${self.$login.f.ename}`);
@@ -292,7 +291,7 @@ export default {
292
291
  this.OrderDaiBan = ''
293
292
  this.AppDaiBan = ''
294
293
  let http = new HttpResetClass()
295
- await http.load('POST', '/api/af-system/sql/singleTable', {data: {
294
+ await http.load('POST', '/rs/sql/singleTable', {data: {
296
295
  tablename:'t_order_center',
297
296
  condition:` (f_orderstate != '预约成功' and f_orgstr ='${this.$login.f.orgid}' and f_orderstate != '预约失败' ) or f_orderstate is null`
298
297
  }}, {
@@ -364,7 +363,7 @@ export default {
364
363
  }
365
364
  },
366
365
  openUrl() {
367
- var url = `http://123.60.214.109:8406/submitTicket?personName=${this.$login.f.name}&orgName=${this.$login.f.orgs}`
366
+ var url = `https://liuli.aofengcloud.com:31467`
368
367
  window.open(url, '_blank')
369
368
  },
370
369
  hindsetting() {
@@ -423,7 +422,6 @@ export default {
423
422
  username: this.$login.f.name,
424
423
  usertelephone: this.$login.f.f_user_telephone
425
424
  }
426
- // todo v4
427
425
  await this.$resetpost('rs/logic/logOut', data, {resolveMsg: '退出成功', rejectMsg: null})
428
426
  window.location.reload()
429
427
  }
@@ -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
  }
@@ -2,21 +2,36 @@ import Vue from 'vue'
2
2
  import {HttpResetClass} from 'vue-client'
3
3
  import cryptJS from './EncryptUtil'
4
4
 
5
- let loginGen = async function (username, password, cue) {
6
- let data = {username, password,resourceName:'客服系统'}
7
- const getLogin = await Vue.resetpost('/api/af-auth/login', data,
8
- {resolveMsg: null, rejectMsg: null,headerConfig:{'Content-type': "application/json"}
9
- })
10
- if (getLogin.data) {
5
+ let loginGen = async function (name, password, cue) {
6
+ let data = {name: name, password: password}
7
+ data = '$' + cryptJS.RSAEncrypt(JSON.stringify(data))
8
+ const getLogin = await Vue.resetpost('/rs/logic/getLogin', data, {resolveMsg: null, rejectMsg: null})
9
+ if (getLogin.data.states === '登录成功') {
11
10
  //获取jwt
12
- if (getLogin.data.resources.data && getLogin.data.resources.data.id){
13
- Vue.$login.jwt = getLogin.data.resources.data.id
14
- Vue.$login.f = getLogin.data.resources.data
15
- }else {
16
- Vue.$login.jwt = getLogin.data.resources.id
17
- Vue.$login.f = getLogin.data.resources
11
+ Vue.$login.jwt = getLogin.data.jwt
12
+ Vue.$login.jwtNew = getLogin.data.jwtNew
13
+ if (getLogin.data.s) {
14
+ Vue.$login['v3-session-key'] = cryptJS.RSADecrypt(getLogin.data.s)
15
+ }
16
+ // 调用远程登录服务,获取所有有权访问的功能
17
+ data = {username: name, password: password}
18
+ data = cryptJS.RSAEncrypt(JSON.stringify(data))
19
+ const resource = await Vue.resetpost(`/rs/user/userLogin/客服系统`, data, {
20
+ resolveMsg: null,
21
+ rejectMsg: null
22
+ })
23
+ // 兼容旧版ldao
24
+ if ((JSON.stringify(resource.data).startsWith("{") || JSON.stringify(resource.data).startsWith("[")) && resource.data.code && resource.data.msg && resource.data.code !== 200) {
25
+ throw {status: 555, data: resource.data.msg}
26
+ }
27
+ console.log('登陆获取Util', JSON.stringify(resource.data))
28
+
29
+ // 兼容旧版ldao,旧版不返回code
30
+ if ((JSON.stringify(resource.data).startsWith("{") || JSON.stringify(resource.data).startsWith("[")) && resource.data.code && resource.data.msg) {
31
+ Vue.$login.f = resource.data.data
32
+ } else {
33
+ Vue.$login.f = resource.data
18
34
  }
19
- Vue.$login.jwtNew = getLogin.data.access_token
20
35
  // 把登录用户添加到cookie里
21
36
  Vue.cookie.set('loginId', Vue.$login.f.id)
22
37
  try {
@@ -24,7 +39,8 @@ let loginGen = async function (username, password, cue) {
24
39
  let hasRight = await Vue.resetpost(`/rs/search`, {
25
40
  source: "tool.getFullTree(this.getRights().where(row.getType() == $function$))",
26
41
  userid: Vue.$login.f.id
27
- }, { resolveMsg: null, rejectMsg: null })
42
+ }, {resolveMsg: null, rejectMsg: null})
43
+ console.log('有权限功能返回数据', JSON.stringify(hasRight.data))
28
44
  //准备替换功能树
29
45
  var fun = []
30
46
  hasRight.data[0].children[0].children.forEach((item) => {
@@ -34,6 +50,8 @@ let loginGen = async function (username, password, cue) {
34
50
  })
35
51
  }
36
52
  })
53
+ // console.log('替换前', JSON.stringify(Vue.$login.f.functions))
54
+ // console.log('替换后', JSON.stringify(fun))
37
55
  Vue.$login.f.functions = fun
38
56
  } catch (error) {
39
57
  }
@@ -84,6 +102,21 @@ let loginGen = async function (username, password, cue) {
84
102
  Vue.$login.f.f_installman = []
85
103
  console.log('安装人模块', error)
86
104
  }
105
+ // 获取换表员
106
+ // try {
107
+ // let getChangeMeterman = await Vue.resetpost('/rs/search', {
108
+ // source: 'this.getParentByType($organization$).getChildByName($换表员$).getUsers()',
109
+ // userid: Vue.$login.f.id
110
+ // }, {resolveMsg: null, rejectMsg: null})
111
+ // let changemeterman = []
112
+ // for (let i = 0; i < getChangeMeterman.data.length; i++) {
113
+ // changemeterman.push(getChangeMeterman.data[i])
114
+ // }
115
+ // Vue.$login.f.f_changemeterman = changemeterman
116
+ // }catch (error) {
117
+ // Vue.$login.f.f_changemeterman = []
118
+ // console.log('换表员模块',error)
119
+ // }
87
120
  // 获取资源服务权限
88
121
  try {
89
122
  let getLic = await Vue.resetpost('/rs/search', {
@@ -101,6 +134,37 @@ let loginGen = async function (username, password, cue) {
101
134
  Vue.$login.f.f_gasman = []
102
135
  console.log('资源服务权限', error)
103
136
  }
137
+ // // 票据使用人
138
+ // try {
139
+ // let getPaperUseman = await Vue.resetpost('/rs/search', {
140
+ // source: 'this.getParentByType($organization$).getChildByName($票据使用人$).getUsers()',
141
+ // userid: Vue.$login.f.id
142
+ // }, {resolveMsg: null, rejectMsg: null})
143
+ // let perperuseman = []
144
+ // for (let i = 0; i < getPaperUseman.data.length; i++) {
145
+ // perperuseman.push(getPaperUseman.data[i])
146
+ // }
147
+ // Vue.$login.f.f_paperUseman = perperuseman
148
+ // }catch (error) {
149
+ // Vue.$login.f.f_paperUseman = []
150
+ // console.log('票据使用人模块',error)
151
+ //
152
+ // }
153
+ // // 票据分配人
154
+ // try {
155
+ // let getPaperAllotman = await Vue.resetpost('/rs/search', {
156
+ // source: 'this.getParentByType($organization$).getChildByName($票据分配人$).getUsers()',
157
+ // userid: Vue.$login.f.id
158
+ // }, {resolveMsg: null, rejectMsg: null})
159
+ // let paperallotman = []
160
+ // for (let i = 0; i < getPaperAllotman.data.length; i++) {
161
+ // paperallotman.push(getPaperAllotman.data[i])
162
+ // }
163
+ // Vue.$login.f.f_paperAllotman = paperallotman
164
+ // }catch (error) {
165
+ // Vue.$login.f.f_paperAllotman = []
166
+ // console.log('票据分配人模块',error)
167
+ // }
104
168
  // TODO 处理界面细节
105
169
  try {
106
170
  let viewDetails = await Vue.resetpost('rs/search', {
@@ -144,10 +208,7 @@ let loginGen = async function (username, password, cue) {
144
208
  }
145
209
 
146
210
  } else {
147
- let error = {status: 401, data: "登录失败,请稍后重试"}
148
- if (getLogin.data.code !== 500) {
149
- error = {status: getLogin.data.code, data: getLogin.data.msg}
150
- }
211
+ let error = {status: 401, data: getLogin.data.states}
151
212
  // 抛出错误
152
213
  throw error
153
214
  }
@@ -161,7 +222,7 @@ let GetLoginInfoService = {
161
222
  //构建时间开关
162
223
  versionTime: true,
163
224
  //
164
- SinglePageToken : {},
225
+ SinglePageToken: {},
165
226
  //登录信息展示开关
166
227
  depPrompt: true,
167
228
  install(Vue, options) {
@@ -181,7 +242,11 @@ let GetLoginInfoService = {
181
242
  if (cue === undefined || cue === null || cue === '') {
182
243
  cue = true
183
244
  }
184
- 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")
185
250
  return loginGen(name, password, cue)
186
251
  },
187
252
 
@@ -9,7 +9,7 @@ let GetAppDataService = {
9
9
 
10
10
  // 开启卡监听
11
11
  load () {
12
- return Vue.resetpost('api/af-system/logic/getInitData', {data: {f_filialeids: Vue.$login.f.orgid}}, {resolveMsg: null, rejectMsg: null}).then((res) => {
12
+ return Vue.resetpost('rs/logic/getInitData', {data: {f_filialeids: Vue.$login.f.orgid}}, {resolveMsg: null, rejectMsg: null}).then((res) => {
13
13
  res.data.singleValues.forEach((item) => {
14
14
  this.singleValues[item.name] = item.value
15
15
  })
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
- }