edit
This commit is contained in:
@ -11,6 +11,26 @@
|
||||
<page-header-wrapper [title]="'应付核销'">
|
||||
</page-header-wrapper>
|
||||
|
||||
<nz-card>
|
||||
<nz-row [nzGutter]="16">
|
||||
<nz-col [nzXl]="5" [nzLg]="8" [nzSm]="12">
|
||||
<nz-statistic [nzValue]="((info?.prmoneySum || 0) | currency)+'元' " [nzTitle]="'应付金额'"
|
||||
[nzValueStyle]="{'font-size':'16px',color:'red'}">
|
||||
</nz-statistic>
|
||||
</nz-col>
|
||||
<nz-col [nzXl]="5" [nzLg]="8" [nzSm]="12">
|
||||
<nz-statistic [nzValue]="((info?.phxmoneySum || 0) | currency) +'元'" [nzTitle]="'已核销金额'"
|
||||
[nzValueStyle]="{'font-size':'16px',color:'red'}">
|
||||
</nz-statistic>
|
||||
</nz-col>
|
||||
<nz-col [nzXl]="5" [nzLg]="8" [nzSm]="12">
|
||||
<nz-statistic [nzValue]="((info?.unPhxmoneySum || 0)| currency) +'元'" [nzTitle]="'未核销金额'"
|
||||
[nzValueStyle]="{'font-size':'16px',color:'red'}">
|
||||
</nz-statistic>
|
||||
</nz-col>
|
||||
</nz-row>
|
||||
</nz-card>
|
||||
|
||||
<nz-card class="search-box" nzBordered>
|
||||
<div nz-row nzGutter="8">
|
||||
<div nz-col [nzXl]="_$expand ? 24 : 18" [nzLg]="24" [nzSm]="24" [nzXs]="24">
|
||||
|
||||
@ -23,6 +23,7 @@ export class PayableOrderComponent implements OnInit {
|
||||
_$expand = false;
|
||||
|
||||
selectedRows: any[] = [];
|
||||
info: any = {};
|
||||
constructor(
|
||||
public service: FreightAccountService,
|
||||
private nzModalService: NzModalService,
|
||||
@ -30,7 +31,16 @@ export class PayableOrderComponent implements OnInit {
|
||||
private currencyPipe: CurrencyPipe
|
||||
) {}
|
||||
|
||||
ngOnInit(): void {}
|
||||
ngOnInit(): void {
|
||||
}
|
||||
|
||||
loadInfo() {
|
||||
this.service.request(this.service.$api_get_fico_ph_sum).subscribe(res => {
|
||||
if (res) {
|
||||
this.info = res;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
beforeReq = (requestOptions: STRequestOptions) => {
|
||||
if (this.sf) {
|
||||
@ -54,6 +64,7 @@ export class PayableOrderComponent implements OnInit {
|
||||
});
|
||||
}
|
||||
}
|
||||
this.loadInfo();
|
||||
return requestOptions;
|
||||
};
|
||||
|
||||
|
||||
@ -10,6 +10,26 @@
|
||||
-->
|
||||
<page-header-wrapper [title]="'应收核销'"> </page-header-wrapper>
|
||||
|
||||
<nz-card>
|
||||
<nz-row [nzGutter]="16">
|
||||
<nz-col [nzXl]="5" [nzLg]="8" [nzSm]="12">
|
||||
<nz-statistic [nzValue]="((info?.armoneySum || 0) | currency)+'元' " [nzTitle]="'应收金额'"
|
||||
[nzValueStyle]="{'font-size':'16px',color:'red'}">
|
||||
</nz-statistic>
|
||||
</nz-col>
|
||||
<nz-col [nzXl]="5" [nzLg]="8" [nzSm]="12">
|
||||
<nz-statistic [nzValue]="((info?.ahxmoneySum || 0) | currency) +'元'" [nzTitle]="'已核销金额'"
|
||||
[nzValueStyle]="{'font-size':'16px',color:'red'}">
|
||||
</nz-statistic>
|
||||
</nz-col>
|
||||
<nz-col [nzXl]="5" [nzLg]="8" [nzSm]="12">
|
||||
<nz-statistic [nzValue]="((info?.unAhxmoneySum || 0)| currency) +'元'" [nzTitle]="'未核销金额'"
|
||||
[nzValueStyle]="{'font-size':'16px',color:'red'}">
|
||||
</nz-statistic>
|
||||
</nz-col>
|
||||
</nz-row>
|
||||
</nz-card>
|
||||
|
||||
<nz-card class="search-box" nzBordered>
|
||||
<div nz-row nzGutter="8">
|
||||
<div nz-col [nzXl]="_$expand ? 24 : 18" [nzLg]="24" [nzSm]="24" [nzXs]="24">
|
||||
|
||||
@ -24,6 +24,8 @@ export class ReceivableOrderComponent implements OnInit {
|
||||
_$expand = false;
|
||||
|
||||
selectedRows: any[] = [];
|
||||
|
||||
info: any = {};
|
||||
constructor(
|
||||
public service: FreightAccountService,
|
||||
private nzModalService: NzModalService,
|
||||
@ -31,7 +33,16 @@ export class ReceivableOrderComponent implements OnInit {
|
||||
private currencyPipe: CurrencyPipe
|
||||
) {}
|
||||
|
||||
ngOnInit(): void {}
|
||||
ngOnInit(): void {
|
||||
}
|
||||
|
||||
loadInfo() {
|
||||
this.service.request(this.service.$api_get_fico_sum).subscribe(res => {
|
||||
if (res) {
|
||||
this.info = res;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
beforeReq = (requestOptions: STRequestOptions) => {
|
||||
if (this.sf) {
|
||||
@ -55,6 +66,7 @@ export class ReceivableOrderComponent implements OnInit {
|
||||
});
|
||||
}
|
||||
}
|
||||
this.loadInfo();
|
||||
return requestOptions;
|
||||
};
|
||||
|
||||
@ -260,23 +272,23 @@ export class ReceivableOrderComponent implements OnInit {
|
||||
private initST(): STColumn[] {
|
||||
return [
|
||||
{ title: '', index: 'key', type: 'checkbox' },
|
||||
{ title: '核销单号', index: 'ahxcode', type: 'link', width: 140 },
|
||||
{ title: '订单号', index: 'billHCode', type: 'link', width: 140 },
|
||||
{ title: '网络货运人', index: 'ltdName', width: 160 },
|
||||
{ title: '核销单号', index: 'ahxcode', type: 'link', width: 210 },
|
||||
{ title: '订单号', index: 'billHCode', type: 'link', width: 180 },
|
||||
{ title: '网络货运人', index: 'ltdName', width: 220 },
|
||||
{ title: '核销日期', index: 'ahxdate', type: 'date', width: 160 },
|
||||
{ title: '收款账户', index: 'ltdaccountId', width: 160 },
|
||||
{ title: '收款账户', index: 'ltdaccountId', width: 200 },
|
||||
{ title: '核销类型', index: 'ahxType', type: 'enum', enum: { '1': '预收款' }, width: 120 },
|
||||
{
|
||||
title: '核销金额',
|
||||
index: 'ahxmoney',
|
||||
width: 120,
|
||||
width: 140,
|
||||
className: 'text-right',
|
||||
format: item => `${this.currencyPipe.transform(item.ahxmoney)}`
|
||||
},
|
||||
{
|
||||
title: '应收金额',
|
||||
index: 'armoney',
|
||||
width: 120,
|
||||
width: 140,
|
||||
className: 'text-right',
|
||||
format: item => `${this.currencyPipe.transform(item.armoney)}`
|
||||
},
|
||||
|
||||
@ -88,6 +88,8 @@ export class FreightAccountService extends ShipperBaseService {
|
||||
|
||||
// 查询应收核销抬头
|
||||
$api_get_fico_page = '/api/fcc/ficoAhxH/list/page';
|
||||
// 应收核销汇总
|
||||
$api_get_fico_sum = '/api/fcc/ficoAhxH/getSum';
|
||||
// 获取应收核销抬头
|
||||
$api_get_fico_header = '/api/fcc/ficoAhxH/get';
|
||||
// 查询应收核销明细
|
||||
@ -95,6 +97,8 @@ export class FreightAccountService extends ShipperBaseService {
|
||||
|
||||
// 查询应付核销抬头
|
||||
$api_get_fico_ph_page = '/api/fcc/ficoPhxH/list/page';
|
||||
// 应付核销汇总
|
||||
$api_get_fico_ph_sum = '/api/fcc/ficoPhxH/getSum';
|
||||
// 获取应付核销抬头
|
||||
$api_get_fico_ph_header = '/api/fcc/ficoPhxH/get';
|
||||
// 查询应付核销明细
|
||||
|
||||
Reference in New Issue
Block a user