fix: 功能优化完善。

This commit is contained in:
tianyongbao
2026-03-06 22:27:57 +08:00
parent a88b724f2f
commit cc60180990

View File

@@ -164,10 +164,6 @@
:key="groupIndex" :key="groupIndex"
style="padding: 6px 8px; margin-bottom: 4px; background: #f5f7fa; border-radius: 4px" style="padding: 6px 8px; margin-bottom: 4px; background: #f5f7fa; border-radius: 4px"
> >
<!-- 还款账户信息同一账户只显示一次 -->
<div v-if="group.repaymentAccountName" style="margin-bottom: 4px; color: #409eff; font-weight: 500">
还款账户:{{ group.repaymentAccountName }}(余额:{{ group.repaymentAccountBalance }})
</div>
<!-- 该账户下的所有明细 --> <!-- 该账户下的所有明细 -->
<div <div
v-for="(item, itemIndex) in group.items" v-for="(item, itemIndex) in group.items"
@@ -177,7 +173,7 @@
alignItems: 'center', alignItems: 'center',
justifyContent: 'space-between', justifyContent: 'space-between',
padding: '4px 0', padding: '4px 0',
borderTop: itemIndex > 0 ? '1px dashed #dcdfe6' : 'none' borderBottom: itemIndex < group.items.length - 1 ? '1px dashed #dcdfe6' : 'none'
}" }"
> >
<span style="flex: 1" <span style="flex: 1"
@@ -185,6 +181,13 @@
> >
<el-button size="small" type="primary" icon="Coin" @click="handleRepayment(item)">还款</el-button> <el-button size="small" type="primary" icon="Coin" @click="handleRepayment(item)">还款</el-button>
</div> </div>
<!-- 还款账户信息同一账户只显示一次放在明细后面 -->
<div
v-if="group.repaymentAccountName"
style="margin-top: 4px; padding-top: 4px; color: #409eff; font-weight: 500; border-top: 1px solid #e4e7ed"
>
还款账户:{{ group.repaymentAccountName }}(余额:{{ group.repaymentAccountBalance }})
</div>
</div> </div>
</div> </div>
<span v-else v-html="formatMultiLineData(scope.row.detail)"></span> <span v-else v-html="formatMultiLineData(scope.row.detail)"></span>