Files
klp-oa/klp-ui/src/api/wms/dept.js
砂糖 dabcc61174 feat(wms): 新增部门管理模块并重构审批流程
- 新增部门管理模块,包括部门树形结构的增删改查功能
- 重构审批流程,使用任务审批模式替代原有简单审批
- 调整请假和外出申请页面,适配新的审批流程
- 移除不必要的审批部门显示和申请类型筛选
- 更新状态显示逻辑,支持多级审批状态展示
2026-03-02 15:58:15 +08:00

45 lines
849 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import request from '@/utils/request'
// 查询WMS系统部门树形结构列表
export function listDept(query) {
return request({
url: '/wms/dept/list',
method: 'get',
params: query
})
}
// 查询WMS系统部门树形结构详细
export function getDept(deptId) {
return request({
url: '/wms/dept/' + deptId,
method: 'get'
})
}
// 新增WMS系统部门树形结构
export function addDept(data) {
return request({
url: '/wms/dept',
method: 'post',
data: data
})
}
// 修改WMS系统部门树形结构
export function updateDept(data) {
return request({
url: '/wms/dept',
method: 'put',
data: data
})
}
// 删除WMS系统部门树形结构
export function delDept(deptId) {
return request({
url: '/wms/dept/' + deptId,
method: 'delete'
})
}