54 lines
1.1 KiB
JavaScript
54 lines
1.1 KiB
JavaScript
import request from '@/utils/request'
|
||
|
||
// 查询指定产线+机架下批轧辊列表
|
||
export function listRollStandby(lineId, standNo) {
|
||
return request({
|
||
url: '/mes/rollStandby/list',
|
||
method: 'get',
|
||
params: { lineId, standNo }
|
||
})
|
||
}
|
||
|
||
// 查询下批轧辊详细
|
||
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) {
|
||
return request({
|
||
url: '/mes/rollStandby/clear',
|
||
method: 'delete',
|
||
params: { lineId, standNo }
|
||
})
|
||
}
|