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)