UI
This commit is contained in:
		| @ -1,13 +1,12 @@ | ||||
| <page-header-wrapper [title]="''"></page-header-wrapper> | ||||
|  | ||||
| <!-- <page-header-wrapper [title]="''"></page-header-wrapper> | ||||
| <nz-card> | ||||
|   <!-- 搜索表单 --> | ||||
|   <div nz-row nzGutter="8"> | ||||
|     <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]="isLoading && st.loading" (click)="search()">查询</button> | ||||
|       <button nz-button nzType="primary" [disabled]="!sf.valid" [nzLoading]="isLoading && st.loading" | ||||
|         (click)="search()">查询</button> | ||||
|       <button nz-button (click)="resetSF()">重置</button> | ||||
|       <button nz-button (click)="export()" acl [acl-ability]="['TAX_INVOICE_REPORT-export']">导出</button> | ||||
|       <button nz-button nzType="link" (click)="expandToggle()"> | ||||
| @ -16,22 +15,18 @@ | ||||
|       </button> | ||||
|     </div> | ||||
|   </div> | ||||
| </nz-card> | ||||
| <nz-card> | ||||
|   <nz-tabset [nzTabBarExtraContent]="extraTemplate" *ngIf="tabs.length > 0"> | ||||
|     <nz-tab *ngFor="let tab of tabs" [nzTitle]="tab.name" (nzSelect)="selectChange(tab)"> </nz-tab> | ||||
|   </nz-tabset> | ||||
| </nz-card> --> | ||||
| <nz-card class="table-box"> | ||||
|   <div class="tab_header"> | ||||
|     <label class="page_title"> <label class="driver">|</label> 发票上传</label> | ||||
|     <nz-tabset [nzTabBarExtraContent]="extraTemplate"> | ||||
|       <nz-tab *ngFor="let tab of tabs" [nzTitle]="tab.name" (nzSelect)="selectChange(tab)"> </nz-tab> | ||||
|     </nz-tabset> | ||||
|   </div> | ||||
|  | ||||
|   <!-- 数据列表 --> | ||||
|   <st | ||||
|     #st | ||||
|     [scroll]="{ x: '1200px' }" | ||||
|     [data]="service.$api_getInvoiceReport_page" | ||||
|     [columns]="columns" | ||||
|     [req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams }" | ||||
|     [res]="{ reName: { list: 'data.records', total: 'data.total' } }" | ||||
|     [page]="{ show: true, showSize: true, pageSizes: [10, 20, 50, 100] }" | ||||
|     [loading]="service.http.loading" | ||||
|   > | ||||
|   <st #st [scroll]="{ x: '1200px',y:scrollY }" [data]="service.$api_getInvoiceReport_page" [columns]="columns" | ||||
|     [req]="{ params: reqParams }" [page]="{  }" [loading]="service.http.loading"> | ||||
|     <ng-template st-row="uploadSts" let-item let-index="index"> | ||||
|       <!-- <a (click)="viewAuditResult(item)" *ngIf="item?.billStatus === '2'">{{item?.billStatusLabel}}</a> --> | ||||
|       <span *ngIf="item?.uploadSts == '1'">待上传</span> | ||||
| @ -52,23 +47,30 @@ | ||||
|     </ng-template> | ||||
|   </st> | ||||
| </nz-card> | ||||
|  | ||||
| <ng-template #extraTemplate> | ||||
|   <div class="d-flex align-items-center"> | ||||
|   <div class="d-flex align-items-center mr-sm"> | ||||
|     <div class="mr-md"> | ||||
|       已选择 | ||||
|       <strong class="text-red">{{ selectedRows.length }}</strong> 条数据 | ||||
|     </div> | ||||
|     <button | ||||
|       *ngIf="selectedIndex === '1' || selectedIndex === '4'" | ||||
|       nz-button | ||||
|       nzType="primary" | ||||
|       (click)="upload()" | ||||
|       acl | ||||
|       [acl-ability]="['TAX_INVOICE_REPORT-upload']" | ||||
|       >上传</button | ||||
|     > | ||||
|     <button *ngIf="selectedIndex === '3'" nz-button nzType="primary" (click)="recall()" acl [acl-ability]="['TAX_INVOICE_REPORT-recall']" | ||||
|       >撤回</button | ||||
|     > | ||||
|     <button nz-button nzDanger [nzLoading]="isLoading && st.loading" acl [acl-ability]="['TAX-ORDERREPORT-search']" | ||||
|       (click)="openDrawer()">筛选</button> | ||||
|     <button nz-button nzDanger acl [acl-ability]="['TAX_INVOICE_REPORT-export']"> 导出</button> | ||||
|     <button nz-button *ngIf="selectedIndex && selectedIndex !== '2'" nz-dropdown [nzDropdownMenu]="menu" | ||||
|       nzPlacement="bottomLeft"> | ||||
|       更多<i nz-icon nzType="down" nzTheme="outline"></i></button> | ||||
|     <nz-dropdown-menu #menu="nzDropdownMenu"> | ||||
|       <ul nz-menu> | ||||
|         <li nz-menu-item *ngIf="selectedIndex === '1' || selectedIndex === '4'" (click)="upload()" acl | ||||
|           [acl-ability]="['TAX_INVOICE_REPORT-upload']"> | ||||
|           上传 | ||||
|         </li> | ||||
|         <li nz-menu-item *ngIf="selectedIndex === '3'" (click)="recall()" acl | ||||
|           [acl-ability]="['TAX_INVOICE_REPORT-recall']"> | ||||
|           撤回 | ||||
|         </li> | ||||
|       </ul> | ||||
|     </nz-dropdown-menu> | ||||
|   </div> | ||||
| </ng-template> | ||||
| </ng-template> | ||||
		Reference in New Issue
	
	Block a user