/** * 商户端财务数据 Mock */ import type { FinanceOverview, Transaction, Settlement, WithdrawRecord, } from '@/typings/merchant' import { TransactionType, SettlementStatus, WithdrawStatus, } from '@/typings/merchant' export const mockFinanceOverview: FinanceOverview = { balance: 125680.50, pendingSettlement: 23500.00, monthIncome: 89600.00, totalIncome: 568900.00, } export const mockTransactions: Transaction[] = [ { id: '1', type: TransactionType.INCOME, amount: 2999.00, balance: 125680.50, orderNo: 'M202312170001', remark: '订单收入', createTime: '2024-12-17 10:31:00', }, { id: '2', type: TransactionType.WITHDRAW, amount: -5000.00, balance: 122681.50, remark: '提现到银行卡', createTime: '2024-12-16 15:00:00', }, { id: '3', type: TransactionType.INCOME, amount: 1590.00, balance: 127681.50, orderNo: 'M202312170002', remark: '订单收入', createTime: '2024-12-17 09:46:00', }, ] export const mockSettlements: Settlement[] = [ { id: '1', settlementNo: 'S202312150001', amount: 35680.00, orderCount: 128, status: SettlementStatus.SETTLED, period: '2024-12-01 ~ 2024-12-15', settledTime: '2024-12-16 10:00:00', createTime: '2024-12-15 23:59:59', }, { id: '2', settlementNo: 'S202312310001', amount: 23500.00, orderCount: 86, status: SettlementStatus.PENDING, period: '2024-12-16 ~ 2024-12-31', createTime: '2024-12-17 00:00:00', }, ] export const mockWithdrawRecords: WithdrawRecord[] = [ { id: '1', amount: 5000.00, bankName: '中国工商银行', bankAccount: '**** **** **** 1234', status: WithdrawStatus.COMPLETED, applyTime: '2024-12-15 10:00:00', completeTime: '2024-12-16 15:00:00', }, { id: '2', amount: 10000.00, bankName: '中国建设银行', bankAccount: '**** **** **** 5678', status: WithdrawStatus.PENDING, applyTime: '2024-12-17 09:00:00', }, ]