采购联系单

This commit is contained in:
Teo
2025-09-14 17:40:43 +08:00
parent 5bec10e864
commit e7980f0d01
9 changed files with 163 additions and 96 deletions

View File

@ -421,6 +421,7 @@ const handleDetail = async (row?: PurchaseDocVO) => {
/** 表单重置 */
const reset = () => {
form.value = { ...initFormData };
planList.value = [];
purchaseDocFormRef.value?.resetFields();
form.value.projectId = currentProject.value?.id;
};
@ -494,7 +495,7 @@ const submitForm = () => {
purchaseDocFormRef.value?.validate(async (valid: boolean) => {
if (valid) {
buttonLoading.value = true;
form.value.associationList = selectPlanList.value;
form.value.associationList = JSON.parse(JSON.stringify(selectPlanList.value));
form.value.associationList.forEach((item: any) => {
item.planId = item.id;
delete item.id;