57 lines
1.1 KiB
JavaScript
57 lines
1.1 KiB
JavaScript
import request from "@/utils/request";
|
|
|
|
export function listInbound(query) {
|
|
return request({
|
|
url: "/business/inbound/list",
|
|
method: "get",
|
|
params: query,
|
|
});
|
|
}
|
|
|
|
export function getInboundWarehouseOptions() {
|
|
return request({
|
|
url: "/business/inbound/warehouse-options",
|
|
method: "get",
|
|
});
|
|
}
|
|
|
|
export function scanInboundPallet(qrToken, query) {
|
|
return request({
|
|
url: "/business/inbound/scan/" + encodeURIComponent(qrToken),
|
|
method: "get",
|
|
params: query,
|
|
});
|
|
}
|
|
|
|
export function getInbound(inboundId) {
|
|
return request({
|
|
url: "/business/inbound/" + inboundId,
|
|
method: "get",
|
|
});
|
|
}
|
|
|
|
export function addInbound(data) {
|
|
return request({
|
|
url: "/business/inbound",
|
|
method: "post",
|
|
data,
|
|
});
|
|
}
|
|
|
|
export function updateInbound(data) {
|
|
return request({
|
|
url: "/business/inbound",
|
|
method: "put",
|
|
data,
|
|
});
|
|
}
|
|
|
|
export function confirmInbound(inboundId, data) {
|
|
return request({
|
|
url: "/business/inbound/" + inboundId + "/confirm",
|
|
method: "put",
|
|
data,
|
|
headers: { repeatSubmit: false },
|
|
});
|
|
}
|