From cd59e68528e233030312ceb6f98f16c13ce15355 Mon Sep 17 00:00:00 2001 From: zhaoxuebing <1291173720@qq.com> Date: Thu, 1 Feb 2024 16:30:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=95=B0=E9=87=8F=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../productdismantle/productdismantleRequestMain/index.vue | 2 +- .../productrepair/productrepairRequestMain/index.vue | 2 +- .../productscrap/productscrapRequestMain/index.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue b/src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue index af46695f5..d89f6c137 100644 --- a/src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue +++ b/src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue @@ -211,7 +211,7 @@ const buttonOperationClick = async (row, label, index)=> { // } // }) item.rowId = index - if(tableData.value[index].childList) { + if(tableData.value[index].childList.length > 0) { tableData.value[index].childList.forEach(itemChild => { if (itemChild.itemCode == item.itemCode) { item.qty = itemChild.qty diff --git a/src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue b/src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue index 26cf1d36d..f000fa58f 100644 --- a/src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue +++ b/src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue @@ -206,7 +206,7 @@ const buttonOperationClick = async (row, label, index)=> { await getDetailListBom() detatableDataBom.tableList.map(item => { item.rowId = index - if(tableData.value[index].childList) { + if(tableData.value[index].childList > 0) { tableData.value[index].childList.forEach(itemChild => { if (itemChild.itemCode == item.itemCode) { item.qty = itemChild.qty diff --git a/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue b/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue index 0b984a703..c51b1a8f2 100644 --- a/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue +++ b/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue @@ -209,7 +209,7 @@ const buttonOperationClick = async (row, label, index)=> { await getDetailListBom() detatableDataBom.tableList.forEach(item => { item.rowId = index - if(tableData.value[index].childList) { + if(tableData.value[index].childList.length > 0) { tableData.value[index].childList.forEach(itemChild => { if (itemChild.itemCode == item.itemCode) { item.qty = itemChild.qty