提交 265a3532 authored 作者: pengxiaohui's avatar pengxiaohui

fix:修复应缴金额和实缴金额不一致的bug [2190]

上级 9d6d5629
......@@ -15,7 +15,7 @@
<p class="status">{{item.final_payment_time}}</p>
</div>
<div class="right">
<p><span></span>{{item.amount_received}}</p>
<p><span></span>{{parseFloat(item.amount_received) + parseFloat(item.service_charge)}}</p>
</div>
<van-button v-if="['2', '5', '6'].includes(item.invoice_status) && item.can_add_invoice === '1'" class="invoice-btn" plain round type="primary" size="mini" color="#C01540" @click.stop="handleInvoice(item)">开具发票</van-button>
</div>
......
......@@ -3,7 +3,7 @@
<van-cell-group>
<van-cell title="项目" :value="details.project_name" />
<van-cell title="应缴金额" :value="`¥${details.bill_total}`" />
<van-cell title="实缴金额" :value="`¥${details.amount_received}`" />
<van-cell title="实缴金额" :value="`¥${parseFloat(details.amount_received) + parseFloat(details.service_charge)}`" />
<van-cell title="缴费时间" :value="details.final_payment_time" />
<van-cell title="发票状态" :value="invoiceStatus" />
<van-cell title="发票申请时间" :value="details.invoice_application_time" />
......
......@@ -60,7 +60,15 @@ export default {
{ type: 'selection', minWidth: '40px' },
{ prop: 'project_name', label: '项目', minWidth: '120px' },
{ prop: 'bill_total', label: '应缴金额', minWidth: '80px' },
{ prop: 'amount_received', label: '实缴金额', minWidth: '80px' },
// { prop: 'amount_received', label: '实缴金额', minWidth: '80px' },
{
prop: 'really_pay',
label: '实缴金额',
minWidth: '100px',
computed({ row }) {
return parseFloat(row.amount_received) + parseFloat(row.service_charge)
}
},
{ prop: 'final_payment_time', label: '缴费时间', minWidth: '150px' },
{
prop: 'invoice_status',
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论