From 4b735e74a42c22f8948d3d56058145a88c3b6283 Mon Sep 17 00:00:00 2001
From: 张诺 <zhang_12370@163.com>
Date: 星期五, 17 四月 2026 09:09:01 +0800
Subject: [PATCH] 隐藏售后服务模块
---
src/pages/works.vue | 116 +++++++++++++++++++++++++++++++++++++++++++++++++++------
1 files changed, 103 insertions(+), 13 deletions(-)
diff --git a/src/pages/works.vue b/src/pages/works.vue
index 41aad95..c16d1e3 100644
--- a/src/pages/works.vue
+++ b/src/pages/works.vue
@@ -66,6 +66,28 @@
</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">
@@ -155,7 +177,7 @@
</view>
</view>
<!-- 鍞悗鏈嶅姟妯″潡 -->
- <view class="common-module after-sales-module"
+ <!-- <view class="common-module after-sales-module"
v-if="hasAfterSalesServiceItems">
<view class="module-header">
<view class="module-title-container">
@@ -175,7 +197,7 @@
</up-grid-item>
</up-grid>
</view>
- </view>
+ </view> -->
<!-- 璐ㄩ噺绠$悊妯″潡 -->
<view class="common-module collaboration-module"
v-if="hasQualityItems">
@@ -301,10 +323,6 @@
icon: "/static/images/icon/caigouguanli.svg",
label: "閲囪喘閫�璐�",
},
- {
- icon: "/static/images/icon/gongchuguanli.svg",
- label: "渚涘簲鍟嗘。妗�",
- },
]);
// 璐㈠姟绠$悊鍔熻兘鏁版嵁
@@ -341,14 +359,46 @@
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 warehouseLogisticsItems = reactive([
+ {
+ icon: "/static/images/icon/xiaoshoutaizhang.svg",
+ label: "搴撳瓨绠$悊",
+ },
]);
const humanResourcesItems = reactive([
@@ -463,6 +513,10 @@
icon: "/static/images/icon/shengchanbaogong.svg",
label: "鐢熶骇鎶ュ伐",
},
+ {
+ icon: "/static/images/icon/shengchanbaogong.svg",
+ label: "鐢熶骇宸ュ崟",
+ },
// {
// icon: "/static/images/icon/shengchanhesuan@2x.svg",
// label: "鐢熶骇鏍哥畻",
@@ -552,6 +606,21 @@
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",
@@ -604,7 +673,7 @@
break;
case "鐭ヨ瘑搴�":
uni.navigateTo({
- url: "/pages/managementMeetings/knowledgeBase/index",
+ url: "/pages/cooperativeOffice/collaborativeApproval/knowledgeBase/index",
});
break;
case "鐢ㄥ嵃绠$悊":
@@ -685,6 +754,11 @@
case "宸ュ簭鎺掍骇":
uni.navigateTo({
url: "/pages/productionManagement/processScheduling/index",
+ });
+ break;
+ case "鐢熶骇宸ュ崟":
+ uni.navigateTo({
+ url: "/pages/productionManagement/workOrder/index",
});
break;
case "鐢熶骇鎶ュ伐":
@@ -810,6 +884,21 @@
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:
uni.showToast({
title: `鐐瑰嚮浜�${item.label}`,
@@ -869,13 +958,12 @@
orderRow = JSON.stringify({
id: workData.id || workOrderId,
planQuantity: workData.planQuantity - workData.completeQuantity,
+ deviceName:workData.deviceName,
productProcessRouteItemId:
workData.productProcessRouteItemId ||
workData.浜у搧宸ヨ壓璺嚎椤笽D ||
"",
});
-
- console.log("鏋勯�犵殑orderRow:", orderRow);
} else {
modal.msgError("鏈壘鍒板搴旂殑宸ュ崟淇℃伅");
return;
@@ -998,6 +1086,7 @@
// 瀹氫箟鑿滃崟閰嶇疆鏄犲皠
const menuMapping = {
collaboration: { target: collaborationItems, specialMapping: { "瑙勭珷鍒跺害": "瑙勭珷鍒跺害绠$悊" } },
+ archiveManagement: { target: archiveManagementItems, specialMapping: { "渚涘簲鍟嗘。妗�": "渚涘簲鍟嗙鐞�" } },
};
console.log(allowedMenuTitles)
// 閫氱敤杩囨护鍑芥暟
@@ -1016,11 +1105,11 @@
filterArray(marketingItems);
filterArray(purchaseItems);
filterArray(financeManagementItems);
- filterArray(archiveManagementItems);
- filterArray(afterSalesServiceItems);
+ filterArray(archiveManagementItems, menuMapping.archiveManagement.specialMapping);
filterArray(collaborationItems, menuMapping.collaboration.specialMapping);
filterArray(safetyItems);
filterArray(humanResourcesItems);
+ filterArray(warehouseLogisticsItems);
filterArray(qualityItems);
filterArray(productionItems);
filterArray(equipmentItems);
@@ -1030,12 +1119,13 @@
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);
const hasHumanResourcesItems = computed(() => humanResourcesItems.length > 0);
+ const hasWarehouseLogisticsItems = computed(() => warehouseLogisticsItems.length > 0);
const hasProductionItems = computed(() => productionItems.length > 0);
const hasEquipmentItems = computed(() => equipmentItems.length > 0);
--
Gitblit v1.9.3