Merge branch '0.8.X' of http://49.232.154.205:10100/DeXun/klp-oa into 0.8.X
This commit is contained in:
53
klp-ui/src/api/wms/category.js
Normal file
53
klp-ui/src/api/wms/category.js
Normal file
@@ -0,0 +1,53 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询通用分类列表
|
||||
export function listCategory(query) {
|
||||
return request({
|
||||
url: '/wms/category/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询通用分类详细
|
||||
export function getCategory(categoryId) {
|
||||
return request({
|
||||
url: '/wms/category/' + categoryId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增通用分类
|
||||
export function addCategory(data) {
|
||||
return request({
|
||||
url: '/wms/category',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改通用分类
|
||||
export function updateCategory(data) {
|
||||
return request({
|
||||
url: '/wms/category',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除通用分类
|
||||
export function delCategory(categoryId) {
|
||||
return request({
|
||||
url: '/wms/category/' + categoryId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 导出通用分类
|
||||
export function exportCategory(query) {
|
||||
return request({
|
||||
url: '/wms/category/export',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user