From 562816e645bc40841d7f65e4be87d7dc28aebcc0 Mon Sep 17 00:00:00 2001
From: yyb <995253665@qq.com>
Date: 星期五, 03 四月 2026 13:25:42 +0800
Subject: [PATCH] refactor: 注释掉人力资源和生产管控模块的相关代码

---
 src/pages/works.vue |  644 ++++++++++++++++++++++++++++++++--------------------------
 1 files changed, 354 insertions(+), 290 deletions(-)

diff --git a/src/pages/works.vue b/src/pages/works.vue
index a9b6939..2da7647 100644
--- a/src/pages/works.vue
+++ b/src/pages/works.vue
@@ -1,42 +1,27 @@
 <template>
   <view class="content">
-    <!--    <view class="header-section">-->
-    <!--      <view class="currentFactory">-->
-    <!--        <up-text type="primary"-->
-    <!--                 :text="userStore.currentFactoryName"-->
-    <!--                 @click="show = true"-->
-    <!--                 size="18"-->
-    <!--                 class="factoryName"-->
-    <!--                 suffixIcon="arrow-right"-->
-    <!--                 :iconStyle="iconStyle"></up-text>-->
-    <!--      </view>-->
-    <!--      <up-picker :show="show"-->
-    <!--                 :columns="factoryList"-->
-    <!--                 @confirm="changeFactory"-->
-    <!--                 @cancel="show = false"></up-picker>-->
-    <!--    </view>-->
-<!--    <view class="hero-section">-->
-<!--      <view class="bg-img">-->
-<!--        <view class="hero-content">-->
-<!--          &lt;!&ndash; 棰勭暀锛氬鍚庣画闇�瑕佸彲鍦ㄦ鏀� logo 鎴栫畝鐭彁绀� &ndash;&gt;-->
-<!--        </view>-->
-<!--        <view class="hero-wave"></view>-->
-<!--      </view>-->
-<!--    </view>-->
-    <!--		<view class="notice-section">-->
-    <!--			<view class="notice">-->
-    <!--				<view class="notice-content">-->
-    <!--					<view class="notice-left">-->
-    <!--						<text class="notice-status">閫氱煡</text>-->
-    <!--					</view>-->
-    <!--					<view class="notice-separator"></view>-->
-    <!--					<view class="notice-right">-->
-    <!--						<text class="notice-label">{{currentStatus}}</text>-->
-    <!--						<text class="notice-text">褰撴棩閿�鍞澶囨暟:<text class="notice-number">{{number}}<text class="notice-unit">涓�</text></text></text>-->
-    <!--					</view>-->
-    <!--				</view>-->
-    <!--			</view>-->
-    <!--		</view>-->
+    <!-- 鍗忓悓鍔炲叕妯″潡 -->
+    <view class="common-module collaboration-module"
+          v-if="hasCollaborationItems">
+      <view class="module-header">
+        <view class="module-title-container">
+          <text class="module-title">鍗忓悓鍔炲叕</text>
+        </view>
+      </view>
+      <view class="module-content">
+        <up-grid :border="false"
+                 col="4">
+          <up-grid-item v-for="(item, index) in collaborationItems"
+                        :key="index"
+                        @click="handleCommonItemClick(item)">
+            <view class="icon-container">
+              <image :src="item.icon" class="item-icon"></image>
+            </view>
+            <text class="item-label">{{item.label}}</text>
+          </up-grid-item>
+        </up-grid>
+      </view>
+    </view>
     <!-- 钀ラ攢绠$悊妯″潡 -->
     <view class="common-module marketing-module"
           v-if="hasMarketingItems">
@@ -59,7 +44,7 @@
         </up-grid>
       </view>
     </view>
-    <!--    &lt;!&ndash; 閲囪喘绠$悊妯″潡 &ndash;&gt;-->
+    <!-- 閲囪喘绠$悊妯″潡 -->
     <view class="common-module purchase-module"
           v-if="hasPurchaseItems">
       <view class="module-header">
@@ -81,18 +66,18 @@
         </up-grid>
       </view>
     </view>
-    <!-- &lt;!&ndash; 鍗忓悓鍔炲叕妯″潡 &ndash;&gt; -->
-    <view class="common-module collaboration-module"
-          v-if="hasCollaborationItems">
+    <!-- 浠撳偍鐗╂祦妯″潡 -->
+    <view class="common-module warehouse-logistics-module"
+          v-if="hasWarehouseLogisticsItems">
       <view class="module-header">
         <view class="module-title-container">
-          <text class="module-title">鍗忓悓鍔炲叕</text>
+          <text class="module-title">浠撳偍鐗╂祦</text>
         </view>
       </view>
       <view class="module-content">
         <up-grid :border="false"
                  col="4">
-          <up-grid-item v-for="(item, index) in collaborationItems"
+          <up-grid-item v-for="(item, index) in warehouseLogisticsItems"
                         :key="index"
                         @click="handleCommonItemClick(item)">
             <view class="icon-container">
@@ -103,18 +88,108 @@
         </up-grid>
       </view>
     </view>
-    <!-- 瀹夊叏鐢熶骇妯″潡 -->
+    <!-- 浜哄姏璧勬簮妯″潡锛堝凡娉ㄩ噴锛�
     <view class="common-module collaboration-module"
-          v-if="hasSafetyItems">
+          v-if="hasHumanResourcesItems">
       <view class="module-header">
         <view class="module-title-container">
-          <text class="module-title">瀹夊叏鐢熶骇</text>
+          <text class="module-title">浜哄姏璧勬簮</text>
         </view>
       </view>
       <view class="module-content">
         <up-grid :border="false"
                  col="4">
-          <up-grid-item v-for="(item, index) in safetyItems"
+          <up-grid-item v-for="(item, index) in humanResourcesItems"
+                        :key="index"
+                        @click="handleCommonItemClick(item)">
+            <view class="icon-container">
+              <image :src="item.icon" class="item-icon"></image>
+            </view>
+            <text class="item-label">{{item.label}}</text>
+          </up-grid-item>
+        </up-grid>
+      </view>
+    </view>
+    -->
+    <!-- 鐢熶骇绠℃帶妯″潡锛堝凡娉ㄩ噴锛�
+    <view class="common-module equipment-module"
+          v-if="hasProductionItems">
+      <view class="module-header">
+        <view class="module-title-container">
+          <text class="module-title">鐢熶骇绠℃帶</text>
+        </view>
+      </view>
+      <view class="module-content">
+        <up-grid :border="false"
+                 col="4">
+          <up-grid-item v-for="(item, index) in productionItems"
+                        :key="index"
+                        @click="handleCommonItemClick(item)">
+            <view class="icon-container">
+              <image :src="item.icon" class="item-icon"></image>
+            </view>
+            <text class="item-label">{{item.label}}</text>
+          </up-grid-item>
+        </up-grid>
+      </view>
+    </view>
+    -->
+    <!-- 璐㈠姟绠$悊妯″潡 -->
+    <view class="common-module finance-module"
+          v-if="hasFinanceManagementItems">
+      <view class="module-header">
+        <view class="module-title-container">
+          <text class="module-title">璐㈠姟绠$悊</text>
+        </view>
+      </view>
+      <view class="module-content">
+        <up-grid :border="false"
+                 col="4">
+          <up-grid-item v-for="(item, index) in financeManagementItems"
+                        :key="index"
+                        @click="handleCommonItemClick(item)">
+            <view class="icon-container">
+              <image :src="item.icon" class="item-icon"></image>
+            </view>
+            <text class="item-label">{{item.label}}</text>
+          </up-grid-item>
+        </up-grid>
+      </view>
+    </view>
+    <!-- 妗f绠$悊妯″潡 -->
+    <view class="common-module archive-module"
+          v-if="hasArchiveManagementItems">
+      <view class="module-header">
+        <view class="module-title-container">
+          <text class="module-title">妗f绠$悊</text>
+        </view>
+      </view>
+      <view class="module-content">
+        <up-grid :border="false"
+                 col="4">
+          <up-grid-item v-for="(item, index) in archiveManagementItems"
+                        :key="index"
+                        @click="handleCommonItemClick(item)">
+            <view class="icon-container">
+              <image :src="item.icon" class="item-icon"></image>
+            </view>
+            <text class="item-label">{{item.label}}</text>
+          </up-grid-item>
+        </up-grid>
+      </view>
+    </view>
+    <!-- 鍞悗鏈嶅姟妯″潡 -->
+    <view class="common-module after-sales-module"
+          v-if="hasAfterSalesServiceItems">
+      <view class="module-header">
+        <view class="module-title-container">
+          <text class="module-title">鍞悗鏈嶅姟</text>
+        </view>
+      </view>
+      <view class="module-content">
+        <up-grid :border="false"
+                 col="4">
+          <up-grid-item v-for="(item, index) in afterSalesServiceItems"
                         :key="index"
                         @click="handleCommonItemClick(item)">
             <view class="icon-container">
@@ -147,50 +222,6 @@
         </up-grid>
       </view>
     </view>
-    <!-- 浜哄姏璧勬簮妯″潡 -->
-    <view class="common-module collaboration-module"
-          v-if="hasHumanResourcesItems">
-      <view class="module-header">
-        <view class="module-title-container">
-          <text class="module-title">浜哄姏璧勬簮</text>
-        </view>
-      </view>
-      <view class="module-content">
-        <up-grid :border="false"
-                 col="4">
-          <up-grid-item v-for="(item, index) in humanResourcesItems"
-                        :key="index"
-                        @click="handleCommonItemClick(item)">
-            <view class="icon-container">
-              <image :src="item.icon" class="item-icon"></image>
-            </view>
-            <text class="item-label">{{item.label}}</text>
-          </up-grid-item>
-        </up-grid>
-      </view>
-    </view>
-    <!-- 鐢熶骇绠℃帶妯″潡 -->
-    <view class="common-module equipment-module"
-          v-if="hasProductionItems">
-      <view class="module-header">
-        <view class="module-title-container">
-          <text class="module-title">鐢熶骇绠℃帶</text>
-        </view>
-      </view>
-      <view class="module-content">
-        <up-grid :border="false"
-                 col="4">
-          <up-grid-item v-for="(item, index) in productionItems"
-                        :key="index"
-                        @click="handleCommonItemClick(item)">
-            <view class="icon-container">
-              <image :src="item.icon" class="item-icon"></image>
-            </view>
-            <text class="item-label">{{item.label}}</text>
-          </up-grid-item>
-        </up-grid>
-      </view>
-    </view>
     <!-- 璁惧绠$悊妯″潡 -->
     <view class="common-module equipment-module"
           v-if="hasEquipmentItems">
@@ -203,6 +234,28 @@
         <up-grid :border="false"
                  col="4">
           <up-grid-item v-for="(item, index) in equipmentItems"
+                        :key="index"
+                        @click="handleCommonItemClick(item)">
+            <view class="icon-container">
+              <image :src="item.icon" class="item-icon"></image>
+            </view>
+            <text class="item-label">{{item.label}}</text>
+          </up-grid-item>
+        </up-grid>
+      </view>
+    </view>
+    <!-- 瀹夊叏鐢熶骇妯″潡 -->
+    <view class="common-module collaboration-module"
+          v-if="hasSafetyItems">
+      <view class="module-header">
+        <view class="module-title-container">
+          <text class="module-title">瀹夊叏鐢熶骇</text>
+        </view>
+      </view>
+      <view class="module-content">
+        <up-grid :border="false"
+                 col="4">
+          <up-grid-item v-for="(item, index) in safetyItems"
                         :key="index"
                         @click="handleCommonItemClick(item)">
             <view class="icon-container">
@@ -253,6 +306,30 @@
       label: "閿�鍞彴璐�",
     },
     {
+      icon: "/static/images/icon/kehuwanglai.svg",
+      label: "瀹㈡埛寰�鏉�",
+    },
+  ]);
+
+  // 閲囪喘绠$悊鍔熻兘鏁版嵁
+  const purchaseItems = reactive([
+    {
+      icon: "/static/images/icon/caigoutaizhang.svg",
+      label: "閲囪喘鍙拌处",
+    },
+    {
+      icon: "/static/images/icon/gongyingshangwanglai.svg",
+      label: "渚涘簲鍟嗗線鏉�",
+    },
+    {
+      icon: "/static/images/icon/caigouguanli.svg",
+      label: "閲囪喘閫�璐�",
+    },
+  ]);
+
+  // 璐㈠姟绠$悊鍔熻兘鏁版嵁
+  const financeManagementItems = reactive([
+    {
       icon: "/static/images/icon/kaipiaodengji.svg",
       label: "寮�绁ㄧ櫥璁�",
     },
@@ -269,18 +346,6 @@
       label: "鍥炴娴佹按",
     },
     {
-      icon: "/static/images/icon/kehuwanglai.svg",
-      label: "瀹㈡埛寰�鏉�",
-    },
-  ]);
-
-  // 閲囪喘绠$悊鍔熻兘鏁版嵁
-  const purchaseItems = reactive([
-    {
-      icon: "/static/images/icon/caigoutaizhang.svg",
-      label: "閲囪喘鍙拌处",
-    },
-    {
       icon: "/static/images/icon/laipiaodengji.svg",
       label: "鏉ョエ鐧昏",
     },
@@ -289,7 +354,7 @@
       label: "鏉ョエ鍙拌处",
     },
     {
-      icon: "/static/images/icon/fukuanjingji.svg",
+      icon: "/static/images/icon/fukuandengji.svg",
       label: "浠樻鐧昏",
     },
     {
@@ -297,127 +362,172 @@
       label: "浠樻娴佹按",
     },
     {
-      icon: "/static/images/icon/gongyingshangwanglai.svg",
-      label: "渚涘簲鍟嗗線鏉�",
+      icon: "/static/images/icon/huikuandengji.svg",
+      label: "鏀跺叆绠$悊",
+    },
+    {
+      icon: "/static/images/icon/fukuandengji.svg",
+      label: "鏀嚭绠$悊",
+    },
+    {
+      icon: "/static/images/icon/huikuanliushui.svg",
+      label: "鍊熸绠$悊",
     },
   ]);
-  const humanResourcesItems = reactive([
+
+  // 妗f绠$悊鍔熻兘鏁版嵁
+  const archiveManagementItems = reactive([
     {
-      icon: "/static/images/icon/caigoutaizhang.svg",
-      label: "鎵撳崱绛惧埌",
-    },
-    {
-      icon: "/static/images/icon/caigoutaizhang.svg",
-      label: "浜哄憳钖祫",
-    },
-    {
-      icon: "/static/images/icon/caigoutaizhang.svg",
-      label: "鍚堝悓绠$悊",
+      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 warehouseLogisticsItems = reactive([
+    {
+      icon: "/static/images/icon/xiaoshoutaizhang.svg",
+      label: "搴撳瓨绠$悊",
+    },
+  ]);
+
+  // 浜哄姏璧勬簮妯″潡锛堝凡娉ㄩ噴锛�
+  const humanResourcesItems = reactive([]);
+  // const humanResourcesItems = reactive([
+  //   {
+  //     icon: "/static/images/icon/dakaqiandao.svg",
+  //     label: "鎵撳崱绛惧埌",
+  //   },
+  //   {
+  //     icon: "/static/images/icon/renyuanxinzi.svg",
+  //     label: "浜哄憳钖祫",
+  //   },
+  //   {
+  //     icon: "/static/images/icon/hetongguanli.svg",
+  //     label: "鍚堝悓绠$悊",
+  //   },
+  // ]);
   const qualityItems = reactive([
     {
-      icon: "/static/images/icon/caigoutaizhang.svg",
+      icon: "/static/images/icon/yuancailiaojianyan.svg",
       label: "鍘熸潗鏂欐楠�",
     },
     {
-      icon: "/static/images/icon/caigoutaizhang.svg",
+      icon: "/static/images/icon/guochengjianyan.svg",
       label: "杩囩▼妫�楠�",
     },
     {
-      icon: "/static/images/icon/caigoutaizhang.svg",
+      icon: "/static/images/icon/chuchangjianyan.svg",
       label: "鍑哄巶妫�楠�",
     },
   ]);
   const safetyItems = reactive([
     {
-      icon: "/static/images/icon/caigoutaizhang.svg",
+      icon: "/static/images/icon/guichengzizhi.svg",
       label: "瑙勭▼涓庤祫璐�",
     },
     {
-      icon: "/static/images/icon/caigoutaizhang.svg",
+      icon: "/static/images/icon/weixianyuan.svg",
       label: "鍗遍櫓婧愬彴璐�",
     },
     {
-      icon: "/static/images/icon/caigoutaizhang.svg",
+      icon: "/static/images/icon/weixianzuoye.svg",
       label: "鍗遍櫓浣滀笟瀹℃壒",
     },
     {
-      icon: "/static/images/icon/guzhangfenxi@2x.svg",
+      icon: "/static/images/icon/yinhuanpaicha.svg",
       label: "闅愭偅鎺掓煡涓婃姤",
     },
     {
-      icon: "/static/images/icon/guzhangfenxi@2x.svg",
+      icon: "/static/images/icon/weixianwuliao.svg",
       label: "鍗遍櫓鐗╂枡绠℃帶",
     },
     {
-      icon: "/static/images/icon/guzhangfenxi@2x.svg",
+      icon: "/static/images/icon/yingjiyuan.svg",
       label: "搴旀�ラ妗堟煡闃�",
     },
     {
-      icon: "/static/images/icon/guzhangfenxi@2x.svg",
+      icon: "/static/images/icon/shigushangbao.svg",
       label: "浜嬫晠涓婃姤璁板綍",
     },
     {
-      icon: "/static/images/icon/guzhangfenxi@2x.svg",
+      icon: "/static/images/icon/anquanpeixun.svg",
       label: "瀹夊叏鍩硅鑰冩牳",
     },
   ]);
   // 鍗忓悓鍔炲叕鍔熻兘鏁版嵁
   const collaborationItems = reactive([
     {
-      icon: "/static/images/icon/baoxiaoguanli.svg",
+      icon: "/static/images/icon/xietongshenpi.svg",
       label: "鍗忓悓瀹℃壒",
     },
     {
-      icon: "/static/images/icon/huiyiliebiao@2x.svg",
+      icon: "/static/images/icon/huiyiguanli.svg",
       label: "浼氳绠$悊",
     },
     {
-      icon: "/static/images/icon/tongzhigonggao@2x.svg",
+      icon: "/static/images/icon/tongzhigonggao.svg",
       label: "閫氱煡鍏憡",
     },
     {
-      icon: "/static/images/icon/zhishiku@2x.svg",
+      icon: "/static/images/icon/zhishiku.svg",
       label: "鐭ヨ瘑搴�",
     },
     {
-      icon: "/static/images/icon/yongyinguanli@2x.svg",
+      icon: "/static/images/icon/yongyinguanli.svg",
       label: "鐢ㄥ嵃绠$悊",
     },
     {
-      icon: "/static/images/icon/guizhangzhidu@2x.svg",
+      icon: "/static/images/icon/guizhangzhidu.svg",
       label: "瑙勭珷鍒跺害",
     },
     {
-      icon: "/static/images/icon/kehubaifang@2x.svg",
+      icon: "/static/images/icon/kehubaifang.svg",
       label: "瀹㈡埛鎷滆",
     },
   ]);
 
-  // 鐢熶骇绠℃帶鍔熻兘鏁版嵁
-  const productionItems = reactive([
-    // {
-    //   icon: "/static/images/icon/shengchandingdan@2x.svg",
-    //   label: "鐢熶骇璁㈠崟",
-    // },
-    // {
-    //   icon: "/static/images/icon/shengchanpaigong@2x.svg",
-    //   label: "鐢熶骇娲惧伐",
-    // },
-    // {
-    //   icon: "/static/images/icon/shengchanpaichan@2x.svg",
-    //   label: "宸ュ簭鎺掍骇",
-    // },
-    {
-      icon: "/static/images/icon/shengchanbaogong@2x.svg",
-      label: "鐢熶骇鎶ュ伐",
-    },
-    // {
-    //   icon: "/static/images/icon/shengchanhesuan@2x.svg",
-    //   label: "鐢熶骇鏍哥畻",
-    // },
-  ]);
+  // 鐢熶骇绠℃帶妯″潡锛堝凡娉ㄩ噴锛�
+  const productionItems = reactive([]);
+  // // 鐢熶骇绠℃帶鍔熻兘鏁版嵁
+  // const productionItems = reactive([
+  //   {
+  //     icon: "/static/images/icon/shengchandingdan@2x.svg",
+  //     label: "鐢熶骇璁㈠崟",
+  //   },
+  //   {
+  //     icon: "/static/images/icon/shengchanpaigong@2x.svg",
+  //     label: "鐢熶骇娲惧伐",
+  //   },
+  //   {
+  //     icon: "/static/images/icon/shengchanpaichan@2x.svg",
+  //     label: "宸ュ簭鎺掍骇",
+  //   },
+  //   {
+  //     icon: "/static/images/icon/shengchanbaogong.svg",
+  //     label: "鐢熶骇鎶ュ伐",
+  //   },
+  //   {
+  //     icon: "/static/images/icon/shengchanbaogong.svg",
+  //     label: "鐢熶骇宸ュ崟",
+  //   },
+  //   {
+  //     icon: "/static/images/icon/shengchanhesuan@2x.svg",
+  //     label: "鐢熶骇鏍哥畻",
+  //   },
+  // ]);
 
   // 璁惧绠$悊鍔熻兘鏁版嵁
   const equipmentItems = reactive([
@@ -426,19 +536,19 @@
     // 	label: '璁惧鍙拌处',
     // },
     {
-      icon: "/static/images/icon/shbeibaoxiu@2x.svg",
+      icon: "/static/images/icon/yunxingguanli.svg",
       label: "杩愯绠$悊",
     },
     {
-      icon: "/static/images/icon/shbeibaoxiu@2x.svg",
+      icon: "/static/images/icon/shebeibaoxiu.svg",
       label: "璁惧鎶ヤ慨",
     },
     {
-      icon: "/static/images/icon/shbeibaoyang@2x.svg",
+      icon: "/static/images/icon/shebeibaoyang.svg",
       label: "璁惧淇濆吇",
     },
     {
-      icon: "/static/images/icon/xunjianshangchuan@2x.svg",
+      icon: "/static/images/icon/xunjianshangchuan.svg",
       label: "璁惧宸℃",
     },
   ]);
@@ -502,9 +612,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 "鍏嚭绠$悊":
@@ -625,6 +760,11 @@
       case "宸ュ簭鎺掍骇":
         uni.navigateTo({
           url: "/pages/productionManagement/processScheduling/index",
+        });
+        break;
+      case "鐢熶骇宸ュ崟":
+        uni.navigateTo({
+          url: "/pages/productionManagement/workOrder/index",
         });
         break;
       case "鐢熶骇鎶ュ伐":
@@ -748,6 +888,21 @@
       case "鍑哄巶妫�楠�":
         uni.navigateTo({
           url: "/pages/qualityManagement/finalInspection/index",
+        });
+        break;
+      case "搴撳瓨绠$悊":
+        uni.navigateTo({
+          url: "/pages/inventoryManagement/stockManagement/index",
+        });
+        break;
+      case "鍙嶉鐧昏":
+        uni.navigateTo({
+          url: "/pages/customerService/feedbackRegistration/index",
+        });
+        break;
+      case "鍞悗澶勭悊":
+        uni.navigateTo({
+          url: "/pages/customerService/afterSalesHandling/index",
         });
         break;
       default:
@@ -921,14 +1076,13 @@
 
     // 鏀堕泦鎵�鏈夋湁鏉冮檺鐨勮彍鍗曟爣棰橈紙鏍规嵁 meta.title锛�
     const allowedMenuTitles = new Set();
+    const alwaysShowTitles = new Set(["閲囪喘閫�璐у崟", "渚涘簲鍟嗙鐞�"]);
     const collectMenuTitles = routes => {
       if (!Array.isArray(routes)) return;
       routes.forEach(route => {
-        // 鏀堕泦褰撳墠璺敱鐨勬爣棰�
         if (route.meta && route.meta.title) {
           allowedMenuTitles.add(route.meta.title);
         }
-        // 閫掑綊澶勭悊瀛愯矾鐢�
         if (route.children && route.children.length > 0) {
           collectMenuTitles(route.children);
         }
@@ -936,140 +1090,50 @@
     };
     collectMenuTitles(routers);
 
-    // 杩囨护钀ラ攢绠$悊鑿滃崟
-    const originalMarketing = [
-      { icon: "/static/images/icon/xiaoshoutaizhang.svg", label: "閿�鍞彴璐�" },
-      { icon: "/static/images/icon/kaipiaodengji.svg", label: "寮�绁ㄧ櫥璁�" },
-      { icon: "/static/images/icon/kaipiaotaizhang.svg", label: "寮�绁ㄥ彴璐�" },
-      { icon: "/static/images/icon/huikuandengji.svg", label: "鍥炴鐧昏" },
-      { icon: "/static/images/icon/huikuanliushui.svg", label: "鍥炴娴佹按" },
-      { icon: "/static/images/icon/kehuwanglai.svg", label: "瀹㈡埛寰�鏉�" },
-    ];
-    const filteredMarketing = originalMarketing.filter(item => {
-      return allowedMenuTitles.has(item.label);
-    });
-    marketingItems.splice(0, marketingItems.length, ...filteredMarketing);
+    // 瀹氫箟鑿滃崟閰嶇疆鏄犲皠
+    const menuMapping = {
+      collaboration: { target: collaborationItems, specialMapping: { "瑙勭珷鍒跺害": "瑙勭珷鍒跺害绠$悊" } },
+      archiveManagement: { target: archiveManagementItems, specialMapping: { "渚涘簲鍟嗘。妗�": "渚涘簲鍟嗙鐞�" } },
+    };
+    console.log(allowedMenuTitles)
+    // 閫氱敤杩囨护鍑芥暟
+    const filterArray = (targetArray, specialMapping) => {
+      const filtered = targetArray.filter(item => {
+        let matched = allowedMenuTitles.has(item.label);
+        if (specialMapping && !matched && specialMapping[item.label]) {
+          matched = allowedMenuTitles.has(specialMapping[item.label]);
+        }
+        return matched;
+      });
+      targetArray.splice(0, targetArray.length, ...filtered);
+    };
 
-    // 杩囨护鍗忓悓鍔炲叕鑿滃崟
-    const originalCollaboration = [
-      { icon: "/static/images/icon/baoxiaoguanli.svg", label: "鍗忓悓瀹℃壒" },
-      { icon: "/static/images/icon/huiyiliebiao@2x.svg", label: "浼氳绠$悊" },
-      { icon: "/static/images/icon/tongzhigonggao@2x.svg", label: "閫氱煡鍏憡" },
-      { icon: "/static/images/icon/zhishiku@2x.svg", label: "鐭ヨ瘑搴�" },
-      { icon: "/static/images/icon/yongyinguanli@2x.svg", label: "鐢ㄥ嵃绠$悊" },
-      { icon: "/static/images/icon/guizhangzhidu@2x.svg", label: "瑙勭珷鍒跺害" },
-      { icon: "/static/images/icon/kehubaifang@2x.svg", label: "瀹㈡埛鎷滆" },
-    ];
-    const filteredCollaboration = originalCollaboration.filter(item => {
-      // 澶勭悊鏍囬涓嶅畬鍏ㄥ尮閰嶇殑鎯呭喌
-      let matched = allowedMenuTitles.has(item.label);
-      // 鐗规畩澶勭悊锛氳绔犲埗搴� -> 瑙勭珷鍒跺害绠$悊
-      if (!matched && item.label === "瑙勭珷鍒跺害") {
-        matched = allowedMenuTitles.has("瑙勭珷鍒跺害绠$悊");
-      }
-      return matched;
-    });
-    collaborationItems.splice(
-      0,
-      collaborationItems.length,
-      ...filteredCollaboration
-    );
-
-    // 杩囨护閲囪喘绠$悊鑿滃崟
-    const originalPurchase = [
-      { icon: "/static/images/icon/caigoutaizhang.svg", label: "閲囪喘鍙拌处" },
-      { icon: "/static/images/icon/laipiaodengji.svg", label: "鏉ョエ鐧昏" },
-      { icon: "/static/images/icon/laipiaotaizhang.svg", label: "鏉ョエ鍙拌处" },
-      { icon: "/static/images/icon/fukuanjingji.svg", label: "浠樻鐧昏" },
-      { icon: "/static/images/icon/fukuanliushui.svg", label: "浠樻娴佹按" },
-      {
-        icon: "/static/images/icon/gongyingshangwanglai@2x.svg",
-        label: "渚涘簲鍟嗗線鏉�",
-      },
-    ];
-    const filteredPurchase = originalPurchase.filter(item => {
-      return allowedMenuTitles.has(item.label);
-    });
-    purchaseItems.splice(0, purchaseItems.length, ...filteredPurchase);
-
-    // 杩囨护瀹夊叏鐢熶骇鑿滃崟
-    const originalSafety = [
-      { icon: "/static/images/icon/caigoutaizhang.svg", label: "瑙勭▼涓庤祫璐�" },
-      { icon: "/static/images/icon/caigoutaizhang.svg", label: "鍗遍櫓婧愬彴璐�" },
-      {
-        icon: "/static/images/icon/caigoutaizhang.svg",
-        label: "鍗遍櫓浣滀笟瀹℃壒",
-      },
-      { icon: "/static/images/icon/guzhangfenxi@2x.svg", label: "闅愭偅鎺掓煡涓婃姤" },
-      { icon: "/static/images/icon/guzhangfenxi@2x.svg", label: "鍗遍櫓鐗╂枡绠℃帶" },
-      { icon: "/static/images/icon/guzhangfenxi@2x.svg", label: "搴旀�ラ妗堟煡闃�" },
-      { icon: "/static/images/icon/guzhangfenxi@2x.svg", label: "浜嬫晠涓婃姤璁板綍" },
-      { icon: "/static/images/icon/guzhangfenxi@2x.svg", label: "瀹夊叏鍩硅鑰冩牳" },
-    ];
-    const filteredSafety = originalSafety.filter(item => {
-      return allowedMenuTitles.has(item.label);
-    });
-    safetyItems.splice(0, safetyItems.length, ...filteredSafety);
-
-    // 杩囨护浜哄姏璧勬簮鑿滃崟
-    const originalHumanResources = [
-      { icon: "/static/images/icon/caigoutaizhang.svg", label: "鎵撳崱绛惧埌" },
-      { icon: "/static/images/icon/caigoutaizhang.svg", label: "浜哄憳钖祫" },
-      { icon: "/static/images/icon/caigoutaizhang.svg", label: "鍚堝悓绠$悊" },
-    ];
-    const filteredHumanResources = originalHumanResources.filter(item => {
-      return allowedMenuTitles.has(item.label);
-    });
-    humanResourcesItems.splice(
-      0,
-      humanResourcesItems.length,
-      ...filteredHumanResources
-    );
-
-    // 杩囨护璐ㄩ噺绠$悊鑿滃崟
-    const originalQuality = [
-      { icon: "/static/images/icon/caigoutaizhang.svg", label: "鍘熸潗鏂欐楠�" },
-      { icon: "/static/images/icon/caigoutaizhang.svg", label: "杩囩▼妫�楠�" },
-      { icon: "/static/images/icon/caigoutaizhang.svg", label: "鍑哄巶妫�楠�" },
-    ];
-    const filteredQuality = originalQuality.filter(item => {
-      return allowedMenuTitles.has(item.label);
-    });
-    qualityItems.splice(0, qualityItems.length, ...filteredQuality);
-
-    // 杩囨护鐢熶骇绠℃帶鑿滃崟
-    const originalProduction = [
-      {
-        icon: "/static/images/icon/shengchanbaogong@2x.svg",
-        label: "鐢熶骇鎶ュ伐",
-      },
-    ];
-    const filteredProduction = originalProduction.filter(item => {
-      return allowedMenuTitles.has(item.label);
-    });
-    productionItems.splice(0, productionItems.length, ...filteredProduction);
-
-    // 杩囨护璁惧绠$悊鑿滃崟
-    const originalEquipment = [
-      { icon: "/static/images/icon/shbeibaoxiu@2x.svg", label: "杩愯绠$悊" },
-      { icon: "/static/images/icon/shbeibaoxiu@2x.svg", label: "璁惧鎶ヤ慨" },
-      { icon: "/static/images/icon/shbeibaoyang@2x.svg", label: "璁惧淇濆吇" },
-      { icon: "/static/images/icon/xunjianshangchuan@2x.svg", label: "璁惧宸℃" },
-    ];
-    const filteredEquipment = originalEquipment.filter(item => {
-      return allowedMenuTitles.has(item.label);
-    });
-    equipmentItems.splice(0, equipmentItems.length, ...filteredEquipment);
+    // 杩囨护鍚勪釜妯″潡
+    filterArray(marketingItems);
+    filterArray(purchaseItems);
+    filterArray(financeManagementItems);
+    filterArray(archiveManagementItems, menuMapping.archiveManagement.specialMapping);
+    filterArray(collaborationItems, menuMapping.collaboration.specialMapping);
+    filterArray(safetyItems);
+    filterArray(humanResourcesItems);
+    filterArray(warehouseLogisticsItems);
+    filterArray(qualityItems);
+    filterArray(productionItems);
+    filterArray(equipmentItems);
   };
 
   // 妫�鏌ユā鍧楁槸鍚︽湁鑿滃崟椤归渶瑕佹樉绀�
   const hasMarketingItems = computed(() => marketingItems.length > 0);
   const hasPurchaseItems = computed(() => purchaseItems.length > 0);
+  const hasFinanceManagementItems = computed(() => financeManagementItems.length > 0);
+  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);
-  const hasHumanResourcesItems = computed(() => humanResourcesItems.length > 0);
-  const hasProductionItems = computed(() => productionItems.length > 0);
+  // const hasHumanResourcesItems = computed(() => humanResourcesItems.length > 0);
+  const hasWarehouseLogisticsItems = computed(() => warehouseLogisticsItems.length > 0);
+  // const hasProductionItems = computed(() => productionItems.length > 0);
   const hasEquipmentItems = computed(() => equipmentItems.length > 0);
 
   onMounted(() => {
@@ -1754,4 +1818,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