45 lines
2.3 KiB
HTML
45 lines
2.3 KiB
HTML
<!-- 页头 -->
|
||
<page-header-wrapper [title]="'货主报表'"></page-header-wrapper>
|
||
<nz-card>
|
||
<!-- 搜索表单 -->
|
||
<div nz-row nzGutter="8">
|
||
<!-- 查询字段大于3个时,根据展开状态调整布局 -->
|
||
<ng-container>
|
||
<div nz-col [nzSpan]="_$expand ? 24 : 18">
|
||
<sf #sf [schema]="schema" [ui]="ui" [compact]="true" [button]="'none'"></sf>
|
||
</div>
|
||
<div nz-col [nzSpan]="_$expand ? 24 : 6" [class.text-right]="_$expand">
|
||
<button nz-button nzType="primary" [disabled]="!sf.valid" [nzLoading]="false" (click)="search()">查询</button>
|
||
<button nz-button (click)="resetSF()">重置</button>
|
||
<!-- <button nz-button (click)="export()">导出</button> -->
|
||
<button nz-button nzType="link" (click)="expandToggle()">
|
||
{{ !_$expand ? '展开' : '收起' }}
|
||
<i nz-icon [nzType]="!_$expand ? 'down' : 'up'"></i>
|
||
</button>
|
||
</div>
|
||
</ng-container>
|
||
</div>
|
||
</nz-card>
|
||
<nz-card nzTitle="货主报表" [nzExtra]="extraTemplate">
|
||
<ng-template #extraTemplate>
|
||
<div class="chooseBox">
|
||
<div class="timeBox">
|
||
<nz-radio-group [(ngModel)]="mode" nzButtonStyle="solid" (ngModelChange)="changeData()">
|
||
<label nz-radio-button nzValue="year">年</label>
|
||
<label nz-radio-button nzValue="month">月</label>
|
||
<label nz-radio-button nzValue="date">日</label>
|
||
<label nz-radio-button nzValue="define">自定义</label>
|
||
</nz-radio-group>
|
||
<div class="dateBox">
|
||
<nz-date-picker [(ngModel)]="date" [nzMode]="mode" [nzFormat]="dateFormat" *ngIf="mode !== 'define'" [nzDisabledDate]="disabledDate" (ngModelChange)="onChange($event)"></nz-date-picker>
|
||
<nz-range-picker [(ngModel)]="defineDate" [nzFormat]="dateFormat" *ngIf="mode === 'define'" [nzDisabledDate]="disabledDate" (ngModelChange)="onChange($event)"></nz-range-picker>
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
</ng-template>
|
||
<st #st multiSort [columns]="columns" [ps]="20" [data]="service.$api_listShipperReportPage"
|
||
[req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams }"
|
||
[scroll]="{ x: '1200px' }" [res]="{ reName: { list: 'data.records', total: 'data.total' } }"
|
||
[page]="{ show: true, showSize: true, pageSizes: [20, 50, 100] }" [loading]="false"></st>
|
||
</nz-card> |