双机架轧辊管理

This commit is contained in:
2026-05-07 11:19:32 +08:00
parent d71b1c4959
commit a5280923e1
32 changed files with 3088 additions and 4 deletions

View File

@@ -0,0 +1,62 @@
import request from '@/utils/request'
// 查询换辊记录分页列表(支持按机架、类型、时间筛选)
export function listRollChange(query) {
return request({
url: '/mes/rollChange/list',
method: 'get',
params: query
})
}
// 查询指定机架当前在机轧辊(最近一次换辊记录)
export function getCurrentRolls(standNo) {
return request({
url: '/mes/rollChange/current',
method: 'get',
params: { standNo }
})
}
// 查询指定机架当前轧辊实时工作长度m
export function getWorkLength(standNo) {
return request({
url: '/mes/rollChange/workLength',
method: 'get',
params: { standNo }
})
}
// 查询换辊记录详细
export function getRollChange(changeId) {
return request({
url: '/mes/rollChange/' + changeId,
method: 'get'
})
}
// 新增换辊记录(自动同步辊状态为 Online
export function addRollChange(data) {
return request({
url: '/mes/rollChange',
method: 'post',
data: data
})
}
// 修改换辊记录
export function updateRollChange(data) {
return request({
url: '/mes/rollChange',
method: 'put',
data: data
})
}
// 删除换辊记录
export function delRollChange(changeIds) {
return request({
url: '/mes/rollChange/' + changeIds,
method: 'delete'
})
}

View File

@@ -0,0 +1,87 @@
import request from '@/utils/request'
// 查询轧辊库分页列表
export function listRollInfo(query) {
return request({
url: '/mes/rollInfo/list',
method: 'get',
params: query
})
}
// 查询状态统计卡片
export function getRollStats() {
return request({
url: '/mes/rollInfo/stats',
method: 'get'
})
}
// 查询轧辊编号下拉rollType/status 均可为空,不传则不过滤)
export function listRollOptions(rollType, status) {
return request({
url: '/mes/rollInfo/options',
method: 'get',
params: { rollType, status }
})
}
// 查询轧辊详细
export function getRollInfo(rollId) {
return request({
url: '/mes/rollInfo/' + rollId,
method: 'get'
})
}
// 新增轧辊
export function addRollInfo(data) {
return request({
url: '/mes/rollInfo',
method: 'post',
data: data
})
}
// 修改轧辊
export function updateRollInfo(data) {
return request({
url: '/mes/rollInfo',
method: 'put',
data: data
})
}
// 删除轧辊(仅报废状态可删)
export function delRollInfo(rollIds) {
return request({
url: '/mes/rollInfo/' + rollIds,
method: 'delete'
})
}
// 封闭轧辊(→报废)
export function scrapRollInfo(rollId) {
return request({
url: '/mes/rollInfo/' + rollId + '/scrap',
method: 'put'
})
}
// 从换辊记录同步在线状态
export function syncRollStatus() {
return request({
url: '/mes/rollInfo/syncStatus',
method: 'post'
})
}
// 导出轧辊
export function exportRollInfo(query) {
return request({
url: '/mes/rollInfo/export',
method: 'post',
params: query,
responseType: 'blob'
})
}

View File

@@ -0,0 +1,53 @@
import request from '@/utils/request'
// 查询指定机架下批轧辊列表
export function listRollStandby(standNo) {
return request({
url: '/mes/rollStandby/list',
method: 'get',
params: { 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(standNo) {
return request({
url: '/mes/rollStandby/clear',
method: 'delete',
params: { standNo }
})
}