Browse Source

报废申请-只剩下一条添加数量校验

hella_online_20240816
wangyufei 3 months ago
parent
commit
a749b56446
  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