safecheck-client 3.0.33-2 → 3.0.33-22
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 +133 -133
- package/src/App.vue +31 -31
- package/src/components/paper/PaperList.vue +5 -4
- package/src/components/planmanage/checkUserList.vue +34 -2
- package/src/components/report/CheckPlanCountChartArea.vue +5 -0
- package/src/filiale/bayan/android/AddPlanItem.vue +5 -1
- package/src/filiale/bayan/android/SafecheckOrderV.vue +3 -0
- package/src/filiale/dexin/android/SafecheckDevices.vue +1 -1
- package/src/filiale/dexin/android/WebMeterOpen.vue +1 -1
- package/src/filiale/dexin/android/WebMeterOpenEdit.vue +25 -37
- package/src/filiale/fugou/pc/AddToCheckBook.vue +56 -119
- package/src/filiale/fugou/pc/CheckBookEntry.vue +47 -19
- package/src/filiale/fugou/pc/CheckBookSearchUser.vue +718 -575
- package/src/filiale/fugou/pc/PlanManage.vue +17 -1
- package/src/filiale/fugou/pc/checkUserList.vue +222 -42
- package/src/filiale/tongchuan/pc/checkUserList.vue +2 -2
- package/src/filiale/weinan/android/SafecheckDevices.vue +1082 -1025
- package/src/filiale/weinan/android/SafecheckOrderV.vue +71 -26
- package/src/filiale/wensu/pc/CheckSearchUser.vue +2 -0
- package/src/filiale/wensu/pc/DefectPaperNew.vue +1 -1
- package/src/filiale/wensu/pc/PlanManage.vue +831 -831
- package/src/filiale/wensu/pc/checkUserList.vue +8 -8
- package/src/filiale/wensu/pc.js +20 -20
- package/src/filiale/wenxi/android/SafecheckUserInfo.vue +1 -1
- package/src/filiale/wuhai/pc/PaperList.vue +785 -0
- package/src/filiale/wuhai/pc.js +1 -0
- package/src/filiale/yongzhou/pc/DefectPaperNew.vue +1105 -0
- package/src/filiale/yongzhou/pc/safeCheckDetail.vue +298 -0
- package/src/filiale/yongzhou/pc/safeCheckExamine.vue +277 -0
- package/src/filiale/yongzhou/pc/safeDetail.vue +27 -6
- package/src/filiale/yongzhou/pc.js +1 -0
- package/src/filiale/yunchengminsheng/pc/checkUserList.vue +18 -1
- package/src/main.js +33 -33
@@ -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,
|
@@ -22,13 +22,13 @@
|
|
22
22
|
<v-select
|
23
23
|
class="select select_list"
|
24
24
|
:width="'95%'"
|
25
|
-
:value.sync="model.
|
26
|
-
v-model="model.
|
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.
|
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="
|
85
|
-
<label class="font_normal_body"
|
86
|
-
<v-select
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
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="
|
100
|
-
<label class="font_normal_body"
|
101
|
-
<
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
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
|
110
|
-
<label class="font_normal_body"
|
111
|
-
<
|
112
|
-
|
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(
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
this.
|
528
|
-
|
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
|
-
|
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
|
//获取抄表册
|
@@ -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()
|