From 34885c4cc9a556fcacaf3d2c4a0144f305139cbd Mon Sep 17 00:00:00 2001
From: chenhj <1263187585@qq.com>
Date: 星期二, 29 七月 2025 10:01:50 +0800
Subject: [PATCH] 修改扫码问题

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

diff --git a/src/pages/production/twist/receive/monofil.vue b/src/pages/production/twist/receive/monofil.vue
index ab8eb9f..cc0cbf8 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>
@@ -95,6 +95,8 @@
   const { code } = await TwistApi.addStrandedWireDish(cardList.value);
   if (code == 200) {
     toast.success("淇濆瓨鎴愬姛");
+    cardList.value = [];
+    getList();
     pagingRef.value.refresh();
   } else {
     toast.error("淇濆瓨澶辫触");
@@ -103,12 +105,12 @@
 
 onLoad((options: any) => {
   // 寮�鍚箍鎾洃鍚簨浠�
-  uni.$on("scan", getScanCode);
+  uni.$on("scanMono", getScanCode);
   paramsId.value = options.id;
 });
 onUnload(() => {
   // 寮�鍚箍鎾洃鍚簨浠�
-  uni.$off("scan", getScanCode);
+  uni.$off("scanMono", getScanCode);
 });
 </script>
 

--
Gitblit v1.9.3