From a9a556ac966abfea3bcf87fe2e1dbcc0deb78bfc Mon Sep 17 00:00:00 2001 From: wangyufei <2267742828@qq.com> Date: Thu, 4 Jul 2024 13:21:08 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A1=E5=88=92=E6=95=B0=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../purchasePlanMain/index.vue | 37 ++++++++++--------- 1 file changed, 20 insertions(+), 17 deletions(-) diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue index c726ac833..31240d9d6 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue @@ -641,23 +641,26 @@ const handleSelectionPublish = async ()=>{ data.subList = [] let flag = false for (let item of tableData.value) { - await PurchaseDetailApi.getPurchaseDetailPageCheckData({ - number: item.poNumber, - lineNumber: item.poLine, - }).then(res => { - console.log("【要货计划】-每条数据结果",item) - if(res.list[0].type == 'DISCRETE'){//只有离散单需要这个校验 - if (item.planQty > res.list[0].orderQty - res.list[0].plannedQty) { - flag = true; - message.error(t('ts.要货计划数量不得大于订单数量-已计划数量')) - return - }else{ - data.subList.push(item) // 拼接子表数据参数 - } - }else{ - data.subList.push(item) // 拼接子表数据参数 - } - }) + if(item.planQty>0){ + data.subList.push(item) // 拼接子表数据参数 + } + // await PurchaseDetailApi.getPurchaseDetailPageCheckData({ + // number: item.poNumber, + // lineNumber: item.poLine, + // }).then(res => { + // console.log("【要货计划】-每条数据结果",item) + // if(res.list[0].type == 'DISCRETE'){//只有离散单需要这个校验 + // if (item.planQty > res.list[0].orderQty - res.list[0].plannedQty) { + // flag = true; + // message.error(t('ts.要货计划数量不得大于订单数量-已计划数量')) + // return + // }else{ + // data.subList.push(item) // 拼接子表数据参数 + // } + // }else{ + // data.subList.push(item) // 拼接子表数据参数 + // } + // }) } if(flag){ formRef.value.formLoading = false