address-client 3.2.37 → 3.2.39
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
CHANGED
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
:class="[$v.f_room.required ? 'has-error' : 'has-success']">
|
|
125
125
|
<label for="f_address" class="font_normal_body">   门 牌 号</label>
|
|
126
126
|
<input type="text" style="width:40%" v-model="model.f_room" class="input_search" placeholder="门牌号"
|
|
127
|
-
v-validate:f_room='{required: true }'/>
|
|
127
|
+
@change="roomChange" v-validate:f_room='{required: true }'/>
|
|
128
128
|
</div>
|
|
129
129
|
<div class="col-sm-6 form-group">
|
|
130
130
|
<label class="font_normal_body">   地址状态</label>
|
|
@@ -137,7 +137,9 @@
|
|
|
137
137
|
</div>
|
|
138
138
|
<div v-if="!usertype" class="col-sm-6 form-group">
|
|
139
139
|
<label for="f_address" class="font_normal_body">   地址杂项</label>
|
|
140
|
-
<input type="text" style="width:60%" v-model="model.f_room_suffix" placeholder="地址杂项"
|
|
140
|
+
<input type="text" style="width:60%" v-model="model.f_room_suffix" placeholder="地址杂项"
|
|
141
|
+
@change="roomChange"
|
|
142
|
+
class="input_search"/>
|
|
141
143
|
</div>
|
|
142
144
|
<div v-if="!usertype" class="col-sm-8 form-group ">
|
|
143
145
|
<label class="font_normal_body">   经 纬 度</label>
|
|
@@ -154,10 +156,10 @@
|
|
|
154
156
|
</div>
|
|
155
157
|
|
|
156
158
|
<div v-if="usertype" class="col-sm-12 form-group "
|
|
157
|
-
|
|
159
|
+
>
|
|
158
160
|
<label for="f_address" class="font_normal_body">   详细地址</label>
|
|
159
161
|
<input type="text" style="width:80%" v-model="model.f_address" class="input_search" placeholder="详细地址"
|
|
160
|
-
|
|
162
|
+
disabled="true"/>
|
|
161
163
|
</div>
|
|
162
164
|
<div v-if="usertype" class="col-sm-8 form-group ">
|
|
163
165
|
<label class="font_normal_body">   经 纬 度</label>
|
|
@@ -389,7 +391,7 @@
|
|
|
389
391
|
areaschoice:[],
|
|
390
392
|
// 楼栋数据
|
|
391
393
|
buildingList: [],
|
|
392
|
-
iscity:[{label:'
|
|
394
|
+
iscity:[{label:'全部',value:''},{label:'市区',value:'市区'},{label:'乡镇',value:'乡镇'}],
|
|
393
395
|
config:{
|
|
394
396
|
hasnumber:false,
|
|
395
397
|
f_building_suffix: '号楼',
|
|
@@ -402,6 +404,9 @@
|
|
|
402
404
|
f_street_id: '',
|
|
403
405
|
f_comments:'',
|
|
404
406
|
f_residential_area_id: '',
|
|
407
|
+
f_province: '',
|
|
408
|
+
f_city: '',
|
|
409
|
+
f_district: '',
|
|
405
410
|
f_pcd: '',
|
|
406
411
|
f_street: '',
|
|
407
412
|
f_residential_area: '',
|
|
@@ -448,11 +453,11 @@
|
|
|
448
453
|
}
|
|
449
454
|
},
|
|
450
455
|
props: ['f_filialeids', 'row','operation','usertype'],
|
|
451
|
-
|
|
456
|
+
async ready(){
|
|
452
457
|
this.initdata()
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
458
|
+
getAreaConfig(this)
|
|
459
|
+
//打印config
|
|
460
|
+
console.log(this.config)
|
|
456
461
|
this.model.f_building_suffix=this.config.f_building_suffix
|
|
457
462
|
this.model.f_unit_suffix=this.config.f_unit_suffix
|
|
458
463
|
this.model.f_floor_suffix=this.config.f_floor_suffix
|
|
@@ -478,7 +483,7 @@
|
|
|
478
483
|
})
|
|
479
484
|
}else{
|
|
480
485
|
this.areaslist.forEach((item)=>{
|
|
481
|
-
|
|
486
|
+
this.areaschoice.push(item)
|
|
482
487
|
})
|
|
483
488
|
}
|
|
484
489
|
},
|
|
@@ -528,7 +533,7 @@
|
|
|
528
533
|
await this.initareas(` f_orgid = '${this.f_filialeids}'`)
|
|
529
534
|
this.areaschoice = []
|
|
530
535
|
this.areaslist.forEach((item)=>{
|
|
531
|
-
|
|
536
|
+
this.areaschoice.push(item)
|
|
532
537
|
})
|
|
533
538
|
},
|
|
534
539
|
|
|
@@ -725,6 +730,75 @@
|
|
|
725
730
|
this.$resetValidation()
|
|
726
731
|
})
|
|
727
732
|
},
|
|
733
|
+
roomChange(val){
|
|
734
|
+
console.log("this.model==:",this.model, this.pcdslist)
|
|
735
|
+
console.log("this.pcdslist==:",this.pcdslist[0].data, this.pcdslist[0].data.f_district)
|
|
736
|
+
console.log("this.areaschoice==:",this.areaschoice[0].data)
|
|
737
|
+
console.log("this.pcd==:",this.model.f_pcd, this.model.f_pcd_id)
|
|
738
|
+
console.log("this.street==:",this.model.f_street,this.model.f_street_id)
|
|
739
|
+
console.log("this.area==:",this.model.f_area,this.model.f_residential_area_id)
|
|
740
|
+
this.model.f_district = this.pcdslist ? this.pcdslist[0].data.f_district : ''
|
|
741
|
+
console.log("this.model.f_district==:",this.model.f_district)
|
|
742
|
+
this.model.f_create_person= this.$login.f.name
|
|
743
|
+
this.model.f_filialeid = this.f_filialeids
|
|
744
|
+
this.model.f_operator = this.$login.f.name
|
|
745
|
+
this.model.f_operatorid = this.$login.f.id
|
|
746
|
+
this.model.f_orgid = this.$login.f.orgid
|
|
747
|
+
this.model.f_orgname = this.$login.f.orgs
|
|
748
|
+
this.model.f_depid = this.$login.f.depids
|
|
749
|
+
this.model.f_depname = this.$login.f.deps
|
|
750
|
+
console.log("片区:",this.model.slice_area)
|
|
751
|
+
if (this.model.slice_area ) {
|
|
752
|
+
if (this.model.slice_area instanceof Array) {
|
|
753
|
+
console.log("修改",this.model.slice_area)
|
|
754
|
+
this.model.f_slice_area = this.model.slice_area[0].name
|
|
755
|
+
} if (this.model.slice_area instanceof Object) {
|
|
756
|
+
console.log("修改",this.model.slice_area)
|
|
757
|
+
this.model.f_slice_area = Object.values(this.model.slice_area)[0].name
|
|
758
|
+
} else{
|
|
759
|
+
console.log("保存",this.model.slice_area)
|
|
760
|
+
this.model.f_slice_area = this.model.slice_area
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
if (( this.model.f_unit+'').length == 1) {
|
|
765
|
+
this.model.f_unit= '0'+ this.model.f_unit
|
|
766
|
+
}
|
|
767
|
+
if (( this.model.f_floor+'').length == 1) {
|
|
768
|
+
this.model.f_floor= '0'+ this.model.f_floor
|
|
769
|
+
}
|
|
770
|
+
if (( this.model.f_room+'').length == 1) {
|
|
771
|
+
this.model.f_room= '0'+ this.model.f_room
|
|
772
|
+
}
|
|
773
|
+
if (this.usertype) {
|
|
774
|
+
//非民用
|
|
775
|
+
this.model.f_special='1'
|
|
776
|
+
this.model.f_building_suffix=''
|
|
777
|
+
this.model.f_unit_suffix=''
|
|
778
|
+
this.model.f_floor_suffix=''
|
|
779
|
+
this.model.f_room_suffix=''
|
|
780
|
+
this.model.f_pcd=this.findbyid(this.pcdslist,this.model.f_pcd_id).f_pcd
|
|
781
|
+
this.model.f_street=this.findbyid(this.streetslist,this.model.f_street_id).f_street
|
|
782
|
+
this.model.f_residential_area = this.findbyid(this.areaslist,this.model.f_residential_area_id) ? this.findbyid(this.areaslist,this.model.f_residential_area_id).f_residential_area : ''
|
|
783
|
+
this.model.f_address = (this.model.f_district ? this.model.f_district : '') + this.model.f_street + (this.model.f_residential_area!='无'?this.model.f_residential_area:'') + (this.model.f_building&&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_floor?this.model.f_floor +this.model.f_floor_suffix:'') + this.model.f_room + this.model.f_room_suffix
|
|
784
|
+
} else {
|
|
785
|
+
//民用
|
|
786
|
+
this.model.f_pcd=this.findbyid(this.pcdslist,this.model.f_pcd_id).f_pcd
|
|
787
|
+
this.model.f_street=this.findbyid(this.streetslist,this.model.f_street_id).f_street
|
|
788
|
+
this.model.f_residential_area=this.findbyid(this.areaslist,this.model.f_residential_area_id).f_residential_area
|
|
789
|
+
if (( this.$refs.f_building_id.selectedItems+'').length == 1 && this.$refs.f_building_id.selectedItems!= '无') {
|
|
790
|
+
this.model.f_building= '0'+ this.$refs.f_building_id.selectedItems
|
|
791
|
+
}else{
|
|
792
|
+
this.model.f_building = this.$refs.f_building_id.selectedItems
|
|
793
|
+
}
|
|
794
|
+
this.model.f_building_suffix=''
|
|
795
|
+
if (!this.model.f_building) {
|
|
796
|
+
this.$showMessage('请选择楼栋数据!!!')
|
|
797
|
+
return
|
|
798
|
+
}
|
|
799
|
+
this.model.f_address = (this.model.f_district ? this.model.f_district : '') + this.model.f_street + (this.model.f_residential_area!='无'?this.model.f_residential_area:'') + (this.model.f_building&&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_floor?this.model.f_floor +this.model.f_floor_suffix:'') + this.model.f_room + this.model.f_room_suffix
|
|
800
|
+
}
|
|
801
|
+
},
|
|
728
802
|
//街道变化
|
|
729
803
|
async streetChange(val){
|
|
730
804
|
console.log("街道变化",val)
|
|
@@ -1030,7 +1104,3 @@
|
|
|
1030
1104
|
}
|
|
1031
1105
|
}
|
|
1032
1106
|
</style>
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|