/**
 * 背调执行记录（候选人）相关类型定义
 */

export interface CompanyInfo {
  id: number;
  name: string;
  status: string;
}

export interface BackRecordVO {
  id: string | number;
  orderId: string | number;
  candidateId: string | number;
  status: string;
  reportStatus?: number;
  reportUrl?: string;
  finishTime?: string;
  createTime?: string;
  studentNo?: string;
  studentName?: string;
  studentMobile?: string;
  studentIdCard?: string;
  studentGender?: string;
  studentStatus?: string;
  studentUserType?: string;
  companies?: CompanyInfo[];
}

export interface BackRecordQuery {
  orderId: string | number;
  status?: string;
  pageNum: number;
  pageSize: number;
}

export interface TableDataInfo<T> {
  total: number;
  rows: T[];
  code: number;
  msg: string;
}

/**
 * 背调报告访谈记录
 */
export interface InterviewVO {
  id?: string | number;
  intervieweeName?: string;
  intervieweeRelation?: string;
  intervieweeContact?: string;
  qa1?: string;
  qa2?: string;
  qa3?: string;
  qa4?: string;
  qa5?: string;
}

/**
 * 背调报告详情
 */
export interface BackCheckReportVO {
  /** 报告状态: 0待填写,1已出具,2已审核,3已拒绝 */
  reportStatus?: number;
  candidateName?: string;
  applyPosition?: string;
  checkTime?: string;

  gradSchool?: string;
  eduCertNo?: string;
  eduVerifyStatus?: string;
  eduCheckResult?: string;

  companyName?: string;
  workStartTime?: string;
  workEndTime?: string;
  jobTitle?: string;
  lastSalary?: string;
  leaveReasonVerify?: string;
  companyCheckRemark?: string;
  companyCheckResult?: string;

  leaderEvalAdvantage?: string;
  leaderEvalImprove?: string;
  leaderEvalProf?: string;
  leaderEvalAttitude?: string;
  leaderEvalTeam?: string;
  leaderEvalMorals?: string;

  colleagueEvalTeamwork?: string;
  colleagueEvalProf?: string;

  hrEvalDispute?: string;
  hrEvalTransfer?: string;
  performCheckRemark?: string;
  performCheckResult?: string;

  hasNonCompete?: number;
  hasNda?: number;
  agreementRemark?: string;
  hasDispute?: number;
  disputeRemark?: string;

  conclusion?: string;
  conclusionReason?: string;
  investigatorName?: string;
  investigatorDate?: string;

  interviews?: InterviewVO[];
}
