This commit is contained in:
Taric Xin
2022-01-19 17:37:30 +08:00
parent 94c8c45126
commit 2837f3ef07
17 changed files with 127 additions and 276 deletions

View File

@ -11,8 +11,7 @@ import { FreightAccountService } from '../../services/freight-account.service';
@Component({
selector: 'app-driver-account',
templateUrl: './driver-account.component.html',
styleUrls: ['./driver-account.component.less'],
providers: [CurrencyPipe]
styleUrls: ['../../../commom/less/box.less', '../../../commom/less/expend-but.less']
})
export class DriverAccountComponent implements OnInit {
@ViewChild('st', { static: true })
@ -24,12 +23,7 @@ export class DriverAccountComponent implements OnInit {
columns: STColumn[] = this.initST();
_$expand = false;
constructor(
public service: FreightAccountService,
private router: Router,
private modal: NzModalService,
private currencyPipe: CurrencyPipe
) {}
constructor(public service: FreightAccountService, private router: Router, private modal: NzModalService) {}
ngOnInit(): void {}
@ -172,30 +166,28 @@ export class DriverAccountComponent implements OnInit {
{
title: '可用余额',
index: 'availableBalance',
type: 'currency',
format: item => `${this.currencyPipe.transform(item.availableBalance)}`
width: 140,
type: 'widget',
className: 'text-right',
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.availableBalance }) }
},
{
title: '冻结余额',
index: 'freezeBalance',
type: 'currency',
format: item => `${this.currencyPipe.transform(item.availableBalance)}`
width: 140,
type: 'widget',
className: 'text-right',
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.freezeBalance }) }
},
{
title: '本月累计提现金额',
index: 'withdrawBalance',
width: 150,
type: 'currency',
format: item => `${this.currencyPipe.transform(item.availableBalance)}`
},
{
title: '账户总余额',
index: 'availableBalance',
type: 'widget',
className: 'text-right',
type: 'link',
format: item => `${this.currencyPipe.transform(item.availableBalance)}`,
click: item => this.showAccountDetail(item)
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.withdrawBalance }) }
},
{ title: '账户总余额', render: 'availableBalance', className: 'text-right' },
{ title: '创建时间', index: 'createTime', type: 'date', width: 150 },
{
title: '操作',