/** 支付记录(小程序合并付款提交汇款凭证,后台审核) */ export default interface IPayment { id?: number; payment_no?: string; store_id?: number; /** 支付金额(= 关联账单总金额合计) */ amount?: string; /** 支付方式:1微信 2支付宝 3对公汇款 */ pay_method?: number; /** 汇款凭证图片ID列表 */ voucher_ids?: number[]; /** 凭证图片URL列表(详情接口解析) */ voucher_urls?: string[]; /** 状态:0待审核 1已通过 2已拒绝 */ status?: number; /** 门店备注 */ remark?: string; audited_at?: string | null; auditor_id?: number; audit_remark?: string; created_at?: string; /** 列表/详情接口附带 */ store?: { id: number; name: string; contact?: string; phone?: string } | null; auditor?: { id: number; nickname: string } | null; bills_count?: number; } /** 支付记录关联账单(合并付款) */ export interface IPaymentBill { id: number; bill_no: string; bill_date: string; product_amount: string; delivery_fee: string; added_amount: string; total_amount: string; /** 0未支付 1已支付 */ status: number; } /** 支付记录详情 */ export interface IPaymentDetail { payment: IPayment; bills: IPaymentBill[]; } /** 支付方式映射 */ export const PAY_METHOD_MAP: Record = { 1: { text: '微信支付', color: 'green' }, 2: { text: '支付宝', color: 'blue' }, 3: { text: '对公汇款', color: 'purple' }, }; /** 支付记录状态映射 */ export const PAYMENT_STATUS_MAP: Record = { 0: { text: '待审核', color: 'warning' }, 1: { text: '已通过', color: 'success' }, 2: { text: '已拒绝', color: 'error' }, };