From 991f6f78fccb86b2718ab96969a69304daafe2b4 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期一, 03 十一月 2025 17:32:50 +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