fix: 贷款账单,功能优化。

This commit is contained in:
tianyongbao
2025-10-19 15:06:34 +08:00
parent 6e4437d0cd
commit 8858eb265a
4 changed files with 113 additions and 25 deletions

View File

@@ -13,12 +13,16 @@
<u-list @scrolltolower="loadmore" :spaceHeight="116" lowerThreshold="100">
<u-list-item v-for="(item, index) in listData" :key="index">
<view class="list-item">
<view class="item-row">
<text class="row-label">还款账户</text>
<text class="row-value">{{ item.repaymentAccountName }}</text>
</view>
<view class="item-row">
<text class="row-label">还款日期</text>
<text class="row-value">{{ item.repaymentDate }}</text>
</view>
<view class="item-row">
<text class="row-label">入账状态</text>
<text class="row-label">还款状态</text>
<text class="row-value">{{ dictStr(item.postingState, postingStateList) }}</text>
</view>
<view class="item-row">
@@ -38,8 +42,9 @@
<text class="row-value">{{ item.interest }}</text>
</view>
<view class="operate" >
<view class="btn filling" @click="handleEdit(item)">修改</view>
<view class="btn filling" @click="handleDelete(item)">删除</view>
<view class="btn filling" @click="handleEdit(item)" v-if="item.postingState !== '1'">修改</view>
<view class="btn filling" @click="handleView(item)" v-else>查看</view>
<view class="btn filling" @click="handleDelete(item)" v-if="item.postingState !== '1'">删除</view>
</view>
</view>
@@ -123,7 +128,7 @@ function getList() {
}
function getDict() {
// 交易类型
getDicts('posting_state').then(res => {
getDicts('repayment_state').then(res => {
postingStateList.value = res.data
})
@@ -170,6 +175,10 @@ function handleUpdateInterest() {
uni.navigateTo({ url: `/pages/work/bill/onlineLendHistory/detailsAddEdit?id=${item.id}&installmentHistoryId=${queryParams.value.installmentHistoryId}&name=${queryParams.value.name}` })
isShow.value = true
}
function handleView(item) {
uni.navigateTo({ url: `/pages/work/bill/onlineLendHistory/detailsAddEdit?id=${item.id}&installmentHistoryId=${queryParams.value.installmentHistoryId}&name=${queryParams.value.name}&viewOnly=1` })
isShow.value = true
}
// function handleAdd() {
// uni.navigateTo({ url: `/pages/work/bill/onlineLendHistory/addEdit` })
// isShow.value = true