feat(wms/report): 新增报表配置动态加载功能,替换本地静态配置
1. 新增wms报表通用配置的CRUD接口文件 2. 替换所有酸轧报表页面的本地静态配置为从后台接口动态获取 3. 添加加载状态提示,优化页面初始加载体验
This commit is contained in:
44
klp-ui/src/api/wms/reportConfig.js
Normal file
44
klp-ui/src/api/wms/reportConfig.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询WMS报通用配置列表
|
||||
export function listReportConfig(query) {
|
||||
return request({
|
||||
url: '/wms/reportConfig/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询WMS报通用配置详细
|
||||
export function getReportConfig(configId) {
|
||||
return request({
|
||||
url: '/wms/reportConfig/' + configId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增WMS报通用配置
|
||||
export function addReportConfig(data) {
|
||||
return request({
|
||||
url: '/wms/reportConfig',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改WMS报通用配置
|
||||
export function updateReportConfig(data) {
|
||||
return request({
|
||||
url: '/wms/reportConfig',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除WMS报通用配置
|
||||
export function delReportConfig(configId) {
|
||||
return request({
|
||||
url: '/wms/reportConfig/' + configId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user