zzq
2023-09-28 2b78cf0cd68e1809bc4cad7d730bef6ab9c4c118
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
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/updateWarehouse",
    method: "post",
    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
  })
}
// 位置  列表
export function getLocationList(data) {
  return request({
    url: "/api-wms/v1/location/getLocationList",
    method: "post",
    data
  })
}
// 创建位置
export function addLocation(data) {
  return request({
    url: "/api-wms/v1/location/addLocation",
    method: "post",
    data
  })
}
// 删除位置
export function deleteLocation(data) {
  return request({
    url: "/api-wms/v1/location/deleteLocation/" + data.id,
    method: "delete",
    data
  })
}
// 位置 详情
export function getLocationDetails(data) {
  return request({
    url: "/api-wms/v1/location/getLocationDetails/" + data.id,
    method: "get",
    data
  })
}
// 更新位置
export function updateLocation(data) {
  return request({
    url: "/api-wms/v1/location/updateLocation",
    method: "post",
    data
  })
}