safecheck-client 3.0.33-18 → 3.0.33-19

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.
@@ -7,12 +7,12 @@
7
7
  <div class="col-sm-3 form-group">
8
8
  <label class="font_normal_body">用户编号</label>
9
9
  <input type="text" class="input_search" style="width:60%" v-model="model.f_userinfo_code"
10
- condition="f_userinfo_code = '{}'" placeholder='用户编号'>
10
+ condition="f_userinfo_code like '%{}%'" placeholder='用户编号'>
11
11
  </div>
12
12
  <div class="col-sm-3 form-group">
13
13
  <label class="font_normal_body">用户姓名</label>
14
14
  <input type="text" class="input_search" style="width:60%" v-model="model.f_user_name"
15
- condition="f_user_name = '{}'" placeholder='用户姓名'>
15
+ condition="f_user_name like '%{}%'" placeholder='用户姓名'>
16
16
  </div>
17
17
 
18
18
  <div class="form-group button-range" style="float: right">
@@ -73,10 +73,10 @@
73
73
  </div>
74
74
  <div class="col-sm-3 form-group">
75
75
  <label class="font_normal_body">所属表册</label>
76
- <v-select :value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"
76
+ <v-select :value.sync="model.f_check_book_num" v-model="model.f_check_book_num"
77
77
  :options='$parent.$parent.meterbooks' placeholder='安检册'
78
78
  :value-single="true"
79
- condition="f_meter_book_num='{}'"
79
+ condition="f_check_book_num='{}'"
80
80
  style="width:60%"
81
81
  close-on-select></v-select>
82
82
  </div>
@@ -335,6 +335,7 @@ export default {
335
335
  ready () {
336
336
  getAreaConfig(this)
337
337
  loadParamGem(this)
338
+ this.getmeterbook()
338
339
  },
339
340
  methods: {
340
341
  async meterbook(){
@@ -342,11 +343,11 @@ export default {
342
343
  if(this.f_orgid==''){
343
344
  this.f_orgid=this.$login.f.orgid
344
345
  }
345
- let res=await this.$resetpost('api/af-revenue/sql/saleSingleTable',{data:{tablename:'t_meter_book',condition:` 1=1 and f_orgid=${this.f_orgid} and f_book_state='有效'`}},{resolveMsg:null,rejectMsg:null})
346
+ let res=await this.$resetpost('rs/sql/tel_singleTable_OrderBy',{data:{items:' * ',tablename:'t_check_book',condition:` 1=1 `,orderitem:' id desc'}},{resolveMsg:null,rejectMsg:null})
346
347
  for(let i=0;i<res.data.length;i++){
347
348
  console.log("res",res.data[i])
348
349
  let temp=[]
349
- temp.label=res.data[i].f_book_name
350
+ temp.label=res.data[i].f_check_book_name
350
351
  temp.value=res.data[i].id
351
352
  this.meterbooks.push(temp)
352
353
  }
@@ -406,7 +407,7 @@ export default {
406
407
  })
407
408
  this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
408
409
  //
409
- // // 加载抄表册
410
+ // // 加载安检册
410
411
  // console.log("------------------this.$GetSaleParam.getMeterBooks()",this.$GetSaleParam.getMeterBooks())
411
412
  // this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
412
413
  },
@@ -231,6 +231,21 @@
231
231
  >
232
232
  </v-select>
233
233
  </div>
234
+ <div class="form-group col-sm-4">
235
+ <label class="font_normal_body">计划类型:</label>
236
+ <v-select
237
+ class="select select_list"
238
+ :value.sync="planCondition.f_plan_type"
239
+ v-model="planCondition.f_plan_type"
240
+ @change="setProperty('checkplan','f_plan_type',planCondition.f_plan_type)"
241
+ :search="false"
242
+ :options='planType'
243
+ placeholder='请选择'
244
+ close-on-select
245
+ value-single
246
+ >
247
+ </v-select>
248
+ </div>
234
249
  </div>
235
250
  </div>
236
251
  <div slot="modal-footer" class="modal-footer" style="text-align: center">
@@ -776,7 +791,8 @@ export default {
776
791
  "isAndNot": "f_checker {}",
777
792
  "safechecktype": "f_safecheck_type='{}'",
778
793
  "issude": "f_issued = '{}'",
779
- "f_create_operator": "f_create_operator like '%{}%'"
794
+ "f_create_operator": "f_create_operator like '%{}%'",
795
+ "f_plan_type": "f_plan_type = '{}'"
780
796
  },
781
797
  {
782
798
  orderitem: fieldValue,
@@ -81,32 +81,32 @@
81
81
  >
82
82
  </v-select>
83
83
  </div>
84
- <div class="form-group col-sm-4">
84
+ <div class="col-sm-3 form-group">
85
85
  <label class="font_normal_body">街道/乡镇</label>
86
- <v-select :value.sync="model.f_street" :value-single="true"
86
+ <v-select :value.sync="model.f_street_id" :value-single="true"
87
87
  :options='$parent.$parent.streetslist' placeholder='请选择'
88
- condition="f_street = '{}'"
89
- v-model='model.f_street'
88
+ condition=" area.f_street_id = '{}'"
89
+ v-model='model.f_street_id'
90
90
  @change="$parent.$parent.streetChange"
91
91
  close-on-select :search="true" >
92
92
  </v-select>
93
93
  </div>
94
- <div class="form-group col-sm-4">
94
+ <div class="col-sm-3 form-group">
95
95
  <label class="font_normal_body">片区/行政村</label>
96
- <v-select :value.sync="model.f_community" v-model='model.f_community'
96
+ <v-select :value.sync="model.f_community_id" v-model='model.f_community_id'
97
97
  :options='$parent.$parent.communitylist' placeholder='片区/管理站' filer-key="name"
98
- condition="f_community = '{}'"
98
+ condition="ua.f_community_id = '{}'"
99
99
  @change="$parent.$parent.communityChange"
100
- close-on-select >
100
+ close-on-select v-ref:slice>
101
101
  </v-select>
102
102
  </div>
103
- <div class="form-group col-sm-4">
103
+ <div class="col-sm-3 form-group">
104
104
  <label class="font_normal_body">小区/自然村</label>
105
- <v-select :value.sync="model.f_residential_area" :value-single="true"
105
+ <v-select :value.sync="model.f_residential_area_id" :value-single="true"
106
106
  :options='$parent.$parent.areaslist' placeholder='请选择'
107
- condition="f_residential_area = '{}'"
108
- v-model='model.f_residential_area'
109
- close-on-select >
107
+ condition="ua.f_residential_area_id = '{}'"
108
+ v-model='model.f_residential_area_id'
109
+ close-on-select>
110
110
  </v-select>
111
111
  </div>
112
112
  <div class="form-group col-sm-4" >
@@ -382,7 +382,8 @@
382
382
  uploadCodeCondition:'',
383
383
  streetslist:[],
384
384
  communitylist:[],
385
- areaslist:[]
385
+ areaslist:[],
386
+ f_filialeids: this.$login.f.orgid,
386
387
  }
387
388
  },
388
389
  props:["selectplan","userlogin"],
@@ -416,7 +417,7 @@
416
417
  req.data.forEach((row, n) => {
417
418
  redata[n] = {
418
419
  label: row.f_pcd,
419
- value: row.f_pcd,
420
+ value: row.id,
420
421
  data: row,
421
422
  id: row.id
422
423
  }
@@ -442,7 +443,7 @@
442
443
  req.data.forEach((row, n) => {
443
444
  redata[n] = {
444
445
  label: row.f_street,
445
- value: row.f_street,
446
+ value: row.id,
446
447
  data: row,
447
448
  id: row.id
448
449
  }
@@ -471,7 +472,7 @@
471
472
  req.data.forEach((row) => {
472
473
  redata.push({
473
474
  label: row.f_residential_area,
474
- value: row.f_residential_area,
475
+ value: row.id,
475
476
  data: row,
476
477
  id: row.id
477
478
  })
@@ -490,20 +491,20 @@
490
491
  }
491
492
  }
492
493
  if (selectArea) {
493
- this.model.f_street = selectArea.f_street
494
- this.model.f_pcd = selectArea.f_pcd
495
- this.model.f_community = selectArea.f_community
496
- console.log( this.model.f_community)
494
+ this.model.f_street_id = selectArea.f_street_id
495
+ this.model.f_pcd_id = selectArea.f_pcd_id
496
+ this.model.f_community_id = selectArea.f_community_id
497
+ console.log( this.model.f_community_id)
497
498
 
498
- this.initstreets(` f_filialeid = '${this.userlogin.orgid}' and id ='${selectArea.f_street}' `)
499
- this.initpcds(` f_filialeid = '${this.userlogin.orgid}' and id ='${selectArea.f_pcd}' `)
500
- if(selectArea.f_community){
501
- this.initcommunity(` f_filialeid = '${this.userlogin.orgid}' and id ='${selectArea.f_community}' `)
499
+ this.initstreets(` f_filialeid = '${this.f_filialeids}' and id ='${selectArea.f_street_id}' `)
500
+ this.initpcds(` f_filialeid = '${this.f_filialeids}' and id ='${selectArea.f_pcd_id}' `)
501
+ if(selectArea.f_community_id){
502
+ this.initcommunity(` f_filialeid = '${this.f_filialeids}' and id ='${selectArea.f_community_id}' `)
502
503
  }
503
504
  // this.model.f_slice_area = selectArea.f_slice_area
504
505
  // 拼接地址
505
506
  this.model.f_address = `${selectArea.f_street}${selectArea.f_community}${selectArea.f_residential_area}`
506
- console.log( this.model.f_community)
507
+ console.log( this.model.f_community_id)
507
508
  }
508
509
  this.$nextTick(() => {
509
510
  this.$resetValidation()
@@ -524,14 +525,14 @@
524
525
  if (val) {
525
526
  // 那就把[小区]重新组织一下
526
527
  await this.initareas(` f_area_code ='${val}' `)
527
- if (this.$refs.paged.$refs.criteria.model.f_residential_area) {
528
- if (this.findbyid(this.areaslist, this.$refs.paged.$refs.criteria.model.f_residential_area)) {
529
- let street = this.findbyid(this.areaslist,this.$refs.paged.$refs.criteria.model.f_residential_area).f_street
530
- if (street != val) {
531
- this.$refs.paged.$refs.criteria.model.f_residential_area = ''
528
+ if (this.$refs.paged.$refs.criteria.model.f_residential_area_id) {
529
+ if (this.findbyid(this.areaslist, this.$refs.paged.$refs.criteria.model.f_residential_area_id)) {
530
+ let street_id = this.findbyid(this.areaslist,this.$refs.paged.$refs.criteria.model.f_residential_area_id).f_street_id
531
+ if (street_id != val) {
532
+ this.$refs.paged.$refs.criteria.model.f_residential_area_id = ''
532
533
  }
533
534
  } else {
534
- this.$refs.paged.$refs.criteria.model.f_residential_area = ''
535
+ this.$refs.paged.$refs.criteria.model.f_residential_area_id = ''
535
536
  }
536
537
  }
537
538
  }
@@ -562,13 +563,13 @@
562
563
  },
563
564
  async streetChange(val){
564
565
  if(val){
565
- await this.initcommunity(` f_filialeid = '${this.userlogin.orgid}' and f_street ='${val}' `)
566
+ await this.initcommunity(` f_filialeid = '${this.f_filialeids}' and f_street_id ='${val}' `)
566
567
  }
567
568
  },
568
569
  async communityChange(val){
569
570
  console.log(val)
570
571
  if(val){
571
- await this.initareas(` f_filialeid = '${this.userlogin.orgid}' and f_community ='${val}' `)
572
+ await this.initareas(` f_filialeid = '${this.f_filialeids}' and f_community_id ='${val}' `)
572
573
  }
573
574
  },
574
575
  getCommunity(){