edit
This commit is contained in:
@ -18,9 +18,12 @@ export class PlatformAccountComponent implements OnInit {
|
||||
searchSchema: SFSchema = this.initSF();
|
||||
columns: STColumn[] = this.initST();
|
||||
|
||||
info: any = {};
|
||||
constructor(public service: FreightAccountService, private router: Router, private nzModalService: NzModalService) {}
|
||||
|
||||
ngOnInit(): void {}
|
||||
ngOnInit(): void {
|
||||
this.loadInfo();
|
||||
}
|
||||
|
||||
beforeReq = (requestOptions: STRequestOptions) => {
|
||||
if (this.sf) {
|
||||
@ -29,6 +32,18 @@ export class PlatformAccountComponent implements OnInit {
|
||||
return requestOptions;
|
||||
};
|
||||
|
||||
loadInfo() {
|
||||
const params = {};
|
||||
if (this.sf) {
|
||||
Object.assign(params, { ...this.sf.value });
|
||||
}
|
||||
this.service.request(this.service.$api_get_platform_account_header, params).subscribe(res => {
|
||||
if (res) {
|
||||
this.info = res;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 重置表单
|
||||
*/
|
||||
@ -45,9 +60,6 @@ export class PlatformAccountComponent implements OnInit {
|
||||
ui: {
|
||||
widget: 'select',
|
||||
placeholder: '请选择',
|
||||
visibleIf: {
|
||||
expand: (value: boolean) => value
|
||||
},
|
||||
allowClear: true,
|
||||
asyncData: () => this.service.getNetworkFreightForwarder()
|
||||
}
|
||||
@ -62,10 +74,7 @@ export class PlatformAccountComponent implements OnInit {
|
||||
],
|
||||
ui: {
|
||||
widget: 'select',
|
||||
placeholder: '请选择',
|
||||
visibleIf: {
|
||||
expand: (value: boolean) => value
|
||||
}
|
||||
placeholder: '请选择'
|
||||
},
|
||||
default: null
|
||||
},
|
||||
@ -73,10 +82,7 @@ export class PlatformAccountComponent implements OnInit {
|
||||
type: 'string',
|
||||
title: '虚拟账户',
|
||||
ui: {
|
||||
placeholder: '请输入',
|
||||
visibleIf: {
|
||||
expand: (value: boolean) => value
|
||||
}
|
||||
placeholder: '请输入'
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -86,11 +92,11 @@ export class PlatformAccountComponent implements OnInit {
|
||||
private initST(): STColumn[] {
|
||||
return [
|
||||
{ title: '网络货运人', index: 'ltdName', width: 180 },
|
||||
{ title: '银行类型', index: 'description', width: 120 },
|
||||
{ title: '虚拟账户', index: 'description', width: 140 },
|
||||
{ title: '银行类型', index: 'bankTypeLabel', width: 120 },
|
||||
{ title: '虚拟账户', index: 'virtualAccount', width: 160 },
|
||||
{
|
||||
title: '平台账户可用余额',
|
||||
index: 'description',
|
||||
index: 'availableBalance',
|
||||
width: 180,
|
||||
type: 'widget',
|
||||
className: 'text-right',
|
||||
@ -98,67 +104,67 @@ export class PlatformAccountComponent implements OnInit {
|
||||
},
|
||||
{
|
||||
title: '平台账户冻结余额',
|
||||
index: 'description',
|
||||
index: 'freezeBalance',
|
||||
width: 180,
|
||||
type: 'widget',
|
||||
className: 'text-right',
|
||||
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.availableBalance }) }
|
||||
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.freezeBalance }) }
|
||||
},
|
||||
{
|
||||
title: '货主账户可用余额',
|
||||
index: 'description',
|
||||
index: 'shipperAvailableBalance',
|
||||
width: 180,
|
||||
type: 'widget',
|
||||
className: 'text-right',
|
||||
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.availableBalance }) }
|
||||
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.shipperAvailableBalance }) }
|
||||
},
|
||||
{
|
||||
title: '货主账户冻结余额',
|
||||
index: 'description',
|
||||
index: 'shipperFreezeBalance',
|
||||
width: 180,
|
||||
type: 'widget',
|
||||
className: 'text-right',
|
||||
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.availableBalance }) }
|
||||
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.shipperFreezeBalance }) }
|
||||
},
|
||||
{
|
||||
title: '司机账户可用余额',
|
||||
index: 'description',
|
||||
index: 'driverAvailableBalance',
|
||||
width: 180,
|
||||
type: 'widget',
|
||||
className: 'text-right',
|
||||
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.availableBalance }) }
|
||||
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.driverAvailableBalance }) }
|
||||
},
|
||||
{
|
||||
title: '司机账户冻结余额',
|
||||
index: 'description',
|
||||
index: 'driverFreezeBalance',
|
||||
width: 180,
|
||||
type: 'widget',
|
||||
className: 'text-right',
|
||||
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.availableBalance }) }
|
||||
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.driverFreezeBalance }) }
|
||||
},
|
||||
{
|
||||
title: '累计充值金额',
|
||||
index: 'description',
|
||||
index: 'rechargeBalance',
|
||||
width: 180,
|
||||
type: 'widget',
|
||||
className: 'text-right',
|
||||
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.availableBalance }) }
|
||||
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.rechargeBalance }) }
|
||||
},
|
||||
{
|
||||
title: '货主累计提现金额',
|
||||
index: 'description',
|
||||
index: 'shipperWithdrawBalance',
|
||||
width: 180,
|
||||
type: 'widget',
|
||||
className: 'text-right',
|
||||
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.availableBalance }) }
|
||||
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.shipperWithdrawBalance }) }
|
||||
},
|
||||
{
|
||||
title: '司机累计提现金额',
|
||||
index: 'description',
|
||||
index: 'driverWithdrawBalance',
|
||||
width: 180,
|
||||
type: 'widget',
|
||||
className: 'text-right',
|
||||
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.availableBalance }) }
|
||||
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.driverWithdrawBalance }) }
|
||||
},
|
||||
{
|
||||
title: '操作',
|
||||
@ -168,7 +174,10 @@ export class PlatformAccountComponent implements OnInit {
|
||||
buttons: [
|
||||
{
|
||||
text: '查看明细',
|
||||
click: item => this.router.navigate(['/financial-management/platform-account/detail/' + item.id])
|
||||
click: item =>
|
||||
this.router.navigate(['/financial-management/platform-account/detail/' + item.id], {
|
||||
queryParams: { ltdId: item.ltdId, bankType: item.bankType }
|
||||
})
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user