181 lines
5.3 KiB
TypeScript
181 lines
5.3 KiB
TypeScript
import type {
|
|
BankStats,
|
|
AuditItem,
|
|
BankCustomer,
|
|
WithdrawAuditDetail,
|
|
VisitPlan,
|
|
MarketingProduct
|
|
} from '@/typings/bank'
|
|
import { AuditStatus, AuditType, VisitStatus } from '@/typings/bank'
|
|
export { mockReportList, reportCategoryInfo } from './report'
|
|
|
|
// 统计数据 Mock
|
|
export const mockBankStats: BankStats = {
|
|
pendingAuditStore: 5,
|
|
pendingAuditWithdraw: 12,
|
|
todayApprovedCount: 8,
|
|
totalLoanAmount: 12850000.00,
|
|
activeCustomerCount: 156
|
|
}
|
|
|
|
// 审核记录 Mock
|
|
export const mockAuditList: AuditItem[] = [
|
|
{
|
|
id: 'W001',
|
|
merchantId: 'M1001',
|
|
merchantName: '广州酷玩玩具城',
|
|
type: AuditType.WITHDRAW,
|
|
amount: 5000.00,
|
|
status: AuditStatus.PENDING,
|
|
applyTime: '2024-12-19 10:30:00',
|
|
remark: '年终结算提现'
|
|
},
|
|
{
|
|
id: 'W002',
|
|
merchantId: 'M1002',
|
|
merchantName: '深圳特粉专卖店',
|
|
type: AuditType.WITHDRAW,
|
|
amount: 12800.00,
|
|
status: AuditStatus.PENDING,
|
|
applyTime: '2024-12-19 09:15:00'
|
|
},
|
|
{
|
|
id: 'C001',
|
|
merchantId: 'M1003',
|
|
merchantName: '珠海智悦贸易有限公司',
|
|
type: AuditType.CREDIT,
|
|
amount: 500000.00,
|
|
status: AuditStatus.PENDING,
|
|
applyTime: '2024-12-18 16:45:00',
|
|
remark: '扩大经营,申请提高授信额度'
|
|
}
|
|
]
|
|
|
|
// 客户列表 Mock
|
|
export const mockCustomerList: BankCustomer[] = [
|
|
{
|
|
id: 'C1001',
|
|
merchantId: 'M1001',
|
|
merchantName: '张三', // 模拟个人客户
|
|
creditLimit: 500000.00,
|
|
usedLimit: 125000.00,
|
|
balance: 375000.00,
|
|
status: 'normal',
|
|
contactName: '张三',
|
|
contactPhone: '138****8888',
|
|
joinTime: '2024-05-20'
|
|
},
|
|
{
|
|
id: 'C1002',
|
|
merchantId: 'M1002',
|
|
merchantName: '李四', // 模拟个人客户
|
|
creditLimit: 200000.00,
|
|
usedLimit: 180000.00,
|
|
balance: 20000.00,
|
|
status: 'warning',
|
|
contactName: '李四',
|
|
contactPhone: '139****9999',
|
|
joinTime: '2024-06-15'
|
|
}
|
|
]
|
|
|
|
// 审核详情 Mock
|
|
export function getMockWithdrawDetail(id: string): WithdrawAuditDetail {
|
|
return {
|
|
id,
|
|
merchantId: 'M1001',
|
|
merchantName: '广州酷玩玩具城',
|
|
type: AuditType.WITHDRAW,
|
|
amount: 5000.00,
|
|
status: AuditStatus.PENDING,
|
|
applyTime: '2024-12-19 10:30:00',
|
|
bankName: '中国工商银行',
|
|
bankAccount: '6222 **** **** 8888',
|
|
memberLevel: 'V3',
|
|
transactionCount: 156,
|
|
remark: '年终结算提现'
|
|
}
|
|
}
|
|
|
|
// 交易流水 Mock
|
|
export const mockTransactions = [
|
|
{ id: 'T001', type: 'income', amount: 500.00, time: '2024-12-19 14:30', title: '商品销售收入-订单#1001' },
|
|
{ id: 'T002', type: 'expend', amount: 200.00, time: '2024-12-19 12:00', title: '退款支出-订单#0998' },
|
|
{ id: 'T003', type: 'income', amount: 1200.00, time: '2024-12-18 18:20', title: '商品销售收入-订单#0999' },
|
|
{ id: 'T004', type: 'withdraw', amount: 5000.00, time: '2024-12-18 10:00', title: '提现申请' },
|
|
{ id: 'T005', type: 'income', amount: 350.50, time: '2024-12-17 15:45', title: '商品销售收入-订单#0997' },
|
|
]
|
|
|
|
// 提现记录 Mock (复用 AuditItem 结构部分字段或定义新结构,这里简化复用)
|
|
export const mockWithdrawHistory = [
|
|
{ id: 'W001', amount: 5000.00, status: AuditStatus.PENDING, time: '2024-12-19 10:30', bank: '工商银行(8888)' },
|
|
{ id: 'W005', amount: 10000.00, status: AuditStatus.APPROVED, time: '2024-12-01 09:00', bank: '工商银行(8888)' },
|
|
{ id: 'W008', amount: 2000.00, status: AuditStatus.REJECTED, time: '2024-11-20 16:20', bank: '工商银行(8888)', reason: '账户信息有误' },
|
|
]
|
|
|
|
// 营销产品 Mock
|
|
export const mockMarketingProducts: MarketingProduct[] = [
|
|
{ id: 'P001', name: '公司理财', type: 'credit' },
|
|
{ id: 'P002', name: '公司贷款', type: 'loan' },
|
|
{ id: 'P003', name: '信用卡', type: 'credit' },
|
|
{ id: 'P004', name: '结算服务', type: 'settlement' },
|
|
{ id: 'P005', name: '企业网银', type: 'other' },
|
|
]
|
|
|
|
// 拜访计划 Mock
|
|
export const mockVisitPlans: VisitPlan[] = [
|
|
{
|
|
id: 'V001',
|
|
customerId: 'C1001',
|
|
customerName: '张三',
|
|
date: '2025-12-26',
|
|
location: '',
|
|
latitude: undefined,
|
|
longitude: undefined,
|
|
products: [
|
|
{ id: 'P001', name: '公司理财', type: 'credit' },
|
|
{ id: 'P002', name: '公司贷款', type: 'loan' }
|
|
],
|
|
topic: '推广公司理财和贷款产品',
|
|
remark: '客户对理财产品感兴趣,需要详细介绍',
|
|
photos: [],
|
|
status: VisitStatus.PENDING,
|
|
createdAt: '2025-12-25 10:00:00',
|
|
updatedAt: '2025-12-25 10:00:00'
|
|
},
|
|
{
|
|
id: 'V002',
|
|
customerId: 'C1002',
|
|
customerName: '李四',
|
|
date: '2025-12-24',
|
|
location: '广东省茂名市',
|
|
latitude: 21.6630,
|
|
longitude: 110.9250,
|
|
products: [
|
|
{ id: 'P003', name: '信用卡', type: 'credit' }
|
|
],
|
|
topic: '信用卡业务推广',
|
|
remark: '客户已有信用卡,考虑升级',
|
|
photos: ['/static/images/visit2.jpg', '/static/images/visit3.jpg'],
|
|
status: VisitStatus.COMPLETED,
|
|
createdAt: '2025-12-23 15:30:00',
|
|
updatedAt: '2025-12-24 18:00:00'
|
|
},
|
|
{
|
|
id: 'V003',
|
|
customerId: 'C1001',
|
|
customerName: '张三',
|
|
date: '2025-12-20',
|
|
location: '',
|
|
latitude: undefined,
|
|
longitude: undefined,
|
|
products: [],
|
|
topic: '客户回访',
|
|
remark: '因客户临时有事,拜访取消',
|
|
photos: [],
|
|
status: VisitStatus.CANCELLED,
|
|
createdAt: '2025-12-19 09:00:00',
|
|
updatedAt: '2025-12-20 10:00:00'
|
|
}
|
|
]
|