部门管理新增分包单位选项

This commit is contained in:
Teo
2025-07-18 19:22:36 +08:00
parent d03efb8d6f
commit 5d76471571
17 changed files with 141 additions and 89 deletions

View File

@ -18,6 +18,17 @@ export const getDeptList = () => {
});
};
/**
* 查询分包单位
* @param projectId
*/
export const optionProjectSelect = (projectId: number | string): any => {
return request({
url: '/contractor/contractor/listNoDept/' + projectId,
method: 'get'
});
};
/**
* 通过deptIds查询部门
* @param deptIds

View File

@ -5,7 +5,7 @@ export interface DeptQuery extends PageQuery {
deptName?: string;
deptCategory?: string;
status?: number;
isSubset?: string;
deptType?: string;
isShow?: string;
}
@ -18,6 +18,7 @@ export interface DeptVO extends BaseEntity {
parentId: number | string;
children: DeptVO[];
deptId: number | string;
projectId: number | string;
projectList: any[];
deptName: string;
deptCategory: string;
@ -52,11 +53,13 @@ export interface DeptForm {
children?: DeptForm[];
deptId?: number | string;
projectId?: number | string;
contractorId?: number | string;
rowProjectId?: number | string;
deptName?: string;
deptCategory?: string;
orderNum?: number;
leader?: string;
isSubset?: string;
deptType?: string;
isShow?: string;
phone?: string;
email?: string;

View File

@ -10,10 +10,11 @@ export function getDicts(dictType: string): AxiosPromise<DictDataVO[]> {
}
// 查询字典数据列表
export function listData(query: string): AxiosPromise<DictDataVO[]> {
export function listData(query: DictDataQuery): AxiosPromise<DictDataVO[]> {
return request({
url: '/system/dict/data/type/' + query,
method: 'get'
url: '/system/dict/data/list',
method: 'get',
params: query
});
}