From 27433c9f0add7a9ea2e5de61fe4e077d31123bfd Mon Sep 17 00:00:00 2001 From: yufei0306 <13417315+yufei0306@user.noreply.gitee.com> Date: Thu, 30 May 2024 15:40:09 +0800 Subject: [PATCH] =?UTF-8?q?=20=E9=80=80=E8=B4=A7=E6=95=B0=E9=87=8F?= =?UTF-8?q?=E4=B8=8D=E8=83=BD=E5=A4=A7=E4=BA=8E=E5=BA=93=E5=AD=98=E4=BD=99?= =?UTF-8?q?=E9=A2=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../purchasereturn/purchasereturnRequestMain/index.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue index 47f9ad915..453320ce8 100644 --- a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue +++ b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue @@ -830,6 +830,10 @@ const submitForm = async (formType, data) => { message.warning("退货数量不能大于收获数量") return; } + if(tableData.value.find(item=>Number(item.returnedQty)>Number(item.inventoryBalance))){ + message.warning("退货数量不能大于库存余额") + return; + } data.subList = tableData.value // 拼接子表数据参数 try { if (formType === 'create') {