<div class="detail">
  <div class="title">
    <div>
      工单详情
      <label class="isFiveOrder" nz-checkbox [ngModel]="isFiveOrder" (ngModelChange)="changeIsFiveOrder($event)">执行时长五分钟以内工单</label>
      <label class="isFiveOrder" nz-checkbox [ngModel]="specialClose" (ngModelChange)="changeSpecialClose($event)">特殊关闭工单</label>
    </div>
    <i class="icon_transport transport-guanbi" (click)="close()"></i>
  </div>
  <div class="box">
    <nz-table class="hospitalTable" [nzData]="listOfData" nzSize="middle" [nzShowPagination]="false"
      [nzLoading]="loading1" [nzScroll]="{y:'350px'}">
      <thead>
        <tr class="thead">
          <th nzWidth="5%">序号</th>
          <th nzWidth="15%">工单单号<br>申请科室</th>
          <th nzWidth="15%">工单类型<br>任务类型</th>
          <th nzWidth="10%">发起时间</th>
          <th nzWidth="10%">执行时长<br>执行人</th>
          <th nzWidth="15%">楼栋分<br>陪检方式分</th>
          <th nzWidth="5%">积分</th>
          <th nzWidth="10%">是否特殊关闭</th>
          <th nzWidth="15%">操作</th>
        </tr>
      </thead>
      <tbody>
        <tr *ngFor="let data of listOfData;let index=index;">
          <td>{{index+(pageIndex-1) * pageSize + 1}}</td>
          <td>{{ data.gdcode }}<br>{{ data.createDeptDTO?data.createDeptDTO.dept:'' }}</td>
          <td>{{ data.taskType.associationType.name }}<br>{{ data.taskType.taskName }}</td>
          <td>{{data.startTime|date:'yyyy-MM-dd HH:mm'}}</td>
          <td>{{ data.showTimeNum }}<br>{{ data.worker?data.worker.name:'' }}</td>
          <td>{{ data.grade?data.grade.buildingGrade:'' }}<br>{{ data.grade?data.grade.inspectModeGrade:'' }}</td>
          <td>{{data.grade?data.grade.gradeTotal:'-'}}</td>
          <td>{{data.specialCloseReason?'是':'否'}}</td>
          <td>
            <div class="coop">
              <span (click)="integralDetail(data)">查看</span>
            </div>
          </td>
        </tr>
      </tbody>
    </nz-table>
    <div class="pagination">
      <nz-pagination [(nzPageIndex)]="pageIndex" [(nzTotal)]="listLength" nzShowSizeChanger [(nzPageSize)]="pageSize"
        (nzPageIndexChange)="getOrdersByPerson(hosId,currentPersonId)"
        (nzPageSizeChange)="getOrdersByPerson(hosId, currentPersonId)">
      </nz-pagination>
    </div>
  </div>
  <div class="btns">
    <button class=" btn cancel" nz-button nzType="default" (click)="close()">关闭</button>
  </div>
</div>
<router-outlet></router-outlet>
