修复镇级公司详情不选中地址的问题

This commit is contained in:
weipengfei 2023-10-24 17:53:38 +08:00
parent 48bc4f6331
commit 58716ed3cc

View File

@ -219,7 +219,6 @@
formData[regionType] == city.id ||
city.disabled
"
:checked="city[regionType + '_code'] == formData[regionType]"
v-for="city in datas[regionType + 'Options']"
:key="city[regionType + '_name']"
:label="
@ -693,7 +692,6 @@ if (route.query.isshow) {
}
const acceptFileTypes = ref(".png, .jpg, .jpeg, image/png, image/jpeg");
console.log(isDisabled);
//
const indexType = ref(0);
@ -896,6 +894,7 @@ const setFormData = async (data: Record<any, any>) => {
formData[key] = data[key];
}
}
console.log(formData);
};
const getDetail = async (row: Record<string, any>) => {
@ -980,7 +979,7 @@ function otherdelete() {
email: "",
});
}
function company_type_change(type: any) {
function company_type_change(type: any, clear: boolean | undefined = true) {
//
const arr = [30, 14, 15];
if (arr.indexOf(type) > -1) {
@ -1007,7 +1006,7 @@ function company_type_change(type: any) {
formData.street = "";
formData.area = "";
}
formData.responsible_area = []; //
if (clear) formData.responsible_area = []; //
partyDisabled.value = true;
indexType.value = 30;
regionType.value = "street";
@ -1029,7 +1028,7 @@ function company_type_change(type: any) {
formData.street = "";
formData.area = "";
}
formData.responsible_area = []; //
if (clear) formData.responsible_area = []; //
// partyDisabled.value = true;
// indexType.value = 30;
regionType.value = "street";
@ -1209,7 +1208,7 @@ const getDetails = async () => {
// fileList.value[0].name = ''
// }
company_type_change(formData.company_type);
company_type_change(formData.company_type, false);
};
const clickdelete = (index) => {
if (!route.query.read) {