edit
This commit is contained in:
		| @ -36,9 +36,8 @@ | ||||
|             {{ item.orderPaymentCode }} <br> <a>{{ item.paymentStatusLabel }}</a> | ||||
|         </ng-template> | ||||
|         <ng-template st-row="amountDetails" let-item let-index="index" let-column="column"> | ||||
|            {{item.costName}}:{{ item.price | currency }}<br /> | ||||
|             <ng-container *ngIf="item.payType==='1'"> | ||||
|                 附加费: {{ item.surcharge| currency }} | ||||
|             <ng-container *ngFor="let detail of item.amountDetails"> | ||||
|                 {{detail.costName}}:{{ detail.surcharge | currency }}<br /> | ||||
|             </ng-container> | ||||
|         </ng-template> | ||||
|         <ng-template st-row="billCode" let-item let-index="index" let-column="column"> | ||||
|  | ||||
| @ -252,13 +252,9 @@ export class PaymentRecordComponent implements OnInit { | ||||
|         render: 'amountDetails', | ||||
|         width: 160, | ||||
|         format: item => { | ||||
|           let surcharge = 0; | ||||
|           (item.amountDetails as Array<any>).forEach(detail => { | ||||
|             surcharge += detail.surcharge || 0; | ||||
|             detail.surcharge = ((detail.price + (detail.surcharge || 0)) as number).toFixed(2); | ||||
|           }); | ||||
|           item.surcharge = surcharge.toFixed(2); | ||||
|           item.price = item.amountDetails?.[0]?.price || 0; | ||||
|           item.costName = item.amountDetails?.[0]?.costName; | ||||
|           return ''; | ||||
|         } | ||||
|       }, | ||||
|  | ||||
| @ -55,7 +55,7 @@ | ||||
|     [scroll]="{ x: '2000px' }" | ||||
|     [data]="service.$api_networkTransporter_page" | ||||
|     [columns]="columns" | ||||
|     [req]="{ params: reqParams }" | ||||
|     [req]="{ params: reqParams }" [page]="{}" | ||||
|     [loading]="service.http.loading" | ||||
|     (change)="stChange($event)" | ||||
|   > | ||||
|  | ||||
		Reference in New Issue
	
	Block a user