This commit is contained in:
Taric Xin
2022-04-18 14:39:40 +08:00
parent e98300c9a2
commit 3c07963da5
2 changed files with 21 additions and 18 deletions

View File

@ -37,6 +37,7 @@ export class ETCInvoicedListComponent implements OnInit {
const modal = this.nzModalService.create({ const modal = this.nzModalService.create({
nzTitle: '运单交易明细', nzTitle: '运单交易明细',
nzContent: TransactionDetailsComponent, nzContent: TransactionDetailsComponent,
nzNoAnimation: true,
nzWidth: 950, nzWidth: 950,
nzComponentParams: { data: item }, nzComponentParams: { data: item },
nzOnOk: com => { nzOnOk: com => {
@ -175,9 +176,7 @@ export class ETCInvoicedListComponent implements OnInit {
title: '开票张数', title: '开票张数',
index: 'invoicingNumber', index: 'invoicingNumber',
width: 100, width: 100,
type: 'widget', className: 'text-right'
className: 'text-right',
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.invoicingNumber }) }
}, },
{ title: '申请时间', index: 'orderReceivingTime', type: 'date', width: 200 }, { title: '申请时间', index: 'orderReceivingTime', type: 'date', width: 200 },
{ {

View File

@ -28,9 +28,15 @@ export class TransactionDetailsComponent implements OnInit {
@ViewChild('sf', { static: false }) @ViewChild('sf', { static: false })
sf!: SFComponent; sf!: SFComponent;
columns: STColumn[] = [ columns: STColumn[] = [
{ title: '交易id', index: 'id' }, { title: '交易id', index: 'tradeId' },
{ title: '交易流水号', index: 'tradeFlowNo' }, { title: '交易流水号', index: 'tradeFlowNo' },
{ title: '交易金额', index: 'fee' }, {
title: '交易金额',
index: 'fee',
type: 'widget',
className: 'text-right',
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.fee }) }
},
{ title: '开票状态', index: 'stateLabel' }, { title: '开票状态', index: 'stateLabel' },
{ title: '交易时间', index: 'exTime', type: 'date' } { title: '交易时间', index: 'exTime', type: 'date' }
]; ];
@ -63,12 +69,10 @@ export class TransactionDetailsComponent implements OnInit {
} }
}; };
constructor(public service: TicketService, private nzModalService: NzModalService, private router: Router) {} constructor(public service: TicketService, private nzModalService: NzModalService, private router: Router) {}
ngOnInit(): void { ngOnInit(): void {
console.log(this.data); console.log(this.data);
} }
get reqParams() { get reqParams() {
const a: any = {}; const a: any = {};