edit
This commit is contained in:
@ -10,15 +10,12 @@ import { TicketService } from '../../services/ticket.service';
|
||||
selector: 'app-invoiced-list',
|
||||
templateUrl: './invoiced-list.component.html',
|
||||
styleUrls: ['./invoiced-list.component.less'],
|
||||
providers: [CurrencyPipe]
|
||||
})
|
||||
export class InvoicedListComponent implements OnInit {
|
||||
@ViewChild('st', { static: true })
|
||||
st!: STComponent;
|
||||
@ViewChild('sf', { static: false })
|
||||
sf!: SFComponent;
|
||||
@ViewChild('logosticsModal', { static: false })
|
||||
logosticsModal!: any;
|
||||
@ViewChild('logosticsLogsModal', { static: false })
|
||||
logosticsLogsModal!: any;
|
||||
columns: STColumn[] = this.initST();
|
||||
@ -32,7 +29,6 @@ export class InvoicedListComponent implements OnInit {
|
||||
public service: TicketService,
|
||||
private nzModalService: NzModalService,
|
||||
private router: Router,
|
||||
private currencyPipe: CurrencyPipe
|
||||
) {}
|
||||
|
||||
ngOnInit(): void {}
|
||||
@ -59,10 +55,6 @@ export class InvoicedListComponent implements OnInit {
|
||||
}
|
||||
}
|
||||
|
||||
approval(): void {}
|
||||
|
||||
add(): void {}
|
||||
|
||||
deletedInvoice() {
|
||||
if (this.selectedRows?.length <= 0) {
|
||||
this.service.msgSrv.warning('请选择发票');
|
||||
@ -189,12 +181,27 @@ export class InvoicedListComponent implements OnInit {
|
||||
title: '价税合计',
|
||||
index: 'vatmoney',
|
||||
width: 100,
|
||||
type: 'currency',
|
||||
format: item => `${this.currencyPipe.transform(item.vatmoney)}`
|
||||
type: 'widget',
|
||||
className: 'text-right',
|
||||
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.vatmoney }) }
|
||||
},
|
||||
{
|
||||
title: '金额',
|
||||
index: 'vatnotax',
|
||||
width: 90,
|
||||
type: 'widget',
|
||||
className: 'text-right',
|
||||
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.vatnotax }) }
|
||||
},
|
||||
{ title: '金额', index: 'vatnotax', width: 90, type: 'currency', format: item => `${this.currencyPipe.transform(item.vatnotax)}` },
|
||||
{ title: '税率', index: 'vatrate', width: 90 },
|
||||
{ title: '税额', index: 'disvattax', width: 90, type: 'currency', format: item => `${this.currencyPipe.transform(item.disvattax) || ''}` },
|
||||
{
|
||||
title: '税额',
|
||||
index: 'disvattax',
|
||||
width: 90,
|
||||
type: 'widget',
|
||||
className: 'text-right',
|
||||
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.disvattax }) }
|
||||
},
|
||||
{ title: '开票日期', index: 'invoicedate', type: 'date', width: 150 },
|
||||
{
|
||||
title: '快递信息',
|
||||
|
||||
Reference in New Issue
Block a user