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: '运输费',
|
||||
|
||||
@ -242,7 +242,7 @@ export class InvoicedListComponent implements OnInit {
|
||||
text: '查看明细',
|
||||
click: item =>
|
||||
this.router.navigate(['/ticket/invoice-list/detail/' + item.id], {
|
||||
queryParams: { expressno: item.expressno }
|
||||
queryParams: { expressno: item.expressno, type: 2 }
|
||||
})
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user