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

@ -14,8 +14,7 @@ import { FreightAccountService } from '../../services/freight-account.service';
@Component({
selector: 'app-freight-account',
templateUrl: './freight-account.component.html',
styleUrls: ['./freight-account.component.less'],
providers: [CurrencyPipe]
styleUrls: ['../../../commom/less/box.less', '../../../commom/less/expend-but.less']
})
export class FreightAccountComponent implements OnInit {
@ViewChild('st', { static: true })
@ -29,12 +28,7 @@ export class FreightAccountComponent implements OnInit {
_$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 {}
@ -173,22 +167,23 @@ export class FreightAccountComponent implements OnInit {
{
title: '可用余额',
index: 'availableBalance',
type: 'currency',
format: item => `${this.currencyPipe.transform(item.availableBalance)}`
width: 150,
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: 150,
type: 'widget',
className: 'text-right',
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.freezeBalance }) }
},
{
title: '账户总余额',
index: 'description',
className: 'text-right',
type: 'link',
format: item => `${this.currencyPipe.transform(item.availableBalance)}`,
click: item => this.showAccountDetail(item)
render: 'description',
className: 'text-right'
},
{ title: '创建时间', index: 'createTime', type: 'date', width: 150 },
{