提交一下 换git仓库了

This commit is contained in:
linxd
2025-06-23 21:39:51 +08:00
parent 9eb1bed092
commit c74aefb93d
11 changed files with 741 additions and 672 deletions

143
src/typings.d.ts vendored
View File

@ -108,12 +108,17 @@ declare namespace SupplierEvaluate {
createTime: string;
updateBy?: string;
updateTime?: string;
// 接口返回的字段
evaluateTheme?: string;
statusName?: string;
tenantName?: string;
};
type TaskSearchParams = {
taskName?: string;
status?: string;
dateRange?: string[];
evaluateTheme?: string;
};
// 评价结果相关类型
@ -365,6 +370,144 @@ declare namespace SupplierEvaluate {
templateType: string;
[property: string]: any;
}
// 评价任务请求和响应类型
interface BasePageRequest {
pageNo: number;
pageSize: number;
[property: string]: any;
}
interface TaskRequest {
basePageRequest: BasePageRequest;
isAnswer?: number;
[property: string]: any;
}
interface TaskResponse {
code: number;
data: {
countId: null;
current: number;
hitCount: boolean;
maxLimit: null;
optimizeCountSql: boolean;
orders: string[];
pages: number;
records: {
basePageRequest?: null;
endTime?: string;
evaluateTheme?: string;
id?: string;
startTime?: string;
status?: string;
statusName?: string;
tenantName?: string;
[property: string]: any;
}[];
searchCount: boolean;
size: number;
total: number;
[property: string]: any;
};
message: string;
success: boolean;
[property: string]: any;
}
// 评价任务新增接口类型
interface TaskIndicatorList {
/**
* 指标id集合
*/
indicatorIds?: string[];
/**
* 评价类型(0 按评价单 1 按指标)
*/
type: number;
/**
* 用户id
*/
userId: string;
[property: string]: any;
}
interface TaskSupplierId {
/**
* 供应商id
*/
id: string;
/**
* 用户集合
*/
userIds: string[];
[property: string]: any;
}
interface TaskDeptWeight {
/**
* 权重分配部门
*/
weightDept?: string;
/**
* 权重比例值
*/
weightValue?: string;
[property: string]: any;
}
interface TaskAddRequest {
/**
* 品类限制类型0.通用不限品类、1.限制品类)
*/
categoryLimitation: string;
/**
* 评价结束时间
*/
endTime: string;
/**
* 评价主题
*/
evaluateTheme: string;
/**
* 评价年度
*/
evaluateYear: string;
/**
* 指标分配列表
*/
indicatorList: TaskIndicatorList[];
/**
* 评价开始时间
*/
startTime: string;
/**
* 供应商列表
*/
supplierIds: TaskSupplierId[];
/**
* 部门权重列表
*/
taskDeptWeightList: TaskDeptWeight[];
/**
* 评价表模板id(cosco_evaluate_template表主键)
*/
templateId: string;
/**
* 权重启用状态(0.不启用、1.启用)
*/
weightStatus: number;
[property: string]: any;
}
interface TaskUpdateRequest {
id: string;
evaluateTheme: string;
templateId: string;
startTime: string;
endTime: string;
[property: string]: any;
}
}
declare module '*.css';