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`, {
|
params: data
|
})
|
}
|
// 创建仓库
|
export function addWarehouse(data) {
|
return request({
|
url: "/api-wms/v1/warehouse/warehouse",
|
method: "post",
|
data
|
})
|
}
|
// 删除仓库
|
export function deleteWarehouse(data) {
|
return request({
|
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",
|
data
|
})
|
}
|
// 业务类型 列表
|
export const getOperationTypeList = async (data) => {
|
return await axios.get(`/api-wms/v1/operationType/operationType`, {
|
params: data
|
})
|
}
|
// 创建业务类型
|
export function addOperationType(data) {
|
return request({
|
url: "/api-wms/v1/operationType/operationType",
|
method: "post",
|
data
|
})
|
}
|
// 删除业务类型
|
export function deleteOperationType(data) {
|
return request({
|
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,
|
method: "put",
|
data
|
})
|
}
|