This commit is contained in:
Taric Xin
2022-02-28 11:38:47 +08:00
parent 2b013e0e48
commit 23df1cc8fc
11 changed files with 59 additions and 17 deletions

View File

@ -210,7 +210,13 @@ export class InvoicedListComponent implements OnInit {
className: 'text-right',
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.vatnotax }) }
},
{ title: '税率', render: 'vatrate', className: 'text-right', width: 90 },
{
title: '税率',
index: 'vatrate',
className: 'text-right',
width: 90,
format: item => `${item.vatrate ? ((item.vatrate as number) * 100).toFixed(2) : 0}%`
},
{
title: '税额',
index: 'vattax',