address-client 3.2.9 → 3.2.13
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/6.1.1/executionHistory/executionHistory.bin +0 -0
- package/.gradle/6.1.1/executionHistory/executionHistory.lock +0 -0
- package/.gradle/6.1.1/fileChanges/last-build.bin +0 -0
- package/.gradle/6.1.1/fileHashes/fileHashes.bin +0 -0
- package/.gradle/6.1.1/fileHashes/fileHashes.lock +0 -0
- package/.gradle/6.1.1/gc.properties +0 -0
- package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/.gradle/checksums/checksums.lock +0 -0
- package/.gradle/vcs-1/gc.properties +0 -0
- package/AddressClient.iml +13 -0
- package/build/dev-server.js +2 -3
- package/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/gradle/wrapper/gradle-wrapper.properties +5 -0
- package/gradlew +183 -0
- package/gradlew.bat +100 -0
- package/package.json +1 -1
- package/src/address.js +57 -57
- package/src/components/AddAreaMsg.vue +743 -743
- package/src/components/AddressList.vue +1 -1
- package/src/components/AddressModel.vue +95 -95
- package/src/components/AreaManage.vue +100 -100
- package/src/components/BuildingList.vue +129 -129
- package/src/components/StreetList.vue +37 -7
- package/src/filiale/WEINAN/AreaList.vue +4 -2
- package/src/filiale/gongyi/AddAreaMsg.vue +651 -651
- package/src/filiale/qianneng/AreaList.vue +431 -431
- package/src/filiale/qianneng/CityManage.vue +81 -0
- package/src/filiale/qianneng/UserAddress.vue +78 -34
- package/src/filiale/qianneng/sale.js +14 -12
- package/src/filiale/rongcheng/AddressList.vue +363 -363
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div id="unit" class="flex-row " :class="{'binary':areaShow}">
|
|
3
|
+
<div :class="{'basic-main':!areaShow,'binary-left':areaShow}">
|
|
4
|
+
<street-list @select-changed="selected" :f_filialeids.sync="f_filialeids" v-ref:arealist></street-list>
|
|
5
|
+
</div>
|
|
6
|
+
<div v-show="areaShow" class="binary-right">
|
|
7
|
+
<add-street-pcd v-ref:addstreetpcd :areatype.sync="areatype" :operation='operation'
|
|
8
|
+
:f_filialeids.sync="f_filialeids" :row="row"></add-street-pcd>
|
|
9
|
+
</div>
|
|
10
|
+
</div>
|
|
11
|
+
</template>
|
|
12
|
+
|
|
13
|
+
<script>
|
|
14
|
+
export default {
|
|
15
|
+
title: '街道管理',
|
|
16
|
+
components: {},
|
|
17
|
+
data () {
|
|
18
|
+
return {
|
|
19
|
+
//分公司id串
|
|
20
|
+
f_filialeids: this.$login.f.orgid,
|
|
21
|
+
areaShow: false,
|
|
22
|
+
areatype: '街道',
|
|
23
|
+
jSuthority: this.$login.r,
|
|
24
|
+
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
props: {},
|
|
28
|
+
methods: {
|
|
29
|
+
selected (obj) {
|
|
30
|
+
console.log("this.loogin.r",this.$login.r.includes('街道信息修改'))
|
|
31
|
+
if (!this.jSuthority.includes('街道信息修改')) {
|
|
32
|
+
return
|
|
33
|
+
}
|
|
34
|
+
if (obj.val && obj.val.id) {
|
|
35
|
+
if (obj.val.f_filialeid != this.f_filialeids) {
|
|
36
|
+
this.refresh()
|
|
37
|
+
return
|
|
38
|
+
}
|
|
39
|
+
this.$refs.addstreetpcd.cleardara()
|
|
40
|
+
this.areatype = '街道'
|
|
41
|
+
this.areaShow = true
|
|
42
|
+
this.$refs.addstreetpcd.operation = 'modify'
|
|
43
|
+
this.$refs.addstreetpcd.streetmodel = Object.assign({}, obj.val)
|
|
44
|
+
this.$refs.addstreetpcd.initdata()
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
async refresh () {
|
|
48
|
+
this.areaShow = false
|
|
49
|
+
await this.$refs.arealist.$refs.paged.$refs.cri.search()
|
|
50
|
+
},
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
},
|
|
54
|
+
events: {
|
|
55
|
+
'add' (areatype) {
|
|
56
|
+
this.style = 'col-sm-3 '
|
|
57
|
+
this.areaShow = true
|
|
58
|
+
this.$refs.addstreetpcd.cleardara()
|
|
59
|
+
this.$refs.addstreetpcd.operation = 'add'
|
|
60
|
+
this.$refs.addstreetpcd.areatype = areatype
|
|
61
|
+
this.$refs.addstreetpcd.initdata()
|
|
62
|
+
},
|
|
63
|
+
'modify' (area) {
|
|
64
|
+
this.style = 'col-sm-2 '
|
|
65
|
+
},
|
|
66
|
+
'confirm' () {
|
|
67
|
+
this.style = 'col-sm-2 '
|
|
68
|
+
|
|
69
|
+
this.refresh()
|
|
70
|
+
},
|
|
71
|
+
'cancel' () {
|
|
72
|
+
this.style = 'col-sm-2 '
|
|
73
|
+
|
|
74
|
+
this.areaShow = false
|
|
75
|
+
this.$refs.arealist.$refs.paged.$refs.cri.search()
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
</script>
|
|
80
|
+
|
|
81
|
+
|
|
@@ -53,13 +53,23 @@
|
|
|
53
53
|
close-on-select search="true" :disabled="!usertype">
|
|
54
54
|
</v-select>
|
|
55
55
|
</div>
|
|
56
|
+
<div class="col-sm-6 form-group " :class="[$v.slice_area1.required ? 'has-error' : 'has-success']">
|
|
57
|
+
<label class="font_normal_body">片  区</label>
|
|
58
|
+
<input type="text" style="width:60%" class="input_search" v-show="false" v-model="$refs.slice.selectedItems"
|
|
59
|
+
v-validate:slice_area1='{required: true }'>
|
|
60
|
+
<v-select :value.sync="model.slice_area[0].name" v-model="model.slice_area[0].name" :value-single="true"
|
|
61
|
+
:options='sliceArea' placeholder='片区/管理站' filer-key="name"
|
|
62
|
+
@change="sliceChange(model.slice_area)"
|
|
63
|
+
close-on-select v-ref:slice>
|
|
64
|
+
</v-select>
|
|
65
|
+
</div>
|
|
56
66
|
<div class="col-sm-6 form-group " v-if="!usertype"
|
|
57
67
|
:class="[$v.f_residential_area_id1.required ? 'has-error' : 'has-success']">
|
|
58
68
|
<label class="font_normal_body">小区名称</label>
|
|
59
69
|
<input type="text" style="width:41%" v-show="false" v-model="model.f_residential_area_id"
|
|
60
70
|
v-validate:f_residential_area_id1='{required: true }'>
|
|
61
71
|
<v-select :value.sync="model.f_residential_area_id" :value-single="true"
|
|
62
|
-
:options='
|
|
72
|
+
:options='areaschoice' placeholder='请选择'
|
|
63
73
|
@change="areaChange"
|
|
64
74
|
close-on-select search="true">
|
|
65
75
|
</v-select>
|
|
@@ -68,21 +78,13 @@
|
|
|
68
78
|
<div class="col-sm-6 form-group " v-if="usertype">
|
|
69
79
|
<label class="font_normal_body">小区名称</label>
|
|
70
80
|
<v-select :value.sync="model.f_residential_area_id" :value-single="true"
|
|
71
|
-
:options='
|
|
81
|
+
:options='areaschoice' placeholder='请选择'
|
|
72
82
|
@change="areaChange"
|
|
73
83
|
close-on-select search="true">
|
|
74
84
|
</v-select>
|
|
75
85
|
</div>
|
|
76
86
|
|
|
77
|
-
|
|
78
|
-
<label class="font_normal_body">片  区</label>
|
|
79
|
-
<input type="text" style="width:60%" class="input_search" v-show="false" v-model="$refs.slice.selectedItems"
|
|
80
|
-
v-validate:slice_area1='{required: true }'>
|
|
81
|
-
<v-select :value.sync="model.slice_area[0].name" v-model="model.slice_area[0].name" :value-single="true"
|
|
82
|
-
:options='sliceArea' placeholder='片区/管理站' filer-key="name"
|
|
83
|
-
close-on-select v-ref:slice>
|
|
84
|
-
</v-select>
|
|
85
|
-
</div>
|
|
87
|
+
|
|
86
88
|
<div class="col-sm-6 form-group " v-if="!usertype">
|
|
87
89
|
<label class="font_normal_body">地区类型</label>
|
|
88
90
|
<v-select
|
|
@@ -196,6 +198,16 @@
|
|
|
196
198
|
close-on-select search="true" :disabled="!usertype">
|
|
197
199
|
</v-select>
|
|
198
200
|
</div>
|
|
201
|
+
<div class="col-sm-6 form-group " :class="[$v.slice.required ? 'has-error' : 'has-success']">
|
|
202
|
+
<label class="font_normal_body">片  区</label>
|
|
203
|
+
<input type="text" style="width:60%" class="input_search" v-show="false" v-model="$refs.slice.selectedItems"
|
|
204
|
+
v-validate:slice='{required: true }'>
|
|
205
|
+
<v-select :value.sync="model.slice_area[0].name" v-model="model.slice_area[0].name" :value-single="true"
|
|
206
|
+
:options='sliceArea' placeholder='片区/管理站' filer-key="name"
|
|
207
|
+
@change="sliceChange(model.slice_area)"
|
|
208
|
+
close-on-select v-ref:slice>
|
|
209
|
+
</v-select>
|
|
210
|
+
</div>
|
|
199
211
|
<div class="col-sm-6 form-group "
|
|
200
212
|
:class="[$v.f_residential_area_id.required ? 'has-error' : 'has-success']">
|
|
201
213
|
<label class="font_normal_body">小区名称</label>
|
|
@@ -203,19 +215,11 @@
|
|
|
203
215
|
v-validate:f_residential_area_id='{required: true }'>
|
|
204
216
|
<v-select :value.sync="model.f_residential_area_id" :value-single="true"
|
|
205
217
|
@change="areaChange"
|
|
206
|
-
:options='
|
|
218
|
+
:options='areaschoice' placeholder='请选择'
|
|
207
219
|
close-on-select search="true">
|
|
208
220
|
</v-select>
|
|
209
221
|
</div>
|
|
210
|
-
|
|
211
|
-
<label class="font_normal_body">片  区</label>
|
|
212
|
-
<input type="text" style="width:60%" class="input_search" v-show="false" v-model="$refs.slice.selectedItems"
|
|
213
|
-
v-validate:slice='{required: true }'>
|
|
214
|
-
<v-select :value.sync="model.slice_area[0].name" v-model="model.slice_area[0].name" :value-single="true"
|
|
215
|
-
:options='sliceArea' placeholder='片区/管理站' filer-key="name"
|
|
216
|
-
close-on-select v-ref:slice>
|
|
217
|
-
</v-select>
|
|
218
|
-
</div>
|
|
222
|
+
|
|
219
223
|
|
|
220
224
|
<div class="col-sm-6 form-group "
|
|
221
225
|
:class="[$v.f_building_start.integernum || $v.f_building_start.dctest ?'has-error' : 'has-success']">
|
|
@@ -359,6 +363,7 @@
|
|
|
359
363
|
streetslist:[],
|
|
360
364
|
//初始化街道数据
|
|
361
365
|
areaslist:[],
|
|
366
|
+
areaschoice:[],
|
|
362
367
|
// 楼栋数据
|
|
363
368
|
buildingList: [],
|
|
364
369
|
iscity:[{label:'市区',value:'市区'},{label:'乡镇',value:'乡镇'},{label:'全部',value:''}],
|
|
@@ -419,7 +424,7 @@
|
|
|
419
424
|
}
|
|
420
425
|
},
|
|
421
426
|
props: ['f_filialeids', 'row','operation','usertype'],
|
|
422
|
-
|
|
427
|
+
async ready(){
|
|
423
428
|
this.initdata()
|
|
424
429
|
getAreaConfig(this)
|
|
425
430
|
this.model.f_building_suffix=this.config.f_building_suffix
|
|
@@ -428,6 +433,20 @@
|
|
|
428
433
|
this.model.f_room_suffix=this.config.f_room_suffix
|
|
429
434
|
},
|
|
430
435
|
methods: {
|
|
436
|
+
async sliceChange(slice){
|
|
437
|
+
this.areaschoice=[]
|
|
438
|
+
if(slice){
|
|
439
|
+
this.areaslist.forEach((item)=>{
|
|
440
|
+
if(item.data.f_slice_area==slice[0].name){
|
|
441
|
+
this.areaschoice.push(item)
|
|
442
|
+
}
|
|
443
|
+
})
|
|
444
|
+
}else{
|
|
445
|
+
this.areaslist.forEach((item)=>{
|
|
446
|
+
this.areaschoice.push(item)
|
|
447
|
+
})
|
|
448
|
+
}
|
|
449
|
+
},
|
|
431
450
|
async changecity(){
|
|
432
451
|
this.areaslist = []
|
|
433
452
|
// this.model.f_residential_area_id = null
|
|
@@ -441,7 +460,7 @@
|
|
|
441
460
|
let redata = []
|
|
442
461
|
req.data.forEach((row) => {
|
|
443
462
|
redata.push({
|
|
444
|
-
label: row.f_residential_area,
|
|
463
|
+
label: '['+row.f_street+']'+row.f_residential_area,
|
|
445
464
|
value: row.id,
|
|
446
465
|
data: row,
|
|
447
466
|
id: row.id
|
|
@@ -469,8 +488,10 @@
|
|
|
469
488
|
// 添加特殊地址选省市区
|
|
470
489
|
this.initpcds(` f_orgid = '${this.f_filialeids}'`)
|
|
471
490
|
this.initstreets(` f_orgid = '${this.f_filialeids}' `)
|
|
472
|
-
this.initareas(` f_orgid = '${this.f_filialeids}'`)
|
|
473
|
-
|
|
491
|
+
await this.initareas(` f_orgid = '${this.f_filialeids}'`)
|
|
492
|
+
this.areaslist.forEach((item)=>{
|
|
493
|
+
this.areaschoice.push(item)
|
|
494
|
+
})
|
|
474
495
|
this.buildingList = []
|
|
475
496
|
},
|
|
476
497
|
|
|
@@ -555,7 +576,7 @@
|
|
|
555
576
|
let redata = []
|
|
556
577
|
req.data.forEach((row) => {
|
|
557
578
|
redata.push({
|
|
558
|
-
label: row.f_residential_area,
|
|
579
|
+
label: '['+row.f_street+']'+row.f_residential_area,
|
|
559
580
|
value: row.id,
|
|
560
581
|
data: row,
|
|
561
582
|
id: row.id
|
|
@@ -641,7 +662,7 @@
|
|
|
641
662
|
this.model.f_pcd_id = selectArea.f_pcd_id
|
|
642
663
|
this.initstreets(` f_filialeid = '${this.f_filialeids}' and id ='${selectArea.f_street_id}' `)
|
|
643
664
|
this.initpcds(` f_filialeid = '${this.f_filialeids}' and id ='${selectArea.f_pcd_id}' `)
|
|
644
|
-
this.model.slice_area = selectArea.f_slice_area
|
|
665
|
+
// this.model.slice_area = selectArea.f_slice_area
|
|
645
666
|
// 拼接地址
|
|
646
667
|
this.model.f_address = `${selectArea.f_street}${selectArea.f_residential_area}`
|
|
647
668
|
this.getbuildingList(`f_filialeid = '${this.f_filialeids}' and f_residential_area_id ='${selectArea.id}'`)
|
|
@@ -696,9 +717,21 @@
|
|
|
696
717
|
console.log('批量', this.model)
|
|
697
718
|
let data=Object.assign({},this.model)
|
|
698
719
|
data.f_create_person= this.$login.f.name
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
720
|
+
if ((i+'').length == 1) {
|
|
721
|
+
data.f_building= data.f_building_prefix + '0' +i
|
|
722
|
+
} else {
|
|
723
|
+
data.f_building= data.f_building_prefix + '' +i
|
|
724
|
+
}
|
|
725
|
+
if ((j+'').length == 1) {
|
|
726
|
+
data.f_unit= data.f_unit_prefix + '0'+j
|
|
727
|
+
} else {
|
|
728
|
+
data.f_unit= data.f_unit_prefix +''+ j
|
|
729
|
+
}
|
|
730
|
+
if ((m+'').length == 1) {
|
|
731
|
+
data.f_floor= data.f_floor_prefix +'0'+ m
|
|
732
|
+
} else {
|
|
733
|
+
data.f_floor= data.f_floor_prefix +''+ m
|
|
734
|
+
}
|
|
702
735
|
// 目前房号都按两位处理 如: 101室 201室 110室
|
|
703
736
|
if ((n+'').length == 1) {
|
|
704
737
|
data.f_room = data.f_room_prefix + m + '0' + n
|
|
@@ -721,10 +754,8 @@
|
|
|
721
754
|
+ data.f_unit + data.f_unit_suffix
|
|
722
755
|
+ data.f_floor + data.f_floor_suffix
|
|
723
756
|
+ data.f_room + data.f_room_suffix
|
|
724
|
-
|
|
725
|
-
data.f_slice_area = this.model.slice_area
|
|
757
|
+
data.f_slice_area = data.slice_area[0]?data.slice_area[0].name:data.slice_area
|
|
726
758
|
|
|
727
|
-
}
|
|
728
759
|
resultlist.push(data)
|
|
729
760
|
}
|
|
730
761
|
}
|
|
@@ -785,6 +816,15 @@
|
|
|
785
816
|
this.model.f_slice_area = this.model.slice_area
|
|
786
817
|
}
|
|
787
818
|
}
|
|
819
|
+
if (( this.model.f_unit+'').length == 1) {
|
|
820
|
+
this.model.f_unit= '0'+ this.model.f_unit
|
|
821
|
+
}
|
|
822
|
+
if (( this.model.f_floor+'').length == 1) {
|
|
823
|
+
this.model.f_floor= '0'+ this.model.f_floor
|
|
824
|
+
}
|
|
825
|
+
if (( this.model.f_room+'').length == 1) {
|
|
826
|
+
this.model.f_room= '0'+ this.model.f_room
|
|
827
|
+
}
|
|
788
828
|
if (this.usertype) {
|
|
789
829
|
//非民用
|
|
790
830
|
this.model.f_special='1'
|
|
@@ -800,7 +840,11 @@
|
|
|
800
840
|
this.model.f_pcd=this.findbyid(this.pcdslist,this.model.f_pcd_id).f_pcd
|
|
801
841
|
this.model.f_street=this.findbyid(this.streetslist,this.model.f_street_id).f_street
|
|
802
842
|
this.model.f_residential_area=this.findbyid(this.areaslist,this.model.f_residential_area_id).f_residential_area
|
|
803
|
-
|
|
843
|
+
if (( this.$refs.f_building_id.selectedItems+'').length == 1) {
|
|
844
|
+
this.model.f_building= '0'+ this.$refs.f_building_id.selectedItems
|
|
845
|
+
}else{
|
|
846
|
+
this.model.f_building = this.$refs.f_building_id.selectedItems
|
|
847
|
+
}
|
|
804
848
|
this.model.f_building_suffix=''
|
|
805
849
|
if (!this.model.f_building) {
|
|
806
850
|
this.$showMessage('请选择楼栋数据!!!')
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
// 分公司特殊组件页面注册
|
|
2
|
-
let specialComp = {
|
|
3
|
-
//小区列表
|
|
4
|
-
'area-list': (resolve) => { require(['./AreaList'], resolve) },
|
|
5
|
-
//地址管理
|
|
6
|
-
'user-address': (resolve) => { require(['./UserAddress'], resolve) }
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
// 分公司特殊组件页面注册
|
|
2
|
+
let specialComp = {
|
|
3
|
+
//小区列表
|
|
4
|
+
'area-list': (resolve) => { require(['./AreaList'], resolve) },
|
|
5
|
+
//地址管理
|
|
6
|
+
'user-address': (resolve) => { require(['./UserAddress'], resolve) },
|
|
7
|
+
//街道管理
|
|
8
|
+
'city-manage': (resolve) => { require(['./CityManage'], resolve) }
|
|
9
|
+
}
|
|
10
|
+
exports.specialComp = specialComp
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|