fix: 贷款账单,功能优化。
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user