批量审核

This commit is contained in:
wangshiming
2022-01-17 14:58:34 +08:00
parent 835e42460f
commit e13233f99e
9 changed files with 115 additions and 45 deletions

View File

@ -4,11 +4,13 @@ import { STComponent, STColumn, STRequestOptions } from '@delon/abc/st';
import { SFComponent, SFSchema, SFDateWidgetSchema } from '@delon/form';
import { NzModalService } from 'ng-zorro-antd/modal';
import { FreightAccountService } from '../../services/freight-account.service';
import { CurrencyPipe } from '@angular/common';
@Component({
selector: 'app-transaction-flow',
templateUrl: './transaction-flow.component.html',
styleUrls: ['./transaction-flow.component.less']
styleUrls: ['./transaction-flow.component.less'],
providers: [CurrencyPipe]
})
export class TransactionFlowComponent implements OnInit {
@ViewChild('st', { static: true })
@ -20,7 +22,12 @@ export class TransactionFlowComponent implements OnInit {
_$expand = false;
constructor(public service: FreightAccountService, private nzModalService: NzModalService, private router: Router) {}
constructor(
public service: FreightAccountService,
private nzModalService: NzModalService,
private router: Router,
private currencyPipe: CurrencyPipe
) {}
ngOnInit(): void {}
@ -214,8 +221,17 @@ export class TransactionFlowComponent implements OnInit {
{ title: '账户名称', index: 'roleName', width: 100 },
{ title: '所属项目', index: 'projectName', width: 100 },
{ title: '收支类型', index: 'incomeTypeLabel', width: 100 },
{ title: '交易金额', index: 'amount', width: 100 },
{ title: '账户余额', index: 'accountBalance', width: 100 },
{ title: '交易金额',
index: 'amount',
width: 100,
type: 'currency',
format: item => `${this.currencyPipe.transform(item.amount)}`
},
{ title: '账户余额',
type: 'currency',
width: 150,
format: item => `${this.currencyPipe.transform(item.accountBalance)}`
},
{ title: '网络货运人', index: 'ltdName', width: 120 },
{ title: '银行类型', index: 'bankTypeLabel', width: 100 },
{ title: '银行流水号', index: 'channelPaySn', width: 120 },