Files
klp-oa/klp-ui/src/api/l2/timing.js
砂糖 f102ef350b fix(wms/coil/info): 修复生产数据加载依赖字段错误的问题
调整生产数据加载逻辑,先通过热轧卷号查询计划详情获取卷号,再调用时序数据接口,修复直接使用当前卷号可能取不到数据的问题
2026-05-11 15:03:32 +08:00

120 lines
2.8 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'
})
}
export function getTimingSegByHotcoilId(encoilId) {
return request({
url: '/sql-server-api/seg-by-hotcoil/' + encoilId,
method: 'get'
})
}
// 根据热卷好查询计划详情
export function getTimingPlanDetailByHotcoilId(hotcoilId) {
return request({
url: '/sql-server-api/plans-by-hotcoil/' + hotcoilId,
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 }
})
}