From c4d25912d11ab9059f8165c25a161634bb9b5e97 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期二, 16 六月 2026 09:45:33 +0800
Subject: [PATCH] proapp 1.工作台分类修改

---
 src/pages/works.vue |  142 +++++++++++++++++++++++++++++++----------------
 1 files changed, 93 insertions(+), 49 deletions(-)

diff --git a/src/pages/works.vue b/src/pages/works.vue
index 41d6798..9e89ddf 100644
--- a/src/pages/works.vue
+++ b/src/pages/works.vue
@@ -208,27 +208,28 @@
       </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">-->
-<!--              <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">
+              <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="hasQualityItems">
@@ -276,28 +277,28 @@
       </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">-->
-<!--              <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">
+              <image :src="item.icon"
+                     class="item-icon"></image>
+            </view>
+            <text class="item-label">{{item.label}}</text>
+          </up-grid-item>
+        </up-grid>
+      </view>
+    </view>
     <DownloadProgressMask />
   </view>
 </template>
@@ -307,7 +308,6 @@
   import { userLoginFacotryList } from "@/api/login";
   import { getProductWorkOrderById } from "@/api/productionManagement/productionReporting";
   import DownloadProgressMask from "@/components/DownloadProgressMask.vue";
-  import { OA_WORKBENCH_ITEMS } from "@/config/oaWorkbench.js";
   import modal from "@/plugins/modal";
   import useUserStore from "@/store/modules/user";
 
@@ -486,6 +486,21 @@
       icon: "/static/images/icon/hetongguanli.svg",
       label: "鍚堝悓绠$悊",
     },
+    {
+      icon: "/static/images/icon/hetongguanli.svg",
+      label: "杞鐢宠",
+      path: "/pages/oa/HrManage/regular-apply/index",
+    },
+    {
+      icon: "/static/images/icon/renyuanxinzi.svg",
+      label: "璋冨姩鐢宠",
+      path: "/pages/oa/HrManage/transfer-apply/index",
+    },
+    {
+      icon: "/static/images/icon/gongchuguanli.svg",
+      label: "宸ヤ綔浜ゆ帴",
+      path: "/pages/oa/HrManage/work-handover/index",
+    },
   ]);
   const qualityItems = reactive([
     {
@@ -537,10 +552,20 @@
   ]);
   // 鍗忓悓鍔炲叕鍔熻兘鏁版嵁
   const collaborationItems = reactive([
-    {
-      icon: "/static/images/icon/xietongshenpi.svg",
-      label: "鍗忓悓瀹℃壒",
-    },
+    // {
+    //   icon: "/static/images/icon/xietongshenpi.svg",
+    //   label: "鍗忓悓瀹℃壒",
+    // },
+		{
+			icon: "/static/images/icon/guizhangzhidu.svg",
+			label: "瀹℃壒绠$悊",
+			path: "/pages/oa/ApproveManage/approve-template/index",
+		},
+		{
+			icon: "/static/images/icon/xietongshenpi.svg",
+			label: "鍗忓悓瀹℃壒",
+			path: "/pages/oa/ApproveManage/approve-list/index",
+		},
     {
       icon: "/static/images/icon/huiyiguanli.svg",
       label: "浼氳绠$悊",
@@ -564,6 +589,26 @@
     {
       icon: "/static/images/icon/kehubaifang.svg",
       label: "瀹㈡埛鎷滆",
+    },
+    {
+      icon: "/static/images/icon/qingjiaguanli.svg",
+      label: "璇峰亣鐢宠",
+      path: "/pages/oa/AttendManage/leave-apply/index",
+    },
+    {
+      icon: "/static/images/icon/dakaqiandao.svg",
+      label: "鍔犵彮鐢宠",
+      path: "/pages/oa/AttendManage/overtime-apply/index",
+    },
+    {
+      icon: "/static/images/icon/chuchaiguanli.svg",
+      label: "宸梾鎶ラ攢",
+      path: "/pages/oa/ReimburseManage/travel-reimburse/index",
+    },
+    {
+      icon: "/static/images/icon/baoxiaoguanli.svg",
+      label: "璐圭敤鎶ラ攢",
+      path: "/pages/oa/ReimburseManage/cost-reimburse/index",
     },
   ]);
 
@@ -1274,7 +1319,6 @@
   const hasAfterSalesServiceItems = computed(
     () => afterSalesServiceItems.length > 0
   );
-  const hasOaItems = computed(() => oaItems.length > 0);
   const hasCollaborationItems = computed(() => collaborationItems.length > 0);
   const hasSafetyItems = computed(() => safetyItems.length > 0);
   const hasQualityItems = computed(() => qualityItems.length > 0);

--
Gitblit v1.9.3