From c4a1108d64e8e8b24e1b805d84d2dd482a37dd79 Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期二, 11 三月 2025 19:08:11 +0800
Subject: [PATCH] 检验下单代码迁移:下单功能

---
 src/api/standard/standardLibrary.js |  145 ++++++++++++++++--------------------------------
 1 files changed, 49 insertions(+), 96 deletions(-)

diff --git a/src/api/standard/standardLibrary.js b/src/api/standard/standardLibrary.js
index 7768746..63752ea 100644
--- a/src/api/standard/standardLibrary.js
+++ b/src/api/standard/standardLibrary.js
@@ -1,29 +1,11 @@
 import request from "@/utils/request";
 
-// 鏍囧噯搴撴爲鎺掑簭
-export function updateTreeSort(data) {
-  return request({
-    url: "/standardTree/updateTreeSort",
-    method: "post",
-    data: data,
-  });
-}
-
-// 鏍囧噯搴撴楠岄」鎺掑簭淇濆瓨鎺ュ彛
-export function resetTreeDragBatch(data) {
-  return request({
-    url: "/standardTree/resetTreeDragBatch",
-    method: "post",
-    data: data,
-  });
-}
-
 // 鍒犻櫎鏍囧噯鏍戠殑灞傜骇
-export function delStandardTree(data) {
+export function delStandardTree(query) {
   return request({
     url: "/standardTree/delStandardTree",
-    method: "post",
-    data: data,
+    method: "delete",
+    params: query,
   });
 }
 
@@ -54,6 +36,15 @@
   });
 }
 
+// 鑾峰彇鏍囧噯鏂规硶鏋氫妇
+export function selectStandardMethods(query) {
+  return request({
+    url: "/standardMethod/selectStandardMethods",
+    method: "get",
+    params: query,
+  });
+}
+
 // 缁欐爣鍑嗘爲娣诲姞妫�楠屾爣鍑�
 export function addStandardMethodList(data) {
   return request({
@@ -72,24 +63,6 @@
   });
 }
 
-// 淇敼鏍囧噯鏍�
-export function updateStandardTree(data) {
-  return request({
-    url: "/standardTree/updateStandardTree",
-    method: "post",
-    data: data,
-  });
-}
-
-// 鏍规嵁鏍囧噯鏍戣繘琛屾爣鍑嗘煡璇�
-export function selectsStandardMethodByFLSSM(data) {
-  return request({
-    url: "/standardTree/selectsStandardMethodByFLSSM",
-    method: "post",
-    data: data,
-  });
-}
-
 // 淇敼鏍囧噯搴撲腑鐨勮姹傚��
 export function upStandardProductList(data) {
   return request({
@@ -100,29 +73,20 @@
 }
 
 // 鍒犻櫎鏍囧噯鏍戜笅鐨勬楠屾爣鍑�
-export function delStandardMethodByFLSSM(data) {
+export function delStandardMethodByFLSSM(query) {
   return request({
     url: "/standardTree/delStandardMethodByFLSSM",
-    method: "post",
-    data: data,
+    method: "delete",
+    params: query,
   });
 }
 
-// 鍒犻櫎鏍囧噯鏍戜笅鐨勬楠屾爣鍑�
-export function delStandardProductByIds(data) {
+// 鍒犻櫎鏍囧噯鏍戜笅鐨勬楠岄」鐩�
+export function delStandardProductByIds(query) {
   return request({
     url: "/standardTree/delStandardProductByIds",
-    method: "post",
-    data: data,
-  });
-}
-
-// 鏂板鏍囧噯鏍戜笅鐨勬楠岄」鐩�
-export function addStandardProduct(data) {
-  return request({
-    url: "/standardTree/addStandardProduct",
-    method: "post",
-    data: data,
+    method: "delete",
+    params: query,
   });
 }
 
@@ -135,21 +99,12 @@
   });
 }
 
-// 淇敼鏍囧噯搴撲腑鐨勫尯闂磋缃�
-export function updateSection(data) {
+// 閫氳繃鏍囧噯鏍戞煡璇㈠搴旂殑妫�楠岄」鐩�
+export function selectStandardProductList(query) {
   return request({
-    url: "/standardTree/updateSection",
-    method: "post",
-    data: data,
-  });
-}
-
-// 鑾峰彇浜у搧鏋舵瀯
-export function upStandardProducts(data) {
-  return request({
-    url: "/standardTree/upStandardProducts",
-    method: "post",
-    data: data,
+    url: "/standardTree/selectStandardProductList",
+    method: "get",
+    params: query,
   });
 }
 
@@ -159,33 +114,6 @@
     url: "/StandardTemplate/getStandardTemplate",
     method: "get",
     params: query,
-  });
-}
-
-// 鑾峰彇鏍囧噯鏂规硶鏋氫妇
-export function selectStandardMethods(query) {
-  return request({
-    url: "/standardMethod/selectStandardMethods",
-    method: "get",
-    params: query,
-  });
-}
-
-// 鎵归噺缂栬緫鏌ヨ妫�楠岄」鐩�
-export function selectStandardProductByMethodId(data) {
-  return request({
-    url: "/standardTree/selectStandardProductByMethodId",
-    method: "post",
-    data: data,
-  });
-}
-
-// 鎵归噺缂栬緫鏌ヨ鎵�鏈夋楠岄」鐩拰妫�楠屽瓙椤规灇涓�
-export function selectStandardProductEnumByMethodId(data) {
-  return request({
-    url: "/standardTree/selectStandardProductEnumByMethodId",
-    method: "post",
-    data: data,
   });
 }
 
@@ -206,3 +134,28 @@
     data: data,
   });
 }
+
+// 鏍规嵁鏍囧噯鏍戣繘琛屾爣鍑嗘煡璇�
+export function selectsStandardMethodByFLSSM(query) {
+  return request({
+    url: "/standardTree/selectsStandardMethodByFLSSM",
+    method: "get",
+    params: query,
+  });
+}
+
+// 鑾峰彇鏍囧噯鏍戜笅鏍囧噯鏂规硶鏋氫妇
+export function selectStandardMethodEnum() {
+  return request({
+    url: "/standardTree/selectStandardMethodEnum",
+    method: "get",
+  });
+}
+
+// 鑾峰彇鏍囧噯鏍�(妫�楠屼笅鍗�)
+export function selectStandardTreeList2() {
+  return request({
+    url: "/standardTree/selectStandardTreeList2",
+    method: "get",
+  });
+}

--
Gitblit v1.9.3