<!-- <page-header-wrapper></page-header-wrapper>
<nz-card>
  <div nz-row nzGutter="8">
    <ng-container *ngIf="queryFieldCount > 4">
      <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">
        <button nz-button nzType="primary" acl [acl-ability]="['VEHICLE-AUDIT-search']"
          [nzLoading]="service.http.loading" (click)="st?.load(1)">查询</button>
        <button nz-button nzType="primary" [disabled]="false" (click)="exportFire()">导出</button>
        <button nz-button [disabled]="false" (click)="resetSF()">重置</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 class="table-box">
  <div class="tab_header">
    <label class="page_title"><label class="driver">|</label>车辆审核列表</label>
    <nz-tabset (nzSelectedIndexChange)="selectChange($event)" [nzSelectedIndex]='defaultTabs'
      [nzTabBarExtraContent]="extraTemplate">
      <nz-tab [nzTitle]="'全部'"></nz-tab>
      <nz-tab [nzTitle]="'待审核'"></nz-tab>
      <nz-tab [nzTitle]="'审核通过'"></nz-tab>
      <nz-tab [nzTitle]="'驳回'"></nz-tab>
    </nz-tabset>
  </div>

  <ng-template #extraTemplate>
    <div class="mr-sm">
      <button nz-button nzDanger [nzLoading]="service.http.loading" acl [acl-ability]="['VEHICLE-AUDIT-search']"
        (click)="openDrawer()">筛选</button>
      <button nz-button nzDanger (click)="exportFire()" acl [acl-ability]="['VEHICLE-AUDIT-export']">
        导出</button>
      <button nz-button nzType="primary" (click)="addModal()" acl [acl-ability]="['VEHICLE-AUDIT-add']">添加车辆</button>
    </div>
  </ng-template>
  <!-- 数据列表 -->
  <!-- [data]="service.$api_get_supplier_page" -->

  <st #st [bordered]="true" [scroll]="{ x: '1200px',y:scrollY }" [columns]="columns"
    [data]='service.$api_get_userCarLicense_list' [req]="{  params: reqParams }" [res]="{  process: dataProcess }"
    [page]="{  }" [loading]="false">
    <ng-template st-row="carLength" let-item let-index="index">
      <div>{{item?.carModel}}-{{item?.carLengthLabel? item?.carLengthLabel + '米' : ''}}-{{ item?.carLoad?
        item?.carLoad + '吨' : ''}}</div>
    </ng-template>
    <ng-template st-row="isSelf" let-item let-index="index">
      <div>{{item?.isSelf ? '是' : '否'}}</div>
    </ng-template>
    <ng-template st-row="contactsPhone" let-item let-index="index">
      <div style="color: #52c41a;" (click)="daoyun(item)">
        {{ item.contactsPhone }}
      </div>
    </ng-template>
    <ng-template st-row="stateCol" let-item let-index="index">
      <nz-tag *ngIf="item.stateLocked" nzColor="error">冻结</nz-tag>
      <nz-tag *elseBlock nzColor="success">正常</nz-tag>
    </ng-template>
  </st>
</nz-card>