修复镇级公司详情不选中地址的问题
This commit is contained in:
parent
48bc4f6331
commit
58716ed3cc
@ -219,7 +219,6 @@
|
|||||||
formData[regionType] == city.id ||
|
formData[regionType] == city.id ||
|
||||||
city.disabled
|
city.disabled
|
||||||
"
|
"
|
||||||
:checked="city[regionType + '_code'] == formData[regionType]"
|
|
||||||
v-for="city in datas[regionType + 'Options']"
|
v-for="city in datas[regionType + 'Options']"
|
||||||
:key="city[regionType + '_name']"
|
:key="city[regionType + '_name']"
|
||||||
:label="
|
:label="
|
||||||
@ -693,7 +692,6 @@ if (route.query.isshow) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const acceptFileTypes = ref(".png, .jpg, .jpeg, image/png, image/jpeg");
|
const acceptFileTypes = ref(".png, .jpg, .jpeg, image/png, image/jpeg");
|
||||||
console.log(isDisabled);
|
|
||||||
// 公司类型
|
// 公司类型
|
||||||
const indexType = ref(0);
|
const indexType = ref(0);
|
||||||
|
|
||||||
@ -896,6 +894,7 @@ const setFormData = async (data: Record<any, any>) => {
|
|||||||
formData[key] = data[key];
|
formData[key] = data[key];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
console.log(formData);
|
||||||
};
|
};
|
||||||
|
|
||||||
const getDetail = async (row: Record<string, any>) => {
|
const getDetail = async (row: Record<string, any>) => {
|
||||||
@ -980,7 +979,7 @@ function otherdelete() {
|
|||||||
email: "",
|
email: "",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
function company_type_change(type: any) {
|
function company_type_change(type: any, clear: boolean | undefined = true) {
|
||||||
//区
|
//区
|
||||||
const arr = [30, 14, 15];
|
const arr = [30, 14, 15];
|
||||||
if (arr.indexOf(type) > -1) {
|
if (arr.indexOf(type) > -1) {
|
||||||
@ -1007,7 +1006,7 @@ function company_type_change(type: any) {
|
|||||||
formData.street = "";
|
formData.street = "";
|
||||||
formData.area = "";
|
formData.area = "";
|
||||||
}
|
}
|
||||||
formData.responsible_area = []; // 同级别公司切换时清空已选择区域
|
if (clear) formData.responsible_area = []; // 同级别公司切换时清空已选择区域
|
||||||
partyDisabled.value = true;
|
partyDisabled.value = true;
|
||||||
indexType.value = 30;
|
indexType.value = 30;
|
||||||
regionType.value = "street";
|
regionType.value = "street";
|
||||||
@ -1029,7 +1028,7 @@ function company_type_change(type: any) {
|
|||||||
formData.street = "";
|
formData.street = "";
|
||||||
formData.area = "";
|
formData.area = "";
|
||||||
}
|
}
|
||||||
formData.responsible_area = []; // 同级别公司切换时清空已选择区域
|
if (clear) formData.responsible_area = []; // 同级别公司切换时清空已选择区域
|
||||||
// partyDisabled.value = true;
|
// partyDisabled.value = true;
|
||||||
// indexType.value = 30;
|
// indexType.value = 30;
|
||||||
regionType.value = "street";
|
regionType.value = "street";
|
||||||
@ -1209,7 +1208,7 @@ const getDetails = async () => {
|
|||||||
// fileList.value[0].name = '合同文件'
|
// fileList.value[0].name = '合同文件'
|
||||||
// }
|
// }
|
||||||
|
|
||||||
company_type_change(formData.company_type);
|
company_type_change(formData.company_type, false);
|
||||||
};
|
};
|
||||||
const clickdelete = (index) => {
|
const clickdelete = (index) => {
|
||||||
if (!route.query.read) {
|
if (!route.query.read) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user