Files
klp-oa/klp-ui/src/api/l2/timing.js

86 lines
1.9 KiB
JavaScript
Raw Normal View History

2026-04-27 20:37:59 +08:00
import request from '@/utils/request'
2026-04-25 18:19:29 +08:00
2026-04-27 20:37:59 +08:00
// 计划列表(分页)
export function getTimingPlanList(page = 1, pageSize = 20) {
return request({
url: '/sql-server-api/plans',
method: 'get',
params: { page, pageSize }
2026-04-25 18:19:29 +08:00
})
2026-04-27 20:37:59 +08:00
}
2026-04-25 18:19:29 +08:00
2026-04-27 20:37:59 +08:00
// 计划总数
export function getTimingPlanCount() {
return request({
url: '/sql-server-api/plans/count',
method: 'get'
})
}
2026-04-25 18:19:29 +08:00
2026-04-27 20:37:59 +08:00
// 计划详情
export function getTimingPlanDetail(coilId) {
return request({
url: '/sql-server-api/plans/' + coilId,
method: 'get'
})
}
// 钢卷实际 SEG按入口卷号查询
export function getTimingSegByEncoilId(encoilId) {
return request({
url: '/sql-server-api/seg/' + encoilId,
method: 'get'
})
}
// 钢卷实际 SEG按出口卷号查询
export function getTimingSegByExcoilId(excoilId) {
return request({
url: '/sql-server-api/seg-by-excoil/' + excoilId,
method: 'get'
})
}
// 实时数据Gauge + Shape
export function getTimingRealtimeData(matId) {
return request({
url: '/sql-server-api/realtime/' + matId,
method: 'get'
})
2026-04-25 18:19:29 +08:00
}
// 轧辊数据type/status 可选过滤
export function getRollData(type, status) {
return request({
url: '/sql-server-api/rolls',
method: 'get',
params: { type, status }
})
}
// 换辊历史(按轧辊号,配辊页用)
export function getRollHistory(rollId) {
return request({
url: '/sql-server-api/rolls/' + rollId + '/history',
method: 'get'
})
}
// 换辊历史列表(分页 + 过滤,历史页用)
export function getRollHistoryList(page = 1, pageSize = 50, rollId, standId) {
return request({
url: '/sql-server-api/rolls/history',
method: 'get',
params: { page, pageSize, rollId, standId }
})
}
// 换辊历史总条数
export function getRollHistoryCount(rollId, standId) {
return request({
url: '/sql-server-api/rolls/history/count',
method: 'get',
params: { rollId, standId }
})
}