72 lines
1.7 KiB
TypeScript
72 lines
1.7 KiB
TypeScript
import { Component, OnInit, ViewChild } from '@angular/core';
|
|
import { STColumn, STComponent, STData } from '@delon/abc/st';
|
|
import { SFSchema } from '@delon/form';
|
|
import { ModalHelper, _HttpClient } from '@delon/theme';
|
|
import { DataService } from '../../services/data.service';
|
|
|
|
@Component({
|
|
selector: 'app-datatable-invoicetable',
|
|
templateUrl: './invoicetable.component.html',
|
|
})
|
|
export class DatatableInvoicetableComponent implements OnInit {
|
|
@ViewChild('st', { static: false })
|
|
st!: STComponent;
|
|
columns!: STColumn[];
|
|
|
|
data=[{name1:1111}]
|
|
constructor(private http: _HttpClient, private modal: ModalHelper,public service :DataService) { }
|
|
|
|
/**
|
|
* 查询参数
|
|
*/
|
|
get reqParams() {
|
|
return { };
|
|
}
|
|
ngOnInit(): void {
|
|
this.initST();
|
|
|
|
}
|
|
initST() {
|
|
this.columns = [
|
|
{
|
|
title: '运营主体',
|
|
index: 'operationName'
|
|
},
|
|
{
|
|
title: '已开票总金额',
|
|
index: 'totalInvoicedAmount',
|
|
render: 'totalInvoicedAmount',
|
|
},
|
|
{
|
|
title: '当月已开票金额',
|
|
index: 'invAmountMonth',
|
|
render: 'invAmountMonth',
|
|
},
|
|
{
|
|
title: '当月已开票张数',
|
|
index: 'numInvAmountMonth',
|
|
},
|
|
{
|
|
title: '已申请待开金额',
|
|
index: 'applyWaitInvAmount',
|
|
render: 'applyWaitInvAmount',
|
|
},
|
|
{
|
|
title: '申请待开客户',
|
|
index: 'applyWaitCustomer',
|
|
},
|
|
{
|
|
title: '未申请开票金额(历史)',
|
|
index: 'unInvoicedAmountHistory',
|
|
render: 'unInvoicedAmountHistory',
|
|
},
|
|
{
|
|
title: '未申请开票金额(当月)',
|
|
index: 'unInvoicedAmountCurMonth',
|
|
render: 'unInvoicedAmountCurMonth',
|
|
},
|
|
];
|
|
}
|
|
|
|
}
|