Files
klp-oa/klp-ui/src/api/wms/materialWarning.js

63 lines
1.5 KiB
JavaScript
Raw Normal View History

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'
})
}