<div class="list-template">
  <div class="list-template__content">
    <div class="list-template__top" nz-row>
      <div nz-col nzXl="18" class="list-template__searchBox">
        <div class="list-template__searchItem">
          <span class="label">完成时间区间</span>：
					<nz-range-picker [(ngModel)]="dateRange" nzFormat="yyyy-MM-dd HH:mm:ss"
					(ngModelChange)="changeDate($event)"></nz-range-picker>
        </div>
      </div>
      <div nz-col nzXl="6" class="list-template__btns">
        <button nz-button class="btn default" (click)="search()">搜索</button>
        <button nz-button class="btn default ml8" (click)="reset()">
          重置
        </button>
				<button nz-button class="btn default ml8" (click)="excelExport()">
				  导出
				</button>
      </div>
    </div>
    <div class="list-template__bottom">
      <nz-table
        class="list-template__nzTable"
        [nzData]="listOfData"
        nzSize="middle"
        [nzShowPagination]="false"
        [nzLoading]="loading1"
      >
        <thead>
          <tr class="thead">
						<th nzWidth="50px">序号</th>
						<th>发起时间</th>
						<th>完成时间</th>
						<th>起点科室</th>
						<th>目标科室</th>
						<th nzWidth="30%">工单备注</th>
						<th>患者住院号</th>
						<th>姓名</th>
						<th>转运人员</th>
            <th nzWidth="70px">操作</th>
          </tr>
        </thead>
        <tbody>
          <tr *ngFor="let data of listOfData; let index = index">
						<td>{{ index+(pageIndex-1) * pageSize + 1 }}</td>
            <td>{{ data['1'] | date:'yyyy-MM-dd HH:mm:ss' }}</td>
            <td>{{ data['2'] | date:'yyyy-MM-dd HH:mm:ss' }}</td>
            <td>{{ data['3']}}</td>
            <td>{{ data['4'] }}</td>
            <td>{{ data['5'] }}</td>
            <td>{{ data['6'] }}</td>
            <td>{{ data['7'] }}</td>
						<td>{{ data['8'] }}</td>
            <td>
              <div class="coop">
                <span
                  *ngIf="coopBtns.look"
                  (click)="personDetail(data)"
                  >查看</span
                >
              </div>
            </td>
          </tr>
        </tbody>
      </nz-table>
      <div class="list-template__pagination">
        <nz-pagination
          [(nzPageIndex)]="pageIndex"
          [(nzTotal)]="listLength"
          nzShowSizeChanger
          [(nzPageSize)]="pageSize"
          (nzPageIndexChange)="getList()"
          (nzPageSizeChange)="getList()"
        >
        </nz-pagination>
      </div>
    </div>
  </div>
</div>
<!-- 操作成功/失败提示框 -->
<app-prompt-modal
  *ngIf="promptModalShow"
  [content]="promptContent"
  [success]="ifSuccess"
  [show]="promptModalShow"
  [info]="promptInfo"
></app-prompt-modal>

<!-- 查看详情 -->
<router-outlet></router-outlet>
