export const paymentPlanStatusOptions = [
  { label: '待收', value: '0', elTagType: 'warning' },
  { label: '已收', value: '1', elTagType: 'success' },
  { label: '已作废', value: '4', elTagType: 'info' }
];

export interface PaymentPlanVO {
  id: number | string;
  contractId: number | string;
  installmentNo: number;
  planAmount: number;
  planDate: string;
  paidAmount: number;
  paidDate: string;
  paymentMethod: string;
  status: string;
  remark: string;
}

/** 表单用: 新增/修改合同时携带的计划明细 */
export interface PaymentPlanForm {
  installmentNo: number;
  planAmount: number;
  planDate: string;
}

/** 修改单期计划载荷(匹配后端 EduPaymentPlanBo) */
export interface EduPaymentPlanBoPayload {
  id: number | string;
  planAmount?: number;
  planDate?: string;
  remark?: string;
}

/** 收款确认表单 */
export interface PaymentReceiveForm {
  id: number | string;
  paidAmount: number;
  paymentMethod: string;
  paidDate: string;
  remark?: string;
}
