apply-clients 3.4.2-FuGu-18 → 3.4.2-FuGu-21
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
|
@@ -626,6 +626,45 @@ export default {
|
|
|
626
626
|
}
|
|
627
627
|
}
|
|
628
628
|
},
|
|
629
|
+
// 区县失去焦点
|
|
630
|
+
async 'pcdChange' (index) {
|
|
631
|
+
if (isEmpty(this.show_data.f_pcd)) {
|
|
632
|
+
return
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
this.setLabelValue('街道', null)
|
|
636
|
+
this.setLabelValue('小区', null)
|
|
637
|
+
|
|
638
|
+
|
|
639
|
+
|
|
640
|
+
let data = {
|
|
641
|
+
tablename: 't_street',
|
|
642
|
+
condition: `f_filialeid = '${Vue.user.orgid}' and f_pcd = '${this.show_data.f_pcd}'`
|
|
643
|
+
}
|
|
644
|
+
let f_address_type = this.getLableValue('地址类型')
|
|
645
|
+
|
|
646
|
+
if (f_address_type === '民用市区') {
|
|
647
|
+
data.condition = `f_filialeid = '${Vue.user.orgid}' and f_pcd = '${this.show_data.f_pcd}' and f_iscity = '市区'`
|
|
648
|
+
}
|
|
649
|
+
if (f_address_type === '民用乡镇') {
|
|
650
|
+
data.condition = `f_filialeid = '${Vue.user.orgid}' and f_pcd = '${this.show_data.f_pcd}' and f_iscity = '乡镇'`
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
let http = new HttpResetClass()
|
|
654
|
+
let res = await http.load(
|
|
655
|
+
'POST',
|
|
656
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`,
|
|
657
|
+
{data: data},
|
|
658
|
+
{resolveMsg: null, rejectMsg: '街道查询失败!!!'}
|
|
659
|
+
)
|
|
660
|
+
|
|
661
|
+
this.setLabelOptions('街道', res.data.map(item => {
|
|
662
|
+
return {
|
|
663
|
+
label: item.f_street,
|
|
664
|
+
value: item.f_street
|
|
665
|
+
}
|
|
666
|
+
}))
|
|
667
|
+
},
|
|
629
668
|
async 'streetChange' (index) {
|
|
630
669
|
if (isEmpty(this.show_data.f_street)) {
|
|
631
670
|
return
|
|
@@ -845,39 +884,30 @@ export default {
|
|
|
845
884
|
},
|
|
846
885
|
// 失去焦点出触发事件
|
|
847
886
|
'onchange' (index) {
|
|
848
|
-
if (this.show_data.defname === '
|
|
887
|
+
if (this.show_data.defname === '申请登记' || (this.show_data.defname === '现场勘察' && this.show_data.f_apply_source === '微信公众号')) {
|
|
849
888
|
if (
|
|
889
|
+
this.show_data.fields[index].label === '片区' ||
|
|
890
|
+
this.show_data.fields[index].label === '区/县' ||
|
|
850
891
|
this.show_data.fields[index].label === '街道' ||
|
|
851
892
|
this.show_data.fields[index].label === '小区' ||
|
|
852
|
-
this.show_data.fields[index].label === '楼号
|
|
853
|
-
this.show_data.fields[index].label === '单元
|
|
854
|
-
this.show_data.fields[index].label === '楼层
|
|
855
|
-
this.show_data.fields[index].label === '门牌号
|
|
893
|
+
this.show_data.fields[index].label === '楼号' ||
|
|
894
|
+
this.show_data.fields[index].label === '单元' ||
|
|
895
|
+
this.show_data.fields[index].label === '楼层' ||
|
|
896
|
+
this.show_data.fields[index].label === '门牌号'
|
|
856
897
|
) {
|
|
857
|
-
|
|
858
|
-
let f_street = this.getLableValue('街道')
|
|
859
|
-
let f_residential_area = this.getLableValue('小区')
|
|
860
|
-
let f_building = this.getLableValue('楼号
|
|
861
|
-
let f_building_suffix =
|
|
862
|
-
let f_unit = this.getLableValue('单元
|
|
863
|
-
let f_unit_suffix =
|
|
864
|
-
let f_floor = this.getLableValue('楼层
|
|
865
|
-
let f_floor_suffix =
|
|
866
|
-
let f_room = this.getLableValue('门牌号
|
|
867
|
-
let f_room_suffix =
|
|
868
|
-
|
|
869
|
-
let f_address =
|
|
870
|
-
|
|
871
|
-
let f_address_type = this.show_data.f_address_type
|
|
872
|
-
if (f_address_type === '民用城区') {
|
|
873
|
-
f_address = f_street + f_residential_area + f_building + f_building_suffix + f_unit + f_unit_suffix + f_floor + f_floor_suffix + f_room + f_room_suffix
|
|
874
|
-
}
|
|
875
|
-
if (f_address_type === '民用农村') {
|
|
876
|
-
f_address = f_building + f_unit + f_floor + f_room
|
|
877
|
-
}
|
|
878
|
-
if (f_address_type === '特殊城区') {
|
|
879
|
-
f_address = f_street + f_residential_area
|
|
880
|
-
}
|
|
898
|
+
let f_pcd = this.getLableValue('区/县') || ''
|
|
899
|
+
let f_street = this.getLableValue('街道') || ''
|
|
900
|
+
let f_residential_area = this.getLableValue('小区') || ''
|
|
901
|
+
let f_building = this.getLableValue('楼号') || ''
|
|
902
|
+
let f_building_suffix = isEmpty(this.getLableValue('楼号')) ? '' : '号楼'
|
|
903
|
+
let f_unit = this.getLableValue('单元') || ''
|
|
904
|
+
let f_unit_suffix = isEmpty(this.getLableValue('单元')) ? '' : '单元'
|
|
905
|
+
let f_floor = this.getLableValue('楼层') || ''
|
|
906
|
+
let f_floor_suffix = isEmpty(this.getLableValue('楼层')) ? '' : '层'
|
|
907
|
+
let f_room = this.getLableValue('门牌号') || ''
|
|
908
|
+
let f_room_suffix = isEmpty(this.getLableValue('门牌号')) ? '' : '室'
|
|
909
|
+
|
|
910
|
+
let f_address = f_pcd + f_street + f_residential_area + f_building + f_building_suffix + f_unit + f_unit_suffix + f_floor + f_floor_suffix + f_room + f_room_suffix
|
|
881
911
|
this.setLabelValue("地址", f_address)
|
|
882
912
|
}
|
|
883
913
|
}
|
|
@@ -616,7 +616,11 @@ export default {
|
|
|
616
616
|
},
|
|
617
617
|
async pcdChange () {
|
|
618
618
|
|
|
619
|
-
|
|
619
|
+
if (isEmpty(this.show_data)) {
|
|
620
|
+
if (!isEmpty(this.selectdata.f_pcd)) {
|
|
621
|
+
this.show_data.f_pcd = this.selectdata.f_pcd
|
|
622
|
+
}
|
|
623
|
+
} if (isEmpty(this.show_data.f_pcd)) {
|
|
620
624
|
return
|
|
621
625
|
}
|
|
622
626
|
|