Files
klp-oa/klp-ui/src/api/mes/roll/rollStandby.js

54 lines
1.1 KiB
JavaScript
Raw Normal View History

2026-05-07 11:19:32 +08:00
import request from '@/utils/request'
// 查询指定产线+机架下批轧辊列表
export function listRollStandby(lineId, standNo) {
2026-05-07 11:19:32 +08:00
return request({
url: '/mes/rollStandby/list',
method: 'get',
params: { lineId, standNo }
2026-05-07 11:19:32 +08:00
})
}
// 查询下批轧辊详细
export function getRollStandby(standbyId) {
return request({
url: '/mes/rollStandby/' + standbyId,
method: 'get'
})
}
// 新增下批轧辊(自动同步辊状态为 Standby
export function addRollStandby(data) {
return request({
url: '/mes/rollStandby',
method: 'post',
data: data
})
}
// 修改下批轧辊
export function updateRollStandby(data) {
return request({
url: '/mes/rollStandby',
method: 'put',
data: data
})
}
// 删除单条下批轧辊(自动恢复辊状态为 Offline
export function delRollStandby(standbyId) {
return request({
url: '/mes/rollStandby/' + standbyId,
method: 'delete'
})
}
// 清空指定产线+机架全部下批轧辊
export function clearRollStandby(lineId, standNo) {
2026-05-07 11:19:32 +08:00
return request({
url: '/mes/rollStandby/clear',
method: 'delete',
params: { lineId, standNo }
2026-05-07 11:19:32 +08:00
})
}