页面修改

This commit is contained in:
THK3121 2023-07-22 09:33:22 +08:00
parent 0bed510c3f
commit 2a528466ff
2 changed files with 9 additions and 13 deletions

View File

@ -816,17 +816,15 @@ const getDetails = async () => {
formData[key] = data[key];
if (stringArr.includes(key)) formData[key] = formData[key].toString();
});
apiCityList({ city: formData.province }).then(() => {
apiAreaList({ area: formData.city }).then(() => {
apiStreetList({ street: formData.area });
});
});
formData["party_a_name"] = data["contract"]["party_a_name"];
formData["file_image"] = data["contract"]["file"];
fileList.value[0].url = data["contract"]["file"];
fileList.value[0].name = "合同文件";
await getCityList();
await getAreaList();
await getStreetList();
};
getProvinceList();
getdictTypeLists();
getcontract_type();

View File

@ -504,7 +504,7 @@ const formData = reactive({
sex: "",
id_card: "",
name: "",
province: "",
province: "120000",
city: "",
area: "",
street: "",
@ -547,7 +547,7 @@ const getcontract_type = async () => {
};
getcontract_type();
const isCompany = ref(false)
const isCompany = ref(false);
function customEvent(data: any) {
isCompany.value = false;
formData.party_a = data.id;
@ -788,11 +788,9 @@ const setFormData = async (row: any) => {
if (stringArr.includes(key)) formData[key] = formData[key].toString();
}
}
apiCityList({ city: formData.province }).then(() => {
apiAreaList({ area: formData.city }).then(() => {
apiStreetList({ street: formData.area });
});
});
await getCityList();
await getAreaList();
await getStreetList();
};
const handleClose = () => {