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/components/ExpandTable.vue | 2 +-
src/views/procurementManagement/invoiceEntry/index.vue | 6 ++++--
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/views/procurementManagement/invoiceEntry/components/ExpandTable.vue b/src/views/procurementManagement/invoiceEntry/components/ExpandTable.vue
index f281f82..aa663eb 100644
--- a/src/views/procurementManagement/invoiceEntry/components/ExpandTable.vue
+++ b/src/views/procurementManagement/invoiceEntry/components/ExpandTable.vue
@@ -4,7 +4,7 @@
:column="columns"
:tableData="dataList"
:tableLoading="loading"
- height="300px"
+ height="auto"
>
</PIMTable>
</template>
diff --git a/src/views/procurementManagement/invoiceEntry/index.vue b/src/views/procurementManagement/invoiceEntry/index.vue
index c7376ee..191813c 100644
--- a/src/views/procurementManagement/invoiceEntry/index.vue
+++ b/src/views/procurementManagement/invoiceEntry/index.vue
@@ -178,8 +178,10 @@
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 }) => {
--
Gitblit v1.9.3