From bc0b37e98ba17b8a4c97d853c87e2b12e447b012 Mon Sep 17 00:00:00 2001
From: zuozhengqing <a13193816592@163.com>
Date: 星期五, 29 三月 2024 18:10:34 +0800
Subject: [PATCH] 合并分支
---
src/api/purchaseManage/purchase.js | 146 ++++++++++++++++++++++++++++++++++++------------
1 files changed, 108 insertions(+), 38 deletions(-)
diff --git a/src/api/purchaseManage/purchase.js b/src/api/purchaseManage/purchase.js
index e9ab89b..19c132b 100644
--- a/src/api/purchaseManage/purchase.js
+++ b/src/api/purchaseManage/purchase.js
@@ -49,52 +49,67 @@
method: "get"
})
}
-// 閲囪喘鍗曞垪琛�
-export const getPurchaseList = async (data) => {
- return await axios.get(`/api/purchase/purchaseList`, {
- params: data
- })
- }
+// 閲囪喘鍗曞垪琛�
+// export const getPurchaseList = async (data) => {
+// return await axios.get(`/api/purchase/purchaseList`, {
+// params: data
+// })
+// }
+export function getPurchaseList(data) {
+ return request({
+ url: "/api/purchase/purchaseList",
+ method: "get",
+ params: data
+ })
+}
// 鍒涘缓閲囪喘鍗�
export function addPurchase(data) {
- return request({
- url: "/api/purchase/purchase",
- method: "post",
- data
- })
- }
+ return request({
+ url: "/api/purchase/purchase",
+ method: "post",
+ data
+ })
+}
// 鏇存柊閲囪喘鍗�
export function updatePurchase(data) {
- return request({
- url: "/api/purchase/purchase",
- method: "put",
- data
- })
- }
+ return request({
+ url: "/api/purchase/purchase",
+ method: "put",
+ data
+ })
+}
// 鑾峰彇閲囪喘鍗曚俊鎭�
export function getPurchaseInfo(data) {
- return request({
- url: "/api/purchase/purchase/"+data.id,
- method: "get",
- data
- })
- }
- // 鍒犻櫎閲囪喘鍗曚俊鎭�
+ return request({
+ url: "/api/purchase/purchase/" + data.id,
+ method: "get",
+ data
+ })
+}
+// 鍒犻櫎閲囪喘鍗曚俊鎭�
export function deletePurchase(data) {
- return request({
- url: "/api/purchase/purchase/"+data.id,
- method: "delete",
- data
- })
- }
+ return request({
+ url: "/api/purchase/purchase/" + data.id,
+ method: "delete",
+ data
+ })
+}
// 鎻愪氦閲囪喘鍗�
export function submitPurchase(data) {
- return request({
- url: "/api/purchase/submit",
- method: "post",
- data
- })
- }
+ return request({
+ url: "/api/purchase/submit",
+ method: "post",
+ data
+ })
+}
+// 纭閲囪喘鍗�
+export function newSubmitPurchase(data) {
+ return request({
+ url: "/api/purchase/newSubmit",
+ method: "post",
+ data
+ })
+}
// 鏂板缓閲囪喘绫诲瀷
export function savePurchaseType(data) {
return request({
@@ -116,4 +131,59 @@
return await axios.get(`/api/purchase/qualityInspectList`, {
params: data
})
-}
\ No newline at end of file
+}
+// 鑾峰彇浠撳簱鍒楄〃
+export function getWarehouseInfo() {
+ return request({
+ url: "/api/purchase/getWarehouseInfo/",
+ method: "get"
+ })
+}
+// 鑾峰彇浜у搧/鏀惰揣淇℃伅
+export function getOperationInfo(data) {
+ return request({
+ url: "/api/purchase/getOperationInfo/" + data.id,
+ method: "get",
+ data
+ })
+}
+// 鑾峰彇纭鍒楄〃淇℃伅
+export function getPurchaseProductConfirmInfo(data) {
+ return request({
+ url: "/api/purchase/getPurchaseProductConfirmInfo/" + data,
+ method: "get",
+ data
+ })
+}
+// 纭鏀惰揣
+export function savePurchaseProductConfirm(data) {
+ return request({
+ url: "/api/purchase/savePurchaseProductConfirm",
+ method: "post",
+ data
+ })
+}
+// 鑾峰彇璐ㄦ鍒楄〃淇℃伅
+export function getPurchaseQualityInspectionInfo(data) {
+ return request({
+ url: "/api/purchase/getPurchaseQualityInspectionInfo",
+ method: "post",
+ data
+ })
+}
+// 鎵归噺鍚堟牸鍏ュ簱
+export function savePurchaseQualityInspectionInfo(data) {
+ return request({
+ url: "/api/purchase/savePurchaseQualityInspectionInfo",
+ method: "post",
+ data
+ })
+}
+// 鍏ㄩ儴鍚堟牸鍏ュ簱
+export function allProductInWarehouse(data) {
+ return request({
+ url: "/api/purchase/allProductInWarehouse",
+ method: "post",
+ data
+ })
+}
--
Gitblit v1.8.0