From c13c2bb15b501c74fe4270b0ae763e5c9422ee39 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期三, 19 十一月 2025 10:02:52 +0800
Subject: [PATCH] fix: 重构绞线报工功能
---
src/api/product/twist.ts | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 44 insertions(+), 0 deletions(-)
diff --git a/src/api/product/twist.ts b/src/api/product/twist.ts
index 5bca559..086f1d3 100644
--- a/src/api/product/twist.ts
+++ b/src/api/product/twist.ts
@@ -53,6 +53,50 @@
data: params,
});
},
+
+ // 鏍规嵁鍗曚笣缂栧彿鏌ヨ
+ selectByMonofilamentNumber(params: { monofilamentNumber: string }) {
+ return request<BaseResult<any>>({
+ url: "/strandedWire/selectByMonofilamentNumber",
+ method: "GET",
+ data: params,
+ });
+ },
+
+ //缁炰笣鎶ュ伐鍓嶇敓浜х‘璁�
+ querySingleDishInspection(params: { id: number }) {
+ return request<BaseResult<any>>({
+ url: "/wireInspection/querySingleDishInspection/" + params.id,
+ method: "GET",
+ });
+ },
+
+ // 鏂板缁炵嚎鍗曚笣棰嗙敤妫�鏌�
+ addSingleDishInspection(data: any) {
+ return request<BaseResult<any>>({
+ url: "/wireInspection/saveSingleDishInspection",
+ method: "POST",
+ data: data,
+ });
+ },
+
+ // 鍒犻櫎鍗曚笣棰嗙敤
+ deleteStrandedWireDish(id: number) {
+ return request<BaseResult<any>>({
+ url: `/strandedWire/deleteStrandedWireDish/${id}`,
+ method: "DELETE",
+ });
+ },
+
+ // 鍒犻櫎缁炵嚎鎶ュ伐
+ deleteWireOutput(params: { id: number }) {
+ // 灏嗗弬鏁版嫾鎺ュ埌 URL 浣滀负 query 鍙傛暟
+ const queryString = `?id=${params.id}`;
+ return request<BaseResult<any>>({
+ url: `/strandedWire/deleteWireOutput${queryString}`,
+ method: "DELETE",
+ });
+ },
};
export default TwistApi;
--
Gitblit v1.9.3