This commit is contained in:
Taric Xin
2022-03-04 15:14:03 +08:00
parent 5db0abb42e
commit 17ce3dd481
4 changed files with 13 additions and 13 deletions

View File

@ -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: '运输费',