system-clients 3.3.2 → 3.3.3-old

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 (68) 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 +103 -103
  16. package/src/LodopFuncs.js +71 -103
  17. package/src/components/Main.vue +13 -21
  18. package/src/components/equipment/PcAdd.vue +1 -1
  19. package/src/components/equipment/PcList.vue +3 -3
  20. package/src/components/equipment/PhoneAdd.vue +1 -1
  21. package/src/components/equipment/PhoneList.vue +2 -2
  22. package/src/components/equipment/PosAdd.vue +11 -7
  23. package/src/components/equipment/PosList.vue +5 -3
  24. package/src/components/equipment/PosManage.vue +1 -1
  25. package/src/components/equipment/PosParamAdd.vue +2 -2
  26. package/src/components/equipment/PosParamList.vue +2 -2
  27. package/src/components/materialManage/materialList.vue +1 -1
  28. package/src/components/parammanage/ParamPage.vue +12 -12
  29. package/src/components/parammanage/ParamPages.vue +2 -2
  30. package/src/components/parammanage/SinglePage.vue +8 -8
  31. package/src/components/parammanage/SinglePages.vue +2 -2
  32. package/src/components/server/AddChangeMsg.vue +1 -1
  33. package/src/components/server/ChangeDeclare.vue +1 -1
  34. package/src/components/server/Login.vue +32 -18
  35. package/src/components/server/ModifyPw.vue +0 -1
  36. package/src/components/server/PcdBuildingSelect.vue +6 -8
  37. package/src/components/server/ResSelect.vue +0 -3
  38. package/src/components/server/ResSelectGroup.vue +1 -1
  39. package/src/components/server/RoleSelector.vue +2 -3
  40. package/src/components/server/TestResSelectGroup.vue +1 -1
  41. package/src/filiale/baole/Login.vue +2 -4
  42. package/src/filiale/chengtou/Login.vue +2 -4
  43. package/src/filiale/dongguan/Login.vue +2 -4
  44. package/src/filiale/dongguan/Main.vue +2 -4
  45. package/src/filiale/furuike/Login.vue +3 -7
  46. package/src/filiale/furuike/Main.vue +25 -38
  47. package/src/filiale/gehua/Main.vue +2 -4
  48. package/src/filiale/konggang/Login.vue +2 -4
  49. package/src/filiale/qianneng/Login.vue +2 -4
  50. package/src/filiale/qianneng/Main.vue +2 -4
  51. package/src/filiale/qianneng/ModifyPw.vue +0 -1
  52. package/src/filiale/rizhao/Login.vue +1 -3
  53. package/src/filiale/rizhao/Main.vue +2 -2
  54. package/src/filiale/shiquan/Login.vue +2 -4
  55. package/src/filiale/tianyi/Login.vue +2 -4
  56. package/src/filiale/tongchuan/Login.vue +2 -4
  57. package/src/filiale/tongchuan/Main.vue +5 -7
  58. package/src/filiale/weinan/Main.vue +5 -6
  59. package/src/filiale/wenxi/Login.vue +2 -4
  60. package/src/filiale/wenxi/Main.vue +2 -4
  61. package/src/filiale/wuhai/Main.vue +2 -5
  62. package/src/filiale/yuchuan/Login.vue +3 -5
  63. package/src/filiale/yuchuan/Main.vue +2 -4
  64. package/src/filiale/zhoukou/Main.vue +2 -4
  65. package/src/plugins/GetLoginInfoService.js +75 -17
  66. package/src/stores/AppData.js +1 -1
  67. package/src/filiale/ruihua/Login.vue +0 -549
  68. package/src/filiale/ruihua/system.js +0 -5
@@ -33,7 +33,7 @@
33
33
  <label class="font_normal_body" >机器编号</label>
34
34
  <input type="text" class="input_search" style="width: 60%" v-model="model.f_machine_number" placeholder="机器编号" >
35
35
  </div>
36
- <div class="col-sm-6 form-group" :class="{'has-error': $v.f_phone.required || $v.f_phone.minlength || $v.f_phone.maxlength}">
36
+ <div class="col-sm-6 form-group" :class="{'has-error': $v.f_phone.required}">
37
37
  <label class="font_normal_body">联系电话</label>
38
38
  <input type="text" class="input_search" style="width: 60%" v-model="model.f_phone" placeholder="联系电话"
39
39
  v-validate:f_phone="{required: true, minlength:7, maxlength: 11}" title="手机号必须7-11位">
@@ -223,7 +223,10 @@ import {HttpResetClass, PagedList} from 'vue-client'
223
223
  this.$showAlert(`已向设备号: ${this.model.f_terminal_number}发送停用指令,请稍后查看执行结果!`, 'success', 2500)
224
224
  this.model.f_state = '停用'
225
225
  try {
226
- this.$resetpost('api/af-system/logic/batchPos',{data: {tasks: [this.data], taskState: 0}}, {rejectMsg: null, resolveMsg: null})
226
+ // 测试接口
227
+ // this.$resetpost('rs/logic/updatePosState', {data: {number: this.model.f_terminal_number, state: '停用'}}, {resolveMsg: null, rejectMsg: null}, 0)
228
+ // .then((res) => {})
229
+ this.$resetpost('rs/logic/batchPos',{data: {tasks: [this.data], taskState: 0}}, {rejectMsg: null, resolveMsg: null})
227
230
  } catch (error) {
228
231
  this.search()
229
232
  }
@@ -235,7 +238,10 @@ import {HttpResetClass, PagedList} from 'vue-client'
235
238
  this.$showAlert(`已向设备号: ${this.model.f_terminal_number}发送启用指令,请稍后查看执行结果!`, 'success', 2500)
236
239
  this.model.f_state = '正常'
237
240
  try {
238
- this.$resetpost('api/af-system/logic/batchPos',{data: {tasks: [this.data], taskState: 1}}, {rejectMsg: null, resolveMsg: null})
241
+ // 测试接口
242
+ // this.$resetpost('rs/logic/getEditPosState', {data: {number: this.model.f_terminal_number, state: '正常'}}, {resolveMsg: null, rejectMsg: null}, 0)
243
+ // .then((res) => {})
244
+ this.$resetpost('rs/logic/batchPos',{data: {tasks: [this.data], taskState: 1}}, {rejectMsg: null, resolveMsg: null})
239
245
  } catch (error) {
240
246
  this.search()
241
247
  }
@@ -253,8 +259,7 @@ import {HttpResetClass, PagedList} from 'vue-client'
253
259
  this.show=true
254
260
  },
255
261
  upgradeRoot() {
256
- // todo v4
257
- this.$resetpost('api/af-revenue/logic/batchPos',{data: {tasks: [this.data], taskState: 2}}, {rejectMsg: null, resolveMsg: null})
262
+ this.$resetpost('rs/logic/batchPos',{data: {tasks: [this.data], taskState: 2}}, {rejectMsg: null, resolveMsg: null})
258
263
  this.$dispatch('refresh')
259
264
  },
260
265
  search () {
@@ -273,8 +278,7 @@ import {HttpResetClass, PagedList} from 'vue-client'
273
278
  this.model.f_depname = this.$login.f.deps
274
279
  this.model.f_orgstr = this.$login.f.fullids
275
280
  }
276
- // todo v4
277
- this.$resetpost('api/af-system/logic/save_equipment', this.model, {resolveMsg: '保存成功', rejectMsg: '保存失败'}).then((res) => {
281
+ this.$resetpost('rs/entity/t_equipment', this.model, {resolveMsg: '保存成功', rejectMsg: '保存失败'}).then((res) => {
278
282
  this.$dispatch('refresh')
279
283
  }).catch((error) => {
280
284
  this.$dispatch('refresh')
@@ -165,8 +165,8 @@
165
165
  data () {
166
166
  return {
167
167
  source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() != $role$))`,
168
- model: new PagedList('api/af-system/sql/equipmentQuery', 20),
169
- model2: new PagedList('api/af-system/sql/singleTable', 30, {tablename: '`t_poshistory`'}),
168
+ model: new PagedList('rs/sql/equipmentQuery', 20),
169
+ model2: new PagedList('rs/sql/singleTable', 30, {tablename: '`t_poshistory`'}),
170
170
  curorgid: [this.f_filialeid],
171
171
  f_orgid: '',
172
172
  f_filialeids: '',
@@ -238,7 +238,7 @@
238
238
  this.showAlert('出现异常,请重新进操作')
239
239
  return
240
240
  }
241
- await this.$resetpost('api/af-system/logic/batchPos', {data: {tasks: arrs, taskState: val}}, {
241
+ await this.$resetpost('rs/logic/batchPos', {data: {tasks: arrs, taskState: val}}, {
242
242
  rejectMsg: null,
243
243
  resolveMsg: null
244
244
  })
@@ -253,6 +253,7 @@
253
253
  this.infoshow = true
254
254
  },
255
255
  search () {
256
+ console.log("111111111111111111111111111111111111")
256
257
  this.$refs.paged.$refs.cri.search()
257
258
  },
258
259
 
@@ -277,6 +278,7 @@
277
278
  },
278
279
 
279
280
  getorg (val) {
281
+ console.log("====================", val)
280
282
  this.f_orgid = val[0]
281
283
  this.f_filialeid = val[0]
282
284
  // this.search()
@@ -78,7 +78,7 @@
78
78
  // return
79
79
  // }
80
80
  //
81
- // await this.$resetpost('api/af-revenue/logic/batchPos',{data: {tasks: arrs, taskState: val}}, {rejectMsg: null, resolveMsg: null})
81
+ // await this.$resetpost('rs/logic/batchPos',{data: {tasks: arrs, taskState: val}}, {rejectMsg: null, resolveMsg: null})
82
82
  //
83
83
  // // 需要提示
84
84
  // this.$showAlert(`已经开始批量${alertMessage},选择${selPos.length},其中${arrs.length}台可以正常${alertMessage},具体请留意设备情况,并刷新列表查看执行结果!`)
@@ -124,7 +124,7 @@ export default {
124
124
  this.bankmodel = JSON.parse(JSON.stringify(this.bankmodel))
125
125
  },
126
126
  async confirm() {
127
- await this.$resetpost('api/af-system/logic/Pos_saveParam',
127
+ await this.$resetpost('rs/logic/Pos_saveParam',
128
128
  {
129
129
  data: {
130
130
  model: this.model,
@@ -139,7 +139,7 @@ export default {
139
139
  async edit(param_id) {
140
140
  this.param_id = param_id
141
141
  let load = new HttpResetClass()
142
- load.load("POST", 'api/af-system/sql/singleTable',
142
+ load.load("POST", 'rs/sql/singleTable',
143
143
  {
144
144
  data: {
145
145
  tablename: ' t_equipment_param ',
@@ -73,7 +73,7 @@ export default {
73
73
  components: {},
74
74
  data() {
75
75
  return {
76
- model: new PagedList('api/af-system/sql/get_posParam', 20),
76
+ model: new PagedList('rs/sql/get_posParam', 20),
77
77
  curorgid: [this.f_filialeid],
78
78
  }
79
79
  },
@@ -93,7 +93,7 @@ export default {
93
93
  }
94
94
  },
95
95
  async delete(row) {
96
- await this.$resetpost('api/af-system/logic/deletePosParam', {data: row}, {rejectMsg: null, resolveMsg: null})
96
+ await this.$resetpost('rs/logic/deletePosParam', {data: row}, {rejectMsg: null, resolveMsg: null})
97
97
  await this.search()
98
98
  },
99
99
  modify(row) {
@@ -175,7 +175,7 @@
175
175
  data(){
176
176
  //配置后台systemModule,sql
177
177
  return{
178
- model: new PagedList('api/af-revenue/sql/singleTable_OrderBy', 50),
178
+ model: new PagedList('rs/sql/singleTable_OrderBy', 50),
179
179
  row: null,
180
180
  searchshow: true,
181
181
  obj: {
@@ -64,10 +64,10 @@
64
64
  <template partial='body'>
65
65
  <td style="text-align:center">{{$index+1}}</td>
66
66
  <td style="text-align:center">{{row.name}}</td>
67
- <td class="flex-row col-sm-5">
68
- <button type="button" name="button" class="button_search button_spacing width-60" @click.stop="$parent.$parent.modifyParam(row, 't_paramvalue')">修改</button>
69
- <button type="button" name="button" class="button_search button_spacing width-60" v-if="$index!=0" @click.stop="$parent.$parent.move(row,$index)">上移</button>
70
- <button type="button" name="button" class="btn btn-danger button_spacing width-60" @click.stop="$parent.$parent.deleteParam(row, 't_paramvalue')">删除</button>
67
+ <td class="flex-around col-sm-3">
68
+ <button type="button" name="button" class="button_search" @click.stop="$parent.$parent.modifyParam(row, 't_paramvalue')">修改</button>
69
+ <button type="button" name="button" class="button_search" v-if="$index!=0" @click.stop="$parent.$parent.move(row,$index)">上移</button>
70
+ <button type="button" name="button" class="btn btn-danger" @click.stop="$parent.$parent.deleteParam(row, 't_paramvalue')">删除</button>
71
71
  </td>
72
72
  </template>
73
73
  </data-grid>
@@ -179,8 +179,8 @@
179
179
  var param2=this.params.rows[index-1]
180
180
  let http = new HttpResetClass()
181
181
  try {
182
- await http.load('POST', 'api/af-system/logic/system_saveParamValue', param1, {resolveMsg: null, rejectMsg: null})
183
- await http.load('POST', 'api/af-system/logic/system_saveParamValue', param2, {resolveMsg: null, rejectMsg: null})
182
+ await http.load('POST', 'rs/entity/t_paramvalue', param1, {resolveMsg: null, rejectMsg: null})
183
+ await http.load('POST', 'rs/entity/t_paramvalue', param2, {resolveMsg: null, rejectMsg: null})
184
184
  this.$showAlert('上移成功', 'success', 2000)
185
185
  }catch (e) {
186
186
  console.log(e)
@@ -198,7 +198,7 @@
198
198
  async queryParam (condition) {
199
199
  this.model.rows = []
200
200
  let http = new HttpResetClass()
201
- let res = await http.load('POST', 'api/af-system/sql/system_getParam', {data: condition}, {resolveMsg: null, rejectMsg: '获取参数出错!!'})
201
+ let res = await http.load('POST', 'rs/sql/system_getParam', {data: condition}, {resolveMsg: null, rejectMsg: '获取参数出错!!'})
202
202
  this.model.rows = res.data
203
203
  },
204
204
  selected (val) {
@@ -207,7 +207,7 @@
207
207
  },
208
208
  async getParamValue(obj) {
209
209
  let http = new HttpResetClass()
210
- let res = await http.load('POST', 'api/af-system/sql/system_getParamValue', {data: {param_id: obj.id}}, {resolveMsg: null, rejectMsg: '获取参数出错!!'})
210
+ let res = await http.load('POST', 'rs/sql/system_getParamValue', {data: {param_id: obj.id}}, {resolveMsg: null, rejectMsg: '获取参数出错!!'})
211
211
  this.params.rows = res.data
212
212
  },
213
213
  filter_query (paramName,orgid) {
@@ -258,7 +258,7 @@
258
258
  if (type === 't_parameter') {
259
259
  this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
260
260
  if (res === 'confirm') {
261
- this.$resetpost('api/af-system/logic/deleteParam', row).then((res) => {
261
+ this.$resetpost('rs/logic/deleteParam', row).then((res) => {
262
262
  this.filter_query(this.conditionModel.paramName, this.conditionModel.f_cond_orgid)
263
263
  this.selectItem = null
264
264
  })
@@ -267,7 +267,7 @@
267
267
  } else if (type === 't_paramvalue') {
268
268
  this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
269
269
  if (res === 'confirm') {
270
- this.$resetpost('api/af-system/logic/deleteValue', {tablename: 't_paramvalue', id: row.id}).then((res) => {
270
+ this.$resetpost('rs/logic/deleteValue', {tablename: 't_paramvalue', id: row.id}).then((res) => {
271
271
  this.getParamValue(this.selectItem)
272
272
  })
273
273
  }
@@ -291,7 +291,7 @@
291
291
  //添加当前分公司
292
292
  }
293
293
  data.f_filialeids = this.modifyItem.f_filialeids
294
- this.$resetpost('api/af-system/logic/system_saveParam', data).then((res) => {
294
+ this.$resetpost('rs/logic/system_saveParam', data).then((res) => {
295
295
  //无id
296
296
  this.filter_query(this.conditionModel.paramName, this.conditionModel.f_cond_orgid)
297
297
  this.show = false
@@ -310,7 +310,7 @@
310
310
  processid: this.selectItem.id
311
311
  }
312
312
  }
313
- this.$resetpost('api/af-system/logic/system_saveParamValue', data).then((res) => {
313
+ this.$resetpost('rs/entity/t_paramvalue', data).then((res) => {
314
314
  this.show = false
315
315
  // 如果没有id,需要在数组中添加
316
316
  this.getParamValue(this.selectItem)
@@ -150,7 +150,7 @@
150
150
  if (row.EntityType === 't_parameter') {
151
151
  this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
152
152
  if (res === 'confirm') {
153
- this.$refs.paramsLoad.load('api/af-revenue/logic/deleteParam', row).then((res) => {
153
+ this.$refs.paramsLoad.load('rs/logic/deleteParam', row).then((res) => {
154
154
  this.loadParams()
155
155
  this.selectItem = null
156
156
  })
@@ -159,7 +159,7 @@
159
159
  } else if (row.EntityType === 't_paramvalue') {
160
160
  this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
161
161
  if (res === 'confirm') {
162
- this.$refs.selectsLoad.load('api/af-revenue/logic/deleteValue', {tablename: 't_paramvalue', id: row.id}).then((res) => {
162
+ this.$refs.selectsLoad.load('rs/logic/deleteValue', {tablename: 't_paramvalue', id: row.id}).then((res) => {
163
163
  this.params.rows.splice(index, 1)
164
164
  })
165
165
  }
@@ -30,11 +30,11 @@
30
30
  <data-grid :model="model" v-ref:grid >
31
31
  <template partial='head'>
32
32
  <tr>
33
- <th><nobr>序号</nobr></th>
34
- <th><nobr>名称</nobr></th>
35
- <th><nobr>参数值</nobr></th>
36
- <th><nobr>所属</nobr></th>
37
- <th><nobr>操作</nobr></th>
33
+ <th>序号</th>
34
+ <th>名称</th>
35
+ <th>参数值</th>
36
+ <th>所属</th>
37
+ <th>操作</th>
38
38
  </tr>
39
39
  </template>
40
40
  <template partial='body'>
@@ -149,7 +149,7 @@
149
149
  async queryParam (condition) {
150
150
  this.model.rows = []
151
151
  let http = new HttpResetClass()
152
- let res = await http.load('POST', 'api/af-system/sql/system_getSingle', {data: condition}, {resolveMsg: null, rejectMsg: '获取参数出错!!'})
152
+ let res = await http.load('POST', 'rs/sql/system_getSingle', {data: condition}, {resolveMsg: null, rejectMsg: '获取参数出错!!'})
153
153
  this.model.rows = res.data
154
154
  },
155
155
 
@@ -183,7 +183,7 @@
183
183
  deleteItem (row) {
184
184
  this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
185
185
  if (res === 'confirm') {
186
- this.$resetpost('api/af-system/logic/deleteValue', {tablename: 't_singlevalue', id: row.id}).then((res) => {
186
+ this.$resetpost('rs/logic/deleteValue', {tablename: 't_singlevalue', id: row.id}).then((res) => {
187
187
  this.filter_query(this.conditionModel.paramName, this.conditionModel.f_cond_orgid)
188
188
  })
189
189
  }
@@ -201,7 +201,7 @@
201
201
  this.show = true
202
202
  },
203
203
  confirm () {
204
- this.$resetpost('api/af-system/logic/system_saveSingle', this.selectItem).then((res) => {
204
+ this.$resetpost('rs/logic/system_saveSingle', this.selectItem).then((res) => {
205
205
  // 如果没有id,需要在数组中添加
206
206
  this.filter_query(this.conditionModel.paramName, this.conditionModel.f_cond_orgid)
207
207
  this.show = false
@@ -95,14 +95,14 @@
95
95
  },
96
96
  methods: {
97
97
  loadSingle () {
98
- this.$refs.singleLoad.load('api/af-system/sql/singleTable', {data: {tablename: 't_singlevalue', condition: '1=1'}}).then((res) => {
98
+ this.$refs.singleLoad.load('rs/sql/singleTable', {data: {tablename: 't_singlevalue', condition: '1=1'}}).then((res) => {
99
99
  this.model.rows = this.params = res.data
100
100
  })
101
101
  },
102
102
  deleteItem (row) {
103
103
  this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
104
104
  if (res === 'confirm') {
105
- this.$refs.singleLoad.load('api/af-revenue/logic/deleteValue', {tablename: 't_singlevalue', id: row.id}).then((res) => {
105
+ this.$refs.singleLoad.load('rs/logic/deleteValue', {tablename: 't_singlevalue', id: row.id}).then((res) => {
106
106
  this.loadSingle()
107
107
  })
108
108
  }
@@ -51,7 +51,7 @@ export default {
51
51
  tablename: 't_changedeclare',
52
52
  parameters: this.model
53
53
  }
54
- this.$post('api/af-revenue/logic/save', {data: param})
54
+ this.$post('rs/logic/save', {data: param})
55
55
  .then(() => {
56
56
  this.model = {}
57
57
  this.$emit('toggle')
@@ -30,7 +30,7 @@ export default {
30
30
  orderitem: 'f_change_date DESC'
31
31
  }
32
32
  this.$info(`加载数据中..., sql:${sql}`)
33
- this.$refs.pv.load('api/af-revenue/sql/singleTable_OrderBy', {data: condition}).then((a) => {
33
+ this.$refs.pv.load('rs/sql/singleTable_OrderBy', {data: condition}).then((a) => {
34
34
  this.$info(`成功获取到数据!, data:${JSON.stringify(a.data)}`)
35
35
  this.model = a.data
36
36
  }).catch((error) => {
@@ -179,7 +179,7 @@ let saveGen = function *(self) {
179
179
  console.log('登录配置', self.config)
180
180
  if (self.config.isMac) {
181
181
  // 获取该登录人分公司下的mac配置
182
- let getMacs = yield self.$resetpost('api/af-system/sql/equipmentQuery', {data: {condition: `f_filialeids like '%${self.$login.f.f_orgids}%'`}}, {
182
+ let getMacs = yield self.$resetpost('rs/sql/equipmentQuery', {data: {condition: `f_filialeids like '%${self.$login.f.f_orgids}%'`}}, {
183
183
  resolveMsg: null,
184
184
  rejectMsg: null
185
185
  }).catch(() => {
@@ -244,7 +244,7 @@ let saveGen = function *(self) {
244
244
  msg = ret.data
245
245
  } else if (ret.status === 710) {
246
246
  msg = ret.data
247
- } else {
247
+ } else if (ret.status === 555) {
248
248
  msg = ret.data
249
249
  }
250
250
  self.createCode()
@@ -267,6 +267,21 @@ export default {
267
267
  this.titleShow = this.$appdata.getSingleValue('关于我们')
268
268
  window.versionTime = window.versionTime ? window.versionTime : new Date().getTime()
269
269
  this.vTime = this.format(new Date(window.versionTime));
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){}
283
+
284
+ this.loginother();
270
285
  $('#login-button').click(function (event) {
271
286
  event.preventDefault()
272
287
  $('form').fadeOut(500)
@@ -366,7 +381,7 @@ export default {
366
381
  } else {
367
382
  condition =` f_orderstate is null and (f_address in( select f_address from t_user_address where f_slice_area='柠条塔') or f_address like '%柠条塔%') `
368
383
  }
369
- await http.load('POST', '/api/af-system/sql/singleTable', {data: {
384
+ await http.load('POST', '/rs/sql/singleTable', {data: {
370
385
  tablename:'t_order_center',
371
386
  condition:condition
372
387
  }}, {
@@ -435,21 +450,20 @@ export default {
435
450
  },
436
451
 
437
452
  async loginother(){
438
- // if (this.config.distanceLogin) {
439
- // if (this.$login && this.$login.getUrlParames('name') ) {
440
- // let ename = this.$login.getUrlParames('name');
441
- // // todo v4
442
- // let logininfo = await this.$resetpost('api/af-revenue/logic/getLoginData',{data:{ename:ename}},{resolveMsg: null, rejectMsg: null});
443
- // if(logininfo.data){
444
- // if(logininfo.data.ename && logininfo.data.password){
445
- // this.model.ename = logininfo.data.ename
446
- // this.model.password =logininfo.data.password
447
- // let gen = saveGen(this)
448
- // return co(gen)
449
- // }
450
- // }
451
- // }
452
- // }
453
+ if (this.config.distanceLogin) {
454
+ if (this.$login && this.$login.getUrlParames('name') ) {
455
+ let ename = this.$login.getUrlParames('name');
456
+ let logininfo = await this.$resetpost('rs/logic/getLoginData',{data:{ename:ename}},{resolveMsg: null, rejectMsg: null});
457
+ if(logininfo.data){
458
+ if(logininfo.data.ename && logininfo.data.password){
459
+ this.model.ename = logininfo.data.ename
460
+ this.model.password =logininfo.data.password
461
+ let gen = saveGen(this)
462
+ return co(gen)
463
+ }
464
+ }
465
+ }
466
+ }
453
467
  },
454
468
  theme(){
455
469
  // 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) {
@@ -66,7 +66,7 @@
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', 'api/af-revenue/sql/singleTable_OrderBy', {
69
+ var pcd = await HttpReset.load('POST', 'rs/sql/singleTable_OrderBy', {
70
70
  data: {
71
71
  items: 'f_pcd',
72
72
  tablename: 't_pcd',
@@ -80,7 +80,7 @@
80
80
  }else if(self.show.streetShow){
81
81
  console.log("------------查街道")
82
82
  let HttpReset = new HttpResetClass()
83
- var street = await HttpReset.load('POST', 'api/af-revenue/sql/singleTable_OrderBy', {
83
+ var street = await HttpReset.load('POST', 'rs/sql/singleTable_OrderBy', {
84
84
  data: {
85
85
  items: 'f_street',
86
86
  tablename: 't_street',
@@ -93,7 +93,7 @@
93
93
  }
94
94
  }else if(self.show.areaShow){
95
95
  let HttpReset = new HttpResetClass()
96
- var area = await HttpReset.load('POST', 'api/af-revenue/sql/singleTable_OrderBy', {
96
+ var area = await HttpReset.load('POST', 'rs/sql/singleTable_OrderBy', {
97
97
  data: {
98
98
  items: 'f_residential_area',
99
99
  tablename: 't_area',
@@ -155,8 +155,7 @@
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
- let street = await this.$resetpost('api/af-revenue/sql/singleTable_OrderBy', {
158
+ let street = await this.$resetpost('rs/sql/singleTable_OrderBy', {
160
159
  data: {
161
160
  items: 'f_street',
162
161
  tablename: 't_street',
@@ -172,7 +171,7 @@
172
171
  async streetChange(){
173
172
  this.arrays.area=[{label:'全部',value:''}]
174
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`
175
- let area = await this.$resetpost('api/af-revenue/sql/singleTable_OrderBy', {
174
+ let area = await this.$resetpost('rs/sql/singleTable_OrderBy', {
176
175
  data: {
177
176
  items: 'f_residential_area',
178
177
  tablename: 't_area',
@@ -193,8 +192,7 @@
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
- let build = await this.$resetpost('api/af-revenue/sql/singleTable_OrderBy', {
195
+ let build = await this.$resetpost('rs/sql/singleTable_OrderBy', {
198
196
  data: {
199
197
  items: 'f_building',
200
198
  tablename: 't_user_address',
@@ -80,9 +80,6 @@
80
80
  //找到跟节点
81
81
  ergodicList (val,parentname) {
82
82
  if(val.children.length > 0 ){
83
- if (val.name !== '组织机构' && parentname !== '资源管理'){
84
- this.resoptions.push({label: parentname === '组织机构' ? val.name : val.name+' - '+parentname, value: val.id})
85
- }
86
83
  parentname=parentname+val.name
87
84
  this.treetoList(val,parentname)
88
85
  }else {
@@ -167,7 +167,7 @@ export default {
167
167
  for (let row of this.$refs.department.resoptions) {
168
168
  depids.push(row.value)
169
169
  }
170
- let depid = depids.length ? plugin.convertToIn(depids) : `('')`
170
+ let depid = depids.length ? plugin.convertToIn(depids) : ('')
171
171
  condition += " and f_depid in " + depid;
172
172
  }
173
173
  }
@@ -51,7 +51,6 @@
51
51
  }
52
52
  },
53
53
  ready() {
54
- // todo v4
55
54
  this.$resetpost('/rs/search', {data: {source: this.source, userid: this.$login.f.id}}, {resolveMsg: null, rejectMsg: null})
56
55
  .then(res => {
57
56
  console.log('res-->' + JSON.stringify(res))
@@ -66,7 +65,7 @@
66
65
  this.$dispatch('re-res',obj)
67
66
  },
68
67
  filterUser(resids) {
69
- // 处理第一次进入页面值异常问题
68
+ // 处理第一次进入页面值异常问题
70
69
  if(resids.length > 0 && typeof resids[0] == "object"){
71
70
  resids = resids[0]
72
71
  }
@@ -87,4 +86,4 @@
87
86
 
88
87
  <style scoped>
89
88
 
90
- </style>
89
+ </style>
@@ -42,7 +42,7 @@
42
42
 
43
43
  <export-excel :data="$parent.$parent.getCondition"
44
44
  :field="$parent.$parent.getfield"
45
- sqlurl="api/af-revenue/logic/exportfile" sql-name="chargeQuery" template-name='收费查询导出'
45
+ sqlurl="rs/logic/exportfile" sql-name="chargeQuery" template-name='收费查询导出'
46
46
  :choose-col="true"></export-excel>
47
47
 
48
48
  <print-data :model="$parent.model" :field="$parent.$parent.getfield"
@@ -175,7 +175,6 @@ let saveGen = function *(self) {
175
175
  console.log('登录配置', self.config)
176
176
  if (self.config.isMac) {
177
177
  // 获取该登录人分公司下的mac配置
178
- // todo v4
179
178
  let getMacs = yield self.$resetpost('rs/sql/equipmentQuery', {data: {condition: `f_filialeids like '%${self.$login.f.f_orgids}%'`}}, {
180
179
  resolveMsg: null,
181
180
  rejectMsg: null
@@ -264,7 +263,7 @@ export default {
264
263
  this.vTime = this.format(new Date(window.versionTime));
265
264
  try{
266
265
  let http = new HttpResetClass()
267
- let res = await http.load('POST', 'api/af-system/sql/singleTable',
266
+ let res = await http.load('POST', 'rs/sql/singleTable',
268
267
  {data:{
269
268
  tablename: 't_changedeclare',
270
269
  condition: ` f_type ='变更通知' `
@@ -364,7 +363,7 @@ export default {
364
363
  } else {
365
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 '%柠条塔%') `
366
365
  }
367
- await http.load('POST', '/api/af-system/sql/singleTable', {data: {
366
+ await http.load('POST', '/rs/sql/singleTable', {data: {
368
367
  tablename:'t_order_center',
369
368
  condition:condition
370
369
  }}, {
@@ -440,7 +439,6 @@ export default {
440
439
  if (this.config.distanceLogin) {
441
440
  if (this.$login && this.$login.getUrlParames('name') ) {
442
441
  let ename = this.$login.getUrlParames('name');
443
- // todo v4
444
442
  let logininfo = await this.$resetpost('rs/logic/getLoginData',{data:{ename:ename}},{resolveMsg: null, rejectMsg: null});
445
443
  if(logininfo.data){
446
444
  if(logininfo.data.ename && logininfo.data.password){
@@ -173,7 +173,6 @@ let saveGen = function *(self) {
173
173
  console.log('登录配置', self.config)
174
174
  if (self.config.isMac) {
175
175
  // 获取该登录人分公司下的mac配置
176
- // todo v4
177
176
  let getMacs = yield self.$resetpost('rs/sql/equipmentQuery', {data: {condition: `f_filialeids like '%${self.$login.f.f_orgids}%'`}}, {
178
177
  resolveMsg: null,
179
178
  rejectMsg: null
@@ -262,7 +261,7 @@ export default {
262
261
  this.vTime = this.format(new Date(window.versionTime));
263
262
  try{
264
263
  let http = new HttpResetClass()
265
- let res = await http.load('POST', 'api/af-system/sql/singleTable',
264
+ let res = await http.load('POST', 'rs/sql/singleTable',
266
265
  {data:{
267
266
  tablename: 't_changedeclare',
268
267
  condition: ` f_type ='变更通知' `
@@ -362,7 +361,7 @@ export default {
362
361
  } else {
363
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 '%柠条塔%') `
364
363
  }
365
- await http.load('POST', '/api/af-system/sql/singleTable', {data: {
364
+ await http.load('POST', '/rs/sql/singleTable', {data: {
366
365
  tablename:'t_order_center',
367
366
  condition:condition
368
367
  }}, {
@@ -438,7 +437,6 @@ export default {
438
437
  if (this.config.distanceLogin) {
439
438
  if (this.$login && this.$login.getUrlParames('name') ) {
440
439
  let ename = this.$login.getUrlParames('name');
441
- // todo v4
442
440
  let logininfo = await this.$resetpost('rs/logic/getLoginData',{data:{ename:ename}},{resolveMsg: null, rejectMsg: null});
443
441
  if(logininfo.data){
444
442
  if(logininfo.data.ename && logininfo.data.password){
@@ -179,7 +179,6 @@ let saveGen = function *(self) {
179
179
  console.log('登录配置', self.config)
180
180
  if (self.config.isMac) {
181
181
  // 获取该登录人分公司下的mac配置
182
- // todo v4
183
182
  let getMacs = yield self.$resetpost('rs/sql/equipmentQuery', {data: {condition: `f_filialeids like '%${self.$login.f.f_orgids}%'`}}, {
184
183
  resolveMsg: null,
185
184
  rejectMsg: null
@@ -266,7 +265,7 @@ export default {
266
265
  this.titleShow = true
267
266
  try{
268
267
  let http = new HttpResetClass()
269
- let res = await http.load('POST', 'api/af-system/sql/singleTable',
268
+ let res = await http.load('POST', 'rs/sql/singleTable',
270
269
  {data:{
271
270
  tablename: 't_changedeclare',
272
271
  condition: ` f_type ='变更通知' `
@@ -353,7 +352,7 @@ export default {
353
352
  } else {
354
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 '%柠条塔%') `
355
354
  }
356
- await http.load('POST', '/api/af-system/sql/singleTable', {data: {
355
+ await http.load('POST', '/rs/sql/singleTable', {data: {
357
356
  tablename:'t_order_center',
358
357
  condition:condition
359
358
  }}, {
@@ -429,7 +428,6 @@ export default {
429
428
  if (this.config.distanceLogin) {
430
429
  if (this.$login && this.$login.getUrlParames('name') ) {
431
430
  let ename = this.$login.getUrlParames('name');
432
- // todo v4
433
431
  let logininfo = await this.$resetpost('rs/logic/getLoginData',{data:{ename:ename}},{resolveMsg: null, rejectMsg: null});
434
432
  if(logininfo.data){
435
433
  if(logininfo.data.ename && logininfo.data.password){