import request from "@/common/untils/request.js"
|
import axios from "axios"
|
// 产品类型列表
|
export function getProductCategoryList(data) {
|
return request({
|
url: "/api-wms/v1/product/getProductCategoryList",
|
method: "post",
|
data
|
})
|
}
|
// 产品类型详情
|
export const getProductCategoryDetails = async (data) => {
|
return await axios.get(`/api-wms/v1/product/getProductCategoryDetails/`+data.id, {
|
|
})
|
}
|
// 创建产品类型
|
export function addProductCategory(data) {
|
return request({
|
url: "/api-wms/v1/product/addProductCategory",
|
method: "post",
|
data
|
})
|
}
|
// 删除产品类型
|
export function deleteProductCategory(data) {
|
return request({
|
url: "/api-wms/v1/product/deleteProductCategory/"+data.id,
|
method: "delete",
|
data
|
})
|
}
|
// 更新产品类型
|
export function updateProductCategory(data) {
|
return request({
|
url: "/api-wms/v1/product/updateProductCategory",
|
method: "post",
|
data
|
})
|
}
|