diff --git a/src/views/task/simulationTask/newDemand/index.vue b/src/views/task/simulationTask/newDemand/index.vue index c43b6a2b..c3c5d08e 100644 --- a/src/views/task/simulationTask/newDemand/index.vue +++ b/src/views/task/simulationTask/newDemand/index.vue @@ -148,6 +148,7 @@ const closeFun = () => { attachmentsVisible.value = false; // 清空删除的文件 deleteFileList.value = []; + tableFormRef.value?.resetFun(); }; const attachmentsVisible = ref(false); @@ -171,9 +172,6 @@ const visibleDialog = async (isCreate: boolean, row?: any) => { loadingInterface.value = true; if (isCreate) { formHideKeys.value = ['materialNo']; - nextTick(() => { - tableFormRef.value.resetFun(); - }); } if (!isCreateDialog.value) { if (row?.isMoldMaking === 'Y') {