广丰卷烟厂数采质量分析系统
zhuguifei
2026-03-02 80ff784bf60637cd348ae665fc907f7b1e527dd8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import { request } from '@/service/request';
 
/** 获取部门列表 */
export function fetchGetDeptList(params?: Api.System.DeptSearchParams) {
  return request<Api.System.Dept[]>({
    url: '/system/dept/list',
    method: 'get',
    params
  });
}
/** 获取排除部门列表 */
export function fetchGetExcludeDeptList(deptId?: CommonType.IdType) {
  return request<Api.System.Dept[]>({
    url: `/system/dept/list/exclude/${deptId}`,
    method: 'get'
  });
}
 
/** 新增部门 */
export function fetchCreateDept(data: Api.System.DeptOperateParams) {
  return request<boolean>({
    url: '/system/dept',
    method: 'post',
    data
  });
}
 
/** 修改部门 */
export function fetchUpdateDept(data: Api.System.DeptOperateParams) {
  return request<boolean>({
    url: '/system/dept',
    method: 'put',
    data
  });
}
 
/** 批量删除部门 */
export function fetchBatchDeleteDept(deptIds: CommonType.IdType[]) {
  return request<boolean>({
    url: `/system/dept/${deptIds.join(',')}`,
    method: 'delete'
  });
}
 
/** 获取部门选择框列表 */
export function fetchGetDeptSelect() {
  return request<Api.System.Dept[]>({
    url: '/system/dept/optionselect',
    method: 'get'
  });
}