采购联系单
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user