safecheck-client 3.0.33-15 → 3.0.33-16
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 +3 -3
- package/src/App.vue +4 -4
- package/src/filiale/fugou/pc/AddToCheckBook.vue +63 -125
- package/src/filiale/fugou/pc/CheckBook.vue +301 -301
- package/src/filiale/fugou/pc/CheckBookDetails.vue +161 -161
- package/src/filiale/fugou/pc/CheckBookEntry.vue +98 -66
- package/src/filiale/fugou/pc/CheckBookList.vue +366 -366
- package/src/filiale/fugou/pc/CheckBookSearchArea.vue +560 -560
- package/src/filiale/fugou/pc/CheckBookSearchUser.vue +793 -685
- package/src/filiale/fugou/pc/checkPlanList.vue +371 -371
- package/src/filiale/fugou/pc/checkUserList.vue +221 -42
- 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.
|
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="
|
31
|
+
condition="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"
|
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="form-group col-sm-4">
|
85
|
+
<label class="font_normal_body">街道/乡镇</label>
|
86
|
+
<v-select :value.sync="model.f_street" :value-single="true"
|
87
|
+
:options='$parent.$parent.streetslist' placeholder='请选择'
|
88
|
+
condition="f_street = '{}'"
|
89
|
+
v-model='model.f_street'
|
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"
|
101
|
-
<
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
style="width: 60%" placeholder="街道/乡镇" condition="f_street like '%{}%'">
|
94
|
+
<div class="form-group col-sm-4">
|
95
|
+
<label class="font_normal_body">片区/行政村</label>
|
96
|
+
<v-select :value.sync="model.f_community" v-model='model.f_community'
|
97
|
+
:options='$parent.$parent.communitylist' placeholder='片区/管理站' filer-key="name"
|
98
|
+
condition="f_community = '{}'"
|
99
|
+
@change="$parent.$parent.communityChange"
|
100
|
+
close-on-select >
|
101
|
+
</v-select>
|
108
102
|
</div>
|
109
|
-
<div
|
110
|
-
<label class="font_normal_body"
|
111
|
-
<
|
112
|
-
|
103
|
+
<div class="form-group col-sm-4">
|
104
|
+
<label class="font_normal_body">小区/自然村</label>
|
105
|
+
<v-select :value.sync="model.f_residential_area" :value-single="true"
|
106
|
+
:options='$parent.$parent.areaslist' placeholder='请选择'
|
107
|
+
condition="f_residential_area = '{}'"
|
108
|
+
v-model='model.f_residential_area'
|
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,10 @@
|
|
381
379
|
checkAll:false,
|
382
380
|
checkes:[],
|
383
381
|
excelUserCondtion:false,
|
384
|
-
uploadCodeCondition:''
|
382
|
+
uploadCodeCondition:'',
|
383
|
+
streetslist:[],
|
384
|
+
communitylist:[],
|
385
|
+
areaslist:[]
|
385
386
|
}
|
386
387
|
},
|
387
388
|
props:["selectplan","userlogin"],
|
@@ -394,8 +395,182 @@
|
|
394
395
|
this.setConList()
|
395
396
|
this.loadpage()
|
396
397
|
this.getCommunity()
|
398
|
+
this.initpcds(` f_orgid = '${this.userlogin.orgid}'`)
|
399
|
+
this.initstreets(` f_orgid = '${this.userlogin.orgid}' `)
|
400
|
+
this.initareas(` f_orgid = '${this.userlogin.orgid}'`)
|
397
401
|
},
|
398
402
|
methods: {
|
403
|
+
// 初始化省市区,添加街道
|
404
|
+
async initpcds (pconditon) {
|
405
|
+
this.pcdslist = []
|
406
|
+
let HttpReset = new HttpResetClass()
|
407
|
+
let req = await HttpReset.load('POST', 'api/af-revenue/sql/address_singleTableOrderBy?pageNo=1&pageSize=9999999', {
|
408
|
+
data: {
|
409
|
+
items: '*',
|
410
|
+
tablename: 't_pcd',
|
411
|
+
orderitem: 'id',
|
412
|
+
condition: pconditon
|
413
|
+
}
|
414
|
+
}, {resolveMsg: null, rejectMsg: '获取地址失败!'})
|
415
|
+
let redata = []
|
416
|
+
req.data.forEach((row, n) => {
|
417
|
+
redata[n] = {
|
418
|
+
label: row.f_pcd,
|
419
|
+
value: row.f_pcd,
|
420
|
+
data: row,
|
421
|
+
id: row.id
|
422
|
+
}
|
423
|
+
})
|
424
|
+
this.pcdslist = redata
|
425
|
+
console.log("xxxxxxxxxxxxxx")
|
426
|
+
console.log(this.pcdslist)
|
427
|
+
console.log("redataxxxxxxxx")
|
428
|
+
},
|
429
|
+
// 初始化街道 添加小区
|
430
|
+
async initstreets (pconditon) {
|
431
|
+
this.streetslist = []
|
432
|
+
let HttpReset = new HttpResetClass()
|
433
|
+
let req = await HttpReset.load('POST', 'api/af-revenue/sql/address_singleTableOrderBy', {
|
434
|
+
data: {
|
435
|
+
items: '*',
|
436
|
+
tablename: 't_street',
|
437
|
+
orderitem: 'id',
|
438
|
+
condition: pconditon
|
439
|
+
}
|
440
|
+
}, {resolveMsg: null, rejectMsg: '获取地址失败!'})
|
441
|
+
let redata = []
|
442
|
+
req.data.forEach((row, n) => {
|
443
|
+
redata[n] = {
|
444
|
+
label: row.f_street,
|
445
|
+
value: row.f_street,
|
446
|
+
data: row,
|
447
|
+
id: row.id
|
448
|
+
}
|
449
|
+
})
|
450
|
+
this.streetslist = redata
|
451
|
+
console.log("xxxxxxxxxxxxxx")
|
452
|
+
console.log(this.streetslist)
|
453
|
+
console.log("redataxxxxxxxx")
|
454
|
+
},
|
455
|
+
// 初始化小区添加小区
|
456
|
+
async initareas (pconditon) {
|
457
|
+
// if(this.usertype){
|
458
|
+
// pconditon=pconditon+` and f_special='1' `
|
459
|
+
// }
|
460
|
+
this.areaslist = []
|
461
|
+
let HttpReset = new HttpResetClass()
|
462
|
+
let req = await HttpReset.load('POST', 'api/af-revenue/sql/address_singleTableOrderBy?pageNo=1&pageSize=9999999', {
|
463
|
+
data: {
|
464
|
+
items: '*',
|
465
|
+
tablename: 't_area',
|
466
|
+
orderitem: 'id',
|
467
|
+
condition: pconditon
|
468
|
+
}
|
469
|
+
}, {resolveMsg: null, rejectMsg: '获取地址失败!'})
|
470
|
+
let redata = []
|
471
|
+
req.data.forEach((row) => {
|
472
|
+
redata.push({
|
473
|
+
label: row.f_residential_area,
|
474
|
+
value: row.f_residential_area,
|
475
|
+
data: row,
|
476
|
+
id: row.id
|
477
|
+
})
|
478
|
+
})
|
479
|
+
this.areaslist = redata
|
480
|
+
},
|
481
|
+
//小区变化
|
482
|
+
areaChange(val){
|
483
|
+
console.log("小区变化",val)
|
484
|
+
// 选择小区后级联出省市区和街道
|
485
|
+
let selectArea // 选中的小区数据
|
486
|
+
for (let row of this.areaslist) {
|
487
|
+
if (val == row.value) {
|
488
|
+
selectArea = row.data
|
489
|
+
break
|
490
|
+
}
|
491
|
+
}
|
492
|
+
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)
|
497
|
+
|
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}' `)
|
502
|
+
}
|
503
|
+
// this.model.f_slice_area = selectArea.f_slice_area
|
504
|
+
// 拼接地址
|
505
|
+
this.model.f_address = `${selectArea.f_street}${selectArea.f_community}${selectArea.f_residential_area}`
|
506
|
+
console.log( this.model.f_community)
|
507
|
+
}
|
508
|
+
this.$nextTick(() => {
|
509
|
+
this.$resetValidation()
|
510
|
+
})
|
511
|
+
},
|
512
|
+
// 片区变化 f_area_code
|
513
|
+
async areasChange (val) {
|
514
|
+
console.log('街道变化', val)
|
515
|
+
if (this.streetslist[0]) {
|
516
|
+
var street = ''
|
517
|
+
this.streetslist.forEach((item) => {
|
518
|
+
if (item.id === val) {
|
519
|
+
street = item.label
|
520
|
+
}
|
521
|
+
})
|
522
|
+
// this.model.f_address = street
|
523
|
+
}
|
524
|
+
if (val) {
|
525
|
+
// 那就把[小区]重新组织一下
|
526
|
+
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 = ''
|
532
|
+
}
|
533
|
+
} else {
|
534
|
+
this.$refs.paged.$refs.criteria.model.f_residential_area = ''
|
535
|
+
}
|
536
|
+
}
|
537
|
+
}
|
538
|
+
},
|
539
|
+
//街道变化
|
540
|
+
//初始化街道 添加小区
|
541
|
+
async initcommunity(pconditon){
|
542
|
+
this.communitylist = []
|
543
|
+
let HttpReset = new HttpResetClass()
|
544
|
+
let req = await HttpReset.load('POST', 'api/af-revenue/sql/address_singleTableOrderBy', {
|
545
|
+
data: {
|
546
|
+
items: '*',
|
547
|
+
tablename: 't_community',
|
548
|
+
orderitem: 'id',
|
549
|
+
condition: pconditon
|
550
|
+
}
|
551
|
+
}, {resolveMsg: null, rejectMsg: '获取地址失败!'})
|
552
|
+
let redata = []
|
553
|
+
req.data.forEach((row, n) => {
|
554
|
+
redata[n] = {
|
555
|
+
label: row.f_community_name,
|
556
|
+
value: row.id,
|
557
|
+
data:row,
|
558
|
+
id:row.id
|
559
|
+
}
|
560
|
+
})
|
561
|
+
this.communitylist=redata
|
562
|
+
},
|
563
|
+
async streetChange(val){
|
564
|
+
if(val){
|
565
|
+
await this.initcommunity(` f_filialeid = '${this.userlogin.orgid}' and f_street ='${val}' `)
|
566
|
+
}
|
567
|
+
},
|
568
|
+
async communityChange(val){
|
569
|
+
console.log(val)
|
570
|
+
if(val){
|
571
|
+
await this.initareas(` f_filialeid = '${this.userlogin.orgid}' and f_community ='${val}' `)
|
572
|
+
}
|
573
|
+
},
|
399
574
|
getCommunity(){
|
400
575
|
this.community=[]
|
401
576
|
new HttpResetClass().load('POST', `/rs/sql/safe_singleTable_OrderBy`, {
|
@@ -518,19 +693,23 @@
|
|
518
693
|
value: ''
|
519
694
|
}, ...this.$appdata.getParam('气表类型')] : [{label: '全部', value: ''}]
|
520
695
|
},
|
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
|
-
})
|
696
|
+
select_search(){
|
697
|
+
this.areaList = []
|
698
|
+
new HttpResetClass().load('POST', `/rs/sql/safe_singleTable_OrderBy`, {
|
699
|
+
data: {
|
700
|
+
items: 'id,f_check_book_name',
|
701
|
+
tablename: 't_check_book',
|
702
|
+
condition: `f_orgid = '${this.userlogin.orgid}'`,
|
703
|
+
orderitem: 'id desc'
|
532
704
|
}
|
533
|
-
|
705
|
+
}, {resolveMsg: null, rejectMsg: null}).then(res => {
|
706
|
+
this.areaList.push({label: '全部', value: ''})
|
707
|
+
res.data.forEach(ress => {
|
708
|
+
this.areaList.push({
|
709
|
+
label: ress.f_check_book_name,
|
710
|
+
value: ress.id
|
711
|
+
})
|
712
|
+
})
|
534
713
|
})
|
535
714
|
},
|
536
715
|
//获取抄表册
|
package/src/main.js
CHANGED