From 1aa5952ed531348d22ac907aefdfb035bd160206 Mon Sep 17 00:00:00 2001 From: spring <2396852758@qq.com> Date: 星期四, 20 二月 2025 16:33:37 +0800 Subject: [PATCH] 检验任务完成80% --- src/api/standard/standardLibrary.js | 101 ++++++++++++++++++++++++++++++++++++++++++++++---- 1 files changed, 92 insertions(+), 9 deletions(-) diff --git a/src/api/standard/standardLibrary.js b/src/api/standard/standardLibrary.js index 7768746..ad374ed 100644 --- a/src/api/standard/standardLibrary.js +++ b/src/api/standard/standardLibrary.js @@ -1,3 +1,5 @@ +// 鏍囧噯搴撶浉鍏虫帴鍙� + import request from "@/utils/request"; // 鏍囧噯搴撴爲鎺掑簭 @@ -19,11 +21,11 @@ } // 鍒犻櫎鏍囧噯鏍戠殑灞傜骇 -export function delStandardTree(data) { +export function delStandardTree(query) { return request({ url: "/standardTree/delStandardTree", - method: "post", - data: data, + method: "delete", + params: query, }); } @@ -82,11 +84,11 @@ } // 鏍规嵁鏍囧噯鏍戣繘琛屾爣鍑嗘煡璇� -export function selectsStandardMethodByFLSSM(data) { +export function selectsStandardMethodByFLSSM(query) { return request({ url: "/standardTree/selectsStandardMethodByFLSSM", - method: "post", - data: data, + method: "get", + params: query, }); } @@ -127,11 +129,11 @@ } // 閫氳繃妫�楠屾爣鍑嗘煡璇㈡楠岄」鐩� -export function selectStandardProductListByMethodId(data) { +export function selectStandardProductListByMethodId(query) { return request({ url: "/standardTree/selectStandardProductListByMethodId", - method: "post", - data: data, + method: "get", + params: query, }); } @@ -206,3 +208,84 @@ data: data, }); } + +// 妫�楠岄」澶嶅埗鎺掑簭 +export function copyStandardProductSort(data) { + return request({ + url: "/standardTree/copyStandardProductSort", + method: "post", + data: data, + }); +} + +// 鎻愪氦闇�瑕佸鍒剁殑妫�楠岄」 +export function copyStandardProductOne(data) { + return request({ + url: "/standardTree/copyStandardProductOne", + method: "post", + data: data, + }); +} + +// 澶嶅埗妫�楠岄」 +export function copyStandardProductList(data) { + return request({ + url: "/standardTree/copyStandardProductList", + method: "post", + data: data, + }); +} + +// 鎻愪氦闇�瑕佸鍒剁殑妫�楠岄」 +export function updateStandardProductListBatch(data) { + return request({ + url: "/standardTree/updateStandardProductListBatch", + method: "post", + data: data, + }); +} + +// 鑾峰彇鏍囧噯鏍� +export function selectStandardTreeList2(query) { + return request({ + url: "/standardTree/selectStandardTreeList2", + method: "get", + params: query, + }); +} + +// 鏍囧噯搴撶粦瀹氬巶瀹� +export function selectSupplierAsk(data) { + return request({ + url: "/standardTree/selectSupplierAsk", + method: "post", + data: data, + }); +} + +// 鏂板鏍囧噯搴撶粦瀹氬巶瀹� +export function addProductSupplierAsk(data) { + return request({ + url: "/standardTree/addProductSupplierAsk", + method: "post", + data: data, + }); +} + +// 淇敼鏍囧噯搴撶粦瀹氬巶瀹� +export function updateProductSupplierAsk(data) { + return request({ + url: "/standardTree/updateProductSupplierAsk", + method: "post", + data: data, + }); +} + +// 鍒犻櫎鏍囧噯搴撶粦瀹氬巶瀹� +export function deleteProductSupplierAsk(query) { + return request({ + url: "/standardTree/deleteProductSupplierAsk", + method: "delete", + params: query, + }); +} -- Gitblit v1.9.3