feat(wms): 新增钢卷通用维度告警管理功能
1. 新增告警信息路由页面与API接口 2. 在导航栏添加告警入口与未读红点提示 3. 实现告警列表查询、处理、忽略、删除与导出功能 4. 每分钟自动刷新告警状态检查
This commit is contained in:
44
klp-ui/src/api/wms/materialWarning.js
Normal file
44
klp-ui/src/api/wms/materialWarning.js
Normal file
@@ -0,0 +1,44 @@
|
||||
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 delMaterialWarning(warningId) {
|
||||
return request({
|
||||
url: '/wms/materialWarning/' + warningId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user