213 lines
4.7 KiB
TypeScript
213 lines
4.7 KiB
TypeScript
// 供应商年度任务管理dao
|
|
|
|
declare namespace supplierAnnualTaskManage {
|
|
// 基础分页请求参数
|
|
interface BasePageRequest {
|
|
pageNo: number;
|
|
pageSize: number;
|
|
[property: string]: any;
|
|
}
|
|
|
|
// 列表请求参数
|
|
interface TaskListRequest {
|
|
basePageRequest: BasePageRequest;
|
|
[property: string]: any;
|
|
}
|
|
/*
|
|
人员信息
|
|
*/
|
|
interface PersonnelItem {
|
|
id: string;
|
|
name: string;
|
|
userId: string;
|
|
userName: string;
|
|
position: string;
|
|
userDept: string;
|
|
userDeptId: string;
|
|
indicatorIds?: string[];
|
|
isSelected?: boolean;
|
|
}
|
|
/**
|
|
* 供应商项
|
|
*/
|
|
interface SupplierItem {
|
|
id: string; // 供应商ID
|
|
supplierName: string; // 供应商名称
|
|
supplierId?: string; // 供应商ID
|
|
socialCreditCode?: string; // 统一社会信用代码
|
|
category?: string; // 品类
|
|
department?: string; // 准入部门
|
|
evaluatorCount?: number; // 评价人员数量
|
|
evaluators: PersonnelItem[]; // 评价人员列表
|
|
deptName?: string; // 部门名称
|
|
isSelected?: boolean; // 是否可以选中
|
|
orgNameList?: SupplierOrgNameList[],
|
|
// 其他可能的字段
|
|
[key: string]: any;
|
|
}
|
|
// 供应商的组织
|
|
interface SupplierOrgNameList {
|
|
// 准入部门
|
|
deptId: string;
|
|
deptName: string;
|
|
// 准入单位
|
|
orgName: string;
|
|
orgId: string;
|
|
}
|
|
// 列表响应
|
|
interface TaskListResponse {
|
|
code: number;
|
|
data: TaskListData;
|
|
message: string;
|
|
success: boolean;
|
|
[property: string]: any;
|
|
}
|
|
|
|
// 列表数据
|
|
interface TaskListData {
|
|
countId: null;
|
|
current: number;
|
|
hitCount: boolean;
|
|
maxLimit: null;
|
|
optimizeCountSql: boolean;
|
|
orders: any[];
|
|
pages: number;
|
|
records: TaskRecord[];
|
|
searchCount: boolean;
|
|
size: number;
|
|
total: number;
|
|
[property: string]: any;
|
|
}
|
|
|
|
// 任务记录
|
|
interface TaskRecord {
|
|
annualreviewTheme: string;
|
|
basePageRequest: null;
|
|
deptName: string;
|
|
endTime: string;
|
|
id: string;
|
|
startTime: string;
|
|
status: string;
|
|
statusName: string;
|
|
[property: string]: any;
|
|
}
|
|
|
|
// 详情响应
|
|
interface TaskDetailResponse {
|
|
code: number;
|
|
data: TaskDetailData;
|
|
message: string;
|
|
success: boolean;
|
|
[property: string]: any;
|
|
}
|
|
|
|
// 详情数据
|
|
interface TaskDetailData {
|
|
annualreviewTheme: string;
|
|
annualreviewYear: null;
|
|
blackSupplierVos: BlackSupplierVo[];
|
|
categoryId: string;
|
|
categoryLimitation: string;
|
|
createBy: null;
|
|
createDate: null;
|
|
createTime: null;
|
|
deleteFlag: null;
|
|
delFlag: string;
|
|
deptId: null;
|
|
endTime: string;
|
|
id: string;
|
|
lastUpdateTime: null;
|
|
remark: null;
|
|
startTime: string;
|
|
status: string;
|
|
supplierPeopleVo: SupplierPeopleVo[];
|
|
templateId: string;
|
|
tenantId: null;
|
|
tenantName: null;
|
|
updateBy: null;
|
|
updateDate: null;
|
|
updateTime: null;
|
|
userList: TaskUserList[];
|
|
[property: string]: any;
|
|
}
|
|
|
|
// 黑名单供应商数据
|
|
interface BlackSupplierVo {
|
|
basePageRequest: null;
|
|
categoryName: null;
|
|
createTime: null;
|
|
deptName: string;
|
|
evaluateTime: null;
|
|
socialCreditCode: null | string;
|
|
supplierId: string;
|
|
supplierName: string;
|
|
themeName: null;
|
|
userList: BlackSupplierVoUserList[];
|
|
[property: string]: any;
|
|
}
|
|
|
|
// 黑名单供应商用户列表
|
|
interface BlackSupplierVoUserList {
|
|
id: string;
|
|
name: string;
|
|
position: null;
|
|
selected: null;
|
|
userDept: string;
|
|
userDeptId: string;
|
|
[property: string]: any;
|
|
}
|
|
|
|
// 供应商人员
|
|
interface SupplierPeopleVo {
|
|
suppliedId: string;
|
|
userIds: string[];
|
|
[property: string]: any;
|
|
}
|
|
|
|
// 详情用户列表
|
|
interface TaskUserList {
|
|
isSelected: boolean;
|
|
userDept: string;
|
|
userDeptId: string;
|
|
userId: string;
|
|
userName: string;
|
|
[property: string]: any;
|
|
}
|
|
|
|
// 添加任务请求
|
|
interface AddTaskRequest {
|
|
annualreviewTheme: string;
|
|
annualreviewYear: string;
|
|
categoryId: string;
|
|
categoryLimitation: string;
|
|
endTime: string;
|
|
startTime: string;
|
|
supplierPeopleVo: SupplierPeopleVo[];
|
|
templateId: string;
|
|
[property: string]: any;
|
|
}
|
|
|
|
// 更新任务请求
|
|
interface UpdateTaskRequest {
|
|
annualreviewTheme: string;
|
|
annualreviewYear: string;
|
|
categoryId: string;
|
|
categoryLimitation: string;
|
|
endTime: string;
|
|
id: string;
|
|
startTime: string;
|
|
supplierPeopleVo: SupplierPeopleVo[];
|
|
templateId: string;
|
|
[property: string]: any;
|
|
}
|
|
|
|
// 通用API响应
|
|
interface ApiResponse<T = any> {
|
|
code: number;
|
|
data: T;
|
|
message: string;
|
|
success: boolean;
|
|
[property: string]: any;
|
|
}
|
|
}
|