<!--
 * @Description  : 
 * @Version      : 1.0
 * @Author       : Shiming
 * @Date         : 2022-01-19 20:19:59
 * @LastEditors  : Shiming
 * @LastEditTime : 2022-01-26 14:27:32
 * @FilePath     : \\tms-obc-web\\src\\app\\routes\\ticket-management\\components\\invoiced-list\\invoiced-list.component.html
 * Copyright (C) 2022 huzhenhong. All rights reserved.
-->
<page-header-wrapper [title]="'已开发票'"> </page-header-wrapper>

<nz-card class="search-box" nzBordered>
  <div nz-row nzGutter="8">
    <div nz-col [nzXl]="_$expand ? 24 : 18" [nzLg]="24" [nzSm]="24" [nzXs]="24">
      <sf #sf [schema]="searchSchema" [ui]="{ '*': { spanLabelFixed: 120, 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="text-right">
      <button nz-button nzType="primary" [nzLoading]="service.http.loading" (click)="st?.load(1)">查询</button>
      <button nz-button (click)="resetSF()">重置</button>
      <!-- <button nz-button> 导出</button> -->
      <button nz-button nzType="link" (click)="expandToggle()">
        {{ !_$expand ? '展开' : '收起' }}
        <i nz-icon [nzType]="!_$expand ? 'down' : 'up'"></i>
      </button>
    </div>
  </div>
</nz-card>

<nz-card nzBordered>
  <div class="d-flex align-items-center mb-md">
    <!-- <button nz-button (click)="this.deletedInvoice()">作废发票</button>
    <button nz-button (click)="this.invoiceHongChong()">发票红冲</button> -->
    <!-- <div class="ml-md">
      已选择
      <strong class="text-red">{{ selectedRows.length }}</strong> 条数据&nbsp;&nbsp; 开票金额总计
      <strong class="text-red">{{ totalCallNo }}</strong>
      <a *ngIf="totalCallNo > 0" (click)="st.clearCheck()" class="ml-lg">清空</a>
    </div> -->
  </div>

  <st #st [data]="service.$api_get_invoice_page" [columns]="columns" [req]="{ process: beforeReq }" [page]="{}"
    [loading]="false" [scroll]="{ x: '1200px' }" (change)="stChange($event)">
    <ng-template st-row="no" let-item let-index="index">
      {{ item.no }}
      <a>预览发票</a>
    </ng-template>
    <ng-template st-row="expresscompany" let-item let-index="index" let-column="column">
      {{ item.expresscompany }} <br />
      {{ item.expressno }}
    </ng-template>
  </st>
</nz-card>

<ng-template #logosticsLogsModal>
  <p class="mb-xl">
    顺丰快递: {{ routesInfo?.mailNo }}
    <nz-tag [nzColor]="'#2db7f5'" class="ml-md">已签收</nz-tag>
  </p>
  <app-logistics-time-line [data]="routesInfo?.routes"></app-logistics-time-line>
</ng-template>

<ng-template #requestedModal>
  <div nz-row nzGutter="8">
      <div nz-col nzSpan="24" se-container [labelWidth]="100">
          <se [col]="1" label="快递公司" required>
              <input nz-input [(ngModel)]="openInfo.expresscompany" placeholder="请输入" />
          </se>
          <se [col]="1" label="快递单号" required>
              <input nz-input [(ngModel)]="openInfo.expressno" placeholder="请输入" />
          </se>
      </div>
  </div>
</ng-template>