<!-- <page-header-wrapper title="司机账户"> </page-header-wrapper>

<nz-card class="search-box">
  <div nz-row nzGutter="8">
    <div nz-col [nzXl]="_$expand ? 24 : 18" [nzLg]="24" [nzSm]="24" [nzXs]="24">
      <sf
        #sf
        [schema]="searchSchema"
        [ui]="{ '*': { spanLabelFixed: 110, grid: { lg: 8, md: 12, sm: 12, xs: 24 } } }"
        [compact]="true"
        [button]="'none'"
      ></sf>
    </div>
    <div nz-col [nzXl]="_$expand ? 24 : 6" [nzLg]="24" [nzSm]="24" [nzXs]="24" [class.expend-options]="_$expand" class="text-right">
      <button nz-button nzType="primary" [nzLoading]="loading" (click)="st?.load(1)">查询</button>
      <button nz-button [disabled]="loading" (click)="resetSF()">重置</button>
      <button nz-button [disabled]="loading" (click)="exportList()"> 导出</button>
      <button nz-button nzType="link" (click)="expandToggle()">
        {{ !_$expand ? '展开' : '收起' }}
        <i nz-icon [nzType]="!_$expand ? 'down' : 'up'"></i>
      </button>
    </div>
  </div>
</nz-card> -->

<nz-card class="table-box">
  <div class="header_box">
    <label class="page_title"> <label class="driver">|</label> 司机账户</label>
    <div class="mr-sm">
      <button nz-button nzDanger [nzLoading]="service.http.loading" (click)="openDrawer()">筛选</button>
      <button nz-button nzDanger (click)="exportList()"> 导出</button>
    </div>
  </div>
  <st #st [data]="service.$api_get_driver_account_page" [columns]="columns" [req]="{ process: beforeReq }"
    [res]="{ process: afterRes}" [page]="{}" [loading]="false" [scroll]="{ x: '1200px',y:scrollY }">
    <ng-template st-row="availableBalance" let-item let-index="index">
      <a (click)="showAccountDetail(item)">{{
        (parseFloat(item.availableBalance) + parseFloat(item.freezeBalance)).toFixed(2) | currency
        }}</a>
    </ng-template>
  </st>
</nz-card>