From 80b320f5711c87556bf066de48181d556eb5fb4d Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期五, 24 四月 2026 16:23:07 +0800
Subject: [PATCH] 天津宝东 1.发货的时候加一个金额字段,需要在财库管理显示出来,因为会有发票

---
 src/views/collaborativeApproval/approvalManagement/index.vue |   22 +++++++++++-----------
 1 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/src/views/collaborativeApproval/approvalManagement/index.vue b/src/views/collaborativeApproval/approvalManagement/index.vue
index 4638392..f91ed8d 100644
--- a/src/views/collaborativeApproval/approvalManagement/index.vue
+++ b/src/views/collaborativeApproval/approvalManagement/index.vue
@@ -40,7 +40,7 @@
               </el-tag>
             </div>
           </div>
-          <div class="header-actions" v-if="approverList.length > 0">
+          <div class="header-actions">
             <el-button @click="handleReset" size="default">
               <el-icon><RefreshLeft /></el-icon>
               閲嶇疆
@@ -175,7 +175,7 @@
     <!-- 搴曢儴鎻愮ず -->
     <div class="bottom-tips">
       <el-icon><InfoFilled /></el-icon>
-      <span>鎻愮ず锛氭瘡涓祦绋嬭嚦灏戦厤缃竴涓鎵逛汉锛屽鎵规寜椤哄簭娴佽浆锛屽彲閫氳繃绠ご璋冩暣椤哄簭</span>
+      <span>鎻愮ず锛氬彲涓嶉厤缃鎵逛汉锛涜嫢閰嶇疆澶氫汉锛屽鎵瑰皢鎸夐『搴忔祦杞紝鍙�氳繃绠ご璋冩暣椤哄簭</span>
     </div>
   </div>
 </template>
@@ -387,18 +387,14 @@
 
 // 淇濆瓨閰嶇疆
 const handleSave = async () => {
-  if (approverList.value.length === 0) {
-    ElMessage.warning('璇疯嚦灏戦厤缃竴涓鎵逛汉');
-    return;
-  }
-
-  const hasEmptyApprover = approverList.value.some((item) => !item.approverId);
+  const configuredApprovers = approverList.value.filter((item) => item.approverId);
+  const hasEmptyApprover = false;
   if (hasEmptyApprover) {
     ElMessage.warning('璇烽�夋嫨鎵�鏈夊鎵逛汉');
     return;
   }
 
-  const approverIds = approverList.value.map((item) => item.approverId);
+  const approverIds = configuredApprovers.map((item) => item.approverId);
   const uniqueIds = [...new Set(approverIds)];
   if (uniqueIds.length !== approverIds.length) {
     ElMessage.warning('瀹℃壒浜轰笉鑳介噸澶�');
@@ -407,17 +403,21 @@
 
   saveLoading.value = true;
   try {
-    const payload = approverList.value.map((item, index) => ({
+    const approveProcessConfigNodes = configuredApprovers.map((item, index) => ({
       approveType: currentApproveType.value,
       nodeOrder: index + 1,
       approverId: item.approverId,
       approverName: item.approverName,
     }));
+    const payload = {
+      approveType: currentApproveType.value,
+      approveProcessConfigNodes,
+    };
     await addApproveProcessConfigNode(payload);
     ElMessage.success('淇濆瓨鎴愬姛');
     await loadData();
   } catch (error) {
-    ElMessage.error('淇濆瓨澶辫触');
+		console.log('淇濆瓨澶辫触')
   } finally {
     saveLoading.value = false;
   }

--
Gitblit v1.9.3