From aaacc3d84b3d65d4704cba2c64dbe7bbc4941258 Mon Sep 17 00:00:00 2001 From: fangdawei <44673626@qq.com> Date: Thu, 18 Jan 2024 09:26:06 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A6=81=E8=B4=A7=E8=AE=A1=E5=88=92=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E8=A1=8C=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../supplierdeliver/purchasePlanMain/index.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue index ec70f1d80..f05850b18 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue @@ -386,12 +386,12 @@ number: item.poNumber, lineNumber: item.poLine, }).then(res => { - data.subList.push(item) // 拼接子表数据参数 - // if(item.planQty > res.list[0].orderQty-res.list[0].plannedQty){ - // message.error('要货计划数量不得大于订单数量-已计划数量') - // } else { - // data.subList.push(item) // 拼接子表数据参数 - // } + console.log("【要货计划】-每条数据结果",item) + if (item.planQty > res.list[0].orderQty - res.list[0].plannedQty) { + message.error('要货计划数量不得大于订单数量-已计划数量') + return + } + data.subList.push(item) // 拼接子表数据参数 }) } if (data.subList.length == tableData.value.length) {