From 1e71cfb6ec97cff6531dec65a3fb5cb24b2c18ac Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期一, 03 十一月 2025 09:57:48 +0800
Subject: [PATCH] fix: 附件完善

---
 src/pages/production/wire/report/wireForm.vue |   15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/src/pages/production/wire/report/wireForm.vue b/src/pages/production/wire/report/wireForm.vue
index f4e71f6..b115229 100644
--- a/src/pages/production/wire/report/wireForm.vue
+++ b/src/pages/production/wire/report/wireForm.vue
@@ -116,18 +116,29 @@
 });
 
 const submit = async () => {
+  // 鍦ㄨ皟鐢ˋPI鍓嶅厛淇濆瓨poleNumber鐨勫�硷紝纭繚鎴戜滑鏈夋纭殑鍊�
+  const poleNumberValue = model.poleNumber;
+
   const { code } = await WireApi.addWireOutput({
     wireId: paramsId.value,
     type: "鎷変笣",
     ...model,
   });
+
   if (code == 200) {
     toast.success("鎻愪氦鎴愬姛");
+    // 鍒涘缓杩斿洖缁撴灉瀵硅薄锛屼娇鐢ㄦ彁鍓嶄繚瀛樼殑poleNumber鍊�
+    const result = {
+      success: true,
+      poleNumber: poleNumberValue,
+    };
+    // 鍦ㄨ繑鍥炰箣鍓嶆墽琛宺esetForm()
     resetForm();
-    return true;
+    // 杩斿洖缁撴灉
+    return result;
   } else {
     toast.error("鎻愪氦澶辫触");
-    return false;
+    return { success: false };
   }
 };
 

--
Gitblit v1.9.3