fix: 账户交易记录,bug修复。

This commit is contained in:
tianyongbao
2024-07-16 09:30:37 +08:00
parent 0ca2ed36e2
commit f4bb7c4fef
3 changed files with 7 additions and 2 deletions

View File

@@ -193,6 +193,11 @@ onLoad((option) => {
if(form.value.id!=null){
getAccountDealRecord(form.value.id).then(res => {
form.value = res.data
if (form.value.dealCategory === '1') {
childCategoryShow.value = true
} else {
childCategoryShow.value = false
}
// 交易类别
getDicts('deal_category').then(result => {
form.value.dealCategoryName=dictStr(form.value.dealCategory, result.data)

View File

@@ -13,7 +13,7 @@
<u-cell title="账户类型:" titleStyle="font-weight:bolder" :value="detailInfo.type"></u-cell>
<u-cell title="交易类型:" titleStyle="font-weight:bolder" :value="detailInfo.dealType"></u-cell>
<u-cell title="交易类别:" titleStyle="font-weight:bolder" :value="detailInfo.dealCategory"></u-cell>
<u-cell title="交易子类别:" titleStyle="font-weight:bolder" :value="detailInfo.childCategoryName"></u-cell>
<u-cell v-show="detailInfo.childCategory!=detailInfo.childCategory" title="交易子类别:" titleStyle="font-weight:bolder" :value="detailInfo.childCategoryName"></u-cell>
<u-cell title="交易金额:" titleStyle="font-weight:bolder" :value="detailInfo.amount"></u-cell>
<u-cell title="当前余额:" titleStyle="font-weight:bolder" :value="detailInfo.currentBalance"></u-cell>
<u-cell title="交易时间:" titleStyle="font-weight:bolder" :value="detailInfo.createTime"></u-cell>

View File

@@ -111,7 +111,7 @@
<text class="row-label">交易类别</text>
<text class="row-value">{{ dictStr(item.dealCategory, dealCategoryList) }}</text>
</view>
<view class="item-row">
<view class="item-row" v-show="item.childCategory!=item.dealCategory">
<text class="row-label">交易子类别</text>
<text class="row-value">{{ item.childCategoryName }}</text>
</view>