From dd630fede0cc46500fe898c75464e3e04ce82b0f Mon Sep 17 00:00:00 2001
From: ZN <zhang_12370@163.com>
Date: 星期三, 25 三月 2026 18:01:03 +0800
Subject: [PATCH] feat(财务与售后): 新增财务管理与售后管理模块

---
 src/pages/works.vue |   61 ++++++++++++++++++++++++++----
 1 files changed, 53 insertions(+), 8 deletions(-)

diff --git a/src/pages/works.vue b/src/pages/works.vue
index 41aad95..76ffe24 100644
--- a/src/pages/works.vue
+++ b/src/pages/works.vue
@@ -301,10 +301,6 @@
       icon: "/static/images/icon/caigouguanli.svg",
       label: "閲囪喘閫�璐�",
     },
-    {
-      icon: "/static/images/icon/gongchuguanli.svg",
-      label: "渚涘簲鍟嗘。妗�",
-    },
   ]);
 
   // 璐㈠姟绠$悊鍔熻兘鏁版嵁
@@ -341,14 +337,38 @@
       icon: "/static/images/icon/fukuanliushui.svg",
       label: "浠樻娴佹按",
     },
+    {
+      icon: "/static/images/icon/huikuandengji.svg",
+      label: "鏀跺叆绠$悊",
+    },
+    {
+      icon: "/static/images/icon/fukuandengji.svg",
+      label: "鏀嚭绠$悊",
+    },
+    {
+      icon: "/static/images/icon/huikuanliushui.svg",
+      label: "鍊熸绠$悊",
+    },
   ]);
 
   // 妗f绠$悊鍔熻兘鏁版嵁
   const archiveManagementItems = reactive([
+    {
+      icon: "/static/images/icon/gongchuguanli.svg",
+      label: "渚涘簲鍟嗘。妗�",
+    },
   ]);
 
   // 鍞悗鏈嶅姟鍔熻兘鏁版嵁
   const afterSalesServiceItems = reactive([
+    {
+      icon: "/static/images/icon/xiaoshoutaizhang.svg",
+      label: "鍙嶉鐧昏",
+    },
+    {
+      icon: "/static/images/icon/caigouguanli.svg",
+      label: "鍞悗澶勭悊",
+    },
   ]);
 
   const humanResourcesItems = reactive([
@@ -550,6 +570,21 @@
       case "浠樻娴佹按":
         uni.navigateTo({
           url: "/pages/procurementManagement/receiptPaymentHistory/index",
+        });
+        break;
+      case "鏀跺叆绠$悊":
+        uni.navigateTo({
+          url: "/pages/financialManagement/revenueManagement/index",
+        });
+        break;
+      case "鏀嚭绠$悊":
+        uni.navigateTo({
+          url: "/pages/financialManagement/expenseManagement/index",
+        });
+        break;
+      case "鍊熸绠$悊":
+        uni.navigateTo({
+          url: "/pages/financialManagement/loanManagement/index",
         });
         break;
       case "渚涘簲鍟嗗線鏉�":
@@ -810,6 +845,16 @@
           url: "/pages/qualityManagement/finalInspection/index",
         });
         break;
+      case "鍙嶉鐧昏":
+        uni.navigateTo({
+          url: "/pages/customerService/feedbackRegistration/index",
+        });
+        break;
+      case "鍞悗澶勭悊":
+        uni.navigateTo({
+          url: "/pages/customerService/afterSalesHandling/index",
+        });
+        break;
       default:
         uni.showToast({
           title: `鐐瑰嚮浜�${item.label}`,
@@ -998,6 +1043,7 @@
     // 瀹氫箟鑿滃崟閰嶇疆鏄犲皠
     const menuMapping = {
       collaboration: { target: collaborationItems, specialMapping: { "瑙勭珷鍒跺害": "瑙勭珷鍒跺害绠$悊" } },
+      archiveManagement: { target: archiveManagementItems, specialMapping: { "渚涘簲鍟嗘。妗�": "渚涘簲鍟嗙鐞�" } },
     };
     console.log(allowedMenuTitles)
     // 閫氱敤杩囨护鍑芥暟
@@ -1016,8 +1062,7 @@
     filterArray(marketingItems);
     filterArray(purchaseItems);
     filterArray(financeManagementItems);
-    filterArray(archiveManagementItems);
-    filterArray(afterSalesServiceItems);
+    filterArray(archiveManagementItems, menuMapping.archiveManagement.specialMapping);
     filterArray(collaborationItems, menuMapping.collaboration.specialMapping);
     filterArray(safetyItems);
     filterArray(humanResourcesItems);
@@ -1030,8 +1075,8 @@
   const hasMarketingItems = computed(() => marketingItems.length > 0);
   const hasPurchaseItems = computed(() => purchaseItems.length > 0);
   const hasFinanceManagementItems = computed(() => financeManagementItems.length > 0);
-  const hasArchiveManagementItems = computed(() => true);
-  const hasAfterSalesServiceItems = computed(() => true);
+  const hasArchiveManagementItems = computed(() => archiveManagementItems.length > 0);
+  const hasAfterSalesServiceItems = computed(() => afterSalesServiceItems.length > 0);
   const hasCollaborationItems = computed(() => collaborationItems.length > 0);
   const hasSafetyItems = computed(() => safetyItems.length > 0);
   const hasQualityItems = computed(() => qualityItems.length > 0);

--
Gitblit v1.9.3