From f56b025631ef59269d24d83bbf49f82544e16588 Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期五, 19 四月 2024 14:02:17 +0800
Subject: [PATCH] 修改总毛重,总净重的数据类型
---
src/api/warehouseManage/warehouse.js | 34 ++++++++++++++++++----------------
1 files changed, 18 insertions(+), 16 deletions(-)
diff --git a/src/api/warehouseManage/warehouse.js b/src/api/warehouseManage/warehouse.js
index 8e67a72..d9b2874 100644
--- a/src/api/warehouseManage/warehouse.js
+++ b/src/api/warehouseManage/warehouse.js
@@ -1,9 +1,10 @@
import request from "@/common/untils/request.js"
-import axios from "axios"
// 浠撳簱鍒楄〃
-export const getWarehouseList = async (data) => {
- return await axios.get(`/api-wms/v1/warehouse/warehouse`, {
+export const getWarehouseList = (data) => {
+ return request({
+ url: "/api-wms/v1/warehouse/warehouse",
+ method: "get",
params: data
})
}
@@ -18,22 +19,24 @@
// 鍒犻櫎浠撳簱
export function deleteWarehouse(data) {
return request({
- url: "/api-wms/v1/warehouse/warehouse/"+data.id,
+ url: "/api-wms/v1/warehouse/warehouse/" + data.id,
method: "delete",
data
})
}
-// 鏇存柊浠撳簱
+// 鏇存柊浠撳簱
export function updateWarehouse(data) {
return request({
- url: "/api-wms/v1/warehouse/warehouse/"+data.id,
- method: "put",
+ url: "/api-wms/v1/warehouse/updateWarehouse",
+ method: "post",
data
})
}
// 涓氬姟绫诲瀷 鍒楄〃
-export const getOperationTypeList = async (data) => {
- return await axios.get(`/api-wms/v1/operationType/operationType`, {
+export const getOperationTypeList = (data) => {
+ return request({
+ url: "/api-wms/v1/operationType/operationType",
+ method: "get",
params: data
})
}
@@ -48,15 +51,15 @@
// 鍒犻櫎涓氬姟绫诲瀷
export function deleteOperationType(data) {
return request({
- url: "/api-wms/v1/operationType/operationType/"+data.id,
+ url: "/api-wms/v1/operationType/operationType/" + data.id,
method: "delete",
data
})
}
-// 鏇存柊涓氬姟绫诲瀷
+// 鏇存柊涓氬姟绫诲瀷
export function updateOperationType(data) {
return request({
- url: "/api-wms/v1/operationType/operationType/"+data.id,
+ url: "/api-wms/v1/operationType/operationType/" + data.id,
method: "put",
data
})
@@ -77,10 +80,10 @@
data
})
}
-// 鍒犻櫎浣嶇疆
+// 鍒犻櫎浣嶇疆
export function deleteLocation(data) {
return request({
- url: "/api-wms/v1/location/deleteLocation/"+data.id,
+ url: "/api-wms/v1/location/deleteLocation/" + data.id,
method: "delete",
data
})
@@ -88,7 +91,7 @@
// 浣嶇疆 璇︽儏
export function getLocationDetails(data) {
return request({
- url: "/api-wms/v1/location/getLocationDetails/"+data.id,
+ url: "/api-wms/v1/location/getLocationDetails/" + data.id,
method: "get",
data
})
@@ -101,4 +104,3 @@
data
})
}
-
--
Gitblit v1.8.0