Files
klp-oa/klp-ui/src/api/l2/timing.js
2026-05-09 17:01:23 +08:00

104 lines
2.4 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import request from '@/utils/request'
// 计划列表(分页)
export function getTimingPlanList(page = 1, pageSize = 20) {
return request({
url: '/sql-server-api/plans',
method: 'get',
params: { page, pageSize }
})
}
// 计划总数
export function getTimingPlanCount() {
return request({
url: '/sql-server-api/plans/count',
method: 'get'
})
}
// 计划详情
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'
})
}
// 轧辊数据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 getStoppageList(page = 1, pageSize = 50, { area, stopType, startDate, endDate } = {}) {
return request({
url: '/sql-server-api/stoppages',
method: 'get',
params: { page, pageSize, area, stopType, startDate, endDate }
})
}
// 停机记录总条数
export function getStoppageCount({ area, stopType, startDate, endDate } = {}) {
return request({
url: '/sql-server-api/stoppages/count',
method: 'get',
params: { area, stopType, startDate, endDate }
})
}
// 换辊历史总条数
export function getRollHistoryCount(rollId, standId) {
return request({
url: '/sql-server-api/rolls/history/count',
method: 'get',
params: { rollId, standId }
})
}