edit
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
import { query } from '@angular/animations';
|
||||
import { CurrencyPipe } from '@angular/common';
|
||||
import { Component, OnInit, ViewChild } from '@angular/core';
|
||||
import { Router } from '@angular/router';
|
||||
import { STComponent, STColumn, STChange, STRequestOptions } from '@delon/abc/st';
|
||||
@ -13,7 +14,8 @@ import { RequestedInvoiceModalComponent } from './requested-invoice-modal/reques
|
||||
@Component({
|
||||
selector: 'app-invoice-requested',
|
||||
templateUrl: './invoice-requested.component.html',
|
||||
styleUrls: ['./invoice-requested.component.less']
|
||||
styleUrls: ['./invoice-requested.component.less'],
|
||||
providers: [CurrencyPipe]
|
||||
})
|
||||
export class InvoiceRequestedComponent implements OnInit {
|
||||
@ViewChild('st', { static: true })
|
||||
@ -30,7 +32,12 @@ export class InvoiceRequestedComponent implements OnInit {
|
||||
|
||||
totalCallNo = 0;
|
||||
selectedRows: any[] = [];
|
||||
constructor(public service: TicketService, private nzModalService: NzModalService, private router: Router) {}
|
||||
constructor(
|
||||
public service: TicketService,
|
||||
private nzModalService: NzModalService,
|
||||
private router: Router,
|
||||
private currencyPipe: CurrencyPipe
|
||||
) {}
|
||||
|
||||
ngOnInit(): void {}
|
||||
|
||||
@ -354,18 +361,42 @@ export class InvoiceRequestedComponent implements OnInit {
|
||||
private initST(): STColumn[] {
|
||||
return [
|
||||
{ title: '', index: 'key', type: 'checkbox' },
|
||||
{ title: '申请编号', render: 'vatappcode', width: 150 },
|
||||
{ title: '申请编号', render: 'vatappcode', width: 180 },
|
||||
{ title: '网络货运人', index: 'ltdName', width: 120 },
|
||||
{ title: '购买方', index: 'projectName', width: 90 },
|
||||
{ title: '订单数', index: 'ordlines', width: 90 },
|
||||
{ title: '申请金额', index: 'applyAmount', width: 100 },
|
||||
{ title: '运输费', index: 'fjfmoney2', width: 90 },
|
||||
{ title: '附加费', index: 'fjfmoney', width: 90 },
|
||||
{ title: '已开票金额', index: 'invoicedMoney', width: 120 },
|
||||
{ title: '开户行', index: 'bankName', width: 90 },
|
||||
{ title: '银行账户', index: 'bankAccount', width: 100 },
|
||||
{ title: '注册地址', index: 'registerAddr', width: 100 },
|
||||
{ title: '注册电话', index: 'registerPhone', width: 100 },
|
||||
{
|
||||
title: '申请金额',
|
||||
index: 'applyAmount',
|
||||
width: 100,
|
||||
type: 'currency',
|
||||
format: item => `${this.currencyPipe.transform(item.applyAmount)}`
|
||||
},
|
||||
{
|
||||
title: '运输费',
|
||||
index: 'fjfmoney2',
|
||||
width: 90,
|
||||
type: 'currency',
|
||||
format: item => `${this.currencyPipe.transform(item.fjfmoney2)}`
|
||||
},
|
||||
{
|
||||
title: '附加费',
|
||||
index: 'fjfmoney',
|
||||
width: 90,
|
||||
type: 'currency',
|
||||
format: item => `${this.currencyPipe.transform(item.fjfmoney)}`
|
||||
},
|
||||
{
|
||||
title: '已开票金额',
|
||||
index: 'invoicedMoney',
|
||||
width: 120,
|
||||
type: 'currency',
|
||||
format: item => `${this.currencyPipe.transform(item.invoicedMoney)}`
|
||||
},
|
||||
{ title: '开户行', index: 'bankName', width: 160 },
|
||||
{ title: '银行账户', index: 'bankAccount', width: 140 },
|
||||
{ title: '注册地址', index: 'registerAddr', width: 140 },
|
||||
{ title: '注册电话', index: 'registerPhone', width: 120 },
|
||||
{ title: '服务名称', index: 'vatname', width: 100 },
|
||||
{ title: '销货清单', index: 'isdetail', width: 100 },
|
||||
{ title: '其他要求', index: 'otherremarks', width: 100 },
|
||||
|
||||
Reference in New Issue
Block a user