// 修改类型 export enum ModifyType { FILE = 'file', // 文件 FIELD = 'field', // 字段 COLLABORATOR = 'collaborator', // 协审人 COST_FILE = 'costFile', // 造价文件 } export enum OperateType { MODIFY = '修改', UPLOAD = '上传', DELETE = '删除', RENAME = '重命名', ADD = '添加', EDIT = '编辑', REPORT = '上报', APPROVAL = '审批通过', RETURN = '审批退回', CREATE = '创建', IMPORT = '导入', } export interface IModifyUser { ID: string; name: string; } export interface IModifiedVal { label: string; // 名称 value: string; // 名称对应的值 } export interface IModifyInfo { type: OperateType; // 操作类型 operateTarget: string; // 被操作目标 modifiedVal?: IModifiedVal; // 修改后的值 remark?: string; // 备注,需要的信息可以存在这 } export interface ILogItem { name: string; modifyTime: string | number; modifyType: ModifyType; modifyUser: IModifyUser; info: IModifyInfo; } export interface IProcessLog { ID: string; // log ID businessID: string; // 业务ID processID: string; // 环节ID logs?: ILogItem[]; // logs }