From 5a6b804b09a00ef3d296702453274f654cf5aad4 Mon Sep 17 00:00:00 2001 From: 曹睿 <360930172@qq.com> Date: 星期四, 10 七月 2025 14:25:29 +0800 Subject: [PATCH] fix: 修复来票登记,关闭展开栏的报错 --- src/views/procurementManagement/invoiceEntry/index.vue | 25 +++++++++++++++++++++++-- 1 files changed, 23 insertions(+), 2 deletions(-) diff --git a/src/views/procurementManagement/invoiceEntry/index.vue b/src/views/procurementManagement/invoiceEntry/index.vue index 3f8fcf9..191813c 100644 --- a/src/views/procurementManagement/invoiceEntry/index.vue +++ b/src/views/procurementManagement/invoiceEntry/index.vue @@ -42,6 +42,7 @@ :expand-row-keys="expandRowKeys" @expand-change="expandChange" @selection-change="handleSelectionChange" + @pagination="changePage" > <template #expand="{ row }"> <ExpandTable ref="expandTableRef" /> @@ -87,6 +88,7 @@ pagination, getTableData, resetFilters, + onCurrentChange, } = usePaginationApi( gePurchaseListPage, { @@ -99,6 +101,10 @@ slot: "expand", }, { + label: "閲囪喘璁㈠崟鍙�", + prop: "purchaseContractNumber", + }, + { label: "閿�鍞悎鍚屽彿", prop: "salesContractNo", }, @@ -109,6 +115,14 @@ { label: "椤圭洰鍚嶇О", prop: "projectName", + }, + { + label: "褰曞叆浜�", + prop: "recorderName", + }, + { + label: "褰曞叆鏃ユ湡", + prop: "entryDate", }, { label: "鍚堝悓閲戦(鍏�)", @@ -164,8 +178,15 @@ const handleDelete = () => {}; const expandChange = async (row, expandedRows) => { - await nextTick(); - expandTableRef.value.getList(row.id); + if (expandedRows.length > 0) { + await nextTick(); + expandTableRef.value.getList(row.id); + } +}; + +const changePage = ({ page }) => { + pagination.currentPage = page; + onCurrentChange(page); }; onMounted(() => { -- Gitblit v1.9.3