Merge branch 'develop' of https://gitlab.eascs.com/tms-ui/tms-obc-web into develop

This commit is contained in:
wangshiming
2022-04-18 15:28:32 +08:00
3 changed files with 24 additions and 21 deletions

View File

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

View File

@ -27,6 +27,6 @@
[res]="{ reName: { list: 'data.records', total: 'data.total' } }"
[page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000] }"
[loading]="false"
[scroll]="{ x: '860px', y: '400px' }"
[scroll]="{ x: '890px', y: '400px' }"
></st>
</div>

View File

@ -28,9 +28,15 @@ export class TransactionDetailsComponent implements OnInit {
@ViewChild('sf', { static: false })
sf!: SFComponent;
columns: STColumn[] = [
{ title: '交易id', index: 'id' },
{ title: '交易id', index: 'tradeId' },
{ 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: 'exTime', type: 'date' }
];
@ -63,17 +69,15 @@ export class TransactionDetailsComponent implements OnInit {
}
};
constructor(public service: TicketService, private nzModalService: NzModalService, private router: Router) {}
ngOnInit(): void {
console.log(this.data);
}
get reqParams() {
const a: any = {};
if (this.data?.id) {
a.wayBillId = this.data?.wayBillId;
a.waybillId = this.data?.wayBillId;
}
const params: any = Object.assign({}, this.sf?.value || {});
delete params._$expand;