完成评查点分组的增删改
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
/**
|
||||
* 文件类型枚举
|
||||
*/
|
||||
export enum FileType {
|
||||
CONTRACT = "contract",
|
||||
LICENSE = "license",
|
||||
PUNISHMENT = "punishment",
|
||||
OTHER = "other"
|
||||
}
|
||||
|
||||
/**
|
||||
* 处理状态枚举
|
||||
*/
|
||||
export enum ProcessingStatus {
|
||||
WAITING = "waiting",
|
||||
PROCESSING = "processing",
|
||||
SUCCESS = "success",
|
||||
ERROR = "error"
|
||||
}
|
||||
|
||||
/**
|
||||
* 优先级枚举
|
||||
*/
|
||||
export enum Priority {
|
||||
NORMAL = "normal",
|
||||
HIGH = "high",
|
||||
URGENT = "urgent"
|
||||
}
|
||||
|
||||
/**
|
||||
* 文件类型标签
|
||||
*/
|
||||
export const FILE_TYPE_LABELS: Record<FileType, string> = {
|
||||
[FileType.CONTRACT]: "合同",
|
||||
[FileType.LICENSE]: "许可证",
|
||||
[FileType.PUNISHMENT]: "处罚",
|
||||
[FileType.OTHER]: "其他"
|
||||
};
|
||||
|
||||
/**
|
||||
* 优先级标签
|
||||
*/
|
||||
export const PRIORITY_LABELS: Record<Priority, string> = {
|
||||
[Priority.NORMAL]: "普通",
|
||||
[Priority.HIGH]: "高",
|
||||
[Priority.URGENT]: "紧急"
|
||||
};
|
||||
@@ -0,0 +1,33 @@
|
||||
import { ProcessingStatus } from './enums';
|
||||
|
||||
/**
|
||||
* 上传文件信息
|
||||
*/
|
||||
export interface UploadedFile {
|
||||
id: string;
|
||||
name: string;
|
||||
size: number;
|
||||
type: string;
|
||||
fileType: string;
|
||||
priority: string;
|
||||
status: ProcessingStatus;
|
||||
uploadTime: string;
|
||||
processingInfo?: {
|
||||
currentStep: number;
|
||||
totalSteps: number;
|
||||
currentStepName: string;
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* 处理步骤信息
|
||||
*/
|
||||
export interface ProcessingStep {
|
||||
id: number;
|
||||
name: string;
|
||||
description: string;
|
||||
status: ProcessingStatus;
|
||||
startTime?: string;
|
||||
endTime?: string;
|
||||
error?: string;
|
||||
}
|
||||
Reference in New Issue
Block a user