From 53c378ca4bfb50f183b179cb3500c2ea0cab133d Mon Sep 17 00:00:00 2001 From: buaixuexideshitongxue <2936013465@qq.com> Date: Mon, 7 Sep 2026 16:11:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=A0=E9=99=A4bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/report/edit/controlPrice.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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() {