流程信息

This commit is contained in:
2025-12-26 18:13:42 +08:00
parent e8e6778d08
commit d8785fe915
20 changed files with 2493 additions and 159 deletions

View File

@@ -13,9 +13,15 @@ definePage({
// 状态标签
const tabs = [
{ label: '全部', value: '' },
{ label: '待处理', value: LoanStatus.SUBMITTED }, // 包含提交/受理等
{ label: '新申请', value: LoanStatus.SUBMITTED },
{ label: '已受理', value: LoanStatus.ACCEPTED },
{ label: '调查中', value: LoanStatus.INVESTIGATING },
{ label: '待审批', value: LoanStatus.REPORTED },
{ label: '已通过', value: LoanStatus.APPROVED },
{ label: '已拒绝', value: LoanStatus.REJECTED },
{ label: '已签约', value: LoanStatus.SIGNED },
{ label: '已放款', value: LoanStatus.DISBURSED },
{ label: '驳回要求补充', value: LoanStatus.PENDING_SUPPLEMENT },
]
const activeTab = ref('')
@@ -32,15 +38,22 @@ const statusMap: Record<string, { text: string; color: string; bgColor: string }
[LoanStatus.REJECTED]: { text: '已拒绝', color: '#fa4350', bgColor: 'rgba(250, 67, 80, 0.1)' },
[LoanStatus.SIGNED]: { text: '已签约', color: '#00c05a', bgColor: 'rgba(0, 192, 90, 0.1)' },
[LoanStatus.DISBURSED]: { text: '已放款', color: '#00c05a', bgColor: 'rgba(0, 192, 90, 0.1)' },
[LoanStatus.PENDING_SUPPLEMENT]: { text: '驳回要求补充', color: '#fa4350', bgColor: 'rgba(250, 67, 80, 0.1)' },
}
async function loadData() {
loading.value = true
try {
const res = await getLoanApplicationList({
const params = {
status: activeTab.value || undefined,
keyword: keyword.value
})
}
console.log('loadData - 请求参数:', params)
console.log('loadData - activeTab.value:', activeTab.value)
const res = await getLoanApplicationList(params)
console.log('loadData - 返回结果:', res)
list.value = res.list
} finally {
loading.value = false
@@ -190,11 +203,20 @@ onPullDownRefresh(() => {
.tabs {
display: flex;
justify-content: space-around;
overflow-x: auto;
overflow-y: hidden;
white-space: nowrap;
border-bottom: 1rpx solid #f1f3f5;
-webkit-overflow-scrolling: touch;
/* 隐藏滚动条 */
&::-webkit-scrollbar {
display: none;
}
.tab-item {
padding: 20rpx 0;
flex-shrink: 0;
padding: 20rpx 24rpx;
font-size: 28rpx;
color: #495057;
position: relative;
@@ -206,8 +228,9 @@ onPullDownRefresh(() => {
.line {
position: absolute;
bottom: 0;
left: 0;
right: 0;
left: 50%;
transform: translateX(-50%);
width: 40rpx;
height: 6rpx;
background: #00c05a;
border-radius: 3rpx;