edit
This commit is contained in:
@ -1,15 +1,9 @@
|
|||||||
<!-- 页头 -->
|
<!-- 页头 -->
|
||||||
<page-header-wrapper [title]="'开票数据报表'"></page-header-wrapper>
|
<page-header-wrapper [title]="'开票数据报表'"></page-header-wrapper>
|
||||||
<nz-card nzTitle="开票数据报表">
|
<nz-card nzTitle="开票数据报表">
|
||||||
<st
|
<st #st [data]="service.$api_findInvoiceReport" [columns]="columns" [scroll]="{ x: '1200px' }"
|
||||||
#st
|
[req]="{ params: reqParams }" [res]="{ reName: { list: 'data', total: 'data.total' }}" [page]="{ show: false }"
|
||||||
[data]="service.$api_findInvoiceReport"
|
[loadingDelay]="500">
|
||||||
[columns]="columns"
|
|
||||||
[req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams }"
|
|
||||||
[res]="{ reName: { list: 'data', total: 'data.total' }}"
|
|
||||||
[page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000] }"
|
|
||||||
[loadingDelay]="500"
|
|
||||||
>
|
|
||||||
<ng-template st-row="totalInvoicedAmount" let-item let-index="index">
|
<ng-template st-row="totalInvoicedAmount" let-item let-index="index">
|
||||||
{{item.totalInvoicedAmount | currency}}
|
{{item.totalInvoicedAmount | currency}}
|
||||||
</ng-template>
|
</ng-template>
|
||||||
|
|||||||
@ -6,14 +6,14 @@ import { DataService } from '../../services/data.service';
|
|||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-datatable-invoicetable',
|
selector: 'app-datatable-invoicetable',
|
||||||
templateUrl: './invoicetable.component.html',
|
templateUrl: './invoicetable.component.html'
|
||||||
})
|
})
|
||||||
export class DatatableInvoicetableComponent implements OnInit {
|
export class DatatableInvoicetableComponent implements OnInit {
|
||||||
@ViewChild('st', { static: false })
|
@ViewChild('st', { static: false })
|
||||||
st!: STComponent;
|
st!: STComponent;
|
||||||
columns!: STColumn[];
|
columns!: STColumn[];
|
||||||
|
|
||||||
data=[{name1:1111}]
|
data = [{ name1: 1111 }];
|
||||||
constructor(private http: _HttpClient, private modal: ModalHelper, public service: DataService) {}
|
constructor(private http: _HttpClient, private modal: ModalHelper, public service: DataService) {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -24,53 +24,80 @@ export class DatatableInvoicetableComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
this.initST();
|
this.initST();
|
||||||
|
|
||||||
}
|
}
|
||||||
initST() {
|
initST() {
|
||||||
this.columns = [
|
this.columns = [
|
||||||
{
|
{
|
||||||
title: '运营主体',
|
title: '运营主体',
|
||||||
index: 'operationName'
|
index: 'operationName',
|
||||||
|
width: 220
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '已开票总金额',
|
title: '已开票总金额',
|
||||||
index: 'totalInvoicedAmount',
|
index: 'totalInvoicedAmount',
|
||||||
render: 'totalInvoicedAmount',
|
render: 'totalInvoicedAmount',
|
||||||
|
className: 'text-right',
|
||||||
|
width: 150
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '当月已开票金额',
|
title: '当月已开票金额',
|
||||||
index: 'invAmountMonth',
|
index: 'invAmountMonth',
|
||||||
render: 'invAmountMonth',
|
render: 'invAmountMonth',
|
||||||
|
className: 'text-right',
|
||||||
|
width: 150
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '当月已开票张数',
|
title: '当月已开票张数',
|
||||||
index: 'numInvAmountMonth',
|
index: 'numInvAmountMonth',
|
||||||
|
className: 'text-right',
|
||||||
|
width: 150
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '已申请待开金额',
|
title: '已申请待开金额',
|
||||||
index: 'applyWaitInvAmount',
|
index: 'applyWaitInvAmount',
|
||||||
render: 'applyWaitInvAmount',
|
render: 'applyWaitInvAmount',
|
||||||
|
className: 'text-right',
|
||||||
|
width: 150
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '申请待开客户',
|
title: '申请待开客户',
|
||||||
index: 'applyWaitCustomer',
|
index: 'applyWaitCustomer',
|
||||||
|
className: 'text-right',
|
||||||
|
width: 150
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '已开票金额',
|
title: '已开票金额',
|
||||||
index: 'invoicedAmount',
|
index: 'invoicedAmount',
|
||||||
render: 'invoicedAmount',
|
render: 'invoicedAmount',
|
||||||
|
className: 'text-right',
|
||||||
|
width: 150
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '未申请开票金额(历史)',
|
title: '未申请开票金额(历史)',
|
||||||
index: 'unInvoicedAmountHistory',
|
index: 'unInvoicedAmountHistory',
|
||||||
render: 'unInvoicedAmountHistory',
|
render: 'unInvoicedAmountHistory',
|
||||||
|
className: 'text-right',
|
||||||
|
width: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '未申请开票金额(当月)',
|
title: '未申请开票金额(当月)',
|
||||||
index: 'unInvoicedAmountCurMonth',
|
index: 'unInvoicedAmountCurMonth',
|
||||||
render: 'unInvoicedAmountCurMonth',
|
render: 'unInvoicedAmountCurMonth',
|
||||||
|
className: 'text-right',
|
||||||
|
width: 200
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '当月发票张数',
|
||||||
|
index: 'unInvoicedAmountHistory1',
|
||||||
|
className: 'text-right',
|
||||||
|
width: 150
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '剩余发票张数',
|
||||||
|
index: 'unInvoicedAmountCurMonth1',
|
||||||
|
className: 'text-right',
|
||||||
|
width: 150
|
||||||
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user