From 10227b512d2307b4ca961f11e75dfb66f1ec8b71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E7=BA=A2=E5=85=B5?= <374362909@qq.com> Date: Mon, 9 Mar 2026 16:57:48 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=9A=82=E5=AD=98=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/purchase/purchasingrequisition/add.vue | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/views/purchase/purchasingrequisition/add.vue b/src/views/purchase/purchasingrequisition/add.vue index 5388483..67756eb 100644 --- a/src/views/purchase/purchasingrequisition/add.vue +++ b/src/views/purchase/purchasingrequisition/add.vue @@ -2529,17 +2529,14 @@ const handleSubmit = async () => { } }; -// 暂存 +// 暂存(跳过表单校验,允许部分填写) const handleTempStore = async () => { if (loading.value) return; loading.value = true; try { - const valid = await formRef.value?.validate().catch(() => {}); - if (!valid) { - loading.value = false; - return false; - } + // 暂存模式不进行表单校验,允许用户部分填写后保存 + // 提交时才会执行完整的校验规则 const submitData: any = { ...dataForm,