apply-clients 3.4.2-FuGu-20 → 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apply-clients",
3
- "version": "3.4.2-FuGu-20",
3
+ "version": "3.4.2-FuGu-21",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -884,39 +884,30 @@ export default {
884
884
  },
885
885
  // 失去焦点出触发事件
886
886
  'onchange' (index) {
887
- if (this.show_data.defname === '报装申请') {
887
+ if (this.show_data.defname === '申请登记' || (this.show_data.defname === '现场勘察' && this.show_data.f_apply_source === '微信公众号')) {
888
888
  if (
889
+ this.show_data.fields[index].label === '片区' ||
890
+ this.show_data.fields[index].label === '区/县' ||
889
891
  this.show_data.fields[index].label === '街道' ||
890
892
  this.show_data.fields[index].label === '小区' ||
891
- this.show_data.fields[index].label === '楼号(乡/镇)' ||
892
- this.show_data.fields[index].label === '单元(村)' ||
893
- this.show_data.fields[index].label === '楼层(组)' ||
894
- 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 === '门牌号'
895
897
  ) {
896
-
897
- let f_street = this.getLableValue('街道')
898
- let f_residential_area = this.getLableValue('小区')
899
- let f_building = this.getLableValue('楼号(乡/镇)')
900
- let f_building_suffix = f_building ? this.config.f_building_suffix : ''
901
- let f_unit = this.getLableValue('单元(村)')
902
- let f_unit_suffix = f_unit ? this.config.f_unit_suffix : ''
903
- let f_floor = this.getLableValue('楼层(组)')
904
- let f_floor_suffix = f_floor ? this.config.f_floor_suffix : ''
905
- let f_room = this.getLableValue('门牌号(号)')
906
- let f_room_suffix = f_room ? this.config.f_room_suffix : ''
907
-
908
- let f_address = null
909
-
910
- let f_address_type = this.show_data.f_address_type
911
- if (f_address_type === '民用城区') {
912
- 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
913
- }
914
- if (f_address_type === '民用农村') {
915
- f_address = f_building + f_unit + f_floor + f_room
916
- }
917
- if (f_address_type === '特殊城区') {
918
- f_address = f_street + f_residential_area
919
- }
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
920
911
  this.setLabelValue("地址", f_address)
921
912
  }
922
913
  }