开发供应商评价模块
This commit is contained in:
150
src/typings.d.ts
vendored
150
src/typings.d.ts
vendored
@ -43,3 +43,153 @@ declare const REACT_APP_ENV: 'test' | 'dev' | 'pre' | false;
|
||||
|
||||
declare const REQUEST_BASE: string;
|
||||
declare const UPLOAD_URL: string;
|
||||
|
||||
declare namespace API {
|
||||
// ... 其他类型定义
|
||||
|
||||
// 通用响应类型
|
||||
type Result<T = any> = {
|
||||
code: number;
|
||||
msg: string;
|
||||
data: T;
|
||||
};
|
||||
|
||||
// 分页查询参数
|
||||
type PageParams = {
|
||||
current?: number;
|
||||
pageSize?: number;
|
||||
};
|
||||
|
||||
// 分页响应数据
|
||||
type PageResult<T = any> = {
|
||||
list: T[];
|
||||
pagination: {
|
||||
total: number;
|
||||
pageSize: number;
|
||||
current: number;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
declare namespace SupplierEvaluate {
|
||||
// 模板管理相关类型
|
||||
type TemplateRecord = {
|
||||
id: string;
|
||||
key: string;
|
||||
templateName: string;
|
||||
templateCode: string;
|
||||
templateType: string;
|
||||
category: string;
|
||||
status: string;
|
||||
createBy: string;
|
||||
department?: string;
|
||||
createTime: string;
|
||||
updateBy?: string;
|
||||
updateTime?: string;
|
||||
};
|
||||
|
||||
type TemplateSearchParams = {
|
||||
templateName?: string;
|
||||
status?: string;
|
||||
createBy?: string;
|
||||
category?: string;
|
||||
dateRange?: string[];
|
||||
};
|
||||
|
||||
// 任务管理相关类型
|
||||
type TaskRecord = {
|
||||
id: string;
|
||||
key: string;
|
||||
taskName: string;
|
||||
taskCode: string;
|
||||
taskType: string;
|
||||
templateName: string;
|
||||
status: string;
|
||||
startTime: string;
|
||||
endTime: string;
|
||||
createBy: string;
|
||||
createTime: string;
|
||||
updateBy?: string;
|
||||
updateTime?: string;
|
||||
};
|
||||
|
||||
type TaskSearchParams = {
|
||||
taskName?: string;
|
||||
status?: string;
|
||||
dateRange?: string[];
|
||||
};
|
||||
|
||||
// 评价结果相关类型
|
||||
type EvaluateResultRecord = {
|
||||
id: string;
|
||||
key: string;
|
||||
taskName: string;
|
||||
taskCode: string;
|
||||
taskType: string;
|
||||
status: string;
|
||||
startTime: string;
|
||||
endTime: string;
|
||||
createBy: string;
|
||||
createTime: string;
|
||||
updateBy?: string;
|
||||
updateTime?: string;
|
||||
supplierCount?: number;
|
||||
approvalStatus?: string;
|
||||
};
|
||||
|
||||
type EvaluateResultSearchParams = {
|
||||
taskName?: string;
|
||||
status?: string;
|
||||
approvalStatus?: string;
|
||||
dateRange?: string[];
|
||||
};
|
||||
|
||||
// 评价结果详情相关类型
|
||||
type EvaluateResultDetailRecord = {
|
||||
id: string;
|
||||
key: string;
|
||||
supplierName: string;
|
||||
category: string;
|
||||
score: number;
|
||||
level: string;
|
||||
};
|
||||
|
||||
type EvaluateResultDetailSearchParams = {
|
||||
supplierName?: string;
|
||||
level?: string;
|
||||
};
|
||||
|
||||
// 评价得分明细相关类型
|
||||
type ScoreDetailItem = {
|
||||
key: string;
|
||||
index: number;
|
||||
itemName: string;
|
||||
weight: number;
|
||||
score: number;
|
||||
weightedScore: number;
|
||||
remark?: string;
|
||||
};
|
||||
}
|
||||
|
||||
declare module '*.css';
|
||||
declare module '*.less';
|
||||
declare module '*.png';
|
||||
declare module '*.jpg';
|
||||
declare module '*.jpeg';
|
||||
declare module '*.gif';
|
||||
declare module '*.bmp';
|
||||
declare module '*.tiff';
|
||||
declare module '*.svg' {
|
||||
export function ReactComponent(props: React.SVGProps<SVGSVGElement>): React.ReactElement;
|
||||
const url: string;
|
||||
export default url;
|
||||
}
|
||||
|
||||
declare module 'slash2';
|
||||
declare module '*.json';
|
||||
declare module 'react-copy-to-clipboard';
|
||||
declare module 'react-fittext';
|
||||
declare module '@antv/data-set';
|
||||
declare module 'nzh/cn';
|
||||
declare module 'webpack-theme-color-replacer';
|
||||
declare module 'webpack-theme-color-replacer/client';
|
||||
|
Reference in New Issue
Block a user