2026-06-09 13:16:32 +08:00
|
|
|
import request from '@/utils/request'
|
|
|
|
|
|
|
|
|
|
// 查询二级-三级钢卷异常挂接/撤回关系列表
|
|
|
|
|
export function listRelation(query) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/mill/relation/list',
|
|
|
|
|
method: 'get',
|
|
|
|
|
params: query
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 查询二级-三级钢卷异常挂接/撤回关系详细
|
|
|
|
|
export function getRelation(relationId) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/mill/relation/' + relationId,
|
|
|
|
|
method: 'get'
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 新增二级-三级钢卷异常挂接/撤回关系
|
|
|
|
|
export function addRelation(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/mill/relation',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 修改二级-三级钢卷异常挂接/撤回关系
|
|
|
|
|
export function updateRelation(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/mill/relation',
|
|
|
|
|
method: 'put',
|
|
|
|
|
data: data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 删除二级-三级钢卷异常挂接/撤回关系
|
|
|
|
|
export function delRelation(relationId) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/mill/relation/' + relationId,
|
|
|
|
|
method: 'delete'
|
|
|
|
|
})
|
|
|
|
|
}
|
2026-06-09 16:10:28 +08:00
|
|
|
|
|
|
|
|
// 挂接:将二级异常数据新增到三级异常表
|
|
|
|
|
export function bindRelation(secondAbnormalId) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/mill/relation/bind/' + secondAbnormalId,
|
|
|
|
|
method: 'post'
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 撤回:逻辑删除三级异常表中的挂接数据
|
|
|
|
|
export function withdrawRelation(relationId, data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/mill/relation/withdraw/' + relationId,
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
})
|
|
|
|
|
}
|