<div class="inspectAutoManagement">
  <div class="inspectAutoInfo">
    <div class="title">班次信息<span class="taskTypeName">{{taskTypeName}}</span></div>
    <div class="inspectAutos" [ngStyle]="{display:!loading1?'block':'none'}">
      <overlay-scrollbars #osComponentRef1 [ngStyle]="{ height:'100%' }">
        <div [ngClass]="{'item':true,'checked':data.id==checkedInspectAuto.id}" *ngFor="let data of inspectAutoList"
          (click)="checkInspectAuto(data)" [title]="data.name">{{data.name}}
        </div>
      </overlay-scrollbars>
    </div>
    <div class="inspectAutos" *ngIf="loading1">
      <div class="loadingFull display_flex justify-content_flex-center align-items_center">
        <div class="loadingFullInner">
          <img src="../../../assets/images/loading.gif" alt="">
          <div>加载中...</div>
        </div>
      </div>
    </div>
  </div>
  <div class="userInfo">
    <div class="top display_flex justify-content_flex-end align-items_center">
      <div class="display_flex align-items_center">
        <button class="btn default" *ngIf="coopBtns.edit&&inspectAutoList.length" nzType="primary" nz-button
          [nzLoading]="saveLoading" (click)="save()">保存</button>
      </div>
    </div>
    <div class="table" *ngIf="!loading2">
      <div class="inspectAutoManagementTable">
        <overlay-scrollbars #osComponentRef2 [ngStyle]="{ height:'100%' }">
          <div class="inspectAutoGroup">
            <div class="urgencyOrOrdinary mt8">
              <div>
                <label nz-checkbox [(ngModel)]="urgencyInspect"
                  (ngModelChange)="changeInspect($event,'urgencyInspect')">急查</label>
                <label nz-checkbox [(ngModel)]="urgencyInspectNo">不进行自动派单</label>
              </div>
              <div *ngIf="urgencyInspect">
                <div class="mt8">检查类型：</div>
                <nz-checkbox-wrapper (nzOnChange)="selectInspectType($event,'urgencyInspect')">
                  <div class="clearfixer mt8 ml16">
                    <label class="fl mr8" style="margin-left:0;" nz-checkbox [nzValue]="item.id"
                      *ngFor="let item of inspectTypeList_u" [ngModel]="item.checked">{{item.name}}</label>
                  </div>
                </nz-checkbox-wrapper>
              </div>
              <div *ngIf="inspectType_u">
                <div class="mt8">护理等级：</div>
                <nz-checkbox-wrapper (nzOnChange)="selectLevelOfCare($event,'urgencyInspect')">
                  <div class="clearfixer mt8 ml16">
                    <label class="fl mr8" style="margin-left:0;" nz-checkbox [nzValue]="item.id"
                      *ngFor="let item of levelOfCareList_u" [ngModel]="item.checked">{{item.name}}</label>
                  </div>
                </nz-checkbox-wrapper>
              </div>
              <div *ngIf="inspectType_u">
                <div class="mt8">病情级别：</div>
                <nz-checkbox-wrapper (nzOnChange)="selectStateOfAnIllness($event,'urgencyInspect')">
                  <div class="clearfixer mt8 ml16">
                    <label class="fl mr8" style="margin-left:0;" nz-checkbox [nzValue]="item.id"
                      *ngFor="let item of stateOfAnIllnessList_u" [ngModel]="item.checked">{{item.name}}</label>
                  </div>
                </nz-checkbox-wrapper>
              </div>
            </div>
            <div class="urgencyOrOrdinary mt8">
              <div>
                <label nz-checkbox [(ngModel)]="ordinaryInspect"
                  (ngModelChange)="changeInspect($event,'ordinaryInspect')">普查</label>
                <label nz-checkbox [(ngModel)]="ordinaryInspectNo">不进行自动派单</label>
              </div>
              <div *ngIf="ordinaryInspect">
                <div class="mt8">检查类型：</div>
                <nz-checkbox-wrapper (nzOnChange)="selectInspectType($event,'ordinaryInspect')">
                  <div class="clearfixer mt8 ml16">
                    <label class="fl mr8" style="margin-left:0;" nz-checkbox [nzValue]="item.id"
                      *ngFor="let item of inspectTypeList_o" [ngModel]="item.checked">{{item.name}}</label>
                  </div>
                </nz-checkbox-wrapper>
              </div>
              <div *ngIf="inspectType_o">
                <div class="mt8">护理等级：</div>
                <nz-checkbox-wrapper (nzOnChange)="selectLevelOfCare($event,'ordinaryInspect')">
                  <div class="clearfixer mt8 ml16">
                    <label class="fl mr8" style="margin-left:0;" nz-checkbox [nzValue]="item.id"
                      *ngFor="let item of levelOfCareList_o" [ngModel]="item.checked">{{item.name}}</label>
                  </div>
                </nz-checkbox-wrapper>
              </div>
              <div *ngIf="inspectType_o">
                <div class="mt8">病情级别：</div>
                <nz-checkbox-wrapper (nzOnChange)="selectStateOfAnIllness($event,'ordinaryInspect')">
                  <div class="clearfixer mt8 ml16">
                    <label class="fl mr8" style="margin-left:0;" nz-checkbox [nzValue]="item.id"
                      *ngFor="let item of stateOfAnIllnessList_o" [ngModel]="item.checked">{{item.name}}</label>
                  </div>
                </nz-checkbox-wrapper>
              </div>
            </div>
          </div>
        </overlay-scrollbars>
      </div>
    </div>
    <div class="table" *ngIf="loading2">
      <div class="loadingFull display_flex justify-content_flex-center align-items_center">
        <div class="loadingFullInner">
          <img src="../../../assets/images/loading.gif" alt="">
          <div>加载中...</div>
        </div>
      </div>
    </div>
  </div>
</div>

<!-- 操作成功/失败提示框 -->
<app-prompt-modal *ngIf="promptModalShow" [content]="promptContent" [success]="ifSuccess" [show]="promptModalShow"
  [info]="promptInfo">
</app-prompt-modal>
