增加站点完工接口
增加库位查询接口
This commit is contained in:
54
src/api/pwoManage/location/index.ts
Normal file
54
src/api/pwoManage/location/index.ts
Normal file
@@ -0,0 +1,54 @@
|
|||||||
|
import request from "@/api/request";
|
||||||
|
import type { ID } from "@/api/common";
|
||||||
|
|
||||||
|
// 查询库位列表
|
||||||
|
export function listStorageLocation(params: any) {
|
||||||
|
return request({
|
||||||
|
url: "/wip/storageLocation/list",
|
||||||
|
method: "get",
|
||||||
|
params,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// 高级查询库位列表
|
||||||
|
export function advListStorageLocation(params: any) {
|
||||||
|
return request({
|
||||||
|
url: "/wip/storageLocation/advList",
|
||||||
|
method: "get",
|
||||||
|
params,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询库位详细
|
||||||
|
export function getStorageLocation(id: ID) {
|
||||||
|
return request({
|
||||||
|
url: "/wip/storageLocation/" + id,
|
||||||
|
method: "get",
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// 新增库位
|
||||||
|
export function addStorageLocation(data: any) {
|
||||||
|
return request({
|
||||||
|
url: "/wip/storageLocation",
|
||||||
|
method: "post",
|
||||||
|
data,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改库位
|
||||||
|
export function updateStorageLocation(data: any) {
|
||||||
|
return request({
|
||||||
|
url: "/wip/storageLocation",
|
||||||
|
method: "put",
|
||||||
|
data,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除库位
|
||||||
|
export function delStorageLocation(id: ID) {
|
||||||
|
return request({
|
||||||
|
url: "/wip/storageLocation/" + id,
|
||||||
|
method: "delete",
|
||||||
|
});
|
||||||
|
}
|
||||||
@@ -61,3 +61,12 @@ export function startStation(id: ID) {
|
|||||||
method: "put",
|
method: "put",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 站点完工
|
||||||
|
export function completeStation(id: ID, location: any) {
|
||||||
|
return request({
|
||||||
|
url: '/mes/station/' + id + '/complete',
|
||||||
|
method: 'put',
|
||||||
|
data: location
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user