feat(wms): 新增岗位管理与岗位职责管理功能
1. 新增依赖包vis-network用于可视化岗位树 2. 新增岗位相关API接口,包含增删改查功能 3. 新增岗位职责相关API接口,包含增删改查功能 4. 新增岗位管理页面,支持岗位树可视化、岗位CRUD以及关联的岗位职责管理
This commit is contained in:
44
klp-ui/src/api/wms/post.js
Normal file
44
klp-ui/src/api/wms/post.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询岗位列表
|
||||
export function listPost(query) {
|
||||
return request({
|
||||
url: '/wms/post/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询岗位详细
|
||||
export function getPost(postId) {
|
||||
return request({
|
||||
url: '/wms/post/' + postId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增岗位
|
||||
export function addPost(data) {
|
||||
return request({
|
||||
url: '/wms/post',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改岗位
|
||||
export function updatePost(data) {
|
||||
return request({
|
||||
url: '/wms/post',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除岗位
|
||||
export function delPost(postId) {
|
||||
return request({
|
||||
url: '/wms/post/' + postId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
44
klp-ui/src/api/wms/postDuty.js
Normal file
44
klp-ui/src/api/wms/postDuty.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询岗位职责列表
|
||||
export function listPostDuty(query) {
|
||||
return request({
|
||||
url: '/wms/postDuty/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询岗位职责详细
|
||||
export function getPostDuty(dutyId) {
|
||||
return request({
|
||||
url: '/wms/postDuty/' + dutyId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增岗位职责
|
||||
export function addPostDuty(data) {
|
||||
return request({
|
||||
url: '/wms/postDuty',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改岗位职责
|
||||
export function updatePostDuty(data) {
|
||||
return request({
|
||||
url: '/wms/postDuty',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除岗位职责
|
||||
export function delPostDuty(dutyId) {
|
||||
return request({
|
||||
url: '/wms/postDuty/' + dutyId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user