edit
This commit is contained in:
@ -22,11 +22,8 @@
|
||||
</nz-card>
|
||||
|
||||
<nz-card class="content-box">
|
||||
<st #st [data]="service.$api_get_driver_account_page" [columns]="columns"
|
||||
[req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, process: beforeReq }"
|
||||
[res]="{ reName: { list: 'data.records', total: 'data.total' } }"
|
||||
[page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000] }"
|
||||
[loading]="service.http.loading">
|
||||
<st #st [data]="service.$api_get_driver_account_page" [columns]="columns" [req]="{ process: beforeReq }"
|
||||
[loading]="service.http.loading" [scroll]="{ x: '1200px' }">
|
||||
<ng-template st-row="availableBalance" let-item let-index="index">
|
||||
<a (click)="showAccountDetail(item)">{{ (parseFloat(item.availableBalance) +
|
||||
parseFloat(item.freezeBalance)).toFixed(2) | currency}}</a>
|
||||
|
||||
@ -119,10 +119,6 @@ export class DriverAccountComponent implements OnInit {
|
||||
ui: {
|
||||
widget: 'select',
|
||||
placeholder: '请选择',
|
||||
change: (i: any) => {
|
||||
this.sf.value.receiveName2 = i;
|
||||
this.sf?.setValue('/receiveName2', i);
|
||||
},
|
||||
visibleIf: {
|
||||
expand: (value: boolean) => value
|
||||
}
|
||||
@ -157,12 +153,12 @@ export class DriverAccountComponent implements OnInit {
|
||||
|
||||
private initST(): STColumn[] {
|
||||
return [
|
||||
{ title: '司机姓名', index: 'name' },
|
||||
{ title: '证件号码', index: 'idNo' },
|
||||
{ title: '手机号', index: 'phone' },
|
||||
{ title: '网络货运人', index: 'ltdName' },
|
||||
{ title: '银行类型', index: 'bankTypeLabel' },
|
||||
{ title: '虚拟账户', index: 'virtualAccount' },
|
||||
{ title: '司机姓名', width: 140, index: 'name' },
|
||||
{ title: '证件号码', width: 140, index: 'idNo' },
|
||||
{ title: '手机号', width: 140, index: 'phone' },
|
||||
{ title: '网络货运人', width: 140, index: 'ltdName' },
|
||||
{ title: '银行类型', width: 120, index: 'bankTypeLabel' },
|
||||
{ title: '虚拟账户', width: 140, index: 'virtualAccount' },
|
||||
{
|
||||
title: '可用余额',
|
||||
index: 'availableBalance',
|
||||
@ -187,10 +183,13 @@ export class DriverAccountComponent implements OnInit {
|
||||
className: 'text-right',
|
||||
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.withdrawBalance }) }
|
||||
},
|
||||
{ title: '账户总余额', render: 'availableBalance', className: 'text-right', width: 180 },
|
||||
{ title: '账户总余额', render: 'availableBalance', className: 'text-right', width: 180 },
|
||||
{ title: '创建时间', index: 'createTime', type: 'date', width: 150 },
|
||||
{
|
||||
title: '操作',
|
||||
width: 120,
|
||||
className: 'text-center',
|
||||
fixed: 'right',
|
||||
buttons: [
|
||||
{
|
||||
text: '查看明细',
|
||||
|
||||
Reference in New Issue
Block a user