From 472cc135a10edac6e12174b5b82fc3af1ab4841c Mon Sep 17 00:00:00 2001 From: 18110972313 <780768673@qq.com> Date: Thu, 22 May 2025 11:49:56 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E5=88=B0=E8=B4=A7=E5=8D=95=EF=BC=8C?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E5=85=A5=E5=BA=93=E6=8C=89=E9=92=AE=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C=E6=9C=AC=E6=AC=A1=E5=88=9B=E5=BB=BA=E6=95=B0=E9=87=8F?= =?UTF-8?q?=E6=98=AF=E5=90=A6=E7=AD=89=E4=BA=8E=E8=AE=A2=E5=8D=95=E6=95=B0?= =?UTF-8?q?=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/stockIn/deliveryStockIn/index.vue | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/views/stockIn/deliveryStockIn/index.vue b/src/views/stockIn/deliveryStockIn/index.vue index ad36f0e..9cd3559 100644 --- a/src/views/stockIn/deliveryStockIn/index.vue +++ b/src/views/stockIn/deliveryStockIn/index.vue @@ -727,6 +727,24 @@ async function sendToERP() { state.button_loading = false return } + //点击入库时创建数量必须等于订单数量 + if (state.MATERIALRECEIVEACT == null || state.MATERIALRECEIVEACT.length < 1) { + ElMessageBox.alert('入库单详细信息不能为空', { + confirmButtonText: 'OK' + }) + }else{ + for (const element of state.MATERIALRECEIVEACT) { + if ( element.CREATEQTY !== element.REQUESTQUANTITY) { + ElMessageBox.alert('创建数量需等于订单数量', { + confirmButtonText: 'OK' + }) + state.loadings = false + state.button_state = false + state.button_loading = false + return + } + } + } DeliveryStockInSendSAP({ // materialreceiveAct: state.MATERIALPACKINGLIST[0], siteName: 'SDK',