酸轧数据同步,轧辊新增产线新增各种产线
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询换辊记录分页列表(支持按机架、类型、时间筛选)
|
||||
// 查询换辊记录分页列表(支持按产线、机架、类型、时间筛选)
|
||||
export function listRollChange(query) {
|
||||
return request({
|
||||
url: '/mes/rollChange/list',
|
||||
@@ -9,20 +9,21 @@ export function listRollChange(query) {
|
||||
})
|
||||
}
|
||||
|
||||
// 查询指定机架当前在机轧辊(最近一次换辊记录)
|
||||
export function getCurrentRolls(standNo) {
|
||||
// 查询指定产线+机架当前在机轧辊(最近一次换辊记录)
|
||||
export function getCurrentRolls(lineId, standNo) {
|
||||
return request({
|
||||
url: '/mes/rollChange/current',
|
||||
method: 'get',
|
||||
params: { standNo }
|
||||
params: { lineId, standNo }
|
||||
})
|
||||
}
|
||||
|
||||
// 查询各机架各辊位实时工作绩效(workLength/coilCount/totalWeight)
|
||||
export function getRollPerformance() {
|
||||
// 查询指定产线各机架各辊位实时工作绩效(workLength/coilCount/totalWeight)
|
||||
export function getRollPerformance(lineId) {
|
||||
return request({
|
||||
url: '/mes/rollChange/performance',
|
||||
method: 'get'
|
||||
method: 'get',
|
||||
params: { lineId }
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -9,20 +9,21 @@ export function listRollInfo(query) {
|
||||
})
|
||||
}
|
||||
|
||||
// 查询状态统计卡片
|
||||
export function getRollStats() {
|
||||
// 查询状态统计卡片(lineId 为空时统计全部产线)
|
||||
export function getRollStats(lineId) {
|
||||
return request({
|
||||
url: '/mes/rollInfo/stats',
|
||||
method: 'get'
|
||||
method: 'get',
|
||||
params: { lineId }
|
||||
})
|
||||
}
|
||||
|
||||
// 查询轧辊编号下拉(rollType/status 均可为空,不传则不过滤)
|
||||
export function listRollOptions(rollType, status) {
|
||||
// 查询轧辊编号下拉(lineId/rollType/status 均可为空,不传则不过滤)
|
||||
export function listRollOptions(lineId, rollType, status) {
|
||||
return request({
|
||||
url: '/mes/rollInfo/options',
|
||||
method: 'get',
|
||||
params: { rollType, status }
|
||||
params: { lineId, rollType, status }
|
||||
})
|
||||
}
|
||||
|
||||
@@ -68,11 +69,12 @@ export function scrapRollInfo(rollId) {
|
||||
})
|
||||
}
|
||||
|
||||
// 从换辊记录同步在线状态
|
||||
export function syncRollStatus() {
|
||||
// 从换辊记录同步在线状态(lineId 为空时同步全部产线)
|
||||
export function syncRollStatus(lineId) {
|
||||
return request({
|
||||
url: '/mes/rollInfo/syncStatus',
|
||||
method: 'post'
|
||||
method: 'post',
|
||||
params: { lineId }
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询指定机架下批轧辊列表
|
||||
export function listRollStandby(standNo) {
|
||||
// 查询指定产线+机架下批轧辊列表
|
||||
export function listRollStandby(lineId, standNo) {
|
||||
return request({
|
||||
url: '/mes/rollStandby/list',
|
||||
method: 'get',
|
||||
params: { standNo }
|
||||
params: { lineId, standNo }
|
||||
})
|
||||
}
|
||||
|
||||
@@ -43,11 +43,11 @@ export function delRollStandby(standbyId) {
|
||||
})
|
||||
}
|
||||
|
||||
// 清空指定机架全部下批轧辊
|
||||
export function clearRollStandby(standNo) {
|
||||
// 清空指定产线+机架全部下批轧辊
|
||||
export function clearRollStandby(lineId, standNo) {
|
||||
return request({
|
||||
url: '/mes/rollStandby/clear',
|
||||
method: 'delete',
|
||||
params: { standNo }
|
||||
params: { lineId, standNo }
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user