edit
This commit is contained in:
@ -11,8 +11,7 @@ import { FreightAccountService } from '../../services/freight-account.service';
|
||||
@Component({
|
||||
selector: 'app-voucher-management',
|
||||
templateUrl: './voucher-management.component.html',
|
||||
styleUrls: ['../../../commom/less/box.less'],
|
||||
providers: [CurrencyPipe]
|
||||
styleUrls: ['../../../commom/less/box.less']
|
||||
})
|
||||
export class VoucherManagementComponent implements OnInit {
|
||||
@ViewChild('st', { static: true })
|
||||
@ -27,12 +26,7 @@ export class VoucherManagementComponent implements OnInit {
|
||||
_$expand = false;
|
||||
|
||||
selectedRows: any[] = [];
|
||||
constructor(
|
||||
public service: FreightAccountService,
|
||||
private nzModalService: NzModalService,
|
||||
private router: Router,
|
||||
private currencyPipe: CurrencyPipe
|
||||
) {}
|
||||
constructor(public service: FreightAccountService, private nzModalService: NzModalService, private router: Router) {}
|
||||
|
||||
ngOnInit(): void {}
|
||||
|
||||
@ -292,7 +286,7 @@ export class VoucherManagementComponent implements OnInit {
|
||||
{ title: '凭证号', index: 'id', type: 'link', width: 150 },
|
||||
{ title: '帐套', index: 'vcltdid', width: 150 },
|
||||
{ title: '凭证时间', index: 'vctime', type: 'date', width: 150 },
|
||||
{ title: '凭证类型', index: 'vctype', enum: { WLW: 'WLW', CH: 'CH', YHY: 'YHY', KP: 'KP' }, width: 150 },
|
||||
{ title: '凭证类型', index: 'vctypeLabel', width: 150 },
|
||||
{ title: '序号', index: 'invmoney', width: 150, format: _ => '1' },
|
||||
{ title: '摘要', index: 'remarks', width: 300 },
|
||||
{ title: '币种', index: 'currency', width: 100 },
|
||||
@ -300,19 +294,21 @@ export class VoucherManagementComponent implements OnInit {
|
||||
title: '借方金额',
|
||||
index: 'drmoney',
|
||||
width: 120,
|
||||
type: 'widget',
|
||||
className: 'text-right',
|
||||
format: item => `${this.currencyPipe.transform(item.armoney || 0)}`
|
||||
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.drmoney }) }
|
||||
},
|
||||
{
|
||||
title: '贷方金额',
|
||||
index: 'crmoney',
|
||||
width: 120,
|
||||
type: 'widget',
|
||||
className: 'text-right',
|
||||
format: item => `${this.currencyPipe.transform(item.armoney || 0)}`
|
||||
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.crmoney }) }
|
||||
},
|
||||
{ title: 'NC凭证', index: 'importncnotes', width: 150 },
|
||||
{ title: '汇总凭证号', index: 'vc2id', width: 150 },
|
||||
{ title: '凭证状态', index: 'sts', enum: { 0: '新建', 1: '待审核', 2: '已通过' }, width: 120 },
|
||||
{ title: '凭证状态', index: 'stsLabel', width: 120 },
|
||||
{ title: '创建时间', index: 'createTime', width: 140 },
|
||||
{ title: '创建人', index: 'createUserId', width: 150 },
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user