|
@ -193,6 +193,12 @@ const buttonBaseClickBom = (val) => { |
|
|
message.warning('数量需要小于'+bomQty+'(子表数量乘以Bom数量的值)!') |
|
|
message.warning('数量需要小于'+bomQty+'(子表数量乘以Bom数量的值)!') |
|
|
return |
|
|
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))) |
|
|
tableListBom.value = detatableDataBom.tableList.filter(item => (item.qty!=0 && (item.bomQty * detailQty.value >= item.qty))) |
|
|
console.log("tableListBom",tableListBom.value) |
|
|
console.log("tableListBom",tableListBom.value) |
|
|
console.log("lsBomSave",lsBomSave.value) |
|
|
console.log("lsBomSave",lsBomSave.value) |
|
|