edit
This commit is contained in:
@ -38,9 +38,11 @@ export class InvoiceDetailComponent implements OnInit {
|
||||
routes: []
|
||||
};
|
||||
id: any = null;
|
||||
type: any = 1;
|
||||
constructor(public service: TicketService, private route: ActivatedRoute) {
|
||||
this.isCanEdit = !!route.snapshot.queryParams.type;
|
||||
const expressno = route.snapshot.queryParams.expressno;
|
||||
this.type = route.snapshot.queryParams.type;
|
||||
this.id = route.snapshot.params.id;
|
||||
this.loadInvoiceHeader(this.id);
|
||||
if (expressno) {
|
||||
@ -156,7 +158,7 @@ export class InvoiceDetailComponent implements OnInit {
|
||||
width: 120,
|
||||
type: 'widget',
|
||||
className: 'text-right',
|
||||
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.billkpnotax }) }
|
||||
widget: { type: 'currency-chy', params: ({ record }) => ({ value: this.type ==='2'?record.billkpmoney: record.billkpnotax }) }
|
||||
},
|
||||
{
|
||||
title: '运输费',
|
||||
|
||||
Reference in New Issue
Block a user