Files
klp-oa/klp-ui/src/api/wms/materialWarning.js
砂糖 b43b44d044 feat(wms): 新增钢卷告警历史批量处理功能
新增批量处理历史告警接口,支持将今天以前的告警标记为指定状态,前端添加对应操作按钮,可一键处理或忽略历史告警
2026-06-16 17:02:25 +08:00

63 lines
1.5 KiB
JavaScript

import request from '@/utils/request'
// 查询钢卷通用维度告警(长度/厚度/宽度)列表
export function listMaterialWarning(query) {
return request({
url: '/wms/materialWarning/list',
method: 'get',
params: query
})
}
// 查询钢卷通用维度告警(长度/厚度/宽度)详细
export function getMaterialWarning(warningId) {
return request({
url: '/wms/materialWarning/' + warningId,
method: 'get'
})
}
// 新增钢卷通用维度告警(长度/厚度/宽度)
export function addMaterialWarning(data) {
return request({
url: '/wms/materialWarning',
method: 'post',
data: data
})
}
// 修改钢卷通用维度告警(长度/厚度/宽度)
export function updateMaterialWarning(data) {
return request({
url: '/wms/materialWarning',
method: 'put',
data: data
})
}
// 批量处理钢卷通用维度告警(长度/厚度/宽度)
export function batchHandleMaterial(data) {
return request({
url: '/wms/materialWarning/batchHandle',
method: 'put',
data: data
})
}
// 批量处理历史告警(标记今天以前的所有记录为指定状态)
export function batchHandleHistory(data) {
return request({
url: '/wms/materialWarning/batchHandleHistory',
method: 'put',
data: data
})
}
// 删除钢卷通用维度告警(长度/厚度/宽度)
export function delMaterialWarning(warningId) {
return request({
url: '/wms/materialWarning/' + warningId,
method: 'delete'
})
}