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({ const modal = this.nzModalService.create({
nzTitle: '运单交易明细', nzTitle: '运单交易明细',
nzContent: TransactionDetailsComponent, nzContent: TransactionDetailsComponent,
nzWidth: 900, nzNoAnimation: true,
nzWidth: 950,
nzComponentParams: { data: item }, nzComponentParams: { data: item },
nzOnOk: com => { nzOnOk: com => {
console.log(com.selectedData); console.log(com.selectedData);
@ -147,8 +148,8 @@ export class ETCInvoicedListComponent implements OnInit {
private initST(): STColumn[] { private initST(): STColumn[] {
return [ return [
{ title: '运单号', index: 'wayBillCode',width: 200 }, { title: '运单号', index: 'wayBillCode', width: 200 },
{ title: '订单号', index: 'billCode',width: 200 }, { title: '订单号', index: 'billCode', width: 200 },
{ {
title: '开票状态', title: '开票状态',
index: 'invoicingStatus', index: 'invoicingStatus',
@ -157,12 +158,12 @@ export class ETCInvoicedListComponent implements OnInit {
width: 120 width: 120
}, },
{ title: '订单类型', index: 'billTypeLabel', width: 120 }, { title: '订单类型', index: 'billTypeLabel', width: 120 },
{ title: '装货地', index: 'loadingPlace',width: 200 }, { title: '装货地', index: 'loadingPlace', width: 200 },
{ title: '卸货地', index: 'dischargePlace' ,width: 200}, { title: '卸货地', index: 'dischargePlace', width: 200 },
{ title: '司机信息', render: 'call1No' ,width: 200}, { title: '司机信息', render: 'call1No', width: 200 },
{ title: '车辆信息', render: 'call12No',width: 200 }, { title: '车辆信息', render: 'call12No', width: 200 },
{ title: '托运人', index: 'shipperAppUserName',width: 200 }, { title: '托运人', index: 'shipperAppUserName', width: 200 },
{ title: '网络货运人', index: 'enterpriseInfoName' ,width: 200}, { title: '网络货运人', index: 'enterpriseInfoName', width: 200 },
{ {
title: '开票金额', title: '开票金额',
index: 'invoicingAmount', index: 'invoicingAmount',
@ -175,11 +176,9 @@ 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 },
{ {
title: '操作', title: '操作',
className: 'text-center', className: 'text-center',

View File

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

View File

@ -1,5 +1,5 @@
/* /*
* @Description : * @Description :
* @Version : 1.0 * @Version : 1.0
* @Author : Shiming * @Author : Shiming
* @Date : 2022-03-14 14:17:38 * @Date : 2022-03-14 14:17:38
@ -20,7 +20,7 @@ import { TicketService } from '../../../services/ticket.service';
templateUrl: './transaction-details.component.html' templateUrl: './transaction-details.component.html'
}) })
export class TransactionDetailsComponent implements OnInit { export class TransactionDetailsComponent implements OnInit {
data :any= []; data: any = [];
selectedData = []; selectedData = [];
url = `/api/fcc/ficoEtcInvoiceH/list/page`; url = `/api/fcc/ficoEtcInvoiceH/list/page`;
@ViewChild('st', { static: true }) @ViewChild('st', { static: true })
@ -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,17 +69,15 @@ 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 = {};
if (this.data?.id) { if (this.data?.id) {
a.wayBillId = this.data?.wayBillId; a.waybillId = this.data?.wayBillId;
} }
const params: any = Object.assign({}, this.sf?.value || {}); const params: any = Object.assign({}, this.sf?.value || {});
delete params._$expand; delete params._$expand;