From 8fba42cefa944e11e189d8bf8dcb0b50bfe3cc67 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期三, 29 十月 2025 10:54:42 +0800
Subject: [PATCH] fix: 领用单丝添加绞线层级字段
---
 src/pages/production/twist/receive/monofil.vue |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/pages/production/twist/receive/monofil.vue b/src/pages/production/twist/receive/monofil.vue
index 1c7a03e..526969d 100644
--- a/src/pages/production/twist/receive/monofil.vue
+++ b/src/pages/production/twist/receive/monofil.vue
@@ -110,10 +110,6 @@
   console.log("code:===========", JSON.parse(code.code));
   console.log("id:=============", JSON.parse(code.code).id);
   try {
-    const { data } = await TwistApi.getScarn({
-      outPutId: JSON.parse(code.code).id,
-    });
-
     // 妫�鏌ユ槸鍚﹀凡閫夋嫨鏍囩
     if (!tab.value) {
       toast.error("璇峰厛閫夋嫨涓�涓眰");
@@ -127,6 +123,11 @@
       toast.error("鏈壘鍒板綋鍓嶉�変腑鐨勫眰");
       return;
     }
+    console.log("tab.value:===========3", currentLayer);
+    const { data } = await TwistApi.getScarn({
+      outPutId: JSON.parse(code.code).id,
+      twistId: currentLayer.twistId,
+    });
 
     // 妫�鏌ュ綋鍓嶅眰鏄惁宸插瓨鍦ㄨ鍗曚笣
     const exists = currentLayer.strandedWireDish?.some(
--
Gitblit v1.9.3