haoxuan
2024-02-07 d68b036a3b3c67273b8effa3c9925ef3869a91ba
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
import request from "@/common/untils/request.js"
 
// 查询业务类型列表
export const getOperationType =  (data) => {
  return request({
    url: "/api-wms/v1/operationType/operationType",
    method: "get",
    params: data
  })
}
// 查询业务类型列表--内部调拨
export const getListTransfer = (data) => {
  return request({
    url: "/api-wms/v1/operationType/listTransfer",
    method: "get",
    params: data
  })
}
// 添加业务类型
export function addOperationType(data) {
  return request({
    url: "/api-wms/v1/operationType/operationType",
    method: "post",
    data
  })
}
// 删除业务类型
export function deleteOperationType(id) {
  return request({
    url: `/api-wms/v1/operationType/operationType/${id}`,
    method: "delete",
    id
  })
}
// 编辑业务类型
export function updateOperationType(data) {
  return request({
    url: `/api-wms/v1/operationType/operationType/${data.id}`,
    method: "put",
    data
  })
}
 
// 查询入库/出库列表
export function getOperation(data) {
  return request({
    url: "/api-wms/v1/operation/list",
    method: "post",
    data
  })
}
// 添加入库/出库
export function addOperation(data) {
  return request({
    url: "/api-wms/v1/operation/operation",
    method: "post",
    data
  })
}
// 删除入库/出库
export function deleteOperation(id) {
  return request({
    url: `/api-wms/v1/operation/operation/${id}`,
    method: "delete",
    id
  })
}
// 编辑入库/出库
export function updateOperation(data) {
  return request({
    url: `/api-wms/v1/operation/update`,
    method: "post",
    data
  })
}
// 验证 更改记录状态
export function updateStatus(id) {
  return request({
    url: `/api-wms/v1/operation/finish/${id}`,
    method: "put",
    id
  })
}
// 取消-状态 
export function stateCancel(id) {
  return request({
    url: `/api-wms/v1/operation/cancel/${id}`,
    method: "put",
    id
  })
}
// 获取位置列表
export function getLocationList(data) {
  return request({
    url: "/api-wms/v1/location/getLocationList",
    method: "post",
    data
  })
}
 
// 获取全部调拨列表
export function getAllList(data) {
  return request({
    url: "/api-wms/v1/operation/listTransfer",
    method: "post",
    data
  })
}
 
// 获取物流公司信息
export const getLogisticCompanyList = (data) => {
  return request({
    url: "/api-wms/v1/operation/getLogisticCompanyList",
    method: "get",
    params: data
  })
}
// 打印
export function printReceipts(id) {
  return request({
    url: `/api-wms/v1/operation/outputOperation/${id}`,
    method: "put",
    id
  })
}