apply-clients 5.0.35-94 → 5.0.35-95
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
|
@@ -876,8 +876,25 @@
|
|
|
876
876
|
}
|
|
877
877
|
this.data.fields[i].options = [{label: '全部', value: ''}, ...rs]
|
|
878
878
|
}
|
|
879
|
+
if (this.data.defname=='通气'&&this.data.fields[i].label == '小区名称') {
|
|
880
|
+
let res = await this.$resetpost('rs/sql/singleTable', {
|
|
881
|
+
data: {
|
|
882
|
+
tablename: 't_area',
|
|
883
|
+
condition: `f_filialeids = '${this.$login.f.f_orgids}' and f_street='${this.data.f_street}'`
|
|
884
|
+
}
|
|
885
|
+
}, {resolveMsg: null, rejectMsg: null})
|
|
886
|
+
let cs = []
|
|
887
|
+
for (let i = 0; i < res.data.length; i++) {
|
|
888
|
+
let temp = {
|
|
889
|
+
label: res.data[i].f_residential_area,
|
|
890
|
+
value: res.data[i].f_residential_area
|
|
891
|
+
}
|
|
892
|
+
cs.push(temp)
|
|
893
|
+
}
|
|
894
|
+
this.data.fields[i].options = [{label: '全部', value: ''}, ...cs]
|
|
895
|
+
}
|
|
879
896
|
let gasbrand_id=''
|
|
880
|
-
if (this.data.fields[i].label == '气表品牌') {
|
|
897
|
+
if (this.data.fields[i].label == '气表品牌'||this.data.fields[i].label == '表具') {
|
|
881
898
|
let meterbrand = await this.$resetpost('rs/sql/singleTable', {
|
|
882
899
|
data: {
|
|
883
900
|
items: 'f_meter_brand',
|
|
@@ -971,6 +988,32 @@
|
|
|
971
988
|
// this.$refs.service_show.update()
|
|
972
989
|
}
|
|
973
990
|
}
|
|
991
|
+
if(this.data.defname=='通气'){
|
|
992
|
+
if (this.data.f_user_type == '非民用' && this.data.fields[i].label == '小区名称'){
|
|
993
|
+
this.data.fields[i].hidden = true
|
|
994
|
+
this.data.fields[i].required = false
|
|
995
|
+
this.data.fields[i+1].hidden = true
|
|
996
|
+
this.data.fields[i+1].required = false
|
|
997
|
+
this.data.fields[i+2].hidden = true
|
|
998
|
+
this.data.fields[i+2].required = false
|
|
999
|
+
}
|
|
1000
|
+
if (this.data.f_work_type == '改管' && this.data.fields[i].label == '阀门井'){
|
|
1001
|
+
this.data.fields[i].hidden = true
|
|
1002
|
+
this.data.fields[i].required = false
|
|
1003
|
+
this.data.fields[i+1].hidden = true
|
|
1004
|
+
this.data.fields[i+1].required = false
|
|
1005
|
+
this.data.fields[i+2].hidden = true
|
|
1006
|
+
this.data.fields[i+2].required = false
|
|
1007
|
+
}
|
|
1008
|
+
if (this.data.f_work_type == '改管' && this.data.fields[i].label == '表具'){
|
|
1009
|
+
this.data.fields[i].hidden = true
|
|
1010
|
+
this.data.fields[i].required = false
|
|
1011
|
+
this.data.fields[i+1].hidden = true
|
|
1012
|
+
this.data.fields[i+1].required = false
|
|
1013
|
+
this.data.fields[i+2].hidden = true
|
|
1014
|
+
this.data.fields[i+2].required = false
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
974
1017
|
}
|
|
975
1018
|
// 初始化 buttons_fields
|
|
976
1019
|
//debugger
|