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 | 128 ++++++++++++++++++++++++++++++------------
1 files changed, 90 insertions(+), 38 deletions(-)
diff --git a/src/pages/works.vue b/src/pages/works.vue
index 76ffe24..2da7647 100644
--- a/src/pages/works.vue
+++ b/src/pages/works.vue
@@ -66,7 +66,29 @@
</up-grid>
</view>
</view>
- <!-- 浜哄姏璧勬簮妯″潡 -->
+ <!-- 浠撳偍鐗╂祦妯″潡 -->
+ <view class="common-module warehouse-logistics-module"
+ v-if="hasWarehouseLogisticsItems">
+ <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 warehouseLogisticsItems"
+ :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="hasHumanResourcesItems">
<view class="module-header">
@@ -88,7 +110,8 @@
</up-grid>
</view>
</view>
- <!-- 鐢熶骇绠℃帶妯″潡 -->
+ -->
+ <!-- 鐢熶骇绠℃帶妯″潡锛堝凡娉ㄩ噴锛�
<view class="common-module equipment-module"
v-if="hasProductionItems">
<view class="module-header">
@@ -110,6 +133,7 @@
</up-grid>
</view>
</view>
+ -->
<!-- 璐㈠姟绠$悊妯″潡 -->
<view class="common-module finance-module"
v-if="hasFinanceManagementItems">
@@ -371,20 +395,30 @@
},
]);
- const humanResourcesItems = reactive([
+ // 浠撳偍鐗╂祦鍔熻兘鏁版嵁
+ const warehouseLogisticsItems = reactive([
{
- icon: "/static/images/icon/dakaqiandao.svg",
- label: "鎵撳崱绛惧埌",
- },
- {
- icon: "/static/images/icon/renyuanxinzi.svg",
- label: "浜哄憳钖祫",
- },
- {
- icon: "/static/images/icon/hetongguanli.svg",
- label: "鍚堝悓绠$悊",
+ 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/yuancailiaojianyan.svg",
@@ -465,29 +499,35 @@
},
]);
- // 鐢熶骇绠℃帶鍔熻兘鏁版嵁
- 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/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([
@@ -722,6 +762,11 @@
url: "/pages/productionManagement/processScheduling/index",
});
break;
+ case "鐢熶骇宸ュ崟":
+ uni.navigateTo({
+ url: "/pages/productionManagement/workOrder/index",
+ });
+ break;
case "鐢熶骇鎶ュ伐":
getcode();
break;
@@ -843,6 +888,11 @@
case "鍑哄巶妫�楠�":
uni.navigateTo({
url: "/pages/qualityManagement/finalInspection/index",
+ });
+ break;
+ case "搴撳瓨绠$悊":
+ uni.navigateTo({
+ url: "/pages/inventoryManagement/stockManagement/index",
});
break;
case "鍙嶉鐧昏":
@@ -1066,6 +1116,7 @@
filterArray(collaborationItems, menuMapping.collaboration.specialMapping);
filterArray(safetyItems);
filterArray(humanResourcesItems);
+ filterArray(warehouseLogisticsItems);
filterArray(qualityItems);
filterArray(productionItems);
filterArray(equipmentItems);
@@ -1080,8 +1131,9 @@
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(() => {
--
Gitblit v1.9.3