diff --git a/src/views/report/edit/controlPrice.vue b/src/views/report/edit/controlPrice.vue index 962657e..9c623e4 100644 --- a/src/views/report/edit/controlPrice.vue +++ b/src/views/report/edit/controlPrice.vue @@ -82,6 +82,7 @@ const editAll = ref(false) // 删除 const delDialog = ref(false); +const delFormRef = ref(); const delFormData = ref({}); const deleteFlag = ref(false) @@ -92,6 +93,10 @@ const fixPrecision = (num, precision = 2) => { } const handleDel= async ()=> { + if (!delFormRef.value) return; + const isValid = await delFormRef.value.validate().catch(() => false); + if (!isValid) return; + const body ={ id: route.query.id, deleteReason: delFormData.value.deleteReason @@ -1503,9 +1508,10 @@ function hasAuditAttachment() {