From 7bdc564533f48b33c3822b663ca755db991afd0d Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期四, 10 七月 2025 15:20:46 +0800
Subject: [PATCH] 选择产品下的子产品(子产品也有对应的规格型号),产品大类选择框不展示选择的子产品

---
 src/views/procurementManagement/invoiceEntry/index.vue |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/views/procurementManagement/invoiceEntry/index.vue b/src/views/procurementManagement/invoiceEntry/index.vue
index e899511..a1e02e5 100644
--- a/src/views/procurementManagement/invoiceEntry/index.vue
+++ b/src/views/procurementManagement/invoiceEntry/index.vue
@@ -186,8 +186,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