提交酸扎串联内容以及磨辊间

This commit is contained in:
2026-05-09 16:44:39 +08:00
parent 43fb05291e
commit 41d561f2f6
21 changed files with 1747 additions and 1 deletions

View File

@@ -48,3 +48,38 @@ export function getTimingRealtimeData(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 getRollHistoryCount(rollId, standId) {
return request({
url: '/sql-server-api/rolls/history/count',
method: 'get',
params: { rollId, standId }
})
}

View File

@@ -0,0 +1,26 @@
import request from '@/utils/request'
// 查询轧辊磨削记录列表
export function listRollGrind(rollId) {
return request({ url: '/mes/rollGrind/list', method: 'get', params: { rollId } })
}
// 查询月度汇总
export function getMonthlyStats(rollId, year) {
return request({ url: '/mes/rollGrind/monthlyStats', method: 'get', params: { rollId, year } })
}
// 新增磨削记录
export function addRollGrind(data) {
return request({ url: '/mes/rollGrind', method: 'post', data })
}
// 修改磨削记录
export function updateRollGrind(data) {
return request({ url: '/mes/rollGrind', method: 'put', data })
}
// 删除磨削记录
export function delRollGrind(grindId) {
return request({ url: '/mes/rollGrind/' + grindId, method: 'delete' })
}