system-clients 3.2.93 → 3.2.94-temp

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 (66) hide show
  1. package/.gradle/7.4/checksums/checksums.lock +0 -0
  2. package/.gradle/7.4/dependencies-accessors/dependencies-accessors.lock +0 -0
  3. package/.gradle/7.4/dependencies-accessors/gc.properties +0 -0
  4. package/.gradle/7.4/executionHistory/executionHistory.bin +0 -0
  5. package/.gradle/7.4/executionHistory/executionHistory.lock +0 -0
  6. package/.gradle/7.4/fileChanges/last-build.bin +0 -0
  7. package/.gradle/7.4/fileHashes/fileHashes.bin +0 -0
  8. package/.gradle/7.4/fileHashes/fileHashes.lock +0 -0
  9. package/.gradle/7.4/gc.properties +0 -0
  10. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  11. package/.gradle/buildOutputCleanup/cache.properties +2 -0
  12. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  13. package/.gradle/file-system.probe +0 -0
  14. package/.gradle/vcs-1/gc.properties +0 -0
  15. package/package.json +2 -2
  16. package/src/components/Main.vue +42 -18
  17. package/src/components/equipment/EquipmentManage.vue +83 -83
  18. package/src/components/equipment/PcAdd.vue +115 -115
  19. package/src/components/equipment/PcList.vue +119 -119
  20. package/src/components/equipment/PcManage.vue +61 -61
  21. package/src/components/equipment/PhoneAdd.vue +118 -118
  22. package/src/components/equipment/PhoneList.vue +113 -113
  23. package/src/components/equipment/PhoneManage.vue +61 -61
  24. package/src/components/equipment/PosAdd.vue +10 -6
  25. package/src/components/equipment/PosList.vue +5 -3
  26. package/src/components/equipment/PosParamAdd.vue +1 -1
  27. package/src/components/equipment/PosParamList.vue +2 -2
  28. package/src/components/parammanage/ParamPage.vue +12 -12
  29. package/src/components/parammanage/SinglePage.vue +8 -8
  30. package/src/components/server/Login.vue +35 -17
  31. package/src/components/server/ModifyPw.vue +0 -1
  32. package/src/components/server/PcdBuildingSelect.vue +0 -2
  33. package/src/components/server/ResSelect.vue +166 -169
  34. package/src/components/server/ResSelectGroup.vue +211 -211
  35. package/src/components/server/RoleSelector.vue +2 -3
  36. package/src/filiale/baole/Login.vue +0 -2
  37. package/src/filiale/bayan/PosAdd.vue +369 -0
  38. package/src/filiale/bayan/PosList.vue +349 -0
  39. package/src/filiale/bayan/PosManage.vue +138 -0
  40. package/src/filiale/bayan/system.js +6 -0
  41. package/src/filiale/chengtou/Login.vue +0 -2
  42. package/src/filiale/dongguan/Login.vue +0 -2
  43. package/src/filiale/dongguan/Main.vue +0 -2
  44. package/src/filiale/furuike/Login.vue +0 -4
  45. package/src/filiale/furuike/Main.vue +0 -2
  46. package/src/filiale/gehua/Main.vue +0 -2
  47. package/src/filiale/konggang/Login.vue +0 -2
  48. package/src/filiale/qianneng/Login.vue +582 -584
  49. package/src/filiale/qianneng/Main.vue +2 -4
  50. package/src/filiale/qianneng/ModifyPw.vue +0 -1
  51. package/src/filiale/rizhao/Login.vue +0 -2
  52. package/src/filiale/rizhao/Main.vue +1 -1
  53. package/src/filiale/shiquan/Login.vue +0 -2
  54. package/src/filiale/tianyi/Login.vue +0 -2
  55. package/src/filiale/tongchuan/Login.vue +0 -2
  56. package/src/filiale/tongchuan/Main.vue +1 -3
  57. package/src/filiale/weinan/Main.vue +923 -924
  58. package/src/filiale/weinan/system.js +7 -7
  59. package/src/filiale/wenxi/Login.vue +0 -2
  60. package/src/filiale/wenxi/Main.vue +0 -2
  61. package/src/filiale/wuhai/Main.vue +0 -3
  62. package/src/filiale/yuchuan/Login.vue +0 -2
  63. package/src/filiale/yuchuan/Main.vue +0 -2
  64. package/src/filiale/zhoukou/Main.vue +0 -2
  65. package/src/plugins/GetLoginInfoService.js +75 -13
  66. package/src/stores/AppData.js +1 -1
@@ -174,7 +174,7 @@ let saveGen = function *(self) {
174
174
  console.log('登录配置', self.config)
175
175
  if (self.config.isMac) {
176
176
  // 获取该登录人分公司下的mac配置
177
- let getMacs = yield self.$resetpost('api/af-system/sql/equipmentQuery', {data: {condition: `f_filialeids like '%${self.$login.f.f_orgids}%'`}}, {
177
+ let getMacs = yield self.$resetpost('rs/sql/equipmentQuery', {data: {condition: `f_filialeids like '%${self.$login.f.f_orgids}%'`}}, {
178
178
  resolveMsg: null,
179
179
  rejectMsg: null
180
180
  }).catch(() => {
@@ -239,7 +239,7 @@ let saveGen = function *(self) {
239
239
  msg = ret.data
240
240
  } else if (ret.status === 710) {
241
241
  msg = ret.data
242
- } else {
242
+ } else if (ret.status === 555) {
243
243
  msg = ret.data
244
244
  }
245
245
  self.createCode()
@@ -257,6 +257,21 @@ export default {
257
257
  this.titleShow = this.$appdata.getSingleValue('关于我们')
258
258
  window.versionTime = window.versionTime ? window.versionTime : new Date().getTime()
259
259
  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){}
273
+
274
+ this.loginother();
260
275
  $('#login-button').click(function (event) {
261
276
  event.preventDefault()
262
277
  $('form').fadeOut(500)
@@ -412,24 +427,27 @@ export default {
412
427
  }else {
413
428
  console.log("待办提醒全局关闭。")
414
429
  }
430
+
431
+
432
+
433
+
415
434
  },
416
435
 
417
436
  async loginother(){
418
- // if (this.config.distanceLogin) {
419
- // if (this.$login && this.$login.getUrlParames('name') ) {
420
- // let ename = this.$login.getUrlParames('name');
421
- // // todo v4
422
- // let logininfo = await this.$resetpost('rs/logic/getLoginData',{data:{ename:ename}},{resolveMsg: null, rejectMsg: null});
423
- // if(logininfo.data){
424
- // if(logininfo.data.ename && logininfo.data.password){
425
- // this.model.ename = logininfo.data.ename
426
- // this.model.password =logininfo.data.password
427
- // let gen = saveGen(this)
428
- // return co(gen)
429
- // }
430
- // }
431
- // }
432
- // }
437
+ if (this.config.distanceLogin) {
438
+ if (this.$login && this.$login.getUrlParames('name') ) {
439
+ let ename = this.$login.getUrlParames('name');
440
+ let logininfo = await this.$resetpost('rs/logic/getLoginData',{data:{ename:ename}},{resolveMsg: null, rejectMsg: null});
441
+ if(logininfo.data){
442
+ if(logininfo.data.ename && logininfo.data.password){
443
+ this.model.ename = logininfo.data.ename
444
+ this.model.password =logininfo.data.password
445
+ let gen = saveGen(this)
446
+ return co(gen)
447
+ }
448
+ }
449
+ }
450
+ }
433
451
  },
434
452
  theme(){
435
453
  // var elementList = document.querySelectorAll('body');
@@ -62,7 +62,6 @@
62
62
  // let res = yield self.$post('rs/db/modifypassword', {data: self.deliver})
63
63
  // let res = yield self.$resetpost('/rs/db/modifypwd', {data: self.deliver})
64
64
  // Util.f.password = self.deliver.newpassword
65
- // todo v4
66
65
  let res = yield self.$resetpost('/rs/user/modifypwd', {data: self.deliver }, {resolveMsg: null,rejectMsg: null})
67
66
  self.$login.f.password = self.deliver.newpassword
68
67
  if (res.data) {
@@ -155,7 +155,6 @@
155
155
  async pcdChange(){
156
156
  this.arrays.street=[{label:'全部',value:''}]
157
157
  var condition = `f_filialeid = '${this.$login.f.orgid}' and f_street is not null group by f_street`
158
- // todo v4
159
158
  let street = await this.$resetpost('rs/sql/singleTable_OrderBy', {
160
159
  data: {
161
160
  items: 'f_street',
@@ -193,7 +192,6 @@
193
192
  }else{
194
193
  condition = `f_filialeid = '${this.$login.f.orgid}' and f_building is not null group by f_building`
195
194
  }
196
- // todo v4
197
195
  let build = await this.$resetpost('rs/sql/singleTable_OrderBy', {
198
196
  data: {
199
197
  items: 'f_building',
@@ -1,169 +1,166 @@
1
- <template>
2
- <v-select :options='resoptions' placeholder='请选择'
3
- :value.sync="selectres"
4
- :multiple="isMul"
5
- search="true"
6
- :disabled="mustselect"
7
- :close-on-select="!isMul"
8
- @change="resChange"
9
- >
10
- </v-select>
11
- </template>
12
- <script>
13
- import {HttpResetClass} from 'vue-client'
14
-
15
- export default {
16
- title: '资源选择',
17
- props: {
18
-
19
- //资源类型
20
- restype:'',
21
- //是否只查询营业厅
22
- specialquery: {
23
- type: Boolean,
24
- default: false
25
- },
26
- //资源数据
27
- resObj:{},
28
- isMul: {
29
- type: Boolean,
30
- default: true
31
- },
32
- //资源初始化数据
33
- initresid: {
34
- type: Array,
35
- default() { return [] },
36
- },
37
- //父层id
38
- parentresid: {
39
- type: Array,
40
- default() { return [] },
41
- },
42
- mustselect: {
43
- type: Boolean,
44
- default: false
45
- },
46
- },
47
- data () {
48
- return {
49
- //资源数据
50
- resObj:{},
51
- //资源数据列表
52
- resoptions:[],
53
- //选中资源数据
54
- selectres: [],
55
- }
56
- },
57
- ready () {
58
- //获取资源列表
59
- this.getResList()
60
- },
61
- methods:{
62
- //树形结构变成list
63
- findById(val) {
64
- if(val){
65
- if(this.checkidres(val)){
66
- this.treetoList(val,'')
67
- }else if(val.children.length>0){
68
- for (let value of val.children) {
69
- this.findById(value)
70
- }
71
- }
72
- }
73
- },
74
- //树形结构变成list
75
- treetoList(val,parentname) {
76
- for (let value of val.children) {
77
- this.ergodicList(value,parentname)
78
- }
79
- },
80
- //找到跟节点
81
- ergodicList (val,parentname) {
82
- if(val.children.length > 0 ){
83
- if (val.name !== '组织机构'){
84
- this.resoptions.push({label: parentname === '组织机构' ? val.name : val.name+' - '+parentname, value: val.id})
85
- }
86
- parentname=parentname+val.name
87
- this.treetoList(val,parentname)
88
- }else {
89
- //截取组织机构【组织机构】
90
- if(this.restype=='organization'){
91
- parentname=parentname.replace("组织机构","")
92
- this.resoptions.push({label: val.name+' - '+parentname, value: val.id})
93
- }else{
94
- if (this.specialquery && this.restype == 'department') {
95
- if (val.f_dep_type === '营业厅') {
96
- this.resoptions.push({label: val.name, value: val.id})
97
- }
98
- }else {
99
- this.resoptions.push({label: val.name, value: val.id})
100
- }
101
- }
102
- }
103
- },
104
- //检查id是否存在
105
- checkidres(val){
106
- let flag=false
107
- //如果没传值得话 不过滤
108
- if(this.parentresid.length==0&&this.restype=='organization'){
109
- flag=true
110
- }
111
- this.parentresid.forEach((item) => {
112
- if(item==val.id){
113
- flag=true
114
- }
115
- })
116
- return flag;
117
- },
118
- //资源改变
119
- resChange(val){
120
- let orgnames=[]
121
- Object.keys(this.resoptions).forEach((key) => {
122
- if(this.selectres.includes(this.resoptions[key].value))
123
- orgnames.push(this.resoptions[key].label)
124
- })
125
- console.log('资源改变。。', val, orgnames)
126
- this.$dispatch('res-select', this.selectres, orgnames)
127
- },
128
- //获取资源数据
129
- async getResList() {
130
-
131
- let http = new HttpResetClass()
132
-
133
- let req = await http.load('POST', '/rs/search', {data: {
134
- source: `tool.getFullTree(this.getRights().where(row.getType()==$${this.restype}$))`,
135
- userid: this.$login.f.id
136
- }}, {resolveMsg: null, rejectMsg: '获取组织结构数据出错'})
137
- this.resObj=req.data[0]
138
- this.dealdata()
139
- },
140
- dealdata(){
141
- this.resoptions=[]
142
- this.findById(this.resObj);
143
- //赋值资源数据
144
- let arryselect=[]
145
- this.resoptions.forEach((item) => {
146
- if(this.initresid.length>0){
147
- this.initresid.forEach((init) => {
148
- if(item.value==init){
149
- arryselect.push(item.value)
150
- }
151
- })
152
- }
153
- })
154
- //赋值资源选中初始值
155
- this.selectres=arryselect
156
- }
157
- },
158
- watch: {
159
- //监听初始化资源id
160
- 'initresid.length'(){
161
- this.dealdata()
162
- },
163
- //监听初始化资源id
164
- 'parentresid'(){
165
- this.dealdata()
166
- },
167
- },
168
- }
169
- </script>
1
+ <template>
2
+ <v-select :options='resoptions' placeholder='请选择'
3
+ :value.sync="selectres"
4
+ :multiple="isMul"
5
+ search="true"
6
+ :disabled="mustselect"
7
+ :close-on-select="!isMul"
8
+ @change="resChange"
9
+ >
10
+ </v-select>
11
+ </template>
12
+ <script>
13
+ import {HttpResetClass} from 'vue-client'
14
+
15
+ export default {
16
+ title: '资源选择',
17
+ props: {
18
+
19
+ //资源类型
20
+ restype:'',
21
+ //是否只查询营业厅
22
+ specialquery: {
23
+ type: Boolean,
24
+ default: false
25
+ },
26
+ //资源数据
27
+ resObj:{},
28
+ isMul: {
29
+ type: Boolean,
30
+ default: true
31
+ },
32
+ //资源初始化数据
33
+ initresid: {
34
+ type: Array,
35
+ default() { return [] },
36
+ },
37
+ //父层id
38
+ parentresid: {
39
+ type: Array,
40
+ default() { return [] },
41
+ },
42
+ mustselect: {
43
+ type: Boolean,
44
+ default: false
45
+ },
46
+ },
47
+ data () {
48
+ return {
49
+ //资源数据
50
+ resObj:{},
51
+ //资源数据列表
52
+ resoptions:[],
53
+ //选中资源数据
54
+ selectres: [],
55
+ }
56
+ },
57
+ ready () {
58
+ //获取资源列表
59
+ this.getResList()
60
+ },
61
+ methods:{
62
+ //树形结构变成list
63
+ findById(val) {
64
+ if(val){
65
+ if(this.checkidres(val)){
66
+ this.treetoList(val,'')
67
+ }else if(val.children.length>0){
68
+ for (let value of val.children) {
69
+ this.findById(value)
70
+ }
71
+ }
72
+ }
73
+ },
74
+ //树形结构变成list
75
+ treetoList(val,parentname) {
76
+ for (let value of val.children) {
77
+ this.ergodicList(value,parentname)
78
+ }
79
+ },
80
+ //找到跟节点
81
+ ergodicList (val,parentname) {
82
+ if(val.children.length > 0 ){
83
+ parentname=parentname+val.name
84
+ this.treetoList(val,parentname)
85
+ }else {
86
+ //截取组织机构【组织机构】
87
+ if(this.restype=='organization'){
88
+ parentname=parentname.replace("组织机构","")
89
+ this.resoptions.push({label: val.name+' - '+parentname, value: val.id})
90
+ }else{
91
+ if (this.specialquery && this.restype == 'department') {
92
+ if (val.f_dep_type === '营业厅') {
93
+ this.resoptions.push({label: val.name, value: val.id})
94
+ }
95
+ }else {
96
+ this.resoptions.push({label: val.name, value: val.id})
97
+ }
98
+ }
99
+ }
100
+ },
101
+ //检查id是否存在
102
+ checkidres(val){
103
+ let flag=false
104
+ //如果没传值得话 不过滤
105
+ if(this.parentresid.length==0&&this.restype=='organization'){
106
+ flag=true
107
+ }
108
+ this.parentresid.forEach((item) => {
109
+ if(item==val.id){
110
+ flag=true
111
+ }
112
+ })
113
+ return flag;
114
+ },
115
+ //资源改变
116
+ resChange(val){
117
+ let orgnames=[]
118
+ Object.keys(this.resoptions).forEach((key) => {
119
+ if(this.selectres.includes(this.resoptions[key].value))
120
+ orgnames.push(this.resoptions[key].label)
121
+ })
122
+ console.log('资源改变。。', val, orgnames)
123
+ this.$dispatch('res-select', this.selectres, orgnames)
124
+ },
125
+ //获取资源数据
126
+ async getResList() {
127
+
128
+ let http = new HttpResetClass()
129
+
130
+ let req = await http.load('POST', '/rs/search', {data: {
131
+ source: `tool.getFullTree(this.getRights().where(row.getType()==$${this.restype}$))`,
132
+ userid: this.$login.f.id
133
+ }}, {resolveMsg: null, rejectMsg: '获取组织结构数据出错'})
134
+ this.resObj=req.data[0]
135
+ this.dealdata()
136
+ },
137
+ dealdata(){
138
+ this.resoptions=[]
139
+ this.findById(this.resObj);
140
+ //赋值资源数据
141
+ let arryselect=[]
142
+ this.resoptions.forEach((item) => {
143
+ if(this.initresid.length>0){
144
+ this.initresid.forEach((init) => {
145
+ if(item.value==init){
146
+ arryselect.push(item.value)
147
+ }
148
+ })
149
+ }
150
+ })
151
+ //赋值资源选中初始值
152
+ this.selectres=arryselect
153
+ }
154
+ },
155
+ watch: {
156
+ //监听初始化资源id
157
+ 'initresid.length'(){
158
+ this.dealdata()
159
+ },
160
+ //监听初始化资源id
161
+ 'parentresid'(){
162
+ this.dealdata()
163
+ }
164
+ },
165
+ }
166
+ </script>