export interface IAuditDetail {
  ID: string;
  name: string;
  parentID: string;
  folder: boolean;
  children?: IAuditDetail[];
  criterion?: string; // 考核标准
  scoringBase?: number;
}

export interface IAuditScore {
  ID: string;
  dataID?: string;
  businessID?: string;
  approvalID: string;
  matterID: string;
  tree: IAuditDetail[];
  remark: string; // 备注
  // 执行人
  personApproving?: {
    name: string;
    executorID: string;
    enable: boolean;
  }[];
  // 评分基数
  scoringBaseSetting?: {
    excellent: number;
    good: number;
    medium: number;
    qualified: number;
    failure: number;
  };
}

export interface IAuditScoreLog {
  ID: string;
  dataID: string; // AuditScore的ID
  auditID: string; // 考核内容的ID
  businessID: string; // 业务的ID
  rateScore: number; // 等级分
  executorID: string; // 打分的角色的id
  name: string; // 考核名称设置
  accountID: string; // 打分的具体账号的id
  createdAt?: number; // 打分时间
  processID: string; // 打分的步骤
}

export interface IAuditScoreRemark {
  ID: string;
  businessID: string;
  matterID: string;
  executorID: string; // 步骤执行者ID
  accountID: string; // 用户ID
  value: string; // 审核文本
  date: number; // 审核日期的时间戳
  dataID: string; // 审核评分组件的ID
  username: string; // 修改人的名称
}
