edit
This commit is contained in:
@ -37,7 +37,7 @@
|
||||
</ng-template>
|
||||
<ng-template st-row="amountDetails" let-item let-index="index" let-column="column">
|
||||
<ng-container *ngFor="let detail of item.amountDetails">
|
||||
{{detail.costName}}:{{ detail.surcharge | currency }}<br />
|
||||
{{detail.costName}}:{{ detail.price | currency }}<br />
|
||||
</ng-container>
|
||||
</ng-template>
|
||||
<ng-template st-row="billCode" let-item let-index="index" let-column="column">
|
||||
|
||||
@ -251,12 +251,14 @@ export class PaymentRecordComponent implements OnInit {
|
||||
title: '运费明细',
|
||||
render: 'amountDetails',
|
||||
width: 160,
|
||||
format: item => {
|
||||
(item.amountDetails as Array<any>).forEach(detail => {
|
||||
detail.surcharge = ((detail.price + (detail.surcharge || 0)) as number).toFixed(2);
|
||||
});
|
||||
return '';
|
||||
}
|
||||
// format: item => {
|
||||
// (item.amountDetails as Array<any>).forEach(detail => {
|
||||
// detail.surcharge = detail.price + (detail.surcharge || 0);
|
||||
// });
|
||||
// console.log(item.amountDetails);
|
||||
|
||||
// return '';
|
||||
// }
|
||||
},
|
||||
{
|
||||
title: '支付类型',
|
||||
|
||||
Reference in New Issue
Block a user