From fa4a8a332b2b60b7b94b1f763091c1daf8927710 Mon Sep 17 00:00:00 2001
From: yyb <995253665@qq.com>
Date: 星期三, 22 四月 2026 14:18:35 +0800
Subject: [PATCH] 优化选择数据逻辑,仅保留具有子项的行以便于删除操作

---
 src/views/salesManagement/salesQuotation/index.vue |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/src/views/salesManagement/salesQuotation/index.vue b/src/views/salesManagement/salesQuotation/index.vue
index 549e5ae..20ccd5a 100644
--- a/src/views/salesManagement/salesQuotation/index.vue
+++ b/src/views/salesManagement/salesQuotation/index.vue
@@ -606,9 +606,7 @@
       nickName: item.nickName || "",
       userName: item.userName || "",
     }));
-    approveUserList({ approveType: 6 }).then(res => {
-      userListApprove.value = res.data;
-    });
+    await loadApproveUserList();
     getProductOptions();
     customerList().then(res => {
       // 鍙鍒堕渶瑕佺殑瀛楁锛岄伩鍏嶅皢缁勪欢寮曠敤鏀惧叆鍝嶅簲寮忓璞�
@@ -618,6 +616,10 @@
         taxpayerIdentificationNumber: item.taxpayerIdentificationNumber || "",
       }));
     });
+  };
+  const loadApproveUserList = async () => {
+    const res = await approveUserList({ approveType: 6 });
+    userListApprove.value = Array.isArray(res.data) ? res.data : [];
   };
   const getProductOptions = () => {
     // 杩斿洖 Promise锛屼究浜庣紪杈戞椂 await 纭繚鑳藉弽鏄�
@@ -810,6 +812,9 @@
     form.discountAmount = row.discountAmount || 0;
     form.totalAmount = row.totalAmount || 0;
 
+    // 缂栬緫鏃堕噸鏂版媺鍙栧鎵逛汉鍒楄〃锛岄伩鍏嶅垏椤靛悗鍒楄〃鐘舵�佽繃鏈熷鑷村洖鏄惧紓甯�
+    await loadApproveUserList();
+
     // 鍙嶆樉瀹℃壒浜�
     if (row.approveUserIds) {
       const userIds = row.approveUserIds.split(",");

--
Gitblit v1.9.3