diff --git a/src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue b/src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue index 1a42761c1..43e4cc648 100644 --- a/src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue +++ b/src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue @@ -154,14 +154,16 @@ const buttonBaseClickBom = async (val) => { if (val == 'save') { // 新增bom保存 临时的 let flag = false; + let bomQty = 0; detatableDataBom.tableList.forEach((item) => { if(item.qty!=0 && (item.bomQty * detailQty.value < item.qty)){ flag = true; + bomQty = item.bomQty * detailQty.value; return; } }) if(flag){ - message.warning('数量需要小于Bom数量!') + message.warning('数量需要小于'+bomQty+'(子表数量乘以Bom数量的值)!') return } tableListBom.value = detatableDataBom.tableList.filter(item => (item.qty!=0 && item.bomQty * detailQty.value >= item.qty)) diff --git a/src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue b/src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue index 39260c038..c4964c0bc 100644 --- a/src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue +++ b/src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue @@ -159,14 +159,16 @@ const buttonBaseClickBom = (val) => { if (val == 'save') { // 根据 填写的数量 为基准 不填写数量的忽略 let flag = false; + let bomQty = 0; detatableDataBom.tableList.forEach((item) => { if(item.qty!=0 && (item.bomQty * detailQty.value < item.qty)){ flag = true; + bomQty = item.bomQty * detailQty.value; return; } }) if(flag){ - message.warning('数量需要小于Bom数量!') + message.warning('数量需要小于'+bomQty+'(子表数量乘以Bom数量的值)!') return } tableListBom.value = detatableDataBom.tableList.filter(item => (item.qty!=0 && (item.bomQty * detailQty.value >= item.qty))) diff --git a/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue b/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue index 8c11d693e..4d69cba21 100644 --- a/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue +++ b/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue @@ -158,15 +158,16 @@ const buttonBaseClickBom = (val) => { if (val == 'save') { // 根据 填写的数量 为基准 不填写数量的忽略 let flag = false; + let bomQty = 0; detatableDataBom.tableList.forEach((item) => { - console.log("AAAAAA",item.qty) if(item.qty!=0 && (item.bomQty * detailQty.value < item.qty)){ flag = true; + bomQty = item.bomQty * detailQty.value; return; } }) if(flag){ - message.warning('数量需要小于Bom数量!') + message.warning('数量需要小于'+bomQty+'(子表数量乘以Bom数量的值)!') return } tableListBom.value = detatableDataBom.tableList.filter(item => (item.qty!=0 && (item.bomQty * detailQty.value >= item.qty)))