This commit is contained in:
Taric Xin
2022-03-01 15:25:18 +08:00
parent 8aaf8b8ab4
commit 3845400bfa
3 changed files with 14 additions and 7 deletions

View File

@ -242,7 +242,7 @@ export class PaymentRecordComponent implements OnInit {
{
title: '支付金额',
render: 'payAmount',
width: 120,
width: 140,
type: 'widget',
className: 'text-right',
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.payAmount }) }
@ -256,7 +256,7 @@ export class PaymentRecordComponent implements OnInit {
(item.amountDetails as Array<any>).forEach(detail => {
surcharge += detail.surcharge || 0;
});
item.surcharge = surcharge;
item.surcharge = surcharge.toFixed(2);
item.price = item.amountDetails?.[0]?.price || 0;
return '';
}