<div class="modal display_flex justify-content_flex-center align-items_center" *ngIf="show">
  <div class="modalBody" style="width: 1200px;">
    <div class="title">{{otherBindConfigDto.relationTrans.name}}<i class="icon_transport transport-guanbi" (click)="hideModal()"></i></div>
    <div class="content">
      <!-- 血制品 -->
      <nz-table class="hospitalTable" [nzData]="dataList" nzSize="middle" [nzShowPagination]="false" [nzData]="dataList"
        [nzLoading]="hsLoading" (nzCurrentPageDataChange)="currentPageDataChange($event)" [nzScroll]="{ y: '500px' }">
        <thead>
          <tr class="thead">
            <th nzWidth="5%" nzShowCheckbox [(nzChecked)]="isAllDisplayDataChecked" [nzIndeterminate]="isIndeterminate"
              (nzCheckedChange)="checkAll($event)"></th>
            <th nzWidth="5%">序号</th>
            <th nzWidth="10%">住院号</th>
            <th nzWidth="10%">次数</th>
            <th nzWidth="10%">姓名</th>
            <th nzWidth="10%">性别</th>
            <th nzWidth="10%">床位</th>
            <th nzWidth="10%">医疗小组</th>
            <th nzWidth="10%">出院时间</th>
            <th nzWidth="10%">条形码</th>
            <th nzWidth="10%">出院科室</th>
          </tr>
        </thead>
        <tbody>
          <tr *ngFor="let data of dataList;let i = index;" (click)="selectedListData(data.id)">
            <td nzShowCheckbox [(nzChecked)]="mapOfCheckedId[data.id]" [nzDisabled]="data.disabled" (nzCheckedChange)="refreshStatus()"></td>
            <td>{{ (pageIndex - 1) * pageSize + i + 1 }}</td>
            <td>{{ data.residenceNo || ''}}</td>
            <td>{{ data.extra2 || '' }}</td>
            <td>{{ data.patientName || '' }}</td>
            <td>{{ data.extra3 || '' }}</td>
            <td>{{ data.extra4 || '' }}</td>
            <td>{{ data.extra5 || '' }}</td>
            <td>{{ data.extra1Time | date:"yyyy-MM-dd" }}<br>{{ data.extra1Time | date:"HH:mm:ss" }}</td>
            <td>{{ data.code || '' }}</td>
            <td>{{ data.startDeptDTO ? (deptDisplay == 2 ? data.startDeptDTO.deptalias : data.startDeptDTO.dept) : '' }}</td>
          </tr>
        </tbody>
      </nz-table>

      <div class="pagination">
        <ng-template #totalTemplate let-total> 共 {{ total }} 条 </ng-template>
        <nz-pagination [(nzPageIndex)]="pageIndex" [(nzTotal)]="total"
          [(nzPageSize)]="pageSize" (nzPageIndexChange)="getList()"
          (nzPageSizeChange)="getList()" [nzShowTotal]="totalTemplate">
        </nz-pagination>
      </div>
    </div>
    <div class="display_flex justify-content_flex-center">
      <button class="btn" nz-button nzType="primary" (click)="confirmModal()">确认</button>
      <button class="btn cancel" nz-button nzType="default" (click)="hideModal()">取消</button>
    </div>
  </div>
</div>
