edit
This commit is contained in:
@ -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 '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user