This commit is contained in:
2025-11-30 00:21:29 +08:00
parent cf843557a6
commit 3be949f95b
7 changed files with 849 additions and 151 deletions

View File

@@ -0,0 +1,141 @@
import { LoanApplicationStatus } from '@/typings/mall'
import type { LoanApplicationRecord } from '@/typings/mall'
/**
* 助贷申请记录模拟数据
*/
export const mockLoanApplicationRecords: LoanApplicationRecord[] = [
{
applicationId: "AP20230815001",
loanType: "ENTERPRISE",
loanTitle: "经营贷",
dateLabel: "申请时间",
dateValue: "2023-08-15",
status: LoanApplicationStatus.PROCESSING,
statusText: "处理中",
progress: {
show: true,
steps: ["提交申请", "资料审核", "风险评估", "审批完成"],
currentStepIndex: 2,
stepStatus: "active"
},
alertInfo: {
show: true,
type: "info",
content: "您的申请正在风控部门审核中预计还需要1-2个工作日完成评估"
},
actions: [
{
code: "VIEW_DETAIL",
text: "查看详情",
style: "primary-blue"
}
]
},
{
applicationId: "AP20230810002",
loanType: "ENTERPRISE",
loanTitle: "经营贷",
dateLabel: "申请时间",
dateValue: "2023-08-10",
status: LoanApplicationStatus.COMPLETED,
statusText: "已完成",
actions: [
{
code: "DOWNLOAD_CONTRACT",
text: "下载合同",
style: "text-link"
},
{
code: "VIEW_RESULT",
text: "查看结果",
style: "primary-green"
}
]
},
{
applicationId: "AP20230805003",
loanType: "REVITALIZATION",
loanTitle: "振兴贷",
dateLabel: "创建时间",
dateValue: "2023-08-05",
status: LoanApplicationStatus.PENDING,
statusText: "待提交",
progress: {
show: true,
steps: ["提交申请", "资料审核", "风险评估", "审批完成"],
currentStepIndex: 0,
stepStatus: "active"
},
alertInfo: {
show: true,
type: "warning",
content: "您的申请资料尚未完整,请尽快完善资料后提交"
},
actions: [
{
code: "DELETE",
text: "删除",
style: "text-link"
},
{
code: "CONTINUE_FILL",
text: "继续填写",
style: "primary-yellow"
}
]
},
{
applicationId: "AP20230728004",
loanType: "HOUSING",
loanTitle: "安居贷",
dateLabel: "申请时间",
dateValue: "2023-07-28",
status: LoanApplicationStatus.PROCESSING,
statusText: "处理中",
progress: {
show: true,
steps: ["提交申请", "资料审核", "风险评估", "审批完成"],
currentStepIndex: 1,
stepStatus: "active"
},
alertInfo: {
show: true,
type: "info",
content: "您的申请已进入资料审核阶段,请耐心等待"
},
actions: [
{
code: "CANCEL",
text: "取消申请",
style: "text-link"
},
{
code: "VIEW_DETAIL",
text: "查看详情",
style: "primary-blue"
}
]
},
{
applicationId: "AP20230720005",
loanType: "ENTERPRISE",
loanTitle: "经营贷",
dateLabel: "申请时间",
dateValue: "2023-07-20",
status: LoanApplicationStatus.COMPLETED,
statusText: "已完成",
actions: [
{
code: "DOWNLOAD_CONTRACT",
text: "下载合同",
style: "text-link"
},
{
code: "VIEW_RESULT",
text: "查看结果",
style: "primary-green"
}
]
}
]