Browse Source

剩一条 数量不能为0

hella_online_20240819
wangyufei 3 months ago
parent
commit
cdc3161bf7
  1. 6
      src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue

6
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)

Loading…
Cancel
Save