address-client 4.0.10 → 4.0.12-kelai
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/.gradle/8.5/checksums/checksums.lock +0 -0
- package/.gradle/8.5/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/.gradle/8.5/executionHistory/executionHistory.bin +0 -0
- package/.gradle/8.5/executionHistory/executionHistory.lock +0 -0
- package/.gradle/8.5/fileHashes/fileHashes.bin +0 -0
- package/.gradle/8.5/fileHashes/fileHashes.lock +0 -0
- package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/.gradle/file-system.probe +0 -0
- package/package.json +3 -3
- package/src/components/AddressList.vue +23 -1
- package/src/components/UserAddress.vue +37 -14
- package/src/filiale/yangchun/AddAreaMsg.vue +49 -48
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "address-client",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.12-kelai",
|
|
4
4
|
"description": "地址管理前台组件",
|
|
5
5
|
"author": "wanbochao",
|
|
6
6
|
"license": "ISC",
|
|
@@ -80,9 +80,9 @@
|
|
|
80
80
|
"style": "0.0.3",
|
|
81
81
|
"style-loader": "^0.20.3",
|
|
82
82
|
"ldap-clients": "3.0.48",
|
|
83
|
-
"system-clients": "3.2
|
|
83
|
+
"system-clients": "3.3.2",
|
|
84
84
|
"url-loader": "^0.5.7",
|
|
85
|
-
"vue-client": "1.24.
|
|
85
|
+
"vue-client": "1.24.162",
|
|
86
86
|
"vue-hot-reload-api": "^1.2.0",
|
|
87
87
|
"vue-html-loader": "^1.0.0",
|
|
88
88
|
"vue-loader": "^8.2.1",
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
</div>
|
|
35
35
|
<div class="col-sm-4 form-group button-range" >
|
|
36
36
|
<button class="button_search button_spacing" @click="search()" >查询</button>
|
|
37
|
+
<button class="button_search button_spacing" v-show="this.$login.r.includes('清空安检')" @click="$parent.$parent.clearPlanId()">清空安检id</button>
|
|
37
38
|
<button class="button_new button_spacing" style="width: max-content" @click="$parent.$parent.add('民用')">添加民用</button>
|
|
38
39
|
<button class="button_new button_spacing" style="width: max-content" @click="$parent.$parent.add('非民用')">添加特殊地址</button>
|
|
39
40
|
<button class="button_new button_spacing" style="width: max-content" v-show="this.$login.r.includes('批量修改')" @click="$parent.$parent.modifyBatch()">批量修改</button>
|
|
@@ -315,7 +316,9 @@
|
|
|
315
316
|
//初始化街道数据
|
|
316
317
|
areaslist:[],
|
|
317
318
|
// 要修改的用户信息
|
|
318
|
-
userInfos: []
|
|
319
|
+
userInfos: [],
|
|
320
|
+
// 要清空f_plan_id的数据集
|
|
321
|
+
ids: []
|
|
319
322
|
}
|
|
320
323
|
},
|
|
321
324
|
title: '地址列表',
|
|
@@ -331,6 +334,7 @@
|
|
|
331
334
|
ready(){
|
|
332
335
|
readyGen(this)
|
|
333
336
|
this.search()
|
|
337
|
+
console.log(this.$login.r)
|
|
334
338
|
this.initpcds(`f_filialeid = '${this.f_filialeids}'`)
|
|
335
339
|
this.initareas(`f_filialeid = '${this.f_filialeids}'`)
|
|
336
340
|
//this.$refs.paged.$refs.grid.selectInit()
|
|
@@ -469,6 +473,24 @@
|
|
|
469
473
|
this.$refs.paged.$refs.grid.selectInit()
|
|
470
474
|
this.$refs.paged.$refs.cri.search()
|
|
471
475
|
},
|
|
476
|
+
clearPlanId(){
|
|
477
|
+
this.ids=[]
|
|
478
|
+
if (this.$refs.paged.$refs.grid.getRowData().length != 0){
|
|
479
|
+
this.$refs.paged.$refs.grid.getRowData().forEach((row,n) => {
|
|
480
|
+
console.log("看看数据",row)
|
|
481
|
+
this.ids[n] = row.id
|
|
482
|
+
})
|
|
483
|
+
console.log("看看id数据",this.ids)
|
|
484
|
+
let data = {
|
|
485
|
+
ids:this.ids
|
|
486
|
+
}
|
|
487
|
+
this.$resetpost('api/af-revenue/logic/clearPlanId',data)
|
|
488
|
+
this.$refs.paged.$refs.grid.selectInit()
|
|
489
|
+
}else {
|
|
490
|
+
this.$showAlert('请至少选择一项!', 'warning', 2000)
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
},
|
|
472
494
|
cancelModify() {
|
|
473
495
|
this.initpcds(`f_filialeid = '${this.f_filialeids}'`)
|
|
474
496
|
this.showModify = false
|
|
@@ -107,9 +107,9 @@
|
|
|
107
107
|
<div v-if="!usertype" class="col-sm-6 form-group ">
|
|
108
108
|
<label for="f_address" class="font_normal_body">楼  层</label>
|
|
109
109
|
<input type="text" style="width:40%" v-model="model.f_floor" class="input_search"
|
|
110
|
-
placeholder="楼层" />
|
|
110
|
+
placeholder="楼层" disabled />
|
|
111
111
|
<input type="text" style="width:20%" v-model="model.f_floor_suffix" class="input_search"
|
|
112
|
-
|
|
112
|
+
disabled />
|
|
113
113
|
</div>
|
|
114
114
|
<div v-if="!usertype" class="col-sm-6 form-group "
|
|
115
115
|
:class="[$v.f_room.required ? 'has-error' : 'has-success']">
|
|
@@ -210,15 +210,15 @@
|
|
|
210
210
|
close-on-select search="true">
|
|
211
211
|
</v-select>
|
|
212
212
|
</div>
|
|
213
|
-
<!-- <div class="col-sm-6 form-group " :class="[$v.slice.required ? 'has-error' : 'has-success']">-->
|
|
214
|
-
<!-- <label class="font_normal_body">片  区</label>-->
|
|
215
|
-
<!-- <input type="text" style="width:60%" class="input_search" v-show="false" v-model="$refs.slice.selectedItems"-->
|
|
216
|
-
<!-- >-->
|
|
217
|
-
<!-- <v-select :value.sync="model.f_slice_area" v-model="model.f_slice_area" :value-single="true"-->
|
|
218
|
-
<!-- :options='sliceArea' placeholder='片区/管理站' filer-key="name"-->
|
|
219
|
-
<!-- close-on-select v-ref:slice>-->
|
|
220
|
-
<!-- </v-select>-->
|
|
221
|
-
<!-- </div>-->
|
|
213
|
+
<!-- <div class="col-sm-6 form-group " :class="[$v.slice.required ? 'has-error' : 'has-success']">-->
|
|
214
|
+
<!-- <label class="font_normal_body">片  区</label>-->
|
|
215
|
+
<!-- <input type="text" style="width:60%" class="input_search" v-show="false" v-model="$refs.slice.selectedItems"-->
|
|
216
|
+
<!-- >-->
|
|
217
|
+
<!-- <v-select :value.sync="model.f_slice_area" v-model="model.f_slice_area" :value-single="true"-->
|
|
218
|
+
<!-- :options='sliceArea' placeholder='片区/管理站' filer-key="name"-->
|
|
219
|
+
<!-- close-on-select v-ref:slice>-->
|
|
220
|
+
<!-- </v-select>-->
|
|
221
|
+
<!-- </div>-->
|
|
222
222
|
|
|
223
223
|
<div class="col-sm-6 form-group "
|
|
224
224
|
:class="[$v.f_building_start.integernum || $v.f_building_start.dctest ?'has-error' : 'has-success']">
|
|
@@ -416,10 +416,11 @@
|
|
|
416
416
|
|
|
417
417
|
f_orgid: '',
|
|
418
418
|
|
|
419
|
-
sliceArea: []
|
|
419
|
+
sliceArea: [],
|
|
420
|
+
disableFloor: false
|
|
420
421
|
}
|
|
421
422
|
},
|
|
422
|
-
props: ['f_filialeids', 'row','operation','usertype'],
|
|
423
|
+
props: ['f_filialeids', 'row','operation','usertype', 'disableFloor'],
|
|
423
424
|
ready(){
|
|
424
425
|
this.initdata()
|
|
425
426
|
getAreaConfig(this)
|
|
@@ -427,6 +428,25 @@
|
|
|
427
428
|
this.model.f_unit_suffix=this.config.f_unit_suffix
|
|
428
429
|
this.model.f_floor_suffix=this.config.f_floor_suffix
|
|
429
430
|
this.model.f_room_suffix=this.config.f_room_suffix
|
|
431
|
+
|
|
432
|
+
// 处理传入的 row 数据
|
|
433
|
+
if(this.row) {
|
|
434
|
+
// 复制原有数据到 model
|
|
435
|
+
Object.assign(this.model, this.row)
|
|
436
|
+
|
|
437
|
+
// 初始化省市区、街道、小区数据
|
|
438
|
+
this.initpcds(` f_orgid = '${this.$login.f.orgid}'`)
|
|
439
|
+
this.initstreets(` f_orgid = '${this.$login.f.orgid}' `)
|
|
440
|
+
this.initareas(` f_orgid = '${this.$login.f.orgid}'`)
|
|
441
|
+
|
|
442
|
+
// 设置选中值
|
|
443
|
+
this.$nextTick(() => {
|
|
444
|
+
this.model.f_pcd_id = this.row.f_pcd_id
|
|
445
|
+
this.model.f_street_id = this.row.f_street_id
|
|
446
|
+
this.model.f_residential_area_id = this.row.f_residential_area_id
|
|
447
|
+
this.model.f_slice_area = this.row.f_slice_area
|
|
448
|
+
})
|
|
449
|
+
}
|
|
430
450
|
},
|
|
431
451
|
methods: {
|
|
432
452
|
async changecity(){
|
|
@@ -772,7 +792,10 @@
|
|
|
772
792
|
this.model.f_pcd=this.findbyid(this.pcdslist,this.model.f_pcd_id).f_pcd
|
|
773
793
|
this.model.f_street=this.findbyid(this.streetslist,this.model.f_street_id).f_street
|
|
774
794
|
this.model.f_residential_area=this.findbyid(this.areaslist,this.model.f_residential_area_id).f_residential_area
|
|
775
|
-
|
|
795
|
+
// 确保楼层值为空
|
|
796
|
+
this.model.f_floor = ''
|
|
797
|
+
this.model.f_floor_suffix = ''
|
|
798
|
+
this.model.f_address = this.model.f_street + this.model.f_residential_area + (this.model.f_building?this.model.f_building +this.model.f_building_suffix:'') + (this.model.f_unit?this.model.f_unit +this.model.f_unit_suffix:'') + this.model.f_room + this.model.f_room_suffix
|
|
776
799
|
}
|
|
777
800
|
await this.$resetpost('api/af-revenue/logic/address_updateuseraddress', this.model)
|
|
778
801
|
},
|
|
@@ -413,7 +413,7 @@ export default {
|
|
|
413
413
|
}, {resolveMsg: null, rejectMsg: '获取地址失败!'})
|
|
414
414
|
this.sliceArea = []
|
|
415
415
|
req.data.forEach((row) => {
|
|
416
|
-
this.sliceArea.push({label: row, value: {name: row.name, code:row.number}})
|
|
416
|
+
this.sliceArea.push({label: row.name, value: {name: row.name, code:row.number}})
|
|
417
417
|
})
|
|
418
418
|
},
|
|
419
419
|
//初始化小区添加小区
|
|
@@ -602,12 +602,12 @@ export default {
|
|
|
602
602
|
this.$refs.buildinglist.search()
|
|
603
603
|
},
|
|
604
604
|
//保存小区
|
|
605
|
-
async savearea(){
|
|
606
|
-
if(this.f_special){
|
|
607
|
-
this.areamodel.f_special='1'
|
|
605
|
+
async savearea() {
|
|
606
|
+
if (this.f_special) {
|
|
607
|
+
this.areamodel.f_special = '1'
|
|
608
608
|
}
|
|
609
|
-
if(this.areamodel.f_sell_add==='0'){
|
|
610
|
-
this.areamodel.f_residential_area=this.areamodel.f_residential_area+'(L)'
|
|
609
|
+
if (this.areamodel.f_sell_add === '0') {
|
|
610
|
+
this.areamodel.f_residential_area = this.areamodel.f_residential_area + '(L)'
|
|
611
611
|
} else {
|
|
612
612
|
this.areamodel.f_residential_area = this.areamodel.f_residential_area.replace(/\(L\)/g, '')
|
|
613
613
|
}
|
|
@@ -624,62 +624,62 @@ export default {
|
|
|
624
624
|
this.areamodel.f_area_code = this.areamodel.slice_area[0].code
|
|
625
625
|
}
|
|
626
626
|
}
|
|
627
|
-
this.areamodel.f_pcd=this.findbyid(this.pcdslist,this.areamodel.f_pcd_id).f_pcd
|
|
628
|
-
this.areamodel.f_street=this.findbyid(this.streetslist,this.areamodel.f_street_id).f_street
|
|
627
|
+
this.areamodel.f_pcd = this.findbyid(this.pcdslist, this.areamodel.f_pcd_id).f_pcd
|
|
628
|
+
this.areamodel.f_street = this.findbyid(this.streetslist, this.areamodel.f_street_id).f_street
|
|
629
629
|
|
|
630
630
|
await this.$resetpost('api/af-revenue/logic/address_updatearea', this.areamodel)
|
|
631
631
|
},
|
|
632
|
-
cleardara(){
|
|
633
|
-
this.areamodel= {
|
|
632
|
+
cleardara() {
|
|
633
|
+
this.areamodel = {
|
|
634
634
|
f_area_id: '',
|
|
635
|
-
f_pcd_id:'',
|
|
636
|
-
f_street_id:'',
|
|
637
|
-
f_slice_area:'',
|
|
638
|
-
f_linkname:'',
|
|
639
|
-
f_linkphone:'',
|
|
640
|
-
f_adjustable_id:'',
|
|
641
|
-
f_residential_area:'',
|
|
642
|
-
f_user_type:'',
|
|
643
|
-
f_gasproperties:'',
|
|
644
|
-
f_area_address:'',
|
|
645
|
-
f_meter_brand:'',
|
|
646
|
-
f_price_name:'',
|
|
647
|
-
f_price_type:'',
|
|
648
|
-
f_meter_style:'',
|
|
649
|
-
f_position:'',
|
|
650
|
-
f_comments:'',
|
|
635
|
+
f_pcd_id: '',
|
|
636
|
+
f_street_id: '',
|
|
637
|
+
f_slice_area: '',
|
|
638
|
+
f_linkname: '',
|
|
639
|
+
f_linkphone: '',
|
|
640
|
+
f_adjustable_id: '',
|
|
641
|
+
f_residential_area: '',
|
|
642
|
+
f_user_type: '',
|
|
643
|
+
f_gasproperties: '',
|
|
644
|
+
f_area_address: '',
|
|
645
|
+
f_meter_brand: '',
|
|
646
|
+
f_price_name: '',
|
|
647
|
+
f_price_type: '',
|
|
648
|
+
f_meter_style: '',
|
|
649
|
+
f_position: '',
|
|
650
|
+
f_comments: '',
|
|
651
651
|
f_meter_type: '',
|
|
652
|
-
f_sell_add:''
|
|
652
|
+
f_sell_add: ''
|
|
653
653
|
}
|
|
654
654
|
},
|
|
655
|
-
cancel(){
|
|
655
|
+
cancel() {
|
|
656
656
|
this.cleardara()
|
|
657
657
|
this.$dispatch('cancel')
|
|
658
658
|
},
|
|
659
659
|
},
|
|
660
660
|
watch: {
|
|
661
|
-
'areamodel.f_meter_type'
|
|
661
|
+
'areamodel.f_meter_type'(val) {
|
|
662
662
|
if (val === '机表')
|
|
663
663
|
this.isMachine = false
|
|
664
664
|
},
|
|
665
|
-
'areatype'(){
|
|
665
|
+
'areatype'() {
|
|
666
666
|
this.initdata()
|
|
667
667
|
},
|
|
668
|
-
'areamodel.f_pcd_id'(){
|
|
669
|
-
if(this.areamodel.f_pcd_id&&this.areamodel.f_street_id){
|
|
670
|
-
if (this.findbyid(this.pcdslist,this.areamodel.f_pcd_id) && this.findbyid(this.streetslist,this.areamodel.f_street_id)) {
|
|
671
|
-
this.areamodel.f_area_address = this.findbyid(this.pcdslist,this.areamodel.f_pcd_id).f_pcd + this.findbyid(this.streetslist,this.areamodel.f_street_id).f_street
|
|
668
|
+
'areamodel.f_pcd_id'() {
|
|
669
|
+
if (this.areamodel.f_pcd_id && this.areamodel.f_street_id) {
|
|
670
|
+
if (this.findbyid(this.pcdslist, this.areamodel.f_pcd_id) && this.findbyid(this.streetslist, this.areamodel.f_street_id)) {
|
|
671
|
+
this.areamodel.f_area_address = this.findbyid(this.pcdslist, this.areamodel.f_pcd_id).f_pcd + this.findbyid(this.streetslist, this.areamodel.f_street_id).f_street
|
|
672
672
|
}
|
|
673
673
|
}
|
|
674
674
|
},
|
|
675
|
-
'areamodel.f_street_id'(){
|
|
675
|
+
'areamodel.f_street_id'() {
|
|
676
676
|
if (this.areamodel.f_pcd_id && this.areamodel.f_street_id) {
|
|
677
677
|
if (this.findbyid(this.pcdslist, this.areamodel.f_pcd_id) && this.findbyid(this.streetslist, this.areamodel.f_street_id)) {
|
|
678
678
|
this.areamodel.f_area_address = this.findbyid(this.pcdslist, this.areamodel.f_pcd_id).f_pcd + this.findbyid(this.streetslist, this.areamodel.f_street_id).f_street
|
|
679
679
|
}
|
|
680
680
|
}
|
|
681
681
|
},
|
|
682
|
-
'f_filialeids'(){
|
|
682
|
+
'f_filialeids'() {
|
|
683
683
|
if (this.areamodel.f_filialeid) {
|
|
684
684
|
if (this.areamodel.f_filialeid != this.f_filialeids) {
|
|
685
685
|
this.$dispatch('cancel')
|
|
@@ -693,27 +693,27 @@ export default {
|
|
|
693
693
|
metertypes() {
|
|
694
694
|
return this.$appdata.getParam('气表类型')
|
|
695
695
|
},
|
|
696
|
-
usertypes
|
|
696
|
+
usertypes() {
|
|
697
697
|
return this.$appdata.getParam('用户类型')
|
|
698
698
|
},
|
|
699
|
-
f_price_types
|
|
699
|
+
f_price_types() {
|
|
700
700
|
return this.$appdata.getParam('气价类型')
|
|
701
701
|
},
|
|
702
|
-
meterstyle
|
|
702
|
+
meterstyle() {
|
|
703
703
|
let ret = this.$GetSaleParam.getGasbrand()
|
|
704
704
|
let rs = new Array()
|
|
705
|
-
if(this.areamodel.f_meter_brand) {
|
|
705
|
+
if (this.areamodel.f_meter_brand) {
|
|
706
706
|
ret.forEach((item, index) => {
|
|
707
|
-
if(this.areamodel.f_meter_brand == item.value.f_meter_brand) {
|
|
708
|
-
item.value.gasmodel.forEach((item1, index) =>{
|
|
709
|
-
rs.push({label: item1.label, value:item1.label})
|
|
707
|
+
if (this.areamodel.f_meter_brand == item.value.f_meter_brand) {
|
|
708
|
+
item.value.gasmodel.forEach((item1, index) => {
|
|
709
|
+
rs.push({label: item1.label, value: item1.label})
|
|
710
710
|
})
|
|
711
711
|
}
|
|
712
712
|
})
|
|
713
713
|
}
|
|
714
714
|
return rs
|
|
715
715
|
},
|
|
716
|
-
pricenames
|
|
716
|
+
pricenames() {
|
|
717
717
|
let rs = new Array()
|
|
718
718
|
if (this.areamodel.f_user_type && this.areamodel.f_gasproperties && this.areamodel.f_price_type) {
|
|
719
719
|
let params = {
|
|
@@ -732,10 +732,10 @@ export default {
|
|
|
732
732
|
}
|
|
733
733
|
return rs
|
|
734
734
|
},
|
|
735
|
-
positions
|
|
735
|
+
positions() {
|
|
736
736
|
return this.$appdata.getParam('安装位置')
|
|
737
737
|
},
|
|
738
|
-
inputtores
|
|
738
|
+
inputtores() {
|
|
739
739
|
// 获取抄表员
|
|
740
740
|
let rs = new Array()
|
|
741
741
|
if (this.$login.f.f_gasman.length > 0) {
|
|
@@ -761,11 +761,12 @@ export default {
|
|
|
761
761
|
border: 1px solid #999999;
|
|
762
762
|
margin-top: 13px;
|
|
763
763
|
}
|
|
764
|
+
|
|
764
765
|
.datapanel {
|
|
765
766
|
color: #333;
|
|
766
767
|
background-color: white;
|
|
767
|
-
box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px
|
|
768
|
+
box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
|
|
768
769
|
padding: 10px 30px 10px 30px;
|
|
769
|
-
border-radius:15px;
|
|
770
|
+
border-radius: 15px;
|
|
770
771
|
}
|
|
771
772
|
</style>
|