This commit is contained in:
Taric Xin
2022-04-02 14:49:06 +08:00
parent 0cb20131b4
commit 407a7b624b
2 changed files with 23 additions and 20 deletions

View File

@ -40,8 +40,10 @@ export class InvoiceDetailComponent implements OnInit {
id: any = null;
ltdId: any = null;
type: any = 1;
selectedIndex = 0;
constructor(public service: TicketService, private route: ActivatedRoute) {
this.isCanEdit = !!route.snapshot.queryParams.type;
this.isCanEdit = route.snapshot.queryParams.type === '1';
const expressno = route.snapshot.queryParams.expressno;
this.type = route.snapshot.queryParams.type;
this.id = route.snapshot.params.id;
@ -226,10 +228,7 @@ export class InvoiceDetailComponent implements OnInit {
{ title: '税率', index: 'vatrate', format: item => `${item.vatrate ? ((item.vatrate as number) * 100).toFixed(2) : 0}%` },
{
title: '申请金额',
index: 'vatmoney',
type: 'widget',
className: 'text-right',
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.vatmoney }) }
render: 'vatmoney'
},
{
title: '开票金额',