This commit is contained in:
Taric Xin
2022-01-18 17:00:48 +08:00
parent 7d0d2fb7da
commit 09e1dd38f1
13 changed files with 369 additions and 64 deletions

View File

@ -12,8 +12,7 @@ import { PushInvoiceComponent } from './push-invoice/push-invoice.component';
@Component({
selector: 'app-cancellation-invoice',
templateUrl: './cancellation-invoice.component.html',
styleUrls: ['./cancellation-invoice.component.less'],
providers: [CurrencyPipe]
styleUrls: ['./cancellation-invoice.component.less']
})
export class CancellationInvoiceComponent implements OnInit {
@ViewChild('st', { static: true })
@ -31,12 +30,7 @@ export class CancellationInvoiceComponent implements OnInit {
totalCallNo = 0;
openInfo: any = { invoicedate: null, invoiceno: null };
constructor(
public service: TicketService,
private nzModalService: NzModalService,
private router: Router,
private currencyPipe: CurrencyPipe
) {}
constructor(public service: TicketService, private nzModalService: NzModalService, private router: Router) {}
ngOnInit(): void {}
@ -282,9 +276,10 @@ export class CancellationInvoiceComponent implements OnInit {
{
title: '价税合计',
index: 'vatmoney',
width: 90,
type: 'currency',
format: item => `${this.currencyPipe.transform(item.vatmoney)}`
width: 120,
type: 'widget',
className: 'text-right font-weight-bold',
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.vatmoney }) }
},
{
title: '金额',
@ -314,7 +309,10 @@ export class CancellationInvoiceComponent implements OnInit {
buttons: [
{
text: '查看明细',
click: item => this.router.navigate(['ticket/cancellation-invoice/detail/' + item.id], { queryParams: { type: 1 } })
click: item =>
this.router.navigate(['ticket/cancellation-invoice/detail/' + item.id], {
queryParams: { type: 1, expressno: item.expressno }
})
},
{
text: '手工开票',