From b25e11bb1e76255b4c05e10022e1ca9be5c7cc99 Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期四, 19 三月 2026 16:53:56 +0800
Subject: [PATCH] 库存报表加日期选择
---
src/pages/indexItem.vue | 69 ++++++++++++++++++++++------------
1 files changed, 45 insertions(+), 24 deletions(-)
diff --git a/src/pages/indexItem.vue b/src/pages/indexItem.vue
index 8a3a731..a277fda 100644
--- a/src/pages/indexItem.vue
+++ b/src/pages/indexItem.vue
@@ -54,18 +54,18 @@
icon: "/static/images/icon/baoxiaoguanli.png",
label: "鎶ラ攢绠$悊",
},
- {
- icon: "/static/images/icon/caigouguanli.png",
- label: "閲囪喘瀹℃壒",
- },
- {
- icon: "/static/images/icon/baojiaguanli.png",
- label: "鎶ヤ环瀹℃壒",
- },
- {
- icon: "/static/images/icon/chukuguanli@2x.png",
- label: "鍙戣揣瀹℃壒",
- },
+ // {
+ // icon: "/static/images/icon/caigouguanli.png",
+ // label: "閲囪喘瀹℃壒",
+ // },
+ // {
+ // icon: "/static/images/icon/baojiaguanli.png",
+ // label: "鎶ヤ环瀹℃壒",
+ // },
+ // {
+ // icon: "/static/images/icon/chukuguanli@2x.png",
+ // label: "鍙戣揣瀹℃壒",
+ // },
]);
// 鑰冨嫟璐㈠姟鍚堝苟鑿滃崟锛堣�冨嫟3涓� + 璐㈠姟4涓� = 7涓級
const kaoqinCaiwu = reactive([
@@ -86,17 +86,21 @@
label: "鎶ラ攢绠$悊",
},
{
- icon: "/static/images/icon/caigouguanli.png",
- label: "閲囪喘瀹℃壒",
+ icon: "/static/images/icon/yuanliaoguanli@2x.png",
+ label: "鍘熸枡绠$悊",
},
- {
- icon: "/static/images/icon/baojiaguanli.png",
- label: "鎶ヤ环瀹℃壒",
- },
- {
- icon: "/static/images/icon/chukuguanli@2x.png",
- label: "鍙戣揣瀹℃壒",
- },
+ // {
+ // icon: "/static/images/icon/caigouguanli.png",
+ // label: "閲囪喘瀹℃壒",
+ // },
+ // {
+ // icon: "/static/images/icon/baojiaguanli.png",
+ // label: "鎶ヤ环瀹℃壒",
+ // },
+ // {
+ // icon: "/static/images/icon/chukuguanli@2x.png",
+ // label: "鍙戣揣瀹℃壒",
+ // },
]);
const huiyi = reactive([
@@ -229,6 +233,11 @@
url: "/pages/cooperativeOffice/collaborativeApproval/index7",
});
break;
+ case "鍘熸枡绠$悊":
+ uni.navigateTo({
+ url: "/pages/cooperativeOffice/collaborativeApproval/index9",
+ });
+ break;
case "浼氳璁剧疆":
uni.navigateTo({
url: "/pages/managementMeetings/meetingSettings/index",
@@ -325,12 +334,17 @@
url: "/pages/equipmentManagement/repair/index",
});
break;
+ case "璁惧淇濆吇浠诲姟":
+ uni.navigateTo({
+ url: "/pages/equipmentManagement/upkeepTask/index",
+ });
+ break;
case "璁惧淇濆吇":
uni.navigateTo({
url: "/pages/equipmentManagement/upkeep/index",
});
break;
- case "宸℃涓婁紶":
+ case "宸℃绠$悊":
uni.navigateTo({
url: "/pages/inspectionUpload/index",
});
@@ -374,7 +388,14 @@
const operationType = ref("");
onLoad(options => {
if (options.label) {
- operationType.value = options.label;
+ // 澶勭悊 URL 鍙傛暟鍙兘鍖呭惈鍏朵粬鏌ヨ鍙傛暟鐨勬儏鍐碉紙濡傦細鍗忓悓瀹℃壒?approveType=6锛�
+ // 鍙彁鍙� label 鍙傛暟鐨勫�硷紝鍘婚櫎鍙兘闄勫姞鐨勬煡璇㈠弬鏁�
+ let labelValue = options.label;
+ // 濡傛灉 label 鍖呭惈 ? 绗﹀彿锛屽彧鍙� ? 涔嬪墠鐨勯儴鍒�
+ if (labelValue.includes("?")) {
+ labelValue = labelValue.split("?")[0];
+ }
+ operationType.value = labelValue;
if (operationType.value === "鑰冨嫟绠$悊") {
commonItems.value = kaoqin;
} else if (operationType.value === "浼氳绠$悊") {
--
Gitblit v1.9.3