添加设备进站、治具进站、主材进站接口
优化错误拦截逻辑
This commit is contained in:
63
src/api/pwoManage/station/index.ts
Normal file
63
src/api/pwoManage/station/index.ts
Normal file
@@ -0,0 +1,63 @@
|
||||
import request from "@/api/request";
|
||||
import type { ID } from "@/api/common";
|
||||
import type { MesStationQuery, MesStationData } from "./model";
|
||||
|
||||
// 查询站点列表
|
||||
export function listStation(params: MesStationQuery) {
|
||||
return request({
|
||||
url: "/mes/station/list",
|
||||
method: "get",
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
// 高级查询站点列表
|
||||
export function advListStation(params: MesStationQuery) {
|
||||
return request({
|
||||
url: "/mes/station/advList",
|
||||
method: "get",
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
// 查询站点详细
|
||||
export function getStation(id: ID) {
|
||||
return request({
|
||||
url: "/mes/station/" + id,
|
||||
method: "get",
|
||||
});
|
||||
}
|
||||
|
||||
// 新增站点
|
||||
export function addStation(data: MesStationData) {
|
||||
return request({
|
||||
url: "/mes/station",
|
||||
method: "post",
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
// 修改站点
|
||||
export function updateStation(data: MesStationData) {
|
||||
return request({
|
||||
url: "/mes/station",
|
||||
method: "put",
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
// 删除站点
|
||||
export function delStation(id: ID) {
|
||||
return request({
|
||||
url: "/mes/station/" + id,
|
||||
method: "delete",
|
||||
});
|
||||
}
|
||||
|
||||
// 站点开工
|
||||
export function startStation(id: ID) {
|
||||
return request({
|
||||
url: "/mes/station/" + id + "/start",
|
||||
method: "put",
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user