From cdc3161bf7ac33d50d32702fd768b794b0b8ed97 Mon Sep 17 00:00:00 2001 From: wangyufei <2267742828@qq.com> Date: Fri, 16 Aug 2024 14:46:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=A9=E4=B8=80=E6=9D=A1=20=E6=95=B0?= =?UTF-8?q?=E9=87=8F=E4=B8=8D=E8=83=BD=E4=B8=BA0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../productscrap/productscrapRequestMain/index.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue b/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue index c0563e4f5..276ccdda9 100644 --- a/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue +++ b/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue @@ -193,6 +193,12 @@ const buttonBaseClickBom = (val) => { message.warning('数量需要小于'+bomQty+'(子表数量乘以Bom数量的值)!') return } + if(detatableDataBom.tableList.length==1){ + if(detatableDataBom.tableList.find(item=>item['qty']<=0)){ + message.error('数量不能为0') + return + } + } tableListBom.value = detatableDataBom.tableList.filter(item => (item.qty!=0 && (item.bomQty * detailQty.value >= item.qty))) console.log("tableListBom",tableListBom.value) console.log("lsBomSave",lsBomSave.value)