1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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
  })
}