From 5e0d63ccef8c8fc5763cf663aee0c1778113a818 Mon Sep 17 00:00:00 2001
From: yyb <995253665@qq.com>
Date: 星期五, 03 四月 2026 13:24:38 +0800
Subject: [PATCH] 首页快捷入口替换
---
src/pages/index.vue | 90 +++++++++++++++++++++++++++-----------------
1 files changed, 55 insertions(+), 35 deletions(-)
diff --git a/src/pages/index.vue b/src/pages/index.vue
index 510527d..4560bf4 100644
--- a/src/pages/index.vue
+++ b/src/pages/index.vue
@@ -209,25 +209,45 @@
const imgNum3 = "/static/images/index/num3.png";
const quickTools = [
- {
- label: "鐢熶骇鎶ュ伐",
- icon: "/static/images/icon/shengchanbaogong.svg",
- action: "scan",
+ // {
+ // label: "鐢熶骇鎶ュ伐",
+ // icon: "/static/images/icon/shengchanbaogong.svg",
+ // action: "scan",
+ // },
+ // {
+ // label: "璁惧宸℃",
+ // icon: "/static/images/icon/xunjianshangchuan.svg",
+ // route: "/pages/inspectionUpload/index",
+ // },
+ // {
+ // label: "璁惧淇濆吇",
+ // icon: "/static/images/icon/shebeibaoyang.svg",
+ // route: "/pages/equipmentManagement/upkeep/index",
+ // },
+ // {
+ // label: "璁惧鎶ヤ慨",
+ // icon: "/static/images/icon/shebeibaoxiu.svg",
+ // route: "/pages/equipmentManagement/repair/index",
+ // },
+ {
+ label: "閿�鍞彴璐�",
+ icon: "/static/images/icon/xiaoshoutaizhang.svg",
+ route: "/pages/sales/salesAccount/index",
},
{
- label: "璁惧宸℃",
- icon: "/static/images/icon/xunjianshangchuan.svg",
- route: "/pages/inspectionUpload/index",
+ label: "閲囪喘鍙拌处",
+ icon: "/static/images/icon/caigoutaizhang.svg",
+ route: "/pages/procurementManagement/procurementLedger/index",
},
{
- label: "璁惧淇濆吇",
- icon: "/static/images/icon/shebeibaoyang.svg",
- route: "/pages/equipmentManagement/upkeep/index",
+ label: "瀹㈡埛寰�鏉�",
+ icon: "/static/images/icon/kehuwanglai.svg",
+ route: "/pages/sales/receiptPaymentLedger/index",
},
{
- label: "璁惧鎶ヤ慨",
- icon: "/static/images/icon/shebeibaoxiu.svg",
- route: "/pages/equipmentManagement/repair/index",
+ label: "搴撳瓨绠$悊",
+ icon: "/static/images/icon/xiaoshoutaizhang.svg",
+ route: "/pages/inventoryManagement/stockManagement/index",
},
];
@@ -246,28 +266,28 @@
}
function handleQuickTool(item) {
- if (item?.action === "scan") {
- // 鐢熶骇鎶ュ伐 - 璋冪敤鎵爜
- uni.scanCode({
- success: (res) => {
- console.log("鎵爜缁撴灉:", res);
- // 瑙f瀽鎵爜缁撴灉骞惰烦杞埌鐢熶骇鎶ュ伐椤甸潰
- try {
- const scanResult = JSON.parse(res.result);
- uni.navigateTo({
- url: `/pages/productionManagement/productionReport/index?orderRow=${encodeURIComponent(JSON.stringify(scanResult))}`
- });
- } catch (e) {
- console.error("鎵爜缁撴灉瑙f瀽澶辫触:", e);
- uni.showToast({ title: "鏃犳晥鐨勪簩缁寸爜", icon: "none" });
- }
- },
- fail: (err) => {
- console.error("鎵爜澶辫触:", err);
- }
- });
- return;
- }
+ // if (item?.action === "scan") {
+ // // 鐢熶骇鎶ュ伐 - 璋冪敤鎵爜
+ // uni.scanCode({
+ // success: (res) => {
+ // console.log("鎵爜缁撴灉:", res);
+ // // 瑙f瀽鎵爜缁撴灉骞惰烦杞埌鐢熶骇鎶ュ伐椤甸潰
+ // try {
+ // const scanResult = JSON.parse(res.result);
+ // uni.navigateTo({
+ // url: `/pages/productionManagement/productionReport/index?orderRow=${encodeURIComponent(JSON.stringify(scanResult))}`
+ // });
+ // } catch (e) {
+ // console.error("鎵爜缁撴灉瑙f瀽澶辫触:", e);
+ // uni.showToast({ title: "鏃犳晥鐨勪簩缁寸爜", icon: "none" });
+ // }
+ // },
+ // fail: (err) => {
+ // console.error("鎵爜澶辫触:", err);
+ // }
+ // });
+ // return;
+ // }
if (!item?.route) return;
uni.navigateTo({ url: item.route });
}
--
Gitblit v1.9.3