From 0186e6b9cc2e411ec16b7b56cfda9c822146a0f3 Mon Sep 17 00:00:00 2001 From: liding <756868258@qq.com> Date: 星期三, 21 五月 2025 16:33:16 +0800 Subject: [PATCH] 采购台账,来票登记折叠展示 --- src/views/procurementManagement/procurementLedger/index.vue | 2 +- src/views/procurementManagement/invoiceEntry/index.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/procurementManagement/invoiceEntry/index.vue b/src/views/procurementManagement/invoiceEntry/index.vue index 62aba8c..937dd54 100644 --- a/src/views/procurementManagement/invoiceEntry/index.vue +++ b/src/views/procurementManagement/invoiceEntry/index.vue @@ -240,10 +240,10 @@ if (expandedRows.length > 0) { expandedRowKeys.value = [] try { - productList({ salesLedgerId: row.purchaseLedgerId, type: 2 }).then(res => { + productList({ salesLedgerId: row.id, type: 2 }).then(res => { const index = tableData.value.findIndex(item => item.id === row.id); if (index > -1) { - tableData.value[index].children = res.rows; + tableData.value[index].children = res; } expandedRowKeys.value.push(row.id) }) diff --git a/src/views/procurementManagement/procurementLedger/index.vue b/src/views/procurementManagement/procurementLedger/index.vue index b9762c0..f04b8f2 100644 --- a/src/views/procurementManagement/procurementLedger/index.vue +++ b/src/views/procurementManagement/procurementLedger/index.vue @@ -413,7 +413,7 @@ productList({salesLedgerId: row.id, type: 2}).then(res => { const index = tableData.value.findIndex(item => item.id === row.id); if (index > -1) { - tableData.value[index].children = res.rows; + tableData.value[index].children = res; } expandedRowKeys.value.push(row.id) }) -- Gitblit v1.9.3