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