From 6a0aeaa2a20ef9ca45dae185d1d9f0ab606249dd Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期二, 09 十二月 2025 15:05:18 +0800
Subject: [PATCH] fix: 绞线领用:盘具厂家和芯线厂家区分一下(PC+PDA)

---
 src/api/product/wire.ts |   23 ++++++++++++++++++++---
 1 files changed, 20 insertions(+), 3 deletions(-)

diff --git a/src/api/product/wire.ts b/src/api/product/wire.ts
index d8e0fd7..fbb713d 100644
--- a/src/api/product/wire.ts
+++ b/src/api/product/wire.ts
@@ -32,7 +32,7 @@
   // 鏂板鏉嗗寘
   addRodBagTree(data: any) {
     return request<BaseResult<any>>({
-      url: "/app/addRodBagTree",
+      url: "/wireOutput/addRodBagTree",
       method: "POST",
       data: data,
     });
@@ -41,8 +41,8 @@
   // 鍒犻櫎鏉嗗寘
   deleteRodBagTree(data: any) {
     return request<BaseResult<any>>({
-      url: "/app/deleteRodBagTree",
-      method: "DELETE",
+      url: "/wireOutput/deleteRodBagTree",
+      method: "POST",
       data: data,
     });
   },
@@ -72,6 +72,23 @@
       method: "DELETE",
     });
   },
+
+  // 楠岃瘉鍙樻洿
+  verifyChanges(params: { projectId: number | string }) {
+    return request<BaseResult<any>>({
+      url: "/wireOutput/verifyChanges",
+      method: "GET",
+      data: params,
+    });
+  },
+
+  // 鏍规嵁鐖剁骇鐗╂枡缂栫爜鏌ヨ瑙勬牸鍨嬪彿鍒楄〃
+  getMaterialByParentCode(code: string) {
+    return request<BaseResult<any[]>>({
+      url: `/material/getMaterialByParentCode/${code}`,
+      method: "GET",
+    });
+  },
 };
 
 export default WireApi;

--
Gitblit v1.9.3