import type { PageParam } from '@/api';

/**
 * 合同
 */
export interface Contract {
  // 合同id
  contractId?: any;
  // 项目id
  projectId?: any;
  // 承租方
  companyId?: any;
  // 出租方
  customerId?: any;
  // 业务负责人
  customerContact?: string;
  // 合同编号
  contactNumber?: string;
  // 签订日期
  signDate?: any;
  // 开始日期
  startDate?: any;
  // 截止日期
  endDate?: any;
  // 合同金额
  contractAmount?: number;
  // 合同约定金额
  contactAgreeAmount?: string;
  // 合同是否已存档
  isInStock?: number;
  // 是否自动结算
  autoSettle?: number;
  // 结算方式
  settleMethod?: any;
  // 跨月结算日期
  extendMonthDate?: number;
  userId?: any;
  projectName?: any;
  customerName?: any;
  companyName?: any;
  totalInvoicingAmount?: any;
  totalIncomeAmount?: any;
  totalReceivableAmount?: any;
  totalSettleAmount?: any;
  payRate?: any;
  remark?: string;
  fileList?: string;

}

/**
 * 合同搜索条件
 */
export interface ContractParam extends PageParam {
  contactNumber?: string;
  projectName?: string;
  createTimeStart?: string;
  createTimeEnd?: string;
  betweenTime?: any;
}

export const ContractSettleMethod = [
  '跨月结算',
  '自然月结算',
  '按日结算',
  '系数结算-跨月',
  '系数结算-自然月',
]
