| | |
| | | url: '/system/dept/' + deptId, |
| | | method: 'delete' |
| | | }) |
| | | } |
| | | } |
| | | |
| | | // 按当前登录用户的 OA 权限返回分公司列表 |
| | | export function listBranchByOa() { |
| | | return request({ |
| | | url: '/system/dept/branch/by-oa', |
| | | method: 'get' |
| | | }) |
| | | } |
| | | |
| | | // 按OA订单类别查询分公司列表(别名) |
| | | export function listBranchByOaOrderClass() { |
| | | return request({ |
| | | url: '/system/dept/branch/by-oa', |
| | | method: 'get' |
| | | }) |
| | | } |
| | | |
| | | // 按外部传入的用户ID返回其可管理分公司列表 |
| | | export function listBranchByUser(userId) { |
| | | return request({ |
| | | url: '/system/dept/branch/by-user/' + userId, |
| | | method: 'get' |
| | | }) |
| | | } |
| | | |
| | | // 获取所有分公司列表(parentId=100的部门) |
| | | export function listAllBranches() { |
| | | return request({ |
| | | url: '/system/dept/branch/all', |
| | | method: 'get' |
| | | }) |
| | | } |