safecheck-client 3.0.33-3 → 3.0.33-31

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 (38) hide show
  1. package/package.json +3 -3
  2. package/src/App.vue +2 -2
  3. package/src/components/paper/PaperList.vue +5 -4
  4. package/src/components/planmanage/checkUserList.vue +34 -2
  5. package/src/components/report/CheckPlanCountChartArea.vue +5 -0
  6. package/src/filiale/bayan/android/AddPlanItem.vue +12 -3
  7. package/src/filiale/bayan/android/SafecheckOrderV.vue +4 -1
  8. package/src/filiale/bayan/android/SafecheckUserInfo.vue +532 -508
  9. package/src/filiale/dexin/android/WebMeterOpenEdit.vue +25 -37
  10. package/src/filiale/fugou/pc/AddToCheckBook.vue +56 -119
  11. package/src/filiale/fugou/pc/CheckBook.vue +303 -301
  12. package/src/filiale/fugou/pc/CheckBookDetails.vue +161 -161
  13. package/src/filiale/fugou/pc/CheckBookEntry.vue +94 -66
  14. package/src/filiale/fugou/pc/CheckBookList.vue +366 -366
  15. package/src/filiale/fugou/pc/CheckBookSearchArea.vue +560 -560
  16. package/src/filiale/fugou/pc/CheckBookSearchUser.vue +809 -651
  17. package/src/filiale/fugou/pc/CheckBookUser.vue +47 -44
  18. package/src/filiale/fugou/pc/PlanManage.vue +27 -8
  19. package/src/filiale/fugou/pc/checkPlanList.vue +371 -371
  20. package/src/filiale/fugou/pc/checkUserList.vue +222 -42
  21. package/src/filiale/hanzhong/pc/CheckSearchUser.vue +13 -0
  22. package/src/filiale/tongchuan/pc/checkUserList.vue +2 -2
  23. package/src/filiale/weinan/android/SafecheckDevices.vue +1082 -1025
  24. package/src/filiale/weinan/android/SafecheckOrderV.vue +71 -26
  25. package/src/filiale/wensu/pc/CheckSearchUser.vue +2 -0
  26. package/src/filiale/wensu/pc/DefectPaperNew.vue +1 -1
  27. package/src/filiale/wensu/pc/checkUserList.vue +8 -8
  28. package/src/filiale/wenxi/android/SafecheckUserInfo.vue +1 -1
  29. package/src/filiale/wuhai/pc/PaperList.vue +785 -0
  30. package/src/filiale/wuhai/pc.js +1 -0
  31. package/src/filiale/yongzhou/pc/CheckPlan.vue +59 -0
  32. package/src/filiale/yongzhou/pc/DefectPaperNew.vue +1105 -0
  33. package/src/filiale/yongzhou/pc/SelectCheckPlan.vue +364 -0
  34. package/src/filiale/yongzhou/pc/communityTypeDetailM.vue +94 -187
  35. package/src/filiale/yongzhou/pc/safeDetail.vue +212 -14
  36. package/src/filiale/yongzhou/pc.js +3 -0
  37. package/src/filiale/yunchengminsheng/pc/checkUserList.vue +18 -1
  38. package/src/main.js +1 -1
@@ -22,13 +22,13 @@
22
22
  <v-select
23
23
  class="select select_list"
24
24
  :width="'95%'"
25
- :value.sync="model.f_area"
26
- v-model="model.f_area"
25
+ :value.sync="model.f_check_book_id"
26
+ v-model="model.f_check_book_id"
27
27
  :options='$parent.$parent.areaList'
28
28
  :timeout="500"
29
29
  @select-search="$parent.$parent.select_search"
30
30
  placeholder='安检册筛选'
31
- condition="ua.f_residential_area = '{}'"
31
+ condition="ua.f_check_book_id ='{}'"
32
32
  close-on-select
33
33
  value-single
34
34
  >
@@ -81,35 +81,33 @@
81
81
  >
82
82
  </v-select>
83
83
  </div>
84
- <div class="form-group col-sm-4" >
85
- <label class="font_normal_body">片&ensp;&ensp;&ensp;&ensp;区:</label>
86
- <v-select
87
- class="select select_list"
88
- :value.sync="model.f_book_slice_area"
89
- v-model="model.f_book_slice_area"
90
- :options='$parent.$parent.sliceArea'
91
- @change="$parent.$parent.slice_areaChange(model.f_book_slice_area)"
92
- placeholder='请选择'
93
- condition="ua.f_slice_area ='{}'"
94
- close-on-select
95
- value-single
96
- >
84
+ <div class="col-sm-3 form-group">
85
+ <label class="font_normal_body">街道/乡镇</label>
86
+ <v-select :value.sync="model.f_street_id" :value-single="true"
87
+ :options='$parent.$parent.streetslist' placeholder='请选择'
88
+ condition=" area.f_street_id = '{}'"
89
+ v-model='model.f_street_id'
90
+ @change="$parent.$parent.streetChange"
91
+ close-on-select :search="true" >
97
92
  </v-select>
98
93
  </div>
99
- <div class="form-group col-sm-4" >
100
- <label class="font_normal_body">区/县:</label>
101
- <input type="text" class="input_search" v-model="model.f_pcd"
102
- style="width: 60%" placeholder="小区名称" condition="f_pcd like '%{}%'">
103
- </div>
104
- <div class="form-group col-sm-4" >
105
- <label class="font_normal_body">街道/乡镇:</label>
106
- <input type="text" class="input_search" v-model="model.f_street"
107
- style="width: 60%" placeholder="街道/乡镇" condition="f_street like '%{}%'">
94
+ <div class="col-sm-3 form-group">
95
+ <label class="font_normal_body">片区/行政村</label>
96
+ <v-select :value.sync="model.f_community_id" v-model='model.f_community_id'
97
+ :options='$parent.$parent.communitylist' placeholder='片区/管理站' filer-key="name"
98
+ condition="ua.f_community_id = '{}'"
99
+ @change="$parent.$parent.communityChange"
100
+ close-on-select v-ref:slice>
101
+ </v-select>
108
102
  </div>
109
- <div class="form-group col-sm-4" >
110
- <label class="font_normal_body">小区名称:</label>
111
- <input type="text" class="input_search" v-model="model.f_residential_area"
112
- style="width: 60%" placeholder="小区名称" condition="f_residential_area like '%{}%'">
103
+ <div class="col-sm-3 form-group">
104
+ <label class="font_normal_body">小区/自然村</label>
105
+ <v-select :value.sync="model.f_residential_area_id" :value-single="true"
106
+ :options='$parent.$parent.areaslist' placeholder='请选择'
107
+ condition="ua.f_residential_area_id = '{}'"
108
+ v-model='model.f_residential_area_id'
109
+ close-on-select>
110
+ </v-select>
113
111
  </div>
114
112
  <div class="form-group col-sm-4" >
115
113
  <label class="font_normal_body">派发情况:</label>
@@ -381,7 +379,11 @@
381
379
  checkAll:false,
382
380
  checkes:[],
383
381
  excelUserCondtion:false,
384
- uploadCodeCondition:''
382
+ uploadCodeCondition:'',
383
+ streetslist:[],
384
+ communitylist:[],
385
+ areaslist:[],
386
+ f_filialeids: this.$login.f.orgid,
385
387
  }
386
388
  },
387
389
  props:["selectplan","userlogin"],
@@ -394,8 +396,182 @@
394
396
  this.setConList()
395
397
  this.loadpage()
396
398
  this.getCommunity()
399
+ this.initpcds(` f_orgid = '${this.userlogin.orgid}'`)
400
+ this.initstreets(` f_orgid = '${this.userlogin.orgid}' `)
401
+ this.initareas(` f_orgid = '${this.userlogin.orgid}'`)
397
402
  },
398
403
  methods: {
404
+ // 初始化省市区,添加街道
405
+ async initpcds (pconditon) {
406
+ this.pcdslist = []
407
+ let HttpReset = new HttpResetClass()
408
+ let req = await HttpReset.load('POST', 'api/af-revenue/sql/address_singleTableOrderBy?pageNo=1&pageSize=9999999', {
409
+ data: {
410
+ items: '*',
411
+ tablename: 't_pcd',
412
+ orderitem: 'id',
413
+ condition: pconditon
414
+ }
415
+ }, {resolveMsg: null, rejectMsg: '获取地址失败!'})
416
+ let redata = []
417
+ req.data.forEach((row, n) => {
418
+ redata[n] = {
419
+ label: row.f_pcd,
420
+ value: row.id,
421
+ data: row,
422
+ id: row.id
423
+ }
424
+ })
425
+ this.pcdslist = redata
426
+ console.log("xxxxxxxxxxxxxx")
427
+ console.log(this.pcdslist)
428
+ console.log("redataxxxxxxxx")
429
+ },
430
+ // 初始化街道 添加小区
431
+ async initstreets (pconditon) {
432
+ this.streetslist = []
433
+ let HttpReset = new HttpResetClass()
434
+ let req = await HttpReset.load('POST', 'api/af-revenue/sql/address_singleTableOrderBy', {
435
+ data: {
436
+ items: '*',
437
+ tablename: 't_street',
438
+ orderitem: 'id',
439
+ condition: pconditon
440
+ }
441
+ }, {resolveMsg: null, rejectMsg: '获取地址失败!'})
442
+ let redata = []
443
+ req.data.forEach((row, n) => {
444
+ redata[n] = {
445
+ label: row.f_street,
446
+ value: row.id,
447
+ data: row,
448
+ id: row.id
449
+ }
450
+ })
451
+ this.streetslist = redata
452
+ console.log("xxxxxxxxxxxxxx")
453
+ console.log(this.streetslist)
454
+ console.log("redataxxxxxxxx")
455
+ },
456
+ // 初始化小区添加小区
457
+ async initareas (pconditon) {
458
+ // if(this.usertype){
459
+ // pconditon=pconditon+` and f_special='1' `
460
+ // }
461
+ this.areaslist = []
462
+ let HttpReset = new HttpResetClass()
463
+ let req = await HttpReset.load('POST', 'api/af-revenue/sql/address_singleTableOrderBy?pageNo=1&pageSize=9999999', {
464
+ data: {
465
+ items: '*',
466
+ tablename: 't_area',
467
+ orderitem: 'id',
468
+ condition: pconditon
469
+ }
470
+ }, {resolveMsg: null, rejectMsg: '获取地址失败!'})
471
+ let redata = []
472
+ req.data.forEach((row) => {
473
+ redata.push({
474
+ label: row.f_residential_area,
475
+ value: row.id,
476
+ data: row,
477
+ id: row.id
478
+ })
479
+ })
480
+ this.areaslist = redata
481
+ },
482
+ //小区变化
483
+ areaChange(val){
484
+ console.log("小区变化",val)
485
+ // 选择小区后级联出省市区和街道
486
+ let selectArea // 选中的小区数据
487
+ for (let row of this.areaslist) {
488
+ if (val == row.value) {
489
+ selectArea = row.data
490
+ break
491
+ }
492
+ }
493
+ if (selectArea) {
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)
498
+
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}' `)
503
+ }
504
+ // this.model.f_slice_area = selectArea.f_slice_area
505
+ // 拼接地址
506
+ this.model.f_address = `${selectArea.f_street}${selectArea.f_community}${selectArea.f_residential_area}`
507
+ console.log( this.model.f_community_id)
508
+ }
509
+ this.$nextTick(() => {
510
+ this.$resetValidation()
511
+ })
512
+ },
513
+ // 片区变化 f_area_code
514
+ async areasChange (val) {
515
+ console.log('街道变化', val)
516
+ if (this.streetslist[0]) {
517
+ var street = ''
518
+ this.streetslist.forEach((item) => {
519
+ if (item.id === val) {
520
+ street = item.label
521
+ }
522
+ })
523
+ // this.model.f_address = street
524
+ }
525
+ if (val) {
526
+ // 那就把[小区]重新组织一下
527
+ await this.initareas(` f_area_code ='${val}' `)
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 = ''
533
+ }
534
+ } else {
535
+ this.$refs.paged.$refs.criteria.model.f_residential_area_id = ''
536
+ }
537
+ }
538
+ }
539
+ },
540
+ //街道变化
541
+ //初始化街道 添加小区
542
+ async initcommunity(pconditon){
543
+ this.communitylist = []
544
+ let HttpReset = new HttpResetClass()
545
+ let req = await HttpReset.load('POST', 'api/af-revenue/sql/address_singleTableOrderBy', {
546
+ data: {
547
+ items: '*',
548
+ tablename: 't_community',
549
+ orderitem: 'id',
550
+ condition: pconditon
551
+ }
552
+ }, {resolveMsg: null, rejectMsg: '获取地址失败!'})
553
+ let redata = []
554
+ req.data.forEach((row, n) => {
555
+ redata[n] = {
556
+ label: row.f_community_name,
557
+ value: row.id,
558
+ data:row,
559
+ id:row.id
560
+ }
561
+ })
562
+ this.communitylist=redata
563
+ },
564
+ async streetChange(val){
565
+ if(val){
566
+ await this.initcommunity(` f_filialeid = '${this.f_filialeids}' and f_street_id ='${val}' `)
567
+ }
568
+ },
569
+ async communityChange(val){
570
+ console.log(val)
571
+ if(val){
572
+ await this.initareas(` f_filialeid = '${this.f_filialeids}' and f_community_id ='${val}' `)
573
+ }
574
+ },
399
575
  getCommunity(){
400
576
  this.community=[]
401
577
  new HttpResetClass().load('POST', `/rs/sql/safe_singleTable_OrderBy`, {
@@ -518,19 +694,23 @@
518
694
  value: ''
519
695
  }, ...this.$appdata.getParam('气表类型')] : [{label: '全部', value: ''}]
520
696
  },
521
- select_search(text){
522
- //tag
523
- let pcdText=text?` and f_residential_area like '%${text}%'`:''
524
- new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, {data:{items:"*",tablename:"t_area",orderitem:"id",condition:`f_orgid = '${this.userlogin.orgid}' ${pcdText} `}}, {resolveMsg: null, rejectMsg: null}).then((res)=>{
525
- //tag)
526
- if(res.data.length>0){
527
- this.areaList=[]
528
- this.areaList.push({label:"全部",value:""})
529
- res.data.forEach((result)=>{
530
- this.areaList.push({label:result.f_residential_area,value:result.f_residential_area})
531
- })
697
+ select_search(){
698
+ this.areaList = []
699
+ new HttpResetClass().load('POST', `/rs/sql/safe_singleTable_OrderBy`, {
700
+ data: {
701
+ items: 'id,f_check_book_name',
702
+ tablename: 't_check_book',
703
+ condition: `f_orgid = '${this.userlogin.orgid}'`,
704
+ orderitem: 'id desc'
532
705
  }
533
- //tag)
706
+ }, {resolveMsg: null, rejectMsg: null}).then(res => {
707
+ this.areaList.push({label: '全部', value: ''})
708
+ res.data.forEach(ress => {
709
+ this.areaList.push({
710
+ label: ress.f_check_book_name,
711
+ value: ress.id
712
+ })
713
+ })
534
714
  })
535
715
  },
536
716
  //获取抄表册
@@ -218,6 +218,18 @@
218
218
  :options='$parent.$parent.entry_status'
219
219
  ></v-select>
220
220
  </div>
221
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
222
+ <label class="font_normal_body">计划类型</label>
223
+ <v-select class="select_list select"
224
+ placeholder='请选择'
225
+ :value.sync="model.f_safe_type" v-model="model.f_safe_type"
226
+ :options='$parent.$parent.safe_types'
227
+ filer-key="name"
228
+ condition="f_safe_type = '{}'"
229
+ close-on-select clear-button
230
+ :value-single="true">
231
+ </v-select>
232
+ </div>
221
233
  </div>
222
234
 
223
235
  <div class="row" v-show="$parent.$parent.$parent.showItem">
@@ -520,6 +532,7 @@ export default {
520
532
  f_defect_content: 'this.f_defect_content'
521
533
  }),
522
534
  entry_status:[{label: '入户', value: '入户'}, {label: '拒检', value: '拒检'}, {label: '到访不遇', value: '到访不遇'}],
535
+ safe_types:this.$appdata.getParam('计划类型')?[{label: '全部', value: ''}, ...this.$appdata.getParam('计划类型')]:[{label: '全部', value: ''}],
523
536
  f_defect_content:"CASE WHEN CHARINDEX( '\"result\":\"正常\"', tp.f_defect_content ) > 0 THEN '无隐患' ELSE replace(replace(replace( replace( RIGHT ( tp.f_defect_content, len( tp.f_defect_content ) - 26 ), substring('{}',2,1), '' ), substring('{}',1,1), '' ),']',''),'\"','') END",
524
537
  orgstrs: [{label: '全部', value: ''}],
525
538
  checkersid: [],
@@ -344,8 +344,8 @@
344
344
  },
345
345
  props:["selectplan","userlogin"],
346
346
  ready(){
347
- this.$refs.paged.$refs.criteria.model.f_user_state='正常'
348
- this.$refs.paged.$refs.criteria.model.f_endfile_time=Util.toStartDateYearString()
347
+ // this.$refs.paged.$refs.criteria.model.f_user_state='正常'
348
+ // this.$refs.paged.$refs.criteria.model.f_endfile_time=Util.toStartDateYearString()
349
349
  //this.$refs.paged.$refs.criteria.model.f_hasHousehold='未入户'
350
350
  this.setConList()
351
351
  this.loadpage()