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