添加设备进站、治具进站、主材进站接口

优化错误拦截逻辑
This commit is contained in:
tao
2025-12-29 08:58:38 +08:00
parent b54233e2e2
commit eeb3f850e9
7 changed files with 154 additions and 1 deletions

View 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",
});
}