From 7420f1e84595c0a7d5b13effa724bec72f0ebba7 Mon Sep 17 00:00:00 2001 From: tianyongbao Date: Wed, 4 Feb 2026 10:39:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8A=9F=E8=83=BD=E4=BC=98=E5=8C=96?= =?UTF-8?q?=EF=BC=8C=E6=8E=A5=E5=8F=A3=E4=BF=AE=E6=94=B9=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bill/creditInstallmentAnalysis/index.vue | 124 +++++++++++- .../bill/onlineLendAnalysis/index.vue | 183 +++++++++++++++++- .../accounts/accountDealRecord/addEdit.vue | 6 +- .../accounts/creditTransferRecord/addEdit.vue | 4 +- .../accounts/debitTransferRecord/addEdit.vue | 4 +- .../accounts/investAccountDeal/addEdit.vue | 4 +- .../accounts/investTransferRecord/addEdit.vue | 6 +- .../accounts/lendTransferRecord/addEdit.vue | 4 +- .../bill/onlineLendHistory/detailsAddEdit.vue | 11 +- 9 files changed, 316 insertions(+), 30 deletions(-) diff --git a/src/pages/statistic/bill/creditInstallmentAnalysis/index.vue b/src/pages/statistic/bill/creditInstallmentAnalysis/index.vue index 183706d..ae7ef13 100644 --- a/src/pages/statistic/bill/creditInstallmentAnalysis/index.vue +++ b/src/pages/statistic/bill/creditInstallmentAnalysis/index.vue @@ -257,13 +257,40 @@ {{ item.value }}元 - - - - 待还款明细 + + + + + + + {{ detail.bankCardLendName }} + + + + + + + 待还金额 + {{ detail.currentAmount }}元 + + + 本金 + {{ detail.principal }}元 + + + 利息 + {{ detail.interest }}元 + + + - - {{ formatMultiLineData(item.detail) || '-' }} + + + + + + + 暂无还款明细 @@ -1142,6 +1169,91 @@ page { .item-body { padding: 24rpx; + .detail-item { + padding: 20rpx; + margin-bottom: 16rpx; + background: #f8f9fb; + border-radius: 12rpx; + border-left: 4rpx solid #667eea; + + &:last-child { + margin-bottom: 0; + } + + .detail-header { + display: flex; + justify-content: space-between; + align-items: center; + margin-bottom: 16rpx; + padding-bottom: 12rpx; + border-bottom: 2rpx solid #e8edf3; + + .bank-name { + display: flex; + align-items: center; + gap: 6rpx; + flex: 1; + + text { + font-size: 28rpx; + color: #2c3e50; + font-weight: 600; + } + } + + .detail-amount { + font-size: 32rpx; + font-weight: 700; + color: #667eea; + } + } + + .detail-info { + + .info-row { + display: flex; + justify-content: space-between; + gap: 8rpx; + + .info-item { + flex: 1; + display: flex; + flex-direction: column; + align-items: center; + padding: 12rpx 8rpx; + background: #ffffff; + border-radius: 8rpx; + + .info-label { + font-size: 22rpx; + color: #909399; + margin-bottom: 4rpx; + } + + .info-value { + font-size: 26rpx; + color: #303133; + font-weight: 600; + } + } + } + } + } + + .empty-detail { + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + padding: 60rpx 0; + + text { + margin-top: 16rpx; + font-size: 26rpx; + color: #909399; + } + } + .detail-label { display: flex; align-items: center; diff --git a/src/pages/statistic/bill/onlineLendAnalysis/index.vue b/src/pages/statistic/bill/onlineLendAnalysis/index.vue index cf580cf..2c19ccc 100644 --- a/src/pages/statistic/bill/onlineLendAnalysis/index.vue +++ b/src/pages/statistic/bill/onlineLendAnalysis/index.vue @@ -249,22 +249,54 @@ - + {{ item.time }} - 待还款金额: + 合计: {{ item.value }}元 - - - - 待还款明细 + + + + + + + + {{ detail.bankCardLendName }} + + + + + + + + 待还金额 + {{ detail.currentAmount }}元 + + + 本金 + {{ detail.principal }}元 + + + 利息 + {{ detail.interest }}元 + + + - - {{ formatMultiLineData(item.detail) || '-' }} + + + + + + + 暂无还款明细 @@ -636,6 +668,15 @@ function searchSubmit() { }) } + + // 处理还款操作 + function handleRepayment(detail) { + // 跳转到还款明细编辑页面(编辑模式) + uni.navigateTo({ + url: `/pages/work/bill/onlineLendHistory/detailsAddEdit?id=${detail.id}&installmentHistoryId=${detail.id}&name=${encodeURIComponent(detail.bankCardLendName)}` + }) + } + function settingConfirm(e) { queryParams.value.settingId = e.value[0].settingId queryParams.value.settingName = e.value[0].settingName @@ -1067,6 +1108,18 @@ page { .header-left { flex: 1; + .header-title { + display: flex; + align-items: center; + + text { + font-size: 30rpx; + color: #ffffff; + font-weight: 600; + line-height: 1; + } + } + .time-badge { display: inline-flex; align-items: center; @@ -1109,6 +1162,120 @@ page { .item-body { padding: 24rpx; + .detail-item { + padding: 20rpx; + margin-bottom: 16rpx; + background: #f8f9fb; + border-radius: 12rpx; + border-left: 4rpx solid #667eea; + + &:last-child { + margin-bottom: 0; + } + + .detail-header { + display: flex; + justify-content: space-between; + align-items: center; + margin-bottom: 16rpx; + padding-bottom: 12rpx; + border-bottom: 2rpx solid #e8edf3; + + .bank-name { + display: flex; + align-items: center; + gap: 6rpx; + flex: 1; + + text { + font-size: 28rpx; + color: #2c3e50; + font-weight: 600; + } + } + + .repay-btn-small { + display: flex; + align-items: center; + justify-content: center; + gap: 4rpx; + padding: 8rpx 20rpx; + background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); + border-radius: 16rpx; + border: none; + box-shadow: 0 2rpx 8rpx rgba(102, 126, 234, 0.3); + transition: all 0.3s ease; + + &::after { + border: none; + } + + &:active { + transform: scale(0.96); + box-shadow: 0 1rpx 4rpx rgba(102, 126, 234, 0.2); + } + + text { + color: #ffffff; + font-size: 24rpx; + font-weight: 600; + line-height: 1; + } + } + + .detail-amount { + font-size: 32rpx; + font-weight: 700; + color: #667eea; + } + } + + .detail-info { + + .info-row { + display: flex; + justify-content: space-between; + gap: 8rpx; + + .info-item { + flex: 1; + display: flex; + flex-direction: column; + align-items: center; + padding: 12rpx 8rpx; + background: #ffffff; + border-radius: 8rpx; + + .info-label { + font-size: 22rpx; + color: #909399; + margin-bottom: 4rpx; + } + + .info-value { + font-size: 26rpx; + color: #303133; + font-weight: 600; + } + } + } + } + } + + .empty-detail { + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + padding: 60rpx 0; + + text { + margin-top: 16rpx; + font-size: 26rpx; + color: #909399; + } + } + .detail-label { display: flex; align-items: center; diff --git a/src/pages/work/accounts/accountDealRecord/addEdit.vue b/src/pages/work/accounts/accountDealRecord/addEdit.vue index 31fd4ed..d9d0403 100644 --- a/src/pages/work/accounts/accountDealRecord/addEdit.vue +++ b/src/pages/work/accounts/accountDealRecord/addEdit.vue @@ -509,7 +509,7 @@ getDicts('deal_category').then(result => { updateAccountDealRecord(form.value).then(res => { proxy.$refs['uToast'].show({ message: '修改成功', complete() { - uni.navigateTo({ url: `/pages/work/accounts/accountDealRecord/list` }) + uni.navigateBack() } }) }) @@ -518,7 +518,7 @@ getDicts('deal_category').then(result => { addAccountDealRecord(form.value).then(res => { proxy.$refs['uToast'].show({ message: '新增成功', complete() { - uni.navigateTo({ url: `/pages/work/accounts/accountDealRecord/list` }) + uni.navigateBack() } }) }) @@ -527,7 +527,7 @@ getDicts('deal_category').then(result => { addAccountDealRecord(form.value).then(res => { proxy.$refs['uToast'].show({ message: '新增成功', complete() { - uni.navigateTo({ url: `/pages/work/accounts/accountDealRecord/list` }) + uni.navigateBack() } }) }) diff --git a/src/pages/work/accounts/creditTransferRecord/addEdit.vue b/src/pages/work/accounts/creditTransferRecord/addEdit.vue index ecbfc43..3f8c9fc 100644 --- a/src/pages/work/accounts/creditTransferRecord/addEdit.vue +++ b/src/pages/work/accounts/creditTransferRecord/addEdit.vue @@ -281,7 +281,7 @@ function handleCreditCard() { updateAccountsTransferRecord(form.value).then(res => { proxy.$refs['uToast'].show({ message: '修改成功', complete() { - uni.navigateTo({ url: `/pages/work/accounts/creditTransferRecord/list` }) + uni.navigateBack() } }) }) @@ -289,7 +289,7 @@ function handleCreditCard() { addAccountsTransferRecord(form.value).then(res => { proxy.$refs['uToast'].show({ message: '新增成功', complete() { - uni.navigateTo({ url: `/pages/work/accounts/creditTransferRecord/list` }) + uni.navigateBack() } }) }) diff --git a/src/pages/work/accounts/debitTransferRecord/addEdit.vue b/src/pages/work/accounts/debitTransferRecord/addEdit.vue index 97cbf2b..967ee87 100644 --- a/src/pages/work/accounts/debitTransferRecord/addEdit.vue +++ b/src/pages/work/accounts/debitTransferRecord/addEdit.vue @@ -222,7 +222,7 @@ function handleInAccount() { updateAccountsTransferRecord(form.value).then(res => { proxy.$refs['uToast'].show({ message: '修改成功', complete() { - uni.navigateTo({ url: `/pages/work/accounts/debitTransferRecord/list` }) + uni.navigateBack() } }) }) @@ -230,7 +230,7 @@ function handleInAccount() { addAccountsTransferRecord(form.value).then(res => { proxy.$refs['uToast'].show({ message: '新增成功', complete() { - uni.navigateTo({ url: `/pages/work/accounts/debitTransferRecord/list` }) + uni.navigateBack() } }) }) diff --git a/src/pages/work/accounts/investAccountDeal/addEdit.vue b/src/pages/work/accounts/investAccountDeal/addEdit.vue index cc2488d..15660e1 100644 --- a/src/pages/work/accounts/investAccountDeal/addEdit.vue +++ b/src/pages/work/accounts/investAccountDeal/addEdit.vue @@ -273,7 +273,7 @@ onLoad((option) => { updateAccountDealRecord(form.value).then(res => { proxy.$refs['uToast'].show({ message: '修改成功', complete() { - uni.navigateTo({ url: `/pages/work/accounts/investAccountDeal/list` }) + uni.navigateBack() } }) }) @@ -281,7 +281,7 @@ onLoad((option) => { addAccountDealRecord(form.value).then(res => { proxy.$refs['uToast'].show({ message: '新增成功', complete() { - uni.navigateTo({ url: `/pages/work/accounts/investAccountDeal/list` }) + uni.navigateBack() } }) }) diff --git a/src/pages/work/accounts/investTransferRecord/addEdit.vue b/src/pages/work/accounts/investTransferRecord/addEdit.vue index 7fb7f7a..1585dbf 100644 --- a/src/pages/work/accounts/investTransferRecord/addEdit.vue +++ b/src/pages/work/accounts/investTransferRecord/addEdit.vue @@ -222,7 +222,7 @@ onLoad((option) => { updateAccountsTransferRecord(form.value).then(res => { proxy.$refs['uToast'].show({ message: '修改成功', complete() { - uni.navigateTo({ url: `/pages/work/accounts/investTransferRecord/list` }) + uni.navigateBack() } }) }) @@ -231,7 +231,7 @@ onLoad((option) => { addAccountsTransferRecord(form.value).then(res => { proxy.$refs['uToast'].show({ message: '新增成功', complete() { - uni.navigateTo({ url: `/pages/work/accounts/investTransferRecord/list` }) + uni.navigateBack() } }) }) @@ -240,7 +240,7 @@ onLoad((option) => { addAccountsTransferRecord(form.value).then(res => { proxy.$refs['uToast'].show({ message: '新增成功', complete() { - uni.navigateTo({ url: `/pages/work/accounts/investTransferRecord/list` }) + uni.navigateBack() } }) }) diff --git a/src/pages/work/accounts/lendTransferRecord/addEdit.vue b/src/pages/work/accounts/lendTransferRecord/addEdit.vue index 33d54e9..40bf7e2 100644 --- a/src/pages/work/accounts/lendTransferRecord/addEdit.vue +++ b/src/pages/work/accounts/lendTransferRecord/addEdit.vue @@ -296,7 +296,7 @@ function handleInAccount() { updateAccountsTransferRecord(form.value).then(res => { proxy.$refs['uToast'].show({ message: '修改成功', complete() { - uni.navigateTo({ url: `/pages/work/accounts/lendTransferRecord/list` }) + uni.navigateBack() } }) }) @@ -304,7 +304,7 @@ function handleInAccount() { addAccountsTransferRecord(form.value).then(res => { proxy.$refs['uToast'].show({ message: '新增成功', complete() { - uni.navigateTo({ url: `/pages/work/accounts/lendTransferRecord/list` }) + uni.navigateBack() } }) }) diff --git a/src/pages/work/bill/onlineLendHistory/detailsAddEdit.vue b/src/pages/work/bill/onlineLendHistory/detailsAddEdit.vue index 3aef1dd..ac35e1f 100644 --- a/src/pages/work/bill/onlineLendHistory/detailsAddEdit.vue +++ b/src/pages/work/bill/onlineLendHistory/detailsAddEdit.vue @@ -203,8 +203,15 @@ onLoad((option) => { updateInstallmentDetail(form.value).then(res => { proxy.$refs['uToast'].show({ message: '修改成功', complete() { - - uni.navigateTo({ url: `/pages/work/bill/onlineLendHistory/details?id=${form.value.installmentHistoryId}&name=${form.value.bankCardLendName}` }) + uni.navigateBack() + } + }) + }) + } else { + addInstallmentDetail(form.value).then(res => { + proxy.$refs['uToast'].show({ + message: '新增成功', complete() { + uni.navigateBack() } }) })