From 09f98ab6b6ac0779f12bd003443e1e6065cad256 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期二, 12 五月 2026 14:33:31 +0800
Subject: [PATCH] fix: 支持按照工单进行输入报工信息报工。也可以扫码报工

---
 src/pages/index.vue |   24 +-----------------------
 1 files changed, 1 insertions(+), 23 deletions(-)

diff --git a/src/pages/index.vue b/src/pages/index.vue
index b7d3fa9..bf79acd 100644
--- a/src/pages/index.vue
+++ b/src/pages/index.vue
@@ -206,7 +206,7 @@
   {
     label: "鐢熶骇鎶ュ伐",
     icon: "/static/images/icon/shengchanbaogong.svg",
-    action: "scan",
+    route: "/pages/productionManagement/productionReport/workOrderList",
   },
   {
     label: "璁惧宸℃",
@@ -242,28 +242,6 @@
 }
 
 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?.route) return;
   uni.navigateTo({ url: item.route });
 }

--
Gitblit v1.9.3