From 02e0adf4b1038a1a3a1dad83bc8270cbad4e0b7b Mon Sep 17 00:00:00 2001
From: ZN <zhang_12370@163.com>
Date: 星期一, 30 三月 2026 16:01:19 +0800
Subject: [PATCH] 阳光印刷添加logo 阳光印刷app打包配置

---
 src/pages/works.vue |   76 +++++++++++++++++++++++++++++++++++---
 1 files changed, 70 insertions(+), 6 deletions(-)

diff --git a/src/pages/works.vue b/src/pages/works.vue
index 3d7c2c9..76ffe24 100644
--- a/src/pages/works.vue
+++ b/src/pages/works.vue
@@ -297,6 +297,10 @@
       icon: "/static/images/icon/gongyingshangwanglai.svg",
       label: "渚涘簲鍟嗗線鏉�",
     },
+    {
+      icon: "/static/images/icon/caigouguanli.svg",
+      label: "閲囪喘閫�璐�",
+    },
   ]);
 
   // 璐㈠姟绠$悊鍔熻兘鏁版嵁
@@ -333,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([
@@ -544,9 +572,34 @@
           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 "渚涘簲鍟嗗線鏉�":
         uni.navigateTo({
           url: "/pages/procurementManagement/paymentLedger/index",
+        });
+        break;
+      case "閲囪喘閫�璐�":
+        uni.navigateTo({
+          url: "/pages/procurementManagement/purchaseReturnOrder/index",
+        });
+        break;
+      case "渚涘簲鍟嗘。妗�":
+        uni.navigateTo({
+          url: "/pages/basicData/supplierManage/index",
         });
         break;
       case "鍏嚭绠$悊":
@@ -792,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}`,
@@ -963,6 +1026,7 @@
 
     // 鏀堕泦鎵�鏈夋湁鏉冮檺鐨勮彍鍗曟爣棰橈紙鏍规嵁 meta.title锛�
     const allowedMenuTitles = new Set();
+    const alwaysShowTitles = new Set(["閲囪喘閫�璐у崟", "渚涘簲鍟嗙鐞�"]);
     const collectMenuTitles = routes => {
       if (!Array.isArray(routes)) return;
       routes.forEach(route => {
@@ -979,8 +1043,9 @@
     // 瀹氫箟鑿滃崟閰嶇疆鏄犲皠
     const menuMapping = {
       collaboration: { target: collaborationItems, specialMapping: { "瑙勭珷鍒跺害": "瑙勭珷鍒跺害绠$悊" } },
+      archiveManagement: { target: archiveManagementItems, specialMapping: { "渚涘簲鍟嗘。妗�": "渚涘簲鍟嗙鐞�" } },
     };
-
+    console.log(allowedMenuTitles)
     // 閫氱敤杩囨护鍑芥暟
     const filterArray = (targetArray, specialMapping) => {
       const filtered = targetArray.filter(item => {
@@ -997,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);
@@ -1011,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);
@@ -1702,4 +1766,4 @@
       box-shadow: 0 0.375rem 1.25rem rgba(0, 0, 0, 0.4);
     }
   }
-</style>
\ No newline at end of file
+</style>

--
Gitblit v1.9.3