From d82719fb01bcd56c382f35d624b92eecaa5db09b Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期二, 17 三月 2026 14:57:06 +0800
Subject: [PATCH] 军泰伟业 1.仓储物流需要加上库位,库位暂时分为外购、自制、委外三种类型 2.生产订单加上库存数量,方便实时查看 3.产品发货后,若部分产品退回,可修改订单发货数量(减去退回的产品数量),若订单产品全部退回,可对发货的订单进行取消撤回操作

---
 src/views/collaborativeApproval/noticeManagement/index.vue |   43 ++++++++++++++++---------------------------
 1 files changed, 16 insertions(+), 27 deletions(-)

diff --git a/src/views/collaborativeApproval/noticeManagement/index.vue b/src/views/collaborativeApproval/noticeManagement/index.vue
index d92adea..0957882 100644
--- a/src/views/collaborativeApproval/noticeManagement/index.vue
+++ b/src/views/collaborativeApproval/noticeManagement/index.vue
@@ -617,34 +617,23 @@
   };
   
   if (row.id) {
-    // 缂栬緫妯″紡 - 鍏堝垹闄ゅ啀娣诲姞锛堝洜涓哄彧鏈� add 鍜� del 鎺ュ彛锛�
-    delNoticeType(row.id).then(res => {
-      if (res.code === 200) {
-        addNoticeType(data).then(addRes => {
-          if (addRes.code === 200) {
-            ElMessage.success('缂栬緫鎴愬姛');
-            row.editing = false;
-            delete row.originalNoticeType;
-            fetchNoticeTypeList().then(() => {
-              // 濡傛灉褰撳墠閫変腑鐨勭被鍨嬭缂栬緫锛岄渶瑕侀噸鏂拌幏鍙栨暟鎹�
-              if (activeNoticeTypeTab.value === String(row.id)) {
-                fetchNoticesByType(addRes.data?.id || row.id);
-              }
-            });
-          }
-        });
-      }
-    });
-  } else {
-    // 鏂板妯″紡
-    addNoticeType(data).then(res => {
-      if (res.code === 200) {
-        ElMessage.success('鏂板鎴愬姛');
-        row.editing = false;
-        fetchNoticeTypeList();
-      }
-    });
+    // 缂栬緫妯″紡 - 浼犲叆id
+    data.id = row.id;
   }
+  
+  addNoticeType(data).then(res => {
+    if (res.code === 200) {
+      ElMessage.success(row.id ? '缂栬緫鎴愬姛' : '鏂板鎴愬姛');
+      row.editing = false;
+      delete row.originalNoticeType;
+      fetchNoticeTypeList().then(() => {
+        // 濡傛灉褰撳墠閫変腑鐨勭被鍨嬭缂栬緫锛岄渶瑕侀噸鏂拌幏鍙栨暟鎹�
+        if (row.id && activeNoticeTypeTab.value === String(row.id)) {
+          fetchNoticesByType(res.data?.id || row.id);
+        }
+      });
+    }
+  });
 };
 
 const handleDeleteNoticeType = (row) => {

--
Gitblit v1.9.3