From 95b85a1942d41541025ec781f16b229108f75e65 Mon Sep 17 00:00:00 2001
From: 曹睿 <360930172@qq.com>
Date: 星期三, 02 七月 2025 09:38:00 +0800
Subject: [PATCH] feat: PDA添加增量更新

---
 src/pages/production/twist/receive/monofil.vue |   12 ++++--------
 1 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/src/pages/production/twist/receive/monofil.vue b/src/pages/production/twist/receive/monofil.vue
index d6bd8ce..9f3fb11 100644
--- a/src/pages/production/twist/receive/monofil.vue
+++ b/src/pages/production/twist/receive/monofil.vue
@@ -23,7 +23,7 @@
         </view>
       </template>
     </z-paging>
-    <Scan ref="scanRef" />
+    <Scan ref="scanRef" emitName="scanMono" />
     <wd-toast />
   </view>
 </template>
@@ -32,7 +32,7 @@
 import CardTitle from "@/components/card-title/index.vue";
 import MonofilCard from "../components/MonofilCard.vue";
 import { useToast } from "wot-design-uni";
-import { onLoad, onUnload, onShow, onHide } from "@dcloudio/uni-app";
+import { onLoad, onUnload } from "@dcloudio/uni-app";
 import Scan from "@/components/scan/index.vue";
 import ManageApi from "@/api/product/manage";
 import TwistApi from "@/api/product/twist";
@@ -103,17 +103,13 @@
 
 onLoad((options: any) => {
   // 寮�鍚箍鎾洃鍚簨浠�
-  uni.$on("scan", getScanCode);
+  uni.$on("scanMono", getScanCode);
   paramsId.value = options.id;
 });
 onUnload(() => {
   // 寮�鍚箍鎾洃鍚簨浠�
-  uni.$off("scan", getScanCode);
+  uni.$off("scanMono", getScanCode);
 });
-
-onShow(() => {});
-
-onHide(() => {});
 </script>
 
 <style lang="scss" scoped>

--
Gitblit v1.9.3