// 造价文件信息
export interface ICostInfo {
  constructionName: string;
  constructionID: string;
  orgFee: string; // 原报金额
  conclusionFee: string; // 报审金额
  billCheckPercentOfPass: string; // 清单检测合格率
  isBillCheckPassed: boolean; // 清单检测是否通过（可能是多项目）
  minPassRate: number; // 合格率线
}

export interface ICostInfoFromFormily {
  orgFee: number; // 送审金额
  conclusionFee: number; // 审结金额
  dynamicFee: number; // 动态金额
  provisionalFee: number; // 含预留金
  incFee: number; // 核增金额
  decFee: number; // 核减金额
  incRate: number; // 核增率
  decRate: number; // 核减率
}

export enum ShowBusinessType {
  ALL_BUSINESS = 'allBusiness', // 全部业务
  MY_CREATE_BUSINESS = 'myCreateBusiness', // 我创建的业务
  MY_PARTICIPATE_BUSINESS = 'myParticipateBusiness', // 我参与的业务
  MY_COLLABORATE_BUSINESS = 'myCollaborateBusiness', // 我协审的业务
}

// 业务金额字段枚举
export enum BusinessFee {
  // 送审金额、原报金额
  ORIGINAL = 'orgFee',
  // 审结金额
  CONCLUSION = 'conclusionFee',
  // 审增金额
  INC = 'incFee',
  // 审减金额
  DEC = 'decFee',
  // 动态金额(当前最新金额)
  DYNAMIC = 'dynamicFee',
  // 预留金
  PROVISIONAL = 'provisionalFee',
}

// 业务步骤金额参数
export interface IBusinessProcessFeeParam {
  processID: string;
  feeNames: BusinessFee[];
}

// 业务步骤金额
export interface IBusinessProcessFee {
  orgFee: number;
  conclusionFee: number;
  incFee: number;
  decFee: number;
  incRate: number;
  decRate: number;
}

// 拷贝业务项目列表
export interface ICopyBusinessPrjItem {
  ID: string;
  name: string;
  approval: string;
  status: string;
  institution: string;
  creator: string;
  createDate: string;
  constructions?: {
    ID: string;
    name: string;
  }[];
  children: Partial<ICopyBusinessPrjItem>[];
}
