104 lines
2.4 KiB
JavaScript
104 lines
2.4 KiB
JavaScript
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 }
|
||
})
|
||
}
|