apply-clients 7.1.37 → 7.1.38

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apply-clients",
3
- "version": "7.1.37",
3
+ "version": "7.1.38",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -224,18 +224,19 @@
224
224
  })
225
225
  // 查询区域和街道
226
226
  if (this.selectdata.defname === '报装申请') {
227
- let http = new HttpResetClass()
228
- let condition = "1=1"
229
- let res = await http.load('POST','rs/sql/apply_singleTable',{data:{tablename:'t_address',condition:condition}}, {resolveMsg: null, rejectMsg: null})
227
+
230
228
  for (let i = 0; i < this.show_data.fields.length; i++) {
231
229
 
232
230
  if (this.show_data.fields[i].label === '区/县') {
231
+ let http = new HttpResetClass()
232
+ let condition = "f_type = '区'"
233
+ let res = await http.load('POST','rs/sql/apply_singleTable',{
234
+ data:{tablename:'t_address',condition:condition}},
235
+ {resolveMsg: null, rejectMsg: null})
233
236
  let data = []
234
237
  let array = []
235
238
  data = res.data.map(item => {
236
- if (item.type === '区'){
237
239
  return item.f_name;
238
- }
239
240
  })
240
241
  for (let q = 0; q < data.length; q++) {
241
242
  let arraydata = {
@@ -260,12 +261,15 @@
260
261
  console.log("区县选择框数据:" + JSON.stringify(this.show_data.fields[i].options))
261
262
  }
262
263
  if (this.show_data.fields[i].label === '片区') {
264
+ let http = new HttpResetClass()
265
+ let condition = "f_type = '街道'"
266
+ let res = await http.load('POST','rs/sql/apply_singleTable',{
267
+ data:{tablename:'t_address',condition:condition}},
268
+ {resolveMsg: null, rejectMsg: null})
263
269
  let data = []
264
270
  let array = []
265
271
  data = res.data.map(item => {
266
- if (item.type === '街道'){
267
272
  return item.f_name;
268
- }
269
273
  })
270
274
  for (let q = 0; q < data.length; q++) {
271
275
  let arraydata = {
@@ -410,7 +414,7 @@
410
414
  }
411
415
 
412
416
  let res = await this.$resetpost(
413
- `rs/sql/singleTable`,
417
+ `rs/sql/getAddress`,
414
418
  {data: data},
415
419
  {resolveMsg: null, rejectMsg: '街道查询失败,请重新进入!!!'}
416
420
  )
@@ -519,9 +523,9 @@
519
523
  },
520
524
  async 'initializtionView'() {
521
525
 
522
- if (this.show_data.defname === '报装申请' && this.show_data.f_apply_type === '工商户报装') {
523
- await this.getStreetList()
524
- }
526
+ // if (this.show_data.defname === '报装申请' && this.show_data.f_apply_type === '工商户报装') {
527
+ // await this.getStreetList()
528
+ // }
525
529
  },
526
530
  // 失去焦点出触发事件
527
531
  async 'onchange'(index) {