From 9204d855a6ec509eb45974bc891aa2c4cdf65d38 Mon Sep 17 00:00:00 2001 From: zhaoxuebing <1291173720@qq.com> Date: Fri, 2 Feb 2024 14:43:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E7=A4=BA=E8=AF=AD=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../productdismantle/productdismantleRequestMain/index.vue | 4 +++- .../productrepair/productrepairRequestMain/index.vue | 4 +++- .../productscrap/productscrapRequestMain/index.vue | 5 +++-- 3 files changed, 9 insertions(+), 4 deletions(-) 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)))