edit
This commit is contained in:
@ -13,12 +13,13 @@
|
|||||||
|
|
||||||
<nz-card class="search-box" nzBordered>
|
<nz-card class="search-box" nzBordered>
|
||||||
<div nz-row nzGutter="8">
|
<div nz-row nzGutter="8">
|
||||||
<div nz-col [nzXl]="_$expand ? 24 : 16" [nzLg]="24" [nzSm]="24" [nzXs]="24">
|
<div nz-col [nzXl]="_$expand ? 24 : 18" [nzLg]="24" [nzSm]="24" [nzXs]="24">
|
||||||
<sf #sf [schema]="searchSchema"
|
<sf #sf [schema]="searchSchema"
|
||||||
[ui]="{ '*': { spanLabelFixed: 100,grid: { lg: 8, md: 12, sm: 12, xs: 24 } }}" [compact]="true"
|
[ui]="{ '*': { spanLabelFixed: 100,grid: { lg: 8, md: 12, sm: 12, xs: 24 } }}" [compact]="true"
|
||||||
[button]="'none'"></sf>
|
[button]="'none'"></sf>
|
||||||
</div>
|
</div>
|
||||||
<div nz-col [nzXl]="_$expand ? 24 : 8" [nzLg]="24" [nzSm]="24" [nzXs]="24" class="text-right">
|
<div nz-col [nzXl]="_$expand ? 24 : 6" [nzLg]="24" [nzSm]="24" [nzXs]="24" class="text-right"
|
||||||
|
[class.expend-options]="_$expand">
|
||||||
<button nz-button nzType="primary" [nzLoading]="service.http.loading" (click)="st?.load(1)">查询</button>
|
<button nz-button nzType="primary" [nzLoading]="service.http.loading" (click)="st?.load(1)">查询</button>
|
||||||
<button nz-button [disabled]="false" (click)="resetSF()">重置</button>
|
<button nz-button [disabled]="false" (click)="resetSF()">重置</button>
|
||||||
<!-- <button nz-button nzType="primary" [disabled]="false"> 导出</button>
|
<!-- <button nz-button nzType="primary" [disabled]="false"> 导出</button>
|
||||||
|
|||||||
@ -11,7 +11,7 @@ import { FreightAccountService } from '../../services/freight-account.service';
|
|||||||
@Component({
|
@Component({
|
||||||
selector: 'app-voucher-summary',
|
selector: 'app-voucher-summary',
|
||||||
templateUrl: './voucher-summary.component.html',
|
templateUrl: './voucher-summary.component.html',
|
||||||
styleUrls: ['../../../commom/less/box.less']
|
styleUrls: ['../../../commom/less/box.less', '../../../commom/less/expend-but.less']
|
||||||
})
|
})
|
||||||
export class VoucherSummaryComponent implements OnInit {
|
export class VoucherSummaryComponent implements OnInit {
|
||||||
@ViewChild('st', { static: true })
|
@ViewChild('st', { static: true })
|
||||||
@ -39,12 +39,12 @@ export class VoucherSummaryComponent implements OnInit {
|
|||||||
Object.assign(requestOptions.body, {
|
Object.assign(requestOptions.body, {
|
||||||
...this.sf.value,
|
...this.sf.value,
|
||||||
createtime: {
|
createtime: {
|
||||||
start: this.sf.value.createtime?.[0] || null,
|
start: this.sf.value.createtime?.[0] || '',
|
||||||
end: this.sf.value.createtime?.[1] || null
|
end: this.sf.value.createtime?.[1] || ''
|
||||||
},
|
},
|
||||||
vctime: {
|
vctime: {
|
||||||
start: this.sf.value.vctime?.[0] || null,
|
start: this.sf.value.vctime?.[0] || '',
|
||||||
end: this.sf.value.vctime?.[1] || null
|
end: this.sf.value.vctime?.[1] || ''
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -286,8 +286,8 @@ export class VoucherSummaryComponent implements OnInit {
|
|||||||
private initST(): STColumn[] {
|
private initST(): STColumn[] {
|
||||||
return [
|
return [
|
||||||
{ title: '', index: 'key', type: 'checkbox', width: 60, className: 'text-center', fixed: 'left' },
|
{ title: '', index: 'key', type: 'checkbox', width: 60, className: 'text-center', fixed: 'left' },
|
||||||
{ title: '汇总凭证号', index: 'vc2code', type: 'link', width: 140 },
|
{ title: '汇总凭证号', index: 'vc2code', type: 'link', width: 180 },
|
||||||
{ title: '帐套', index: 'vcltdcode', width: 120 },
|
{ title: '帐套', index: 'vcltdcode', width: 180 },
|
||||||
{ title: '凭证时间', index: 'createTime', type: 'date', width: 150 },
|
{ title: '凭证时间', index: 'createTime', type: 'date', width: 150 },
|
||||||
{
|
{
|
||||||
title: '统计区间',
|
title: '统计区间',
|
||||||
@ -307,7 +307,7 @@ export class VoucherSummaryComponent implements OnInit {
|
|||||||
{
|
{
|
||||||
title: '借方金额',
|
title: '借方金额',
|
||||||
index: 'drmoney',
|
index: 'drmoney',
|
||||||
width: 120,
|
width: 140,
|
||||||
type: 'widget',
|
type: 'widget',
|
||||||
className: 'text-right',
|
className: 'text-right',
|
||||||
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.drmoney }) }
|
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.drmoney }) }
|
||||||
@ -315,7 +315,7 @@ export class VoucherSummaryComponent implements OnInit {
|
|||||||
{
|
{
|
||||||
title: '贷方金额',
|
title: '贷方金额',
|
||||||
index: 'crmoney',
|
index: 'crmoney',
|
||||||
width: 120,
|
width: 140,
|
||||||
type: 'widget',
|
type: 'widget',
|
||||||
className: 'text-right',
|
className: 'text-right',
|
||||||
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.crmoney }) }
|
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.crmoney }) }
|
||||||
|
|||||||
Reference in New Issue
Block a user