From 646135b9c54d6ccf5d47af30bf208bdfe5005017 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期二, 09 十二月 2025 10:31:44 +0800
Subject: [PATCH] fix: 二维码内容简化,只传一个id。根据id查询详细信息。
---
src/api/product/wire.ts | 70 +++++++++++++++++++++++++++++++++++
1 files changed, 70 insertions(+), 0 deletions(-)
diff --git a/src/api/product/wire.ts b/src/api/product/wire.ts
index 0f192f7..fbb713d 100644
--- a/src/api/product/wire.ts
+++ b/src/api/product/wire.ts
@@ -19,6 +19,76 @@
data: data,
});
},
+
+ // 鑾峰彇鎷変笣鎶ュ伐鏍戝舰鏁版嵁
+ getWireOutputTree(params: any) {
+ return request<BaseResult<any>>({
+ url: "/app/getWireOutputTree",
+ method: "GET",
+ data: params,
+ });
+ },
+
+ // 鏂板鏉嗗寘
+ addRodBagTree(data: any) {
+ return request<BaseResult<any>>({
+ url: "/wireOutput/addRodBagTree",
+ method: "POST",
+ data: data,
+ });
+ },
+
+ // 鍒犻櫎鏉嗗寘
+ deleteRodBagTree(data: any) {
+ return request<BaseResult<any>>({
+ url: "/wireOutput/deleteRodBagTree",
+ method: "POST",
+ data: data,
+ });
+ },
+
+ // 鏇存柊鏉嗗寘
+ updateRodBagTree(data: any) {
+ return request<BaseResult<any>>({
+ url: "/wireOutput/updateRodBagTree",
+ method: "POST",
+ data: data,
+ });
+ },
+
+ // 鎵归噺鏂板鎷変笣鎶ュ伐
+ addWireOutputList(data: any) {
+ return request<BaseResult<any>>({
+ url: "/wireDrawing/addWireOutputList",
+ method: "POST",
+ data: data,
+ });
+ },
+
+ // 鍒犻櫎鎷変笣鎶ュ伐
+ deleteWireOutput(params: any) {
+ return request<BaseResult<any>>({
+ url: `/app/deleteWireOutput?id=${params.id}`,
+ 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