<div class="nurse">
  <nz-layout class="app-layout display_flex flex_auto">
    <nz-sider
      class="menu-sidebar slider"
      nzWidth="224px"
      nzBreakpoint="xs"
      [nzTrigger]="null"
    >
      <div
        class="sidebar-logo display_flex align-items_center justify-content_flex-center"
      >
        <div style="line-height: normal;height: 100%;" class="display_flex align-items_center justify-content_flex-center flex-direction_column">
          <!-- <img src="../../assets/images/xiehe_logo.jpg" style="width:100%;" alt="logo" /> -->
          <img [src]="tool.logoUrl" />
          <span>{{tool.logoTitle}}</span>
        </div>
      </div>
      <div
        class="notAvailable display_flex align-items_center justify-content_flex-center"
        *ngIf="
          !deptTaskTypeRules.openInspection &&
          !deptTaskTypeRules.openPatientTransport
        "
      >
        <div>
          <img src="../../assets/images/icon_jianchakong.png" alt="" />
          <div>暂未开通</div>
        </div>
      </div>
      <div class="mainInfo">
        <div class="searchBox">
          <input
            nz-input
            [(ngModel)]="tabSearchCont"
            (ngModelChange)="searchTabInp($event)"
            placeholder="请输入关键字"
          />
        </div>
        <div class="checkBanner" nz-row>
          <button
            nz-button
            nz-col
            nzSpan="12"
            class="checkItem checked"
            (click)="changeInfo()"
          >
          {{(currentDept.typeValue == 'surgery' && !this.tabSearchCont) ? '手术安排信息' : '患者信息'}}
          </button>
        </div>
        <!-- 患者信息-复苏室科室类型 -->
        <div class="checkedInfo patient" style="padding-bottom: 0" *ngIf="currentDept.typeValue == 'recovery'">
          <overlay-scrollbars #osComponentRef4 class="box">
            <div
              class="loading display_flex align-items_center justify-content_flex-center"
              *ngIf="
                pLoading &&
                (deptTaskTypeRules.openInspection ||
                  deptTaskTypeRules.openPatientTransport)
              "
            >
              <div>
                <img src="../../assets/images/loading.gif" alt="" />
                <div>加载中...</div>
              </div>
            </div>
            <div
              class="loading display_flex align-items_center justify-content_flex-center"
              *ngIf="!patientList.length && !pLoading"
            >
              <div>
                <div>暂无数据</div>
              </div>
            </div>
            <div *ngIf="patientList.length && !pLoading">
              <div class="item" *ngFor="let item of patientList">
                <div class="itemTit txtC" style="font-weight: bold">
                  <ng-container *ngIf="item.illnessState">
                    <i
                      *ngIf="item.illnessState.value === '2'"
                      class="colorRed icon_transport transport-wei"
                      nz-tooltip
                      nzTooltipTitle="病危"
                    ></i>
                    <i
                      *ngIf="item.illnessState.value === '3'"
                      class="colorRed icon_transport transport-zhong1"
                      nz-tooltip
                      nzTooltipTitle="病重"
                    ></i>
                  </ng-container>
                  <ng-container *ngIf="item.careLevel">
                    <i
                      *ngIf="item.careLevel.value === '0'"
                      class="icon_transport transport-te1"
                      nz-tooltip
                      nzTooltipTitle="特级护理"
                    ></i>
                    <i
                      *ngIf="item.careLevel.value === '1'"
                      class="icon_transport transport-Bduanshuzi1"
                      nz-tooltip
                      nzTooltipTitle="一级护理"
                    ></i>
                    <i
                      *ngIf="item.careLevel.value === '2'"
                      class="icon_transport transport-Bduanshuzi"
                      nz-tooltip
                      nzTooltipTitle="二级护理"
                    ></i>
                    <i
                      *ngIf="item.careLevel.value === '3'"
                      class="icon_transport transport-Bduanshuzi11"
                      nz-tooltip
                      nzTooltipTitle="三级护理"
                    ></i>
                  </ng-container>
                  <span
                    nz-tooltip
                    [nzTooltipTitle]="recentInfo"
                    nzTooltipPlacement="right"
                    [nzMouseEnterDelay]="1"
                    (mouseenter)="getRecentInfo(item.patientCode)"
                    >{{ item.patientName }}({{ item.bedNum }})</span
                  >
                </div>
                <div
                  class="checkInfo"
                  nz-row
                  *ngIf="
                    followFlag === '1' &&
                    currentDept.typeValue != 'checkRoom2' &&
                    currentDept.typeValue != 'outpatientDept' &&
                    currentDept.typeValue != 'checkRoom'
                  "
                >
                  <span
                    nz-col
                    nzSpan="2"
                    class="icon_transport transport-zhongdianguanzhu"
                    (click)="follow(item)"
                    [ngStyle]="{
                      color: item.focusPatient === 0 ? 'white' : 'red'
                    }"
                    nz-tooltip
                    [nzTooltipTitle]="
                      item.focusPatient === 0
                        ? '白色心为非特殊关注，需手动建单后配送人员上门送检'
                        : '红色心为特殊关注，患者所有检查会自动建单，配送人员主动上门送检'
                    "
                  ></span>
                  <span nz-col nzSpan="2"></span>
                  <span nz-col nzSpan="12">{{ item.residenceNo }}</span>
                  <span nz-col nzSpan="6" class="txtR"
                    >待检 {{ item.watingCount }}</span
                  >
                  <span nz-col nzSpan="2"></span>
                </div>
                <div
                  class="checkInfo"
                  nz-row
                  *ngIf="
                    followFlag === '0' ||
                    currentDept.typeValue == 'checkRoom2' ||
                    currentDept.typeValue == 'outpatientDept' ||
                    currentDept.typeValue == 'checkRoom'
                  "
                >
                  <span nz-col nzSpan="2"></span>
                  <span nz-col nzSpan="12">{{ item.residenceNo }}</span>
                  <span nz-col nzSpan="6" class="txtR"
                    >待检 {{ item.watingCount }}</span
                  >
                  <span nz-col nzSpan="2"></span>
                </div>
                <div class="btn" (click)="newPatientOrder(item)">一键建单</div>
              </div>
            </div>
          </overlay-scrollbars>
        </div>
        <!-- 患者信息 -->
        <div class="checkedInfo patient" style="padding-bottom: 0" *ngIf="(currentDept.typeValue != 'surgery' || (currentDept.typeValue == 'surgery' && this.tabSearchCont)) && currentDept.typeValue != 'recovery'">
          <overlay-scrollbars #osComponentRef4 class="box">
            <div
              class="loading display_flex align-items_center justify-content_flex-center"
              *ngIf="
                pLoading &&
                (deptTaskTypeRules.openInspection ||
                  deptTaskTypeRules.openPatientTransport)
              "
            >
              <div>
                <img src="../../assets/images/loading.gif" alt="" />
                <div>加载中...</div>
              </div>
            </div>
            <div
              class="loading display_flex align-items_center justify-content_flex-center"
              *ngIf="!patientList.length && !pLoading"
            >
              <div>
                <div>暂无数据</div>
              </div>
            </div>
            <div *ngIf="patientList.length && !pLoading">
              <div class="item" *ngFor="let item of patientList">
                <div class="itemTit txtC" style="font-weight: bold">
                  <ng-container *ngIf="item.illnessState">
                    <i
                      *ngIf="item.illnessState.value === '2'"
                      class="colorRed icon_transport transport-wei"
                      nz-tooltip
                      nzTooltipTitle="病危"
                    ></i>
                    <i
                      *ngIf="item.illnessState.value === '3'"
                      class="colorRed icon_transport transport-zhong1"
                      nz-tooltip
                      nzTooltipTitle="病重"
                    ></i>
                  </ng-container>
                  <ng-container *ngIf="item.careLevel">
                    <i
                      *ngIf="item.careLevel.value === '0'"
                      class="icon_transport transport-te1"
                      nz-tooltip
                      nzTooltipTitle="特级护理"
                    ></i>
                    <i
                      *ngIf="item.careLevel.value === '1'"
                      class="icon_transport transport-Bduanshuzi1"
                      nz-tooltip
                      nzTooltipTitle="一级护理"
                    ></i>
                    <i
                      *ngIf="item.careLevel.value === '2'"
                      class="icon_transport transport-Bduanshuzi"
                      nz-tooltip
                      nzTooltipTitle="二级护理"
                    ></i>
                    <i
                      *ngIf="item.careLevel.value === '3'"
                      class="icon_transport transport-Bduanshuzi11"
                      nz-tooltip
                      nzTooltipTitle="三级护理"
                    ></i>
                  </ng-container>
                  <span
                    nz-tooltip
                    [nzTooltipTitle]="recentInfo"
                    nzTooltipPlacement="right"
                    [nzMouseEnterDelay]="1"
                    (mouseenter)="getRecentInfo(item.patientCode)"
                    >{{ item.patientName }}({{ item.bedNum }})</span
                  >
                </div>
                <div
                  class="checkInfo"
                  nz-row
                  *ngIf="
                    followFlag === '1' &&
                    currentDept.typeValue != 'checkRoom2' &&
                    currentDept.typeValue != 'outpatientDept' &&
                    currentDept.typeValue != 'checkRoom'
                  "
                >
                  <span
                    nz-col
                    nzSpan="2"
                    class="icon_transport transport-zhongdianguanzhu"
                    (click)="follow(item)"
                    [ngStyle]="{
                      color: item.focusPatient === 0 ? 'white' : 'red'
                    }"
                    nz-tooltip
                    [nzTooltipTitle]="
                      item.focusPatient === 0
                        ? '白色心为非特殊关注，需手动建单后配送人员上门送检'
                        : '红色心为特殊关注，患者所有检查会自动建单，配送人员主动上门送检'
                    "
                  ></span>
                  <span nz-col nzSpan="2"></span>
                  <span nz-col nzSpan="12">{{ item.residenceNo }}</span>
                  <span nz-col nzSpan="6" class="txtR"
                    >待检 {{ item.watingCount }}</span
                  >
                  <span nz-col nzSpan="2"></span>
                </div>
                <div
                  class="checkInfo"
                  nz-row
                  *ngIf="
                    followFlag === '0' ||
                    currentDept.typeValue == 'checkRoom2' ||
                    currentDept.typeValue == 'outpatientDept' ||
                    currentDept.typeValue == 'checkRoom'
                  "
                >
                  <span nz-col nzSpan="2"></span>
                  <span nz-col nzSpan="12">{{ item.residenceNo }}</span>
                  <span nz-col nzSpan="6" class="txtR"
                    >待检 {{ item.watingCount }}</span
                  >
                  <span nz-col nzSpan="2"></span>
                </div>
                <div class="btnNews">
                  <div class="btn" (click)="newPatientOrder(item)">一键建单</div>
                  <div class="btn" (click)="openOutpatientServiceModal(item)" *ngIf="currentDept.typeValue == 'outpatientService'">打印二维码</div>
                </div>
              </div>
            </div>
          </overlay-scrollbars>
        </div>
        <!-- 手术安排信息-手术室科室类型 -->
        <div class="checkedInfo patient" style="padding-bottom: 0" *ngIf="currentDept.typeValue == 'surgery' && !this.tabSearchCont">
          <overlay-scrollbars #osComponentRef4 class="box">
            <div
              class="loading display_flex align-items_center justify-content_flex-center"
              *ngIf="
                pLoading &&
                (deptTaskTypeRules.openInspection ||
                  deptTaskTypeRules.openPatientTransport)
              "
            >
              <div>
                <img src="../../assets/images/loading.gif" alt="" />
                <div>加载中...</div>
              </div>
            </div>
            <div
              class="loading display_flex align-items_center justify-content_flex-center"
              *ngIf="!patientList.length && !pLoading"
            >
              <div>
                <div>暂无数据</div>
              </div>
            </div>
            <div *ngIf="patientList.length && !pLoading">
              <div class="item" *ngFor="let item of patientList">
                <div class="itemTit txtC" style="font-weight: bold">
                  <ng-container *ngIf="item.patientDTO && item.patientDTO.illnessState">
                    <i
                      *ngIf="item.patientDTO && item.patientDTO.illnessState.value === '2'"
                      class="colorRed icon_transport transport-wei"
                      nz-tooltip
                      nzTooltipTitle="病危"
                    ></i>
                    <i
                      *ngIf="item.patientDTO && item.patientDTO.illnessState.value === '3'"
                      class="colorRed icon_transport transport-zhong1"
                      nz-tooltip
                      nzTooltipTitle="病重"
                    ></i>
                  </ng-container>
                  <ng-container *ngIf="item.patientDTO && item.patientDTO.careLevel">
                    <i
                      *ngIf="item.patientDTO && item.patientDTO.careLevel.value === '0'"
                      class="icon_transport transport-te1"
                      nz-tooltip
                      nzTooltipTitle="特级护理"
                    ></i>
                    <i
                      *ngIf="item.patientDTO && item.patientDTO.careLevel.value === '1'"
                      class="icon_transport transport-Bduanshuzi1"
                      nz-tooltip
                      nzTooltipTitle="一级护理"
                    ></i>
                    <i
                      *ngIf="item.patientDTO && item.patientDTO.careLevel.value === '2'"
                      class="icon_transport transport-Bduanshuzi"
                      nz-tooltip
                      nzTooltipTitle="二级护理"
                    ></i>
                    <i
                      *ngIf="item.patientDTO && item.patientDTO.careLevel.value === '3'"
                      class="icon_transport transport-Bduanshuzi11"
                      nz-tooltip
                      nzTooltipTitle="三级护理"
                    ></i>
                  </ng-container>
                  <span>{{ item.patientDTO ? item.patientDTO.patientName : '' }}({{ item.patientDTO ? item.patientDTO.residenceNo : '' }})</span>
                </div>
                <div class="checkInfo" nz-row>
                  <span nz-col nzSpan="24">{{ item.applyDate | date:'HH:mm' }}（{{ item.orders }}）</span>
                  <span nz-col nzSpan="24" class="wordBreak">{{ item.areaDeptDTO ? (deptDisplay == 2 ? item.areaDeptDTO.deptalias : item.areaDeptDTO.dept) : '' }}</span>
                  <span nz-col nzSpan="24" class="wordBreak">{{ item.surgeryName }}</span>
                </div>
                <div class="btnNews">
                  <div class="btn" (click)="surgeryBegin($event, item)" *ngIf="surgeryConfigs.surgeryBegin == 1">即将开始</div>
                  <div class="btn" (click)="pickUpPatient($event, item)">一键接患者</div>
                </div>
              </div>
            </div>
          </overlay-scrollbars>
        </div>
        <!-- 翻页 -->
        <!-- <div class="paging">
          <div>
            <nz-pagination [(nzPageIndex)]="infoPageIdx" [(nzTotal)]="infoLength" (nzPageIndexChange)="getPatient()"
              [nzPageSize]='5' nzSimple>
            </nz-pagination>
          </div>
        </div> -->
      </div>
    </nz-sider>
    <nz-layout class="layout" style="background: #fff; position: relative">
      <nz-header>
        <div
          class="app-header borderB display_flex justify-content_space-between align-items_center"
        >
          <div
            class="nurseTitle display_flex justify-content_space-between align-items_center"
          >
            <div class="todayNumWrap">护士端<span class="todayNum">当日建单数：{{ todayNum }}</span></div>
            <div class="updateTipsForNurses red">{{ updateTipsForNurses }}</div>
            <div class="queuingInformation" *ngIf="!updateTipsForNurses && inspectAndPatientTransportConfig.queuingInformation == 1">等待陪检：<span class="red">{{queuingInformationList[0]}}</span>&emsp;陪检中：<span class="red">{{queuingInformationList[1]}}</span></div>
            <div class="nurseCode" (click)="showNurseCode()">
              <i class="nurseCodeIcon icon_transport transport-erweima"></i
              >二维码
            </div>
          </div>
          <div class="userInfo">
            <div class="wel">欢迎您：</div>
            <div class="user">
              <img src="../../assets/images/icon_keshi.png" alt="" />
              <span *ngIf="deptDisplay" [title]="deptDisplay == 2 ? loginUser.dept.deptalias : loginUser.dept.dept">{{deptDisplay == 2 ? loginUser.dept.deptalias : loginUser.dept.dept}}</span>
            </div>
            <div class="userInfo-wrap">
              <div class="logOut" (click)="changeKsNow()">切换科室</div>
              <div class="logOut" (click)="logOut()">退出</div>
            </div>
          </div>
        </div>
      </nz-header>
      <nz-content class="nzContent">
        <div class="inner-content">
          <div class="mainInfo" nz-row>
            <div nz-col nzSpan="17" class="cont">
              <div class="top" [ngSwitch]="currentDept.typeValue">
                <div class="nums borderB" nz-row *ngSwitchCase="'outpatientService'" hidden></div>
                <div class="nums borderB" nz-row *ngSwitchCase="'surgery'">
                  <!-- 手术未开通 -->
                  <div
                    *ngIf="!deptTaskTypeRules.openPatientTransport && !surgeryLoading"
                    nz-col
                    nzSpan="24"
                    nz-row
                    class="h100p"
                  >
                    <div
                      class="notAvailable display_flex align-items_center justify-content_flex-center"
                    >
                      <div>
                        <img
                          src="../../assets/images/icon_jianchakong.png"
                          alt=""
                        />
                        <div>暂未开通</div>
                      </div>
                    </div>
                    <div
                      nz-col
                      nzSpan="6"
                      class="borderR alignC display_flex justify-content_flex-center align-items_center h100p"
                    >
                      <span>*****</span>
                    </div>
                    <div nz-col nzSpan="18" class="h100p">
                      <div
                        class="txtC h50p alignC display_flex justify-content_flex-center align-items_center overAuto borderB"
                      >
                        <span>*****</span>
                      </div>
                      <div
                        class="txtC h50p alignC display_flex justify-content_flex-center align-items_center overAuto"
                      >
                        <span>*****</span>
                      </div>
                    </div>
                  </div>
                  <!-- 手术已开通 -->
                  <div
                    *ngIf="deptTaskTypeRules.openPatientTransport && !surgeryLoading"
                    nz-col
                    nzSpan="24"
                    nz-row
                    class="h100p"
                  >
                    <div nz-col nzSpan="16" class="h100p">
                      <div class="txtC h50p borderB">
                        <div class="swiperBox">
                          <div class="swiper" *ngIf="surgeryWKOMsg.patientDTO">
                            <div class="item txtC alignC display_flex justify-content_flex-center align-items_center patientStyle">
                              <ng-container *ngIf="surgeryWKOMsg.patientDTO && surgeryWKOMsg.patientDTO.illnessState">
                                <i
                                  *ngIf="surgeryWKOMsg.patientDTO && surgeryWKOMsg.patientDTO.illnessState.value === '2'"
                                  class="colorRed icon_transport transport-wei"
                                  nz-tooltip
                                  nzTooltipTitle="病危"
                                ></i>
                                <i
                                  *ngIf="surgeryWKOMsg.patientDTO && surgeryWKOMsg.patientDTO.illnessState.value === '3'"
                                  class="colorRed icon_transport transport-zhong1"
                                  nz-tooltip
                                  nzTooltipTitle="病重"
                                ></i>
                              </ng-container>
                              <ng-container *ngIf="surgeryWKOMsg.patientDTO && surgeryWKOMsg.patientDTO.careLevel">
                                <i
                                  *ngIf="surgeryWKOMsg.patientDTO && surgeryWKOMsg.patientDTO.careLevel.value === '0'"
                                  class="icon_transport transport-te1"
                                  nz-tooltip
                                  nzTooltipTitle="特级护理"
                                ></i>
                                <i
                                  *ngIf="surgeryWKOMsg.patientDTO && surgeryWKOMsg.patientDTO.careLevel.value === '1'"
                                  class="icon_transport transport-Bduanshuzi1"
                                  nz-tooltip
                                  nzTooltipTitle="一级护理"
                                ></i>
                                <i
                                  *ngIf="surgeryWKOMsg.patientDTO && surgeryWKOMsg.patientDTO.careLevel.value === '2'"
                                  class="icon_transport transport-Bduanshuzi"
                                  nz-tooltip
                                  nzTooltipTitle="二级护理"
                                ></i>
                                <i
                                  *ngIf="surgeryWKOMsg.patientDTO && surgeryWKOMsg.patientDTO.careLevel.value === '3'"
                                  class="icon_transport transport-Bduanshuzi11"
                                  nz-tooltip
                                  nzTooltipTitle="三级护理"
                                ></i>
                              </ng-container>
                              <strong>{{ surgeryWKOMsg.patientDTO ? surgeryWKOMsg.patientDTO.patientName : '' }}({{ surgeryWKOMsg.patientDTO ? surgeryWKOMsg.patientDTO.residenceNo : '' }})</strong>
                            </div>
                          </div>
                          <div class="swiper none display_flex justify-content_flex-center align-items_center" *ngIf="!surgeryWKOMsg.patientDTO">
                            <div class="item alignC display_flex justify-content_flex-center align-items_center">
                              <span>暂无信息</span>
                            </div>
                          </div>
                        </div>
                      </div>
                      <div class="txtC h50p">
                        <div class="swiperBox">
                          <div class="swiper" *ngIf="surgeryWKOMsg.surgeryName">
                            <div class="item txtC alignC display_flex justify-content_flex-center align-items_center">
                              <span>{{ surgeryWKOMsg.surgeryName }}</span>
                            </div>
                          </div>
                          <div class="swiper none display_flex justify-content_flex-center align-items_center" *ngIf="!surgeryWKOMsg.surgeryName">
                            <div class="item alignC display_flex justify-content_flex-center align-items_center">
                              <span>暂无信息</span>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                    <div
                      nz-col
                      nzSpan="8"
                      class="borderL alignC display_flex justify-content_flex-center align-items_center h100p"
                    >
                      <button *ngIf="surgeryWKOMsg.patientDTO && surgeryConfigs && surgeryConfigs.remandClinical == 1" nz-button nzType="primary" class="btn txtC mr8" (click)="sendWard($event, surgeryWKOMsg)">送回病房</button>
                      <button *ngIf="surgeryWKOMsg.patientDTO && surgeryConfigs && surgeryConfigs.remandRecovery == 1" nz-button nzType="primary" class="btn txtC" (click)="sendAwakeningRoom($event, surgeryWKOMsg)">送回苏醒间</button>
                    </div>
                  </div>
                  <div
                    *ngIf="surgeryLoading"
                    nz-col
                    nzSpan="24"
                    nz-row
                    class="h100p display_flex justify-content_flex-center align-items_center"
                  >
                    <div class="txtC" style="text-align: center">
                      <img src="../../../assets/images/loading.gif" alt="" />
                      <div>加载中...</div>
                    </div>
                  </div>
                </div>
                <div class="nums borderB" nz-row *ngSwitchDefault>
                  <!-- 标本信息未开通 -->
                  <div
                    *ngIf="!deptTaskTypeRules.openSpecimen"
                    nz-col
                    nzSpan="13"
                    nz-row
                    class="h100p"
                  >
                    <div
                      class="notAvailable display_flex align-items_center justify-content_flex-center"
                    >
                      <div>
                        <img
                          src="../../assets/images/icon_jianchakong.png"
                          alt=""
                        />
                        <div>暂未开通</div>
                      </div>
                    </div>
                    <div nz-col nzSpan="18" nz-row class="borderR h100p">
                      <div
                        nz-col
                        nzSpan="4"
                        class="borderR alignC display_flex justify-content_flex-center align-items_center h100p"
                      >
                        <img
                          src="../../assets/images/icon_hubiaoben.png"
                          alt=""
                        />
                      </div>
                      <div nz-col nzSpan="20">
                        <div class="txtC h33 borderB overAuto">*****</div>
                        <div nz-row class="h53">
                          <div nz-col nzSpan="12" class="txtC borderR h100p">
                            <p>*</p>
                            <div>急标数量</div>
                          </div>
                          <div nz-col nzSpan="12" class="txtC h100p">
                            <p>*</p>
                            <div>普标数量</div>
                          </div>
                        </div>
                      </div>
                    </div>
                    <div nz-col nzSpan="6" class="borderR h100p">
                      <div class="quick">
                        <button class="btn txtC">{{ specimenButton }}</button>
                      </div>
                    </div>
                  </div>
                  <!-- 标本信息已开通 -->
                  <div
                    *ngIf="deptTaskTypeRules.openSpecimen"
                    nz-col
                    nzSpan="13"
                    nz-row
                    class="h100p"
                  >
                    <div nz-col nzSpan="18" nz-row class="borderR h100p">
                      <div
                        nz-col
                        nzSpan="4"
                        class="borderR alignC display_flex justify-content_flex-center align-items_center h100p"
                      >
                        <img
                          src="../../assets/images/icon_hubiaoben.png"
                          alt=""
                        />
                      </div>
                      <div nz-col nzSpan="20">
                        <div class="txtC h33 borderB overAuto">
                          {{ specimenWorkOrderMsg.specimenInfo || "" }}
                        </div>
                        <div nz-row class="h53">
                          <div
                            nz-col
                            nzSpan="12"
                            class="txtC borderR h100p cur"
                            (click)="changeSpeDetail(1)"
                          >
                            <p>
                              {{
                                specimenWorkOrderMsg.specimenCount
                                  ? specimenWorkOrderMsg.specimenCount.urgent
                                  : 0
                              }}
                            </p>
                            <div>急标数量</div>
                          </div>
                          <div
                            nz-col
                            nzSpan="12"
                            class="txtC h100p cur"
                            (click)="changeSpeDetail(0)"
                          >
                            <p>
                              {{
                                specimenWorkOrderMsg.specimenCount
                                  ? specimenWorkOrderMsg.specimenCount.noUrgent
                                  : 0
                              }}
                            </p>
                            <div>普标数量</div>
                          </div>
                        </div>
                      </div>
                    </div>
                    <div nz-col nzSpan="6" class="borderR h100p">
                      <div class="quick">
                        <button
                          [nzLoading]="bLoading"
                          nz-button
                          nzType="primary"
                          class="btn txtC"
                          (click)="newShortcutOrder1(bbMsg, 'bb')"
                        >
                          {{ specimenButton }}
                        </button>
                        <!-- <button class="btn txtC" (click)="newShortcutOrder1(bbMsg,'bb',true)">
                          收取急查标本
                        </button> -->
                      </div>
                    </div>
                  </div>

                  <!-- 药品/静配信息未开通 -->
                  <div
                    *ngIf="
                      !deptTaskTypeRules.openStaticDistribution &&
                      !deptTaskTypeRules.openDrugsBag &&
                      !drugJpLoading
                    "
                    nz-col
                    nzSpan="11"
                    nz-row
                    class="h100p"
                  >
                    <div
                      class="notAvailable display_flex align-items_center justify-content_flex-center"
                    >
                      <div>
                        <img
                          src="../../assets/images/icon_jianchakong.png"
                          alt=""
                        />
                        <div>暂未开通</div>
                      </div>
                    </div>
                    <div
                      nz-col
                      nzSpan="6"
                      class="borderR alignC display_flex justify-content_flex-center align-items_center h100p"
                    >
                      <img
                        src="../../assets/images/icon_hujingpei.png"
                        alt=""
                      />
                    </div>
                    <div nz-col nzSpan="18" class="h100p">
                      <div
                        class="txtC h50p alignC display_flex justify-content_flex-center align-items_center overAuto borderB"
                      >
                        <span>*****</span>
                      </div>
                      <div
                        class="txtC h50p alignC display_flex justify-content_flex-center align-items_center overAuto"
                      >
                        <span>*****</span>
                      </div>
                    </div>
                  </div>
                  <!-- 药品/静配信息已开通 -->
                  <div
                    *ngIf="
                      (deptTaskTypeRules.openStaticDistribution ||
                        deptTaskTypeRules.openDrugsBag) &&
                      !drugJpLoading
                    "
                    nz-col
                    nzSpan="11"
                    nz-row
                    class="h100p"
                  >
                    <div
                      nz-col
                      nzSpan="6"
                      class="borderR alignC display_flex justify-content_flex-center align-items_center h100p"
                    >
                      <img
                        src="../../assets/images/icon_hujingpei.png"
                        alt=""
                      />
                    </div>
                    <div nz-col nzSpan="18" class="h100p">
                      <div class="txtC h50p borderB">
                        <div class="swiperBox">
                          <div
                            class="swiper"
                            [ngStyle]="{ top: swiperTop + 'px' }"
                            *ngIf="
                              jpDrugsWKOMsg.drugsInfoList &&
                              jpDrugsWKOMsg.drugsInfoList.length > 0
                            "
                          >
                            <div
                              class="item txtC alignC display_flex justify-content_flex-center align-items_center"
                              *ngFor="let item of jpDrugsWKOMsg.drugsInfoList"
                            >
                              <span>{{ item }}</span>
                            </div>
                          </div>
                          <div
                            class="swiper none display_flex justify-content_flex-center align-items_center"
                            *ngIf="
                              !jpDrugsWKOMsg.drugsInfoList ||
                              !jpDrugsWKOMsg.drugsInfoList.length
                            "
                          >
                            <div
                              class="item alignC display_flex justify-content_flex-center align-items_center"
                            >
                              <span>暂无药品配送信息</span>
                            </div>
                          </div>
                        </div>
                      </div>
                      <div class="txtC h50p">
                        <div class="swiperBox">
                          <div
                            class="swiper"
                            [ngStyle]="{ top: swiperTop1 + 'px' }"
                            *ngIf="
                              jpDrugsWKOMsg.jpInfoList &&
                              jpDrugsWKOMsg.jpInfoList.length > 0
                            "
                          >
                            <div
                              class="item txtC alignC display_flex justify-content_flex-center align-items_center"
                              *ngFor="let item of jpDrugsWKOMsg.jpInfoList"
                            >
                              <span>{{ item }}</span>
                            </div>
                          </div>
                          <div
                            class="swiper none display_flex justify-content_flex-center align-items_center"
                            *ngIf="
                              !jpDrugsWKOMsg.jpInfoList ||
                              !jpDrugsWKOMsg.jpInfoList.length
                            "
                          >
                            <div
                              class="item alignC display_flex justify-content_flex-center align-items_center"
                            >
                              <!-- <span>暂无静配配送信息</span> -->
                              <span></span>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                  <div
                    *ngIf="drugJpLoading"
                    nz-col
                    nzSpan="11"
                    nz-row
                    class="h100p display_flex justify-content_flex-center align-items_center"
                  >
                    <div class="txtC" style="text-align: center">
                      <img src="../../../assets/images/loading.gif" alt="" />
                      <div>加载中...</div>
                    </div>
                  </div>
                </div>
                <div class="tab borderB" nz-row style="padding: 4px 0">
                  <div nz-col nzSpan="21" class="h100p">
                    <overlay-scrollbars #osComponentRef11 nz-row class="h100p w100">
                      <div style="height: 100%; display: flex;">
                        <ng-container *ngFor="let item of tabPermission">
                          <div *ngIf="(coopBtns.buildOrdersForOtherTasks && item.system) || !item.system" nz-col nzSpan="3" [ngClass]="{txtC: true, cur: true, checked: item.system ? checkedTableType == 'other' : checkedTableType == item.id}" (click)="checkTable(item)">
                            <div class="text">{{ item.title }}</div>
                          </div>
                        </ng-container>
                        <div *ngIf="coopBtns.suggestionBox" nz-col nzSpan="3" [ngClass]="{txtC: true, cur: true, checked: checkedTableType == 'advice'}" (click)="checkTable('advice')">
                          <div class="text">意见箱</div>
                        </div>
                        <div *ngIf="coopBtns.surgery" nz-col nzSpan="3" [ngClass]="{txtC: true, cur: true, checked: checkedTableType == 'surgery'}" (click)="checkTable('surgery')">
                          <div class="text">手术排程信息</div>
                        </div>
                        <div *ngIf="coopBtns.inquiryOfHistoricalSpecimens && currentDept.typeValue != 'outpatientService'" nz-col nzSpan="3" [ngClass]="{txtC: true, cur: true, checked: checkedTableType == 'historySpecimen'}" (click)="checkTable('historySpecimen')">
                          <div class="text">历史标本查询</div>
                        </div>
                        <div *ngIf="coopBtns.historicalMedicineListInquiry && currentDept.typeValue != 'outpatientService'" nz-col nzSpan="3" [ngClass]="{txtC: true, cur: true, checked: checkedTableType == 'historyDrugsbag'}" (click)="checkTable('historyDrugsbag')">
                          <div class="text">历史药单查询</div>
                        </div>
                        <div *ngIf="coopBtns.quickReportForRepair && isShowBx" nz-col nzSpan="3" [ngClass]="{txtC: true, cur: true, checked: checkedTableType == 'kjbx'}" (click)="checkTable('kjbx')">
                          <div class="text">快捷报修</div>
                        </div>
                        <div *ngIf="coopBtns.repairList && isShowBx" nz-col nzSpan="3" [ngClass]="{txtC: true, cur: true, checked: checkedTableType == 'bxlb'}" (click)="checkTable('bxlb')">
                          <div class="text">
                            报修列表<strong class="red">&nbsp;({{processing}})</strong>
                          </div>
                        </div>
                      </div>
                    </overlay-scrollbars>
                  </div>
                  <div nz-col nzSpan="3" class="txtC h100p alignR display_flex justify-content_flex-end align-items_center">
                    <div class="btn txtC" *ngIf="mainRole && loginUser.usertype.value != 1" (click)="toMain()">
                      回到系统管理
                    </div>
                    <div class="btn txtC" *ngIf="mainRole && loginUser.usertype.value == 1" (click)="toOrder()">
                      查看工单
                    </div>
                  </div>
                </div>
              </div>
              <!-- 其他任务建单 -->
              <ng-container *ngIf="othersList[checkedTableType]">
                <div style="flex: 1; height: 100%; position: relative">
                  <div class="otherBox">
                    <div class="otherBoxInner">
                      <div class="otherBox-nav">
                        <div class="otherBox-nav__head">
                          <input
                            nz-input
                            placeholder="请输入关键字"
                            [(ngModel)]="otherSearch"
                            (ngModelChange)="otherSearchChange()"
                          />
                        </div>
                        <overlay-scrollbars
                          #osComponentRef2
                          class="otherBox-nav__main"
                          [ngStyle]="{ height: '100%' }"
                        >
                          <div
                            class="otherBox-nav__mainInner"
                            *ngIf="!oLoading && othersList[checkedTableType]?.length > 0"
                          >
                            <div
                              [sortablejs]="othersList[checkedTableType]"
                              [sortablejsOptions]="othersListOptions"
                              class="w100"
                            >
                              <div
                                class="otherBox-nav__mainItem"
                                *ngFor="let item of othersList[checkedTableType]"
                                (click)="otherClick(item)"
                                [ngClass]="{ active: selectOtherId == item.id }"
                                [title]="item.taskName"
                              >
                                {{ item.taskName }}
                              </div>
                            </div>
                          </div>
                          <div
                            class="otherBox-nav__mainInner noData"
                            *ngIf="!oLoading && othersList[checkedTableType].length == 0"
                          >
                            暂无数据
                          </div>
                          <div
                            class="otherBox-nav__mainInner oLoading"
                            *ngIf="oLoading"
                          >
                            <img
                              src="../../../assets/images/loading.gif"
                              alt=""
                            />
                            <div>加载中...</div>
                          </div>
                        </overlay-scrollbars>
                      </div>
                      <div class="otherBox-main">
                        <div class="otherBox-main__main">
                          <!-- -----------------start------------------ -->
                          <div class="modalBody_box">
                            <div class="modalBody">
                              <div
                                class="modalBody_left"
                                *ngIf="!nLoading && selectOtherId"
                              >
                                <overlay-scrollbars
                                  class="modalBody_left_box"
                                  #osComponentRef3
                                  style="height: calc(100vh - 263px)"
                                >
                                  <div class="modalBody_left_box">
                                    <div
                                      style="
                                        flex:1 1 auto;
                                        display: flex;
                                        flex-direction: column;
                                        justify-content: center;
                                        align-items: center;
                                      "
                                    >
                                      <div
                                        class="content txtC"
                                        *ngIf="
                                          buildMsg.status == 100013 ||
                                          buildMsg.status == 100014 ||
                                          buildMsg.status == 100015
                                        "
                                      >
                                        <div
                                          class="defeat"
                                          [innerHTML]="buildMsg.msg"
                                        ></div>
                                      </div>
                                      <!-- 200 该任务类型运送过程暂未配置 -->
                                      <div
                                        class="content txtC"
                                        *ngIf="
                                          buildMsg.status == 200 &&
                                          buildType == 'bb'
                                        "
                                      >
                                        <div
                                          class="defeat"
                                          [innerHTML]="buildMsg.msg"
                                        ></div>
                                      </div>
                                      <!-- 100009 该任务类型运送过程暂未配置 -->
                                      <div
                                        class="content txtC"
                                        *ngIf="buildMsg.status == 100009"
                                      >
                                        <div
                                          class="defeat"
                                          [innerHTML]="buildMsg.msg"
                                        ></div>
                                      </div>
                                      <!-- 100010 系统未查询到该任务类型关联信息 -->
                                      <div
                                        class="content txtC"
                                        *ngIf="buildMsg.status == 100010"
                                      >
                                        <div
                                          class="defeat"
                                          [innerHTML]="buildMsg.msg"
                                        ></div>
                                      </div>
                                      <!-- 100012 （护士端一键建单展示策略）直接取msg -->
                                      <div
                                        class="content txtC"
                                        *ngIf="buildMsg.status == 100012"
                                      >
                                        <div
                                          class="defeat"
                                          [innerHTML]="buildMsg.msg"
                                        ></div>
                                      </div>
                                      <!-- 100013 （护士端一键建单展示策略）取起点科室，和mgs值展示 -->
                                      <div
                                        class="content"
                                        *ngIf="buildMsg.status == 100013"
                                      >
                                        <div>
                                          <form
                                            nz-form
                                            [formGroup]="shortcutForm"
                                            class="shortcutForm"
                                          >
                                            <nz-form-item>
                                              <nz-form-label
                                                [nzSm]="6"
                                                [nzXs]="24"
                                                nzRequired
                                                nzFor="originOffice"
                                                >起点科室
                                              </nz-form-label>
                                              <nz-form-control
                                                nzErrorTip="请选择起点科室!"
                                              >
                                                <nz-select
                                                  class="w100"
                                                  formControlName="originOffice"
                                                  [nzDropdownMatchSelectWidth]="
                                                    false
                                                  "
                                                  nzServerSearch
                                                  nzShowSearch
                                                  (nzOnSearch)="
                                                    searchDept(
                                                      'start',
                                                      buildMsg,
                                                      $event
                                                    )
                                                  "
                                                  nzPlaceHolder="请选择起点科室"
                                                >
                                                  <ng-container
                                                    *ngFor="
                                                      let option of buildMsg.start
                                                        .start.list
                                                    "
                                                  >
                                                    <nz-option
                                                      *ngIf="true"
                                                      [nzLabel]="
                                                        deptDisplay == 2
                                                          ? option.deptalias
                                                          : option.dept
                                                      "
                                                      [nzValue]="option.id"
                                                    >
                                                    </nz-option>
                                                  </ng-container>
                                                  <nz-option
                                                    *ngIf="false"
                                                    nzDisabled
                                                    nzCustomContent
                                                  >
                                                    <i
                                                      nz-icon
                                                      nzType="loading"
                                                      class="loading-icon"
                                                    ></i>
                                                    搜索中...
                                                  </nz-option>
                                                </nz-select>
                                              </nz-form-control>
                                            </nz-form-item>
                                          </form>
                                        </div>
                                      </div>
                                      <!-- 100014 （护士端一键建单展示策略）取终点科室和msg 值展示 -->
                                      <div
                                        class="content"
                                        *ngIf="buildMsg.status == 100014"
                                      >
                                        <div>
                                          <form
                                            nz-form
                                            [formGroup]="shortcutForm"
                                            class="shortcutForm"
                                          >
                                            <nz-form-item>
                                              <nz-form-label
                                                [nzSm]="6"
                                                [nzXs]="24"
                                                nzRequired
                                                nzFor="targetOffice"
                                                >目标科室
                                              </nz-form-label>
                                              <nz-form-control
                                                nzErrorTip="请选择目标科室!"
                                              >
                                                <nz-select
                                                  class="w100"
                                                  formControlName="targetOffice"
                                                  [nzDropdownMatchSelectWidth]="
                                                    false
                                                  "
                                                  nzServerSearch
                                                  nzShowSearch
                                                  (nzOnSearch)="
                                                    searchDept(
                                                      'target',
                                                      buildMsg,
                                                      $event
                                                    )
                                                  "
                                                  nzAllowClear
                                                  nzPlaceHolder="请选择目标科室"
                                                >
                                                  <ng-container
                                                    *ngFor="
                                                      let option of buildMsg.end
                                                        .end.list
                                                    "
                                                  >
                                                    <nz-option
                                                      *ngIf="true"
                                                      [nzLabel]="
                                                        deptDisplay == 2
                                                          ? option.deptalias
                                                          : option.dept
                                                      "
                                                      [nzValue]="option.id"
                                                    >
                                                    </nz-option>
                                                  </ng-container>
                                                  <nz-option
                                                    *ngIf="false"
                                                    nzDisabled
                                                    nzCustomContent
                                                  >
                                                    <i
                                                      nz-icon
                                                      nzType="loading"
                                                      class="loading-icon"
                                                    ></i>
                                                    搜索中...
                                                  </nz-option>
                                                </nz-select>
                                              </nz-form-control>
                                            </nz-form-item>
                                          </form>
                                        </div>
                                      </div>
                                      <!-- 100015 （护士端一键建单展策略）起点科室和终点科室下拉展示 -->
                                      <div
                                        class="content"
                                        *ngIf="buildMsg.status == 100015"
                                      >
                                        <div>
                                          <form
                                            nz-form
                                            [formGroup]="shortcutForm"
                                            class="shortcutForm"
                                          >
                                            <nz-form-item>
                                              <nz-form-label
                                                [nzSm]="6"
                                                [nzXs]="24"
                                                nzRequired
                                                nzFor="originOffice"
                                                >起点科室
                                              </nz-form-label>
                                              <nz-form-control
                                                nzErrorTip="请选择起点科室!"
                                              >
                                                <nz-select
                                                  class="w100"
                                                  formControlName="originOffice"
                                                  [nzDropdownMatchSelectWidth]="
                                                    false
                                                  "
                                                  nzServerSearch
                                                  nzShowSearch
                                                  (nzOnSearch)="
                                                    searchDept(
                                                      'start',
                                                      buildMsg,
                                                      $event
                                                    )
                                                  "
                                                  nzPlaceHolder="请选择起点科室"
                                                >
                                                  <ng-container
                                                    *ngFor="
                                                      let option of buildMsg.start
                                                        .start.list
                                                    "
                                                  >
                                                    <nz-option
                                                      *ngIf="true"
                                                      [nzLabel]="
                                                        deptDisplay == 2
                                                          ? option.deptalias
                                                          : option.dept
                                                      "
                                                      [nzValue]="option.id"
                                                    >
                                                    </nz-option>
                                                  </ng-container>
                                                  <nz-option
                                                    *ngIf="false"
                                                    nzDisabled
                                                    nzCustomContent
                                                  >
                                                    <i
                                                      nz-icon
                                                      nzType="loading"
                                                      class="loading-icon"
                                                    ></i>
                                                    搜索中...
                                                  </nz-option>
                                                </nz-select>
                                              </nz-form-control>
                                            </nz-form-item>
                                            <nz-form-item>
                                              <nz-form-label
                                                [nzSm]="6"
                                                [nzXs]="24"
                                                nzRequired
                                                nzFor="targetOffice"
                                                >目标科室
                                              </nz-form-label>
                                              <nz-form-control
                                                nzErrorTip="请选择目标科室!"
                                              >
                                                <nz-select
                                                  class="w100"
                                                  formControlName="targetOffice"
                                                  [nzDropdownMatchSelectWidth]="
                                                    false
                                                  "
                                                  nzServerSearch
                                                  nzShowSearch
                                                  (nzOnSearch)="
                                                    searchDept(
                                                      'target',
                                                      buildMsg,
                                                      $event
                                                    )
                                                  "
                                                  nzPlaceHolder="请选择目标科室"
                                                >
                                                  <ng-container
                                                    *ngFor="
                                                      let option of buildMsg.end
                                                        .end.list
                                                    "
                                                  >
                                                    <nz-option
                                                      *ngIf="true"
                                                      [nzLabel]="
                                                        deptDisplay == 2
                                                          ? option.deptalias
                                                          : option.dept
                                                      "
                                                      [nzValue]="option.id"
                                                    >
                                                    </nz-option>
                                                  </ng-container>
                                                  <nz-option
                                                    *ngIf="false"
                                                    nzDisabled
                                                    nzCustomContent
                                                  >
                                                    <i
                                                      nz-icon
                                                      nzType="loading"
                                                      class="loading-icon"
                                                    ></i>
                                                    搜索中...
                                                  </nz-option>
                                                </nz-select>
                                              </nz-form-control>
                                            </nz-form-item>
                                          </form>
                                        </div>
                                      </div>
                                      <!-- 工号 -->
                                      <div
                                        style="width: 100%; margin: 10px auto 0"
                                        *ngIf="buildMsg.reserveUserSwitch == 1"
                                      >
                                        <p><span class="red">*</span>工号：</p>
                                        <nz-select class="w100" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch (nzOnSearch)="searchAccount($event)" nzPlaceHolder="请选择工号" [(ngModel)]="account" (ngModelChange)="changeAccount($event)">
                                          <ng-container *ngFor="let option of accountList">
                                            <nz-option *ngIf="!isLoading" [nzLabel]="option.account + '-' + option.name" [nzValue]="option.id">
                                            </nz-option>
                                          </ng-container>
                                          <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
                                            <i nz-icon nzType="loading" class="loading-icon"></i>
                                            搜索中...
                                          </nz-option>
                                        </nz-select>
                                      </div>
                                      <!-- 工单备注： -->
                                      <div
                                        style="width: 100%; margin: 10px auto 0"
                                        *ngIf="buildMsg.remarksSwitch == 1"
                                      >
                                        <p>工单备注：</p>
                                        <textarea
                                          nz-input
                                          [placeholder]="workOrderRemarkTips"
                                          [nzAutosize]="{
                                            minRows: 3,
                                            maxRows: 5
                                          }"
                                          maxlength="100"
                                          [(ngModel)]="workOrderRemark"
                                          #remarksEle
                                        ></textarea>
                                        <p
                                          class="mt8 mb8"
                                          *ngIf="customRemarks.length"
                                        >
                                          快捷输入：
                                        </p>
                                        <div *ngIf="customRemarks.length">
                                          <span
                                            class="addRemarks"
                                            *ngFor="let item of customRemarks"
                                            (click)="addRemarks(item)"
                                            >【{{ item }}】</span
                                          >
                                        </div>
                                        <p
                                          class="mt8 mb8"
                                          *ngIf="historyCustomRemarks.length"
                                        >
                                          历史输入：
                                        </p>
                                        <div *ngIf="historyCustomRemarks.length">
                                          <span
                                            class="addRemarks"
                                            *ngFor="
                                              let item of historyCustomRemarks
                                            "
                                            (click)="addRemarks(item)"
                                            >【{{ item }}】</span
                                          >
                                        </div>
                                      </div>
                                    </div>
                                    <div
                                      *ngIf="selectOtherId"
                                      class="btns display_flex justify-content_flex-center"
                                    >
                                      <button
                                        *ngIf="
                                          buildMsg.status != 100009 &&
                                          buildMsg.status != 100010
                                        "
                                        nz-button
                                        nzType="primary"
                                        [nzLoading]="loading5"
                                        (click)="confirmShortcut()"
                                      >
                                        确认
                                      </button>
                                    </div>
                                  </div>
                                </overlay-scrollbars>
                              </div>
                              <div
                                class="modalBody_left nLoading"
                                *ngIf="nLoading"
                              >
                                <img
                                  src="../../../assets/images/loading.gif"
                                  alt=""
                                />
                                <div>加载中...</div>
                              </div>
                              <div
                                class="modalBody_left noData"
                                *ngIf="!nLoading && !selectOtherId"
                              >
                                暂无数据
                              </div>
                              <div class="modalBody_right">
                                <div class="modalBody_right_head">
                                  <div class="smallTab">
                                    <div
                                      class="s_tab"
                                      *ngFor="let stab of smallTabs"
                                      (click)="changeSmallTab(stab.id)"
                                      [ngClass]="{
                                        active: smallTabId == stab.id
                                      }"
                                    >
                                      {{ stab.name }}
                                    </div>
                                  </div>
                                  <span>{{ logTime }}秒后自动刷新</span>
                                </div>
                                <overlay-scrollbars
                                  class="modalBody_right_box"
                                  #osComponentRef9
                                  style="height: 100%"
                                  *ngIf="
                                    (smallTabId == 1 &&
                                      !rLoading &&
                                      listDeptOrderRecords.length) ||
                                    smallTabId == 2
                                  "
                                >
                                  <div class="modalBody_right_box">
                                    <ng-container
                                      *ngIf="smallTabId == 1; else elseSmall"
                                    >
                                      <div
                                        class="modalBody_right_list"
                                        *ngFor="let item of listDeptOrderRecords"
                                        [innerHTML]="item.msg | htmlTransform"
                                      ></div>
                                    </ng-container>
                                    <ng-template #elseSmall>
                                      <nz-table
                                        class="bxFlex bxTable"
                                        [nzData]="quickBxlbList"
                                        nzSize="small"
                                        [nzShowPagination]="false"
                                        [nzLoading]="quickBxlbLoading"
                                      >
                                        <tbody>
                                          <tr
                                            (click)="
                                              showBxModal(
                                                data,
                                                '您的报修为“' +
                                                  data.content +
                                                  '” 是否确认报修？'
                                              )
                                            "
                                            *ngFor="
                                              let data of quickBxlbList;
                                              let i = index
                                            "
                                          >
                                            <td>{{ data.content || "无" }}</td>
                                          </tr>
                                          <tr (click)="checkTable('kjbx')">
                                            <td class="moreBx">
                                              更多报修&gt;&gt;
                                            </td>
                                          </tr>
                                        </tbody>
                                      </nz-table>
                                    </ng-template>
                                  </div>
                                </overlay-scrollbars>
                                <div
                                  class="modalBody_left nLoading w100"
                                  *ngIf="smallTabId == 1 && rLoading"
                                >
                                  <img
                                    src="../../../assets/images/loading.gif"
                                    alt=""
                                  />
                                  <div>加载中...</div>
                                </div>
                                <div
                                  class="modalBody_left noData w100"
                                  *ngIf="
                                    smallTabId == 1 &&
                                    !rLoading &&
                                    !listDeptOrderRecords.length
                                  "
                                >
                                  暂无数据
                                </div>
                              </div>
                            </div>
                          </div>
                          <!-- -----------------end------------------ -->
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </ng-container>
              <!-- 意见箱 -->
              <div
                *ngIf="checkedTableType == 'advice'"
                style="flex: 1; height: 100%"
              >
                <div
                  class="searchBox display_flex align-items_center justify-content_space-between"
                >
                  <div
                    class="left alignC display_flex justify-content_flex-center align-items_center"
                  >
                    <div>意见内容：</div>
                    <div>
                      <input
                        nz-input
                        placeholder="请输入关键字"
                        [(ngModel)]="adviceSearchInp"
                      />
                    </div>
                  </div>
                  <div class="btns">
                    <button
                      nz-button
                      nzType="primary"
                      nzGhost
                      (click)="getAdvice()"
                    >
                      搜索
                    </button>
                    <button nz-button nzType="primary" (click)="addAdvice()">
                      新增
                    </button>
                  </div>
                </div>
                <div class="table">
                  <div class="box">
                    <nz-table
                      class="hospitalTable"
                      [nzData]="adviceList"
                      nzSize="middle"
                      [nzShowPagination]="false"
                      [nzLoading]="adviceLoading"
                    >
                      <thead>
                        <tr class="thead">
                          <th nzWidth="7%">序号</th>
                          <th nzWidth="15%">填写时间</th>
                          <th nzWidth="36%">意见内容</th>
                          <th nzWidth="12%">状态</th>
                          <th nzWidth="30%">操作</th>
                        </tr>
                      </thead>
                      <tbody>
                        <tr *ngFor="let data of adviceList; let i = index">
                          <td>{{ i + 1 }}</td>
                          <td>{{ data.createTime.slice(0, 16) }}</td>
                          <td>
                            <span
                              style="overflow: hidden; text-overflow: ellipsis"
                            >
                              {{ spliceContent(data.content) }}
                            </span>
                          </td>
                          <td>
                            {{ data.replaceFlag == 1 ? "已回复" : "未回复" }}
                          </td>
                          <td>
                            <div class="coop">
                              <span (click)="adviceDetail(data.id)">查看</span>
                              <span
                                *ngIf="data.replaceFlag == 0"
                                (click)="addAdvice(data)"
                                >编辑</span
                              >
                              <span
                                *ngIf="data.replaceFlag == 0"
                                (click)="delAdvice(data.id)"
                                >删除</span
                              >
                            </div>
                          </td>
                        </tr>
                      </tbody>
                    </nz-table>
                    <div class="pagination">
                      <nz-pagination
                        [(nzPageIndex)]="advicePageIndex"
                        [(nzTotal)]="adviceListLength"
                        nzShowSizeChanger
                        [(nzPageSize)]="advicePageSize"
                        (nzPageIndexChange)="getAdvice()"
                        (nzPageSizeChange)="getAdvice()"
                      >
                      </nz-pagination>
                    </div>
                  </div>
                </div>
              </div>
              <!-- 手术排程信息 -->
              <div *ngIf="checkedTableType == 'surgery'" style="flex: 1; height: 100%">
                <div class="searchBox display_flex align-items_center justify-content_space-between">
                  <div class="left alignC display_flex justify-content_flex-center align-items_center"></div>
                  <div class="btns">
                    <button
                      nz-button
                      nzType="primary"
                      nzGhost
                      (click)="getSurgery(true)"
                    >
                      搜索
                    </button>
                  </div>
                </div>
                <div class="table">
                  <div class="box">
                    <nz-table
                      class="hospitalTable"
                      [nzData]="surgeryList"
                      nzSize="middle"
                      [nzShowPagination]="false"
                      [nzLoading]="surgeryInfoLoading"
                    >
                      <thead>
                        <tr class="thead">
                          <th nzWidth="6%">序号</th>
                          <th nzWidth="12%">患者姓名<br>住院号</th>
                          <th nzWidth="12%">手术时间</th>
                          <th nzWidth="20%">申请科室</th>
                          <th>手术名称</th>
                          <th nzWidth="15%">状态</th>
                          <th nzWidth="20%" *ngIf="currentDept.typeValue == 'surgery'">操作</th>
                        </tr>
                      </thead>
                      <tbody>
                        <tr *ngFor="let item of surgeryList;let i = index">
                          <td>{{ i + 1 }}</td>
                          <td>{{ item.patientDTO ? item.patientDTO.patientName : '' }}({{ item.patientDTO ? item.patientDTO.bedNum : '' }})<br>{{ item.patientDTO ? item.patientDTO.residenceNo : '' }}</td>
                          <td>{{ item.applyDate | date:'MM-dd HH:mm' }}</td>
                          <td>{{ item.areaDeptDTO ? (deptDisplay == 2 ? item.areaDeptDTO.deptalias : item.areaDeptDTO.dept) : '' }}</td>
                          <td>{{ item.surgeryName }}</td>
                          <td>{{ item.state?.name }}</td>
                          <td *ngIf="currentDept.typeValue == 'surgery'">
                            <!-- 手术状态是【手术安排】和【接患者中】，并且【是否开启手术即将开始通知】开启 -->
                            <button class="btn1 mr8 mb8 mt8" (click)="surgeryBegin($event, item)" *ngIf="item.state && (item.state.value == 3 || item.state.value == 7) && surgeryConfigs.surgeryBegin == 1">即将开始</button>
                            <!-- 【是否开启手术即将开始通知】开启 -->
                            <button class="btn1 mr8 mb8 mt8" (click)="pickUpPatient($event, item)" *ngIf="item.state && item.state.value == 3">一键接患者</button>
                            <!-- 手术状态是【手术中】，并且【是否开通送回病房】开启 -->
                            <button class="btn1 mr8 mb8 mt8" (click)="sendWard($event, item)" *ngIf="item.patientDTO && surgeryConfigs && surgeryConfigs.remandClinical == 1 && item.state && item.state.value == 8">送回病房</button>
                            <!-- 手术状态是【手术中】，并且【是否开通送回苏醒室】开启 -->
                            <button class="btn1 mr8 mb8 mt8" (click)="sendAwakeningRoom($event, item)" *ngIf="item.patientDTO && surgeryConfigs && surgeryConfigs.remandRecovery == 1 && item.state && item.state.value == 8">送回苏醒间</button>
                          </td>
                        </tr>
                      </tbody>
                    </nz-table>
                    <div class="pagination">
                      <nz-pagination
                        [(nzPageIndex)]="surgeryPageIndex"
                        [(nzTotal)]="surgeryListLength"
                        [(nzPageSize)]="surgeryPageSize"
                        (nzPageIndexChange)="getSurgery()"
                        (nzPageSizeChange)="getSurgery()"
                      >
                      </nz-pagination>
                    </div>
                  </div>
                </div>
              </div>
              <!-- 历史标本查询 -->
              <div
                *ngIf="checkedTableType == 'historySpecimen'"
                style="flex: 1; height: 100%"
              >
                <div
                  class="searchBox display_flex align-items_center justify-content_space-between"
                >
                  <div
                    class="left alignC display_flex justify-content_flex-center align-items_center"
                  >
                    <div>标本编码：</div>
                    <div>
                      <input
                        nz-input
                        placeholder="请输入标本编码"
                        [(ngModel)]="historySpecimenCodeSearchInp"
                      />
                    </div>
                    <div class="ml8">患者信息：</div>
                    <div>
                      <input
                        nz-input
                        placeholder="请输入患者信息"
                        [(ngModel)]="historySpecimenParentSearchInp"
                      />
                    </div>
                  </div>

                  <div class="btns">
                    <button
                      nz-button
                      nzType="primary"
                      nzGhost
                      (click)="getHistorySpecimen(true)"
                    >
                      搜索
                    </button>
                  </div>
                </div>
                <div class="table">
                  <div class="box">
                    <nz-table
                      class="hospitalTable"
                      [nzData]="historySpecimenList"
                      nzSize="middle"
                      [nzShowPagination]="false"
                      [nzLoading]="hsLoading"
                    >
                      <thead>
                        <tr class="thead">
                          <th nzWidth="7%">序号</th>
                          <th nzWidth="8%">标本类型</th>
                          <th nzWidth="8%">状态</th>
                          <th nzWidth="10%">标本编码</th>
                          <th nzWidth="8%">患者姓名</th>
                          <th nzWidth="8%">床号</th>
                          <th nzWidth="12%">收取扫描时间</th>
                          <th nzWidth="8%">收取人</th>
                          <th nzWidth="10%">送达目标科室</th>
                          <th nzWidth="12%">送达到达时间</th>
                          <th nzWidth="9%"></th>
                        </tr>
                      </thead>
                      <tbody>
                        <tr
                          *ngFor="
                            let data of historySpecimenList;
                            let i = index
                          "
                        >
                          <td>{{ i + 1 }}</td>
                          <td>{{ data.stype ? data.stype.name : "-" }}</td>
                          <td>
                            {{ data.speState ? data.speState.name : "-" }}
                          </td>
                          <td>{{ data.scode || "-" }}</td>
                          <td>{{ data.patientName || "-" }}</td>
                          <td>{{ data.bedNum || "-" }}</td>
                          <td>{{ data.arriveTime || "-" }}</td>
                          <td>{{ data.receiverName || "-" }}</td>
                          <td>
                            {{
                              data.checkDept
                                ? deptDisplay == 2
                                  ? data.checkDept.deptalias
                                  : data.checkDept.dept
                                : "-"
                            }}
                          </td>
                          <td>{{ data.sendTime || "-" }}</td>
                          <td>
                            <button class="btn1 mr8 mb8 mt8" (click)="viewSpecimenHistory(data)">查看</button>
                          </td>
                        </tr>
                      </tbody>
                    </nz-table>
                    <div class="pagination">
                      <nz-pagination
                        [(nzPageIndex)]="historySpecimenPageIndex"
                        [(nzTotal)]="historySpecimenListLength"
                        [(nzPageSize)]="historySpecimenPageSize"
                        (nzPageIndexChange)="getHistorySpecimen()"
                        (nzPageSizeChange)="getHistorySpecimen()"
                      >
                      </nz-pagination>
                    </div>
                  </div>
                </div>
              </div>
              <!-- 历史药单查询 -->
              <div
                *ngIf="checkedTableType == 'historyDrugsbag'"
                style="flex: 1; height: 100%"
              >
                <div
                  class="searchBox display_flex align-items_center justify-content_space-between"
                >
                  <div
                    class="left alignC display_flex justify-content_flex-center align-items_center"
                  >
                    <div>发药单号：</div>
                    <div>
                      <input
                        nz-input
                        placeholder="请输入发药单号"
                        [(ngModel)]="historyDrugsbagCodeSearchInp"
                      />
                    </div>
                    <!-- <div class="ml8">患者信息：</div>
                    <div>
                      <input nz-input placeholder="请输入患者信息" [(ngModel)]="historySpecimenParentSearchInp" />
                    </div> -->
                  </div>

                  <div class="btns">
                    <button
                      nz-button
                      nzType="primary"
                      nzGhost
                      (click)="getHistoryDrugsbag(true)"
                    >
                      搜索
                    </button>
                  </div>
                </div>
                <div class="table">
                  <div class="box">
                    <nz-table
                      class="hospitalTable"
                      [nzData]="historyDrugsbagList"
                      nzSize="middle"
                      [nzShowPagination]="false"
                      [nzLoading]="hsDLoading"
                    >
                      <thead>
                        <tr class="thead">
                          <th nzWidth="7%">序号</th>
                          <th nzWidth="15%">药单单号</th>
                          <th nzWidth="18%">发药科室</th>
                          <th nzWidth="15%">申请时间</th>
                          <th nzWidth="15%">记账时间</th>
                          <th nzWidth="15%">状态</th>
                          <th nzWidth="15%">查看过程</th>
                        </tr>
                      </thead>
                      <tbody>
                        <tr
                          *ngFor="
                            let data of historyDrugsbagList;
                            let i = index
                          "
                        >
                          <td>{{ i + 1 }}</td>
                          <td>{{ data.packid || "-" }}</td>
                          <td>
                            {{
                              data.launch
                                ? deptDisplay == 2
                                  ? data.launch.deptalias
                                  : data.launch.dept
                                : "-"
                            }}
                          </td>
                          <td>{{ data.creatTime || "-" }}</td>
                          <td>{{ data.bagTime || "-" }}</td>
                          <td>
                            {{ data.drugsState ? data.drugsState.name : "-" }}
                          </td>
                          <td>
                            <button class="btn1 mr8 mb8 mt8" (click)="viewDrugsbagHistory(data)">查看过程</button>
                          </td>
                        </tr>
                      </tbody>
                    </nz-table>
                    <div class="pagination">
                      <nz-pagination
                        [(nzPageIndex)]="historyDrugsbagPageIndex"
                        [(nzTotal)]="historyDrugsbagListLength"
                        [(nzPageSize)]="historyDrugsbagPageSize"
                        (nzPageIndexChange)="getHistoryDrugsbag()"
                        (nzPageSizeChange)="getHistoryDrugsbag()"
                      >
                      </nz-pagination>
                    </div>
                  </div>
                </div>
              </div>
              <!-- 快捷报修 -->
              <div
                *ngIf="checkedTableType == 'kjbx' && isShowBx && coopBtns.quickReportForRepair"
                style="flex: 1; height: 100%; display: flex"
              >
                <div class="otherBox">
                  <div class="otherBoxInner">
                    <!-- 故障现象查询 -->
                    <div class="otherBox-nav" style="width: 30%">
                      <div class="otherBox-nav__head">
                        <input
                          nz-input
                          placeholder="请输入关键字"
                          [(ngModel)]="incidentSearch"
                          (ngModelChange)="incidentSearchChange()"
                        />
                      </div>
                      <overlay-scrollbars
                        #osComponentRef10
                        class="otherBox-nav__main"
                        [ngStyle]="{ height: '100%' }"
                      >
                        <div
                          class="otherBox-nav__mainInner"
                          *ngIf="!iLoading && incidentList.length > 0"
                        >
                          <div class="w100">
                            <div
                              class="otherBox-nav__mainItem"
                              *ngFor="let item of incidentList"
                              (click)="incidentClick(item)"
                              [ngClass]="{
                                active: selectIncidentId == item.id
                              }"
                              [title]="item.mutiCategory"
                            >
                              {{ item.mutiCategory }}
                            </div>
                          </div>
                        </div>
                        <div
                          class="otherBox-nav__mainInner noData"
                          *ngIf="!iLoading && incidentList.length == 0"
                        >
                          暂无数据
                        </div>
                        <div
                          class="otherBox-nav__mainInner oLoading"
                          *ngIf="iLoading"
                        >
                          <img
                            src="../../../assets/images/loading.gif"
                            alt=""
                          />
                          <div>加载中...</div>
                        </div>
                      </overlay-scrollbars>
                    </div>
                    <form
                      nz-form
                      [formGroup]="bxForm"
                      (ngSubmit)="submitBxForm()"
                      class="bxForm bxFlex"
                    >
                      <!-- <nz-form-item>
                        <nz-form-label [nzSpan]="8" nzRequired nzFor="name"
                          >联系人</nz-form-label
                        >
                        <nz-form-control [nzSpan]="12" nzErrorTip="请填写联系人">
                          <input
                            type="text"
                            nz-input
                            formControlName="name"
                            placeholder="请填写联系人"
                          />
                        </nz-form-control>
                      </nz-form-item>
                      <nz-form-item>
                        <nz-form-label [nzSpan]="8" nzRequired nzFor="phone"
                          >联系人电话</nz-form-label
                        >
                        <nz-form-control
                          [nzSpan]="12"
                          nzErrorTip="请填写联系人电话"
                        >
                          <input
                            type="text"
                            nz-input
                            formControlName="phone"
                            placeholder="请填写联系人电话"
                          />
                        </nz-form-control>
                      </nz-form-item>
                      <nz-form-item>
                        <nz-form-label [nzSpan]="8" nzFor="hospital" nzRequired
                          >所属院区</nz-form-label
                        >
                        <nz-form-control [nzSpan]="12" nzErrorTip="请选择所属院区!">
                          <nz-select
                            formControlName="hospital"
                            nzPlaceHolder="请选择所属院区"
                            (ngModelChange)="getPlace($event)"
                          >
                            <nz-option
                              [nzValue]="area.id"
                              [nzLabel]="area.area"
                              *ngFor="let area of areas"
                            ></nz-option>
                          </nz-select>
                        </nz-form-control>
                      </nz-form-item>
                      <nz-form-item>
                        <nz-form-label [nzSpan]="8" nzFor="building" nzRequired
                          >楼栋</nz-form-label
                        >
                        <nz-form-control [nzSpan]="12" nzErrorTip="请选择楼栋!">
                          <nz-select
                            formControlName="building"
                            nzPlaceHolder="请选择楼栋"
                          >
                            <nz-option
                              [nzValue]="place.id"
                              [nzLabel]="place.place"
                              *ngFor="let place of places"
                            >
                            </nz-option>
                          </nz-select>
                        </nz-form-control>
                      </nz-form-item>
                      <nz-form-item>
                        <nz-form-label [nzSpan]="8" nzRequired
                          >详细地址</nz-form-label
                        >
                        <nz-form-control [nzSpan]="12" nzErrorTip="请填写详细地址">
                          <textarea
                            formControlName="address"
                            nz-input
                            rows="2"
                            placeholder="请填写详细地址"
                          ></textarea>
                        </nz-form-control>
                      </nz-form-item> -->
                      <nz-form-item>
                        <nz-form-label [nzSpan]="8" nzRequired
                          >报修内容</nz-form-label
                        >
                        <nz-form-control
                          [nzSpan]="12"
                          nzErrorTip="请填写报修内容"
                        >
                          <textarea
                            formControlName="content"
                            nz-input
                            rows="2"
                            placeholder="请填写报修内容"
                          ></textarea>
                        </nz-form-control>
                      </nz-form-item>
                      <nz-form-item>
                        <nz-form-label
                          [nzSpan]="8"
                          style="visibility: hidden"
                        ></nz-form-label>
                        <nz-form-control [nzSpan]="12">
                          <button
                            nz-button
                            nzType="primary"
                            [nzLoading]="bxLoading"
                          >
                            提交
                          </button>
                        </nz-form-control>
                      </nz-form-item>
                    </form>
                  </div>
                </div>
                <!-- <nz-table class="bxFlex bxTable" [nzData]="quickBxlbList" nzSize="small" [nzShowPagination]="false"
                  [nzLoading]="quickBxlbLoading">
                  <tbody>
                    <tr (click)="showBxModal(data,'您的报修为“'+data.content+'” 是否确认报修？')" *ngFor="
                            let data of quickBxlbList;
                            let i = index
                          ">
                      <td>{{ data.content||'无' }}</td>
                    </tr>
                  </tbody>
                </nz-table> -->
              </div>
              <!-- 报修列表 -->
              <div
                *ngIf="checkedTableType == 'bxlb' && isShowBx && coopBtns.repairList"
                style="flex: 1; height: 100%"
              >
                <div
                  class="searchBox display_flex align-items_center justify-content_space-between"
                >
                  <div
                    class="left alignC display_flex justify-content_flex-center align-items_center"
                  >
                    <div>状态：</div>
                    <div>
                      <nz-select
                        style="width: 160px;"
                        class="formItem"
                        [nzDropdownMatchSelectWidth]="false"
                        [nzShowSearch]="false"
                        nzAllowClear
                        nzPlaceHolder="请选择状态"
                        [(ngModel)]="incidentStateId"
                      >
                        <nz-option
                          [nzLabel]="data.name"
                          [nzValue]="data.id"
                          *ngFor="let data of incidentStateList"
                        ></nz-option>
                      </nz-select>
                    </div>
                  </div>

                  <div class="btns">
                    <button
                      nz-button
                      nzType="primary"
                      nzGhost
                      (click)="getBxlb(true)"
                    >
                      搜索
                    </button>
                  </div>
                </div>
                <div class="table">
                  <div class="box">
                    <nz-table
                      class="hospitalTable"
                      [nzData]="bxlbList"
                      nzSize="middle"
                      [nzShowPagination]="false"
                      [nzLoading]="bxlbLoading"
                    >
                      <thead>
                        <tr class="thead">
                          <th nzWidth="7%">序号</th>
                          <th nzWidth="16%">报修内容</th>
                          <th nzWidth="16%">报修时间</th>
                          <th nzWidth="16%">报修科室</th>
                          <th nzWidth="10%">状态</th>
                          <th nzWidth="20%">维修人</th>
                          <th nzWidth="15%"></th>
                        </tr>
                      </thead>
                      <tbody>
                        <tr *ngFor="let data of bxlbList; let i = index">
                          <td>{{ i + 1 }}</td>
                          <td>{{ data.description || "无" }}</td>
                          <td>
                            {{ data.createTime | date: "MM-dd HH:mm" }}
                          </td>
                          <td>
                            {{ data.departmentDTO ? data.departmentDTO.dept : "无" }}
                          </td>
                          <td>{{ data.state?data.state.name:'无' }}</td>
                          <td>
                            {{
                              data.incident
                                ? data.incident.handlingPersonnelUser
                                  ? data.incident.handlingPersonnelUser.name + (data.incident.handlingPersonnelUser.phone?'('+ data.incident.handlingPersonnelUser.phone +')':'')
                                  : "无"
                                : "无"
                            }}
                          </td>
                          <td>
                            <!-- <button (click)="viewBx(data)">查看</button> -->
                            <button class="btn1 mr8 mb8 mt8" (click)="detailBx(data)">查看</button>
                            <button class="btn1 mr8 mb8 mt8" (click)="showAppraiseBx(data.id)" *ngIf="data.state.name  == '待评价'">评价</button>
                          </td>
                        </tr>
                      </tbody>
                    </nz-table>
                    <div class="pagination">
                      <nz-pagination
                        [(nzPageIndex)]="bxlbPageIndex"
                        [(nzTotal)]="bxlbListLength"
                        [(nzPageSize)]="bxlbPageSize"
                        (nzPageIndexChange)="getBxlb(bxlbPageIndex)"
                        (nzPageSizeChange)="getBxlb(bxlbPageIndex)"
                      >
                      </nz-pagination>
                    </div>
                  </div>
                </div>
              </div>
            </div>
            <div nz-col nzSpan="7" class="orders">
              <div
                class="orderTit display_flex justify-content_space-between align-items_center"
              >
                <span>工单列表<b style="font-size: 12px">({{ orderListTime }}秒)</b></span>
                <div>
                  <nz-select
                    style="width: 100px"
                    [(ngModel)]="orderStateSelected"
                    (ngModelChange)="changeOrderState($event)"
                    nzPlaceHolder="请选择工单状态"
                  >
                    <nz-option nzValue="-1" nzLabel="全部"></nz-option>
                    <nz-option nzValue="1" nzLabel="执行中"></nz-option>
                    <nz-option nzValue="2" nzLabel="待评价"></nz-option>
                  </nz-select>
                  <nz-select
                    class="ml8"
                    style="width: 100px"
                    [(ngModel)]="orderSelected"
                    (ngModelChange)="changeOrderSel(orderSelected)"
                    nzPlaceHolder="请选择任务类型"
                  >
                    <nz-option nzValue="-1" nzLabel="全部"></nz-option>
                    <nz-option
                      *ngFor="let item of orderSelectList"
                      [nzValue]="item.id"
                      [nzLabel]="item.name"
                    >
                    </nz-option>
                  </nz-select>
                </div>
              </div>
              <div
                class="loading display_flex align-items_center justify-content_flex-center"
                *ngIf="OLoading"
              >
                <div>
                  <img src="../../assets/images/loading.gif" alt="" />
                  <div>加载中...</div>
                </div>
              </div>
              <div
                class="loading none display_flex align-items_center justify-content_flex-center"
                *ngIf="orderLength == 0 && !OLoading"
              >
                <div>
                  <div>暂无数据</div>
                </div>
              </div>
              <div class="orderList" *ngIf="orderLength != 0 && !OLoading">
                <overlay-scrollbars #osComponentRef1 class="box">
                  <div class="orderLisBox">
                    <div class="orderLis">
                      <div
                        class="loading display_flex align-items_center justify-content_flex-center"
                        *ngIf="OLoading"
                      >
                        <div>
                          <img src="../../assets/images/loading.gif" alt="" />
                          <div>加载中...</div>
                        </div>
                      </div>
                      <div
                        class="orderItem borderB"
                        *ngFor="let item of orderList"
                      >
                        <div class="info">
                          <div class="row" nz-row>
                            <div nz-col nzSpan="12" class="col txtL">
                              {{
                                item.isHalfInspect === 1
                                  ? "半程陪检"
                                  : item.taskType.taskName
                              }}
                              <ng-container
                                *ngIf="
                                  item.taskType.associationType.value ==
                                    'drugsBag' && item.drugs
                                "
                              >
                                ({{ item.drugs.packid }})
                              </ng-container>
                              <ng-container *ngIf="item.goodsRemark"
                                >-{{ item.goodsRemark }}</ng-container
                              >
                              <span
                                *ngIf="
                                  item.patient &&
                                  (item.taskType.associationType.value ==
                                    'patientTransport' ||
                                    item.taskType.associationType.value ==
                                      'inspect')
                                "
                              >
                                （{{ item.patient.patientName }}）
                              </span>
                            </div>
                            <div nz-col nzSpan="12" class="col txtR">
                              {{ item.gdState.name }}
                            </div>
                          </div>
                          <div class="row" nz-row>
                            <div nz-col nzSpan="24" class="col txtL">
                              {{item.workOrderRemark}}
                            </div>
                          </div>
                          <div class="row" nz-row>
                            <!-- <div nz-col nzSpan="12" class="col txtL"></div> -->
                            <div nz-col nzSpan="12" class="col txtL">
                              <ng-container
                                *ngIf="
                                  item.taskType.associationType.value ==
                                    'drugsBag' && item.startDept
                                "
                              >
                                {{
                                  deptDisplay == 2
                                    ? item.startDept.deptalias
                                    : item.startDept.dept
                                }}
                              </ng-container>
                            </div>
                            <div
                              *ngIf="item.showCreateTime"
                              nz-col
                              nzSpan="12"
                              class="col txtR"
                            >
                              {{ item.showCreateTime }}
                            </div>
                            <div
                              *ngIf="item.yyjdTime && item.gdState.value == 11"
                              nz-col
                              nzSpan="12"
                              class="col txtR"
                            >
                              {{ item.yyjdTime | date: "MM-dd HH:mm" }}
                            </div>
                          </div>
                          <div class="row" nz-row>
                            <div nz-col nzSpan="12" class="col txtL">
                              <span *ngIf="item.worker"
                                >{{ item.worker.name }}
                                {{
                                  item.worker.phone
                                    ? "(" + item.worker.phone + ")"
                                    : ""
                                }}</span
                              >
                            </div>
                            <div
                              nz-col
                              nzSpan="12"
                              class="col txtR toDetail"
                              (click)="openDetails(item)"
                            >
                              <span>查看详情>></span>
                            </div>
                          </div>
                        </div>
                        <div class="process">
                          <div class="box display_flex">
                            <div class="steps" *ngFor="let step of item.record">
                              <div class="step">
                                <div class="txt">
                                  <i
                                    [ngClass]="{
                                      icon_transport: true,
                                      'transport-icon_liucheng': true,
                                      green:
                                        step.record &&
                                        step.record[0] &&
                                        step.record[0].operationTime
                                    }"
                                  ></i>
                                  <p>{{ step.operationName }}</p>
                                  <p
                                    class="time"
                                    *ngIf="
                                      step.record &&
                                      step.record[0] &&
                                      step.record[0].operationTime
                                    "
                                  >
                                    {{
                                      step.record[0].operationTime
                                        | date: "MM-dd HH:mm"
                                    }}
                                  </p>
                                </div>
                                <div class="line"></div>
                              </div>
                            </div>
                          </div>
                        </div>
                        <div class="btns display_flex">
                          <div
                            class="btn flex_1 appraise"
                            *ngIf="item.gdState.id == 73"
                            (click)="showAppraise(item.id)"
                          >
                            评价
                          </div>
                          <div
                            *ngIf="isAssign && item.gdState.value == 2"
                            class="btn flex_1 revocation borderR primary"
                            (click)="allotWorker(item.id, item.gdState.id)"
                          >
                            指派
                          </div>
                          <div
                            *ngIf="isAssign && item.gdState.value == 4"
                            class="btn flex_1 revocation borderR primary"
                            (click)="allotWorker(item.id, item.gdState.id, 1)"
                          >
                            指派
                          </div>
                          <div
                            *ngIf="
                              item.gdState.id == 69 ||
                              item.gdState.id == 70 ||
                              item.gdState.id == 71 ||
                              item.gdState.id == 433
                            "
                            class="btn flex_1 revocation borderR"
                            (click)="openRecallModal(item.id)"
                          >
                            撤销
                          </div>
                          <div
                            *ngIf="item.gdState.id == 433"
                            class="btn flex_1 revocation borderR"
                            (click)="openExecModal(item)"
                          >
                            立即执行
                          </div>
                          <div
                            *ngIf="
                              (item.gdState.id == 69 ||
                                item.gdState.id == 71) &&
                              item.taskType.allowUrgent == 1 &&
                              !item.urgentDetails
                            "
                            class="btn flex_1 urgent"
                            (click)="showJiaji(item.id)"
                          >
                            加急
                          </div>
                        </div>
                        <img
                          src="../../assets/images/icon_ji.png"
                          class="icon_ji"
                          *ngIf="
                            item.emergencyType && item.emergencyType.id == 300
                          "
                        />
                        <img
                          src="../../assets/images/icon_jiaji.png"
                          class="icon_ji"
                          *ngIf="
                            item.emergencyType && item.emergencyType.id == 301
                          "
                        />
                      </div>
                    </div>
                  </div>
                </overlay-scrollbars>
                <!-- 翻页 -->
                <div class="pageing">
                  <div>
                    <nz-pagination
                      [(nzPageIndex)]="orderIdx"
                      [(nzTotal)]="orderLength"
                      (nzPageIndexChange)="getOrderList()"
                      [nzPageSize]="10"
                      nzSimple
                    >
                    </nz-pagination>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </nz-content>
    </nz-layout>
  </nz-layout>
</div>

<!-- 返回系统按钮 -->
<!-- 右侧悬浮框 -->
<!-- <div id="fixedMenu" class="fixed" *ngIf="mainRole">
  <div class="right">
    <div class="fixedMenu hujiaozhongxin">
      <div class="menuItems">
        <div class="item">快捷菜单</div>
      </div>
    </div>
    <div class="fixedMenu">
      <div class="menuItems">
        <div class="others" [ngStyle]="{'height':showLastItems?(mainRole?(35*2)+'px':(35*1)+'px'):0}">
          <div [ngClass]="{'item':true,'checked':fixedTab=='back'}" *ngIf="mainRole"
            (click)="checkFixedTab('toSystem')">
            返回系统
          </div>
        </div>
      </div>
      <div class="arrow" *ngIf="!showLastItems" (click)="fixedMenuXiala()">
        <i class="icon_transport transport-xiala2-01"></i>
      </div>
      <div class="arrow" *ngIf="showLastItems" (click)="fixedMenuShangla()">
        <i class="icon_transport transport-shangla-"></i>
      </div>
    </div>
  </div>
  <div *ngIf="showLastItems&&fixedTab!=''" (click)="fixedMenuShangla()" class="fixedMark">
  </div>
</div> -->

<!-- 患者信息一键建单模态框 -->
<div
  class="save display_flex align-items_center justify-content_flex-center patient"
  *ngIf="patientModal"
>
  <div class="modalBody" style="width: 500px">
    <div class="title">
      患者送检<i
        class="icon_transport transport-guanbi"
        (click)="hidePatientOrder()"
      ></i>
    </div>
    <overlay-scrollbars
      #osComponentRef7
      class="content"
      style="max-height: 80vh"
    >
      <div class="jiTit borderB" *ngIf="checkedShowMsg.msg">
        提示：您即将创建<b style="color: red">{{ patientMsg.patientName }}</b
        >患者检查，{{ checkedShowMsg.msg }}
      </div>
      <div class="jiTit borderB" *ngIf="!checkedShowMsg.msg">
        提示：您即将创建<b style="color: red">{{ patientMsg.patientName }}</b
        >患者检查
      </div>
      <div class="jiTit borderB jiTitB">
        如患者无预约检查无法进行“当天预约检查时”，可使用“特殊情况送检”进行建单。
      </div>
      <div>
        <form nz-form [formGroup]="patientForm" class="patientForm">
          <nz-form-item class="datesControl">
            <nz-form-label [nzSm]="6" [nzXs]="24" nzRequired nzFor="checkedType"
              >任务类型</nz-form-label
            >
            <nz-form-control nzErrorTip="请选择任务类型!" class="checkedType">
              <nz-radio-group
                class="radioGroup"
                formControlName="checkedType"
                (ngModelChange)="changeCheckedType()"
              >
                <label
                  *ngFor="let item of checkTypeLis"
                  nz-radio
                  [nzValue]="item.id"
                  >{{ item.taskName }}</label
                >
              </nz-radio-group>
            </nz-form-control>
          </nz-form-item>
          <ng-container *ngIf="cLoading">
            <div style="text-align: center">
              <img src="../../../assets/images/loading.gif" alt="" />
              <div>加载中...</div>
            </div>
          </ng-container>
          <ng-container *ngIf="!cLoading">
            <!-- 检查 -->
            <nz-form-item *ngIf="checkedShowMsg.status == 200">
              <nz-form-label [nzSm]="24" [nzXs]="24" nzFor="linkCheck"
                >关联的检查</nz-form-label
              >
              <nz-form-control class="datesGroup" *ngIf="linkCheckLis.length">
                <nz-checkbox-wrapper
                  class="linkCheckCheck"
                  ngDefaultControl
                  formControlName="linkCheck"
                  (nzOnChange)="linkCheckLisChange($event)"
                >
                  <div nz-row *ngFor="let item of linkCheckLis">
                    <div nz-col nzSpan="24">
                      <label nz-checkbox [nzValue]="item">{{
                        item.label
                      }}</label>
                      <i
                        class="icon_transport transport-zu1468 priority"
                        *ngIf="item.priority === 1 || item.priority === '1'"
                      ></i>
                    </div>
                  </div>
                </nz-checkbox-wrapper>
                <div
                  class="red"
                  style="line-height: normal; font-weight: bold"
                  *ngIf="currentTasktype.isMoreDept === 0 && isInspects"
                >
                  您选择的检查包含了多个科室，请您只包含一个科室。
                </div>
              </nz-form-control>
              <div *ngIf="!linkCheckLis.length">暂无关联的检查</div>
            </nz-form-item>
            <div
              class="pos"
              *ngIf="
                (currentTasktype.associationType.value === 'patientTransport' &&
                  appointmentZyBuildFlag == 1) ||
                (currentTasktype.associationType.value === 'inspect' &&
                  appointmentBuildFlag == 1)
              "
            >
              <!-- 需要预约检查 -->
              <nz-form-item class="pos-item">
                <nz-form-control>
                  <label
                    nz-checkbox
                    [nzDisabled]="
                      (!linkCheckLisTrue &&
                        currentTasktype.associationType.value === 'inspect') ||
                      (linkCheckLisTrue &&
                        allowUrgent == 1 &&
                        currentTasktype.associationType.value === 'inspect') ||
                      (allowUrgent == 1 &&
                        currentTasktype.associationType.value ===
                          'patientTransport')
                    "
                    [(ngModel)]="isYyInspect"
                    (ngModelChange)="yyInspectChange($event)"
                    [ngModelOptions]="{ standalone: true }"
                    style="font-weight: bold"
                    >需要预约检查</label
                  >
                </nz-form-control>
              </nz-form-item>
              <!-- 预约建单时间-患者其他服务 -->
              <nz-form-item
                class="yyTime"
                [ngClass]="{
                  yyTimeError: (!yyTimeZy || !yyDateZy) && clickYYZyFlag
                }"
                *ngIf="
                  currentTasktype.associationType.value === 'patientTransport'
                "
              >
                <nz-form-label [nzSm]="24" [nzXs]="24"
                  >预约建单时间</nz-form-label
                >
                <nz-form-control [nzSm]="24" [nzXs]="24">
                  <nz-date-picker
                    [nzDisabled]="!isYyInspect"
                    [(ngModel)]="yyDateZy"
                    (ngModelChange)="yyDateChange($event)"
                    [ngModelOptions]="{ standalone: true }"
                    [nzAllowClear]="false"
                    [nzDisabledDate]="disabledyyDateZy"
                    [nzShowToday]="false"
                  ></nz-date-picker>
                  <nz-time-picker
                    [nzDisabled]="!isYyInspect || !yyDateZy"
                    class="ml8"
                    nzFormat="HH:mm"
                    [nzMinuteStep]="inspectAndPatientTransportConfig.timeMod"
                    [nzSecondStep]="60"
                    [(ngModel)]="yyTimeZy"
                    (ngModelChange)="yyTimeZyChange($event)"
                    [ngModelOptions]="{ standalone: true }"
                    [nzDisabledHours]="disabledHours"
                    [nzDisabledMinutes]="disabledMinutes"
                    [nzAllowEmpty]="false"
                  >
                  </nz-time-picker>
                  <button
                    [disabled]="!isYyInspect || (isYyInspect && !yyDateZy)"
                    nz-button
                    nzType="primary"
                    class="ml8"
                    (click)="nextDayZy()"
                  >
                    下一日
                  </button>
                </nz-form-control>
                <div
                  class="red w100"
                  *ngIf="(!yyTimeZy || !yyDateZy) && clickYYZyFlag"
                >
                  请填写预约建单时间!
                </div>
                <div class="red">
                  请您填写实际预约检查时间，系统会根据时间安排人员进行陪检!
                </div>
              </nz-form-item>
              <!-- 预约建单时间 -->
              <nz-form-item
                class="yyTime"
                [ngClass]="{ yyTimeError: (!yyTime || !yyDate) && clickYYFlag }"
                *ngIf="currentTasktype.associationType.value === 'inspect'"
              >
                <nz-form-label [nzSm]="24" [nzXs]="24"
                  >预约建单时间</nz-form-label
                >
                <nz-form-control [nzSm]="24" [nzXs]="24">
                  <nz-date-picker
                    [nzDisabled]="!isYyInspect"
                    [(ngModel)]="yyDate"
                    (ngModelChange)="yyDateChange($event)"
                    [ngModelOptions]="{ standalone: true }"
                    [nzAllowClear]="false"
                    [nzDisabledDate]="disabledyyDate"
                    [nzShowToday]="false"
                  >
                  </nz-date-picker>
                  <nz-time-picker
                    [nzDisabled]="!isYyInspect || !yyDate"
                    class="ml8"
                    nzFormat="HH:mm"
                    [nzMinuteStep]="inspectAndPatientTransportConfig.timeMod"
                    [nzSecondStep]="60"
                    [(ngModel)]="yyTime"
                    (ngModelChange)="yyTimeChange($event)"
                    [ngModelOptions]="{ standalone: true }"
                    [nzDisabledHours]="disabledHours"
                    [nzDisabledMinutes]="disabledMinutes"
                    [nzAllowEmpty]="false"
                  >
                  </nz-time-picker>
                  <button
                    [disabled]="!isYyInspect || (isYyInspect && !yyDate)"
                    nz-button
                    nzType="primary"
                    class="ml8"
                    (click)="nextDay()"
                  >
                    下一日
                  </button>
                </nz-form-control>
                <div
                  class="red w100"
                  *ngIf="(!yyTime || !yyDate) && clickYYFlag"
                >
                  请填写预约建单时间!
                </div>
                <div class="red">
                  请您填写实际预约检查时间，系统会根据时间安排人员进行陪检!
                </div>
              </nz-form-item>
            </div>
            <!-- 100009 科室任务类型状态码未配置 -->
            <nz-form-item
              *ngIf="
                checkedShowMsg.status != 200 && checkedShowMsg.status == 100009
              "
            >
              <div class="txtC">{{ checkedShowMsg.msg }}</div>
            </nz-form-item>
            <!-- 100015 （护士端一键建单展策略）起点科室和终点科室下拉展示 -->
            <nz-form-item
              *ngIf="
                checkedShowMsg.status != 200 &&
                (checkedShowMsg.status == 100015 ||
                  checkedShowMsg.status == 100013)
              "
            >
              <nz-form-label
                [nzSm]="6"
                [nzXs]="24"
                nzRequired
                nzFor="originOffice"
                >起点科室</nz-form-label
              >
              <nz-form-control nzErrorTip="请选择起点科室!">
                <nz-select
                  class="w100"
                  formControlName="originOffice"
                  [nzDropdownMatchSelectWidth]="false"
                  nzServerSearch
                  nzShowSearch
                  (nzOnSearch)="searchDept('start', checkedShowMsg, $event)"
                  nzPlaceHolder="请选择起点科室"
                >
                  <ng-container
                    *ngFor="let option of checkedShowMsg.start.start.list"
                  >
                    <nz-option
                      *ngIf="true"
                      [nzLabel]="
                        deptDisplay == 2 ? option.deptalias : option.dept
                      "
                      [nzValue]="option.id"
                    ></nz-option>
                  </ng-container>
                  <nz-option *ngIf="false" nzDisabled nzCustomContent>
                    <i nz-icon nzType="loading" class="loading-icon"></i>
                    搜索中...
                  </nz-option>
                </nz-select>
              </nz-form-control>
            </nz-form-item>
            <!-- 100014 （护士端一键建单展示策略）取终点科室和msg 值展示 -->
            <nz-form-item
              *ngIf="
                checkedShowMsg.status != 200 &&
                (checkedShowMsg.status == 100014 ||
                  checkedShowMsg.status == 100015)
              "
            >
              <nz-form-label
                [nzSm]="6"
                [nzXs]="24"
                nzRequired
                nzFor="targetOffice"
                >目标科室</nz-form-label
              >
              <nz-form-control nzErrorTip="请选择目标科室!">
                <nz-select
                  class="w100"
                  formControlName="targetOffice"
                  [nzDropdownMatchSelectWidth]="false"
                  nzServerSearch
                  nzShowSearch
                  (nzOnSearch)="searchDept('target', checkedShowMsg, $event)"
                  nzPlaceHolder="请选择目标科室"
                >
                  <ng-container
                    *ngFor="let option of checkedShowMsg.end.end.list"
                  >
                    <nz-option
                      *ngIf="true"
                      [nzLabel]="
                        deptDisplay == 2 ? option.deptalias : option.dept
                      "
                      [nzValue]="option.id"
                    ></nz-option>
                  </ng-container>
                  <nz-option *ngIf="false" nzDisabled nzCustomContent>
                    <i nz-icon nzType="loading" class="loading-icon"></i>
                    搜索中...
                  </nz-option>
                </nz-select>
              </nz-form-control>
            </nz-form-item>
            <!-- 自动送回 -->
            <nz-form-item
              *ngIf="
                checkedShowMsg.status != 200 && checkedShowMsg.isRemand == 1
              "
            >
              <nz-form-control>
                <label
                  nz-checkbox
                  [(ngModel)]="isRemand"
                  [ngModelOptions]="{ standalone: true }"
                  >自动送回</label
                >
              </nz-form-control>
            </nz-form-item>
            <!-- 工单备注 -->
            <!-- <div *ngIf="isRemarks">
              <p class="mt8 mb8">工单备注：</p>
              <textarea
                nz-input
                [placeholder]="workOrderRemarkTips1"
                [nzAutosize]="{ minRows: 3, maxRows: 5 }"
                maxlength="100"
                [(ngModel)]="workOrderRemark1"
                #remarksEle1
              ></textarea>
              <p class="mt8 mb8" *ngIf="customRemarks1.length">快捷输入：</p>
              <div *ngIf="customRemarks1.length">
                <span
                  class="addRemarks"
                  *ngFor="let item of customRemarks1"
                  (click)="addRemarks1(item)"
                  >【{{ item }}】</span
                >
              </div>
              <p class="mt8 mb8" *ngIf="historyCustomRemarks1.length">历史输入：</p>
              <div *ngIf="historyCustomRemarks1.length">
                <span
                  class="addRemarks"
                  *ngFor="let item of historyCustomRemarks1"
                  (click)="addRemarks1(item)"
                  >【{{ item }}】</span
                >
              </div>
            </div> -->
            <!-- 工单备注 -->
            <ng-container *ngIf="isRemarks">
              <nz-form-item>
                <!-- <p class="mt8 mb8" *ngIf="customRemarks2.length">快捷输入：</p>
                <div *ngIf="customRemarks2.length">
                  <span
                    class="addRemarks"
                    *ngFor="let item of customRemarks2"
                    (click)="addRemarks2(item)"
                    >【{{ item }}】</span
                  >
                </div> -->
                <!-- <p class="mt8 mb8" *ngIf="historyCustomRemarks2.length">历史输入：</p>
                <div *ngIf="historyCustomRemarks2.length">
                  <span
                    class="addRemarks"
                    *ngFor="let item of historyCustomRemarks2"
                    (click)="addRemarks2(item)"
                    >【{{ item }}】</span
                  >
                </div> -->
                <div class="display_flex align-items_center">
                  <nz-form-label [nzSm]="6" [nzXs]="24" nzFor="workOrderRemark2" class="mt8 mb8">工单备注</nz-form-label>
                  <div *ngIf="customRemarks2.length" style="word-break: break-all;">
                    <span class="addRemarks" *ngFor="let item of customRemarks2" (click)="addRemarks2(item)">【{{ item }}】</span>
                  </div>
                </div>
                <nz-form-control>
                  <textarea
                  nz-input
                  [placeholder]="workOrderRemarkTips2"
                  [nzAutosize]="{ minRows: 3, maxRows: 5 }"
                  maxlength="100"
                  formControlName="workOrderRemark2"
                  [(ngModel)]="workOrderRemark2"
                  #remarksEle2
                ></textarea>
                </nz-form-control>
              </nz-form-item>
            </ng-container>
            <!-- 携带设备 -->
            <nz-form-item *ngIf="!isRemarks && goodsLis.length">
              <nz-form-label [nzSm]="6" [nzXs]="24" nzFor="goods" class="goods"
                >携带设备</nz-form-label
              >
              <nz-form-control>
                <nz-checkbox-group
                  formControlName="goods"
                  [(ngModel)]="goodsLis"
                >
                </nz-checkbox-group>
              </nz-form-control>
            </nz-form-item>
            <!-- 是否加急 -->
            <nz-form-item *ngIf="current_allowUrgent">
              <nz-form-label
                [nzSm]="6"
                [nzXs]="24"
                nzFor="allowUrgent"
                class="goods"
                >是否加急</nz-form-label
              >
              <nz-form-control>
                <nz-radio-group
                  [(ngModel)]="allowUrgent"
                  (ngModelChange)="allowUrgentChange($event)"
                  formControlName="allowUrgent"
                >
                  <label nz-radio nzValue="1">是</label>
                  <label nz-radio nzValue="0">否</label>
                </nz-radio-group>
              </nz-form-control>
            </nz-form-item>
            <!-- 加急原因 -->
            <nz-form-item *ngIf="current_allowUrgent && allowUrgent == 1">
              <nz-form-label
                [nzSm]="6"
                [nzXs]="24"
                nzRequired
                nzFor="urgentReason"
                class="goods"
                >加急原因</nz-form-label
              >
              <nz-form-control>
                <textarea
                  rows="4"
                  placeholder="请输入加急原因"
                  nz-input
                  [(ngModel)]="urgentReason"
                  formControlName="urgentReason"
                ></textarea>
              </nz-form-control>
            </nz-form-item>
          </ng-container>
        </form>
      </div>
    </overlay-scrollbars>
    <div class="btns display_flex justify-content_flex-center">
      <button
        nz-button
        nzType="primary"
        [nzLoading]="btnLoading1"
        (click)="confirmPatient1('patient-yuyue')"
        *ngIf="
          currentTasktype.associationType.value === 'inspect' &&
          isYyInspect &&
          !(currentTasktype.isMoreDept === 0 && isInspects) && checkedShowMsg.status != 100009
        "
      >
        预约建单
      </button>
      <button
        nz-button
        nzType="primary"
        [nzLoading]="btnLoading1"
        (click)="confirmPatient1('patient-zy-yuyue')"
        *ngIf="
          currentTasktype.associationType.value === 'patientTransport' &&
          isYyInspect && checkedShowMsg.status != 100009
        "
      >
        预约建单
      </button>
      <button
        nz-button
        nzType="default"
        [nzLoading]="btnLoading"
        (click)="confirmPatient()"
        class="orderThis"
        *ngIf="
          ((!isYyInspect &&
            currentTasktype.associationType.value === 'inspect' &&
            linkCheckLisTrue) ||
            (!isYyInspect &&
              currentTasktype.associationType.value === 'patientTransport')) &&
          !(currentTasktype.isMoreDept === 0 && isInspects) && checkedShowMsg.status != 100009
        "
      >
        直接建单
      </button>
      <button
        class="btn cancel"
        nz-button
        nzType="default"
        (click)="hidePatientOrder()"
      >
        取消
      </button>
    </div>
  </div>
</div>

<!-- 标本一键建单模态框 其他-->
<div
  class="save display_flex align-items_center justify-content_flex-center shortcut"
  *ngIf="shortcutModal"
>
  <div class="modalBody">
    <div class="title">
      快捷建单<i
        class="icon_transport transport-guanbi"
        (click)="hideShortcutOrder()"
      ></i>
    </div>
    <!-- 200 该任务类型运送过程暂未配置 -->
    <div
      class="content txtC bb"
      *ngIf="buildMsg1.status == 200 && buildType == 'bb'"
    >
      <div class="defeat">{{ buildMsg1.msg }}</div>
    </div>
    <!-- 100009 该任务类型运送过程暂未配置 -->
    <div class="content txtC" *ngIf="buildMsg1.status == 100009">
      <div class="defeat">{{ buildMsg1.msg }}</div>
    </div>
    <!-- 100010 系统未查询到该任务类型关联信息 -->
    <div class="content txtC" *ngIf="buildMsg1.status == 100010">
      <div class="icon"><i class="icon_transport transport-wenhao"></i></div>
      <div class="defeat">{{ buildMsg1.msg }}</div>
    </div>
    <!-- 100012 （护士端一键建单展示策略）直接取msg -->
    <div class="content txtC" *ngIf="buildMsg1.status == 100012">
      <div class="icon"><i class="icon_transport transport-wenhao"></i></div>
      <div class="defeat">{{ buildMsg1.msg }}</div>
    </div>
    <!-- 100013 （护士端一键建单展示策略）取起点科室，和mgs值展示 -->
    <div class="content" *ngIf="buildMsg1.status == 100013">
      <div class="jiTit borderB">
        <span>{{ buildMsg1.msg }}</span>
      </div>
      <div>
        <form nz-form [formGroup]="shortcutForm1" class="shortcutForm">
          <nz-form-item>
            <nz-form-label
              [nzSm]="6"
              [nzXs]="24"
              nzRequired
              nzFor="originOffice"
              >起点科室</nz-form-label
            >
            <nz-form-control nzErrorTip="请选择起点科室!">
              <nz-select
                class="w100"
                formControlName="originOffice"
                [nzDropdownMatchSelectWidth]="false"
                nzServerSearch
                nzShowSearch
                (nzOnSearch)="searchDept('start', buildMsg1, $event)"
                nzPlaceHolder="请选择起点科室"
              >
                <ng-container *ngFor="let option of buildMsg1.start.start.list">
                  <nz-option
                    *ngIf="true"
                    [nzLabel]="
                      deptDisplay == 2 ? option.deptalias : option.dept
                    "
                    [nzValue]="option.id"
                  >
                  </nz-option>
                </ng-container>
                <nz-option *ngIf="false" nzDisabled nzCustomContent>
                  <i nz-icon nzType="loading" class="loading-icon"></i>
                  搜索中...
                </nz-option>
              </nz-select>
            </nz-form-control>
          </nz-form-item>
        </form>
      </div>
    </div>
    <!-- 100014 （护士端一键建单展示策略）取终点科室和msg 值展示 -->
    <div class="content" *ngIf="buildMsg1.status == 100014">
      <div class="jiTit borderB">
        <span>{{ buildMsg1.msg }}</span>
      </div>
      <div>
        <form nz-form [formGroup]="shortcutForm1" class="shortcutForm">
          <nz-form-item>
            <nz-form-label
              [nzSm]="6"
              [nzXs]="24"
              nzRequired
              nzFor="targetOffice"
              >目标科室</nz-form-label
            >
            <nz-form-control nzErrorTip="请选择目标科室!">
              <nz-select
                class="w100"
                formControlName="targetOffice"
                [nzDropdownMatchSelectWidth]="false"
                nzServerSearch
                nzShowSearch
                (nzOnSearch)="searchDept('target', buildMsg1, $event)"
                nzAllowClear
                nzPlaceHolder="请选择目标科室"
              >
                <ng-container *ngFor="let option of buildMsg1.end.end.list">
                  <nz-option
                    *ngIf="true"
                    [nzLabel]="
                      deptDisplay == 2 ? option.deptalias : option.dept
                    "
                    [nzValue]="option.id"
                  >
                  </nz-option>
                </ng-container>
                <nz-option *ngIf="false" nzDisabled nzCustomContent>
                  <i nz-icon nzType="loading" class="loading-icon"></i>
                  搜索中...
                </nz-option>
              </nz-select>
            </nz-form-control>
          </nz-form-item>
        </form>
      </div>
    </div>
    <!-- 100015 （护士端一键建单展策略）起点科室和终点科室下拉展示 -->
    <div class="content" *ngIf="buildMsg1.status == 100015">
      <div class="jiTit borderB">
        <span>{{ buildMsg1.msg }}</span>
      </div>
      <div>
        <form nz-form [formGroup]="shortcutForm1" class="shortcutForm">
          <nz-form-item>
            <nz-form-label
              [nzSm]="6"
              [nzXs]="24"
              nzRequired
              nzFor="originOffice"
              >起点科室</nz-form-label
            >
            <nz-form-control nzErrorTip="请选择起点科室!">
              <nz-select
                class="w100"
                formControlName="originOffice"
                [nzDropdownMatchSelectWidth]="false"
                nzServerSearch
                nzShowSearch
                (nzOnSearch)="searchDept('start', buildMsg1, $event)"
                nzPlaceHolder="请选择起点科室"
              >
                <ng-container *ngFor="let option of buildMsg1.start.start.list">
                  <nz-option
                    *ngIf="true"
                    [nzLabel]="
                      deptDisplay == 2 ? option.deptalias : option.dept
                    "
                    [nzValue]="option.id"
                  >
                  </nz-option>
                </ng-container>
                <nz-option *ngIf="false" nzDisabled nzCustomContent>
                  <i nz-icon nzType="loading" class="loading-icon"></i>
                  搜索中...
                </nz-option>
              </nz-select>
            </nz-form-control>
          </nz-form-item>
          <nz-form-item>
            <nz-form-label
              [nzSm]="6"
              [nzXs]="24"
              nzRequired
              nzFor="targetOffice"
              >目标科室</nz-form-label
            >
            <nz-form-control nzErrorTip="请选择目标科室!">
              <nz-select
                class="w100"
                formControlName="targetOffice"
                [nzDropdownMatchSelectWidth]="false"
                nzServerSearch
                nzShowSearch
                (nzOnSearch)="searchDept('target', buildMsg1, $event)"
                nzPlaceHolder="请选择目标科室"
              >
                <ng-container *ngFor="let option of buildMsg1.end.end.list">
                  <nz-option
                    *ngIf="true"
                    [nzLabel]="
                      deptDisplay == 2 ? option.deptalias : option.dept
                    "
                    [nzValue]="option.id"
                  >
                  </nz-option>
                </ng-container>
                <nz-option *ngIf="false" nzDisabled nzCustomContent>
                  <i nz-icon nzType="loading" class="loading-icon"></i>
                  搜索中...
                </nz-option>
              </nz-select>
            </nz-form-control>
          </nz-form-item>
        </form>
      </div>
    </div>
    <!-- 标本配送备注 -->
    <div *ngIf="buildMsg1.remarksSwitch == 1">
      <p class="mt8 mb8">工单备注：</p>
      <textarea
        nz-input
        [placeholder]="workOrderRemarkTips1"
        [nzAutosize]="{ minRows: 3, maxRows: 5 }"
        maxlength="100"
        [(ngModel)]="workOrderRemark1"
        #remarksEle1
      ></textarea>
      <p class="mt8 mb8" *ngIf="customRemarks1.length">快捷输入：</p>
      <div *ngIf="customRemarks1.length">
        <span
          class="addRemarks"
          *ngFor="let item of customRemarks1"
          (click)="addRemarks1(item)"
          >【{{ item }}】</span
        >
      </div>
      <p class="mt8 mb8" *ngIf="historyCustomRemarks1.length">历史输入：</p>
      <div *ngIf="historyCustomRemarks1.length">
        <span
          class="addRemarks"
          *ngFor="let item of historyCustomRemarks1"
          (click)="addRemarks1(item)"
          >【{{ item }}】</span
        >
      </div>
    </div>
    <div class="btns display_flex justify-content_flex-center">
      <button
        *ngIf="buildMsg1.status != 100009 && buildMsg1.status != 100010"
        nz-button
        nzType="primary"
        [nzLoading]="btnLoading"
        (click)="confirmShortcut1()"
      >
        确认
      </button>
      <button
        class="btn cancel"
        nz-button
        nzType="default"
        (click)="hideShortcutOrder()"
      >
        取消
      </button>
    </div>
  </div>
</div>

<!-- 一键建单确认模态框 -->
<div
  class="save display_flex align-items_center justify-content_flex-center shortcut"
  *ngIf="confirmSub"
>
  <div class="modalBody sm">
    <div class="title">
      快捷建单<i class="icon_transport transport-guanbi" (click)="cancel()"></i>
    </div>
    <div class="content txtC">
      <div class="icon"><i class="icon_transport transport-wenhao"></i></div>
      <div class="defeat">{{ confirmInfo }}</div>
      <div class="otherInfo">请谨慎操作，如撤销请点击取消。</div>
    </div>
    <div class="btns display_flex justify-content_flex-center">
      <button
        nz-button
        nzType="primary"
        [nzLoading]="btnLoading3"
        (click)="confirm()"
      >
        确认
      </button>
      <button class="btn cancel" nz-button nzType="default" (click)="cancel()">
        取消
      </button>
    </div>
  </div>
</div>

<!-- 撤销工单 -->
<app-dialog-delete
  [delModal]="recallOrderModal"
  (hideDelModalEvent)="closeRecallOrderModal()"
  [btnLoading]="btnLoading"
  (confirmDelEvent)="confirmRec()"
  content="您确认要撤销工单吗？撤销工单我们会通知服务台、配送人员不再执行此工单，请谨慎操作，如确认撤销请点击确认。"
></app-dialog-delete>
<!-- 打印二维码-门诊服务点 -->
<app-dialog-delete
  [delModal]="outpatientServiceModal"
  (hideDelModalEvent)="closeOutpatientServiceModal()"
  [btnLoading]="btnLoading"
  (confirmDelEvent)="confirmOutpatientService()"
  [content]="outpatientServiceMsg"
></app-dialog-delete>
<!-- 立即执行定时预约工单 -->
<app-dialog-delete
  [delModal]="execModal"
  (hideDelModalEvent)="closeExecModal()"
  [btnLoading]="btnLoading"
  (confirmDelEvent)="confirmExec()"
  content="您确认要立即执行该工单吗？"
></app-dialog-delete>
<!-- 评价模态框 -->
<div
  class="save display_flex align-items_center justify-content_flex-center appraise"
  *ngIf="appraiseModal"
>
  <div class="modalBody">
    <div class="title">
      评价<i
        class="icon_transport transport-guanbi"
        (click)="hideAppraise()"
      ></i>
    </div>
    <div class="content">
      <div class="jiTit borderB">您的评价对我们至关重要，感谢您！</div>
      <br />
      <div class="star">
        <div
          nz-row
          class="alignC display_flex justify-content_flex-center align-items_center"
        >
          <div nz-col nzSpan="4">星级：</div>
          <div nz-col nzSpan="20">
            <nz-rate [(ngModel)]="starNum"></nz-rate>
          </div>
        </div>
        <div nz-row>
          <div nz-col nzSpan="4">评级：</div>
          <div nz-col nzSpan="20">
            <textarea
              rows="4"
              nz-input
              [(ngModel)]="appraiseContent"
            ></textarea>
          </div>
        </div>
      </div>
      <br />
    </div>
    <div class="btns display_flex justify-content_flex-center">
      <button
        nz-button
        nzType="primary"
        [nzLoading]="btnLoading"
        (click)="confirmAppraise()"
      >
        确认
      </button>
      <button
        class="btn cancel"
        nz-button
        nzType="default"
        (click)="hideAppraise()"
      >
        关闭
      </button>
    </div>
  </div>
</div>

<!-- 报修评价模态框 -->
<div
  class="save display_flex align-items_center justify-content_flex-center appraise"
  *ngIf="appraiseModalBx"
>
  <div class="modalBody">
    <div class="title">
      评价<i
        class="icon_transport transport-guanbi"
        (click)="hideAppraiseBx()"
      ></i>
    </div>
    <div class="content">
      <div class="jiTit borderB">您的评价对我们至关重要，感谢您！</div>
      <br />
      <div class="star">
        <div
          nz-row
          class="alignC display_flex justify-content_flex-center align-items_center"
        >
          <div nz-col nzSpan="4">星级：</div>
          <div nz-col nzSpan="20">
            <nz-rate [(ngModel)]="starNumBx"></nz-rate>
          </div>
        </div>
        <div nz-row>
          <div nz-col nzSpan="4">评级：</div>
          <div nz-col nzSpan="20">
            <textarea
              rows="4"
              nz-input
              [(ngModel)]="appraiseContentBx"
            ></textarea>
          </div>
        </div>
      </div>
      <br />
    </div>
    <div class="btns display_flex justify-content_flex-center">
      <button
        nz-button
        nzType="primary"
        [nzLoading]="btnLoading"
        (click)="confirmAppraiseBx()"
      >
        确认
      </button>
      <button
        class="btn cancel"
        nz-button
        nzType="default"
        (click)="hideAppraiseBx()"
      >
        关闭
      </button>
    </div>
  </div>
</div>

<!-- 意见箱查看 -->
<div
  class="save display_flex align-items_center justify-content_flex-center advice"
  *ngIf="adviceModal"
>
  <div class="modalBody">
    <div class="title">
      意见箱-查看<i
        class="icon_transport transport-guanbi"
        (click)="hideAdvice()"
      ></i>
    </div>
    <div class="content">
      <div class="conItem">
        <div class="jiTit borderB color3" nz-row>
          <div nz-col nzSpan="11" class="txtL">
            发起人：{{
              adviceDetailInfo.createUser
                ? adviceDetailInfo.createUser.name
                : ""
            }}
          </div>
          <div nz-col nzSpan="13" class="txtR">
            填写时间：{{ adviceDetailInfo.createTime }}
          </div>
        </div>
        <div class="defeat">意见内容：{{ adviceDetailInfo.content }}</div>
      </div>
      <div class="conItem" *ngIf="adviceDetailInfo.replaceFlag == 1">
        <div class="jiTit borderB color3" nz-row>
          <div nz-col nzSpan="11" class="txtL">
            回复人：{{
              adviceDetailInfo.replyUser ? adviceDetailInfo.replyUser.name : ""
            }}
          </div>
          <div nz-col nzSpan="13" class="txtR">
            填写时间：{{ adviceDetailInfo.replyTime }}
          </div>
        </div>
        <div class="defeat">意见内容：{{ adviceDetailInfo.replyContent }}</div>
      </div>
      <div class="conItem noCon" *ngIf="adviceDetailInfo.replaceFlag == 0">
        <div class="jiTit color3" nz-row>暂未回复</div>
      </div>
    </div>
    <div class="btns display_flex justify-content_flex-center">
      <button
        class="btn know"
        nz-button
        nzType="primary"
        nzGhost
        (click)="hideAdvice()"
      >
        知道了
      </button>
    </div>
  </div>
</div>

<!-- 意见收集 -->
<div
  class="save display_flex align-items_center justify-content_flex-center advice"
  *ngIf="adviceSubModal"
>
  <div class="modalBody">
    <div class="title">
      意见收集<i
        class="icon_transport transport-guanbi"
        (click)="hideSubAdvice()"
      ></i>
    </div>
    <div class="content">
      <div class="title">意见内容：</div>
      <textarea
        rows="4"
        maxlength="255"
        nz-input
        [(ngModel)]="adviceSubContent"
        placeholder="请填写意见内容"
      ></textarea>
      <br /><br />
    </div>
    <div class="btns display_flex justify-content_flex-center">
      <button
        nz-button
        nzType="primary"
        [nzLoading]="btnLoading"
        (click)="confirmSubAdvice()"
      >
        确认
      </button>
      <button
        class="btn cancel"
        nz-button
        nzType="default"
        (click)="hideSubAdvice()"
      >
        取消
      </button>
    </div>
  </div>
</div>
<!-- 加急模态框 -->
<div
  class="save display_flex align-items_center justify-content_flex-center jiaji"
  *ngIf="jiajiModal"
>
  <div class="modalBody">
    <div class="title">
      加急<i class="icon_transport transport-guanbi" (click)="hideJiaji()"></i>
    </div>
    <div class="content">
      <div class="jiTit borderB">
        请填写加急原因，填写后我们会根据您的诉求优先处理
      </div>
      <div class="title">加急原因：</div>
      <textarea
        rows="4"
        nz-input
        [(ngModel)]="jiajiContent"
        placeholder="请填写加急原因"
      ></textarea>
      <br /><br />
    </div>
    <div class="btns display_flex justify-content_flex-center">
      <button
        nz-button
        nzType="primary"
        [nzLoading]="btnLoading"
        (click)="confirmJiaji()"
      >
        确认
      </button>
      <button
        class="btn cancel"
        nz-button
        nzType="default"
        (click)="hideJiaji()"
      >
        取消
      </button>
    </div>
  </div>
</div>

<!-- 查看标本详情模态框 -->
<div *ngIf="detailModel" [class.detailModel]="detailModel">
  <div class="box">
    <h2 class="title">未取标本详情</h2>
    <div class="table">
      <div class="table-content">
        <table>
          <thead>
            <tr>
              <th>序号</th>
              <th>标本类型</th>
              <th>标本编码</th>
              <th>患者姓名</th>
              <th>床号</th>
              <th>采集时间</th>
              <th>目标科室</th>
            </tr>
          </thead>
          <tbody>
            <overlay-scrollbars
              #osComponentRef6
              style="height: 100%"
              *ngIf="detailList.length && !loading33"
            >
              <tr
                *ngFor="let detail of detailList; let i = index"
                [style]="{ background: i % 2 === 1 ? '#fff' : '#f9fafb' }"
              >
                <td>{{ i + 1 }}</td>
                <td>{{ detail.stype ? detail.stype.name : "-" }}</td>
                <td>{{ detail.scode || "-" }}</td>
                <td>{{ detail.patientName || "-" }}</td>
                <td>{{ detail.bedNum || "-" }}</td>
                <td>
                  {{ detail.printDate || "-" }}
                </td>
                <td>
                  {{
                    detail.checkDept
                      ? deptDisplay == 2
                        ? detail.checkDept.deptalias
                        : detail.checkDept.dept
                      : "-"
                  }}
                  <div
                    *ngIf="detail.urgent != 0"
                    [class.ji]="detail.urgent == 1"
                  ></div>
                </td>
              </tr>
            </overlay-scrollbars>
            <div
              style="font-size: 18px"
              *ngIf="!detailList.length && !loading33"
              class="noData33"
            >
              暂无数据
            </div>
            <div class="loading33" *ngIf="loading33">
              <img src="./../../assets/images/loading.gif" alt="" />
              <p>正在加载中</p>
            </div>
          </tbody>
        </table>
      </div>
    </div>
    <div class="btns">
      <div class="btn" (click)="hideSpeDetailModel()">知道了</div>
    </div>
    <i
      class="icon_transport transport-guanbi"
      (click)="hideSpeDetailModel()"
    ></i>
  </div>
</div>
<!-- 删除意见模态框 -->
<app-dialog-delete
  [delModal]="delAdviceModal"
  (hideDelModalEvent)="hideDelAdviceModal()"
  [btnLoading]="btnLoading"
  (confirmDelEvent)="confirmDelAdvice()"
  content="您确认要删除此条意见吗？"
></app-dialog-delete>
<!-- 关注模态框 -->
<div
  class="commonModal display_flex justify-content_flex-center align-items_center"
  *ngIf="commonModal"
>
  <div class="modalBody">
    <div class="title">
      提示<i
        class="icon_transport transport-guanbi"
        (click)="hideCommonModal()"
      ></i>
    </div>
    <div class="content">
      <div class="icon"><i class="icon_transport transport-wenhao"></i></div>
      <div class="defeat">{{ tipsMsg1 }}</div>
    </div>
    <div class="display_flex justify-content_flex-center">
      <button
        nz-button
        nzType="primary"
        (click)="confirmCommon()"
        [nzLoading]="loading4"
      >
        确认
      </button>
      <button
        class="btn cancel"
        nz-button
        nzType="default"
        (click)="hideCommonModal()"
      >
        取消
      </button>
    </div>
  </div>
</div>
<!-- 是否确认报修模态框 -->
<div
  class="commonModal display_flex justify-content_flex-center align-items_center"
  *ngIf="bxModal"
>
  <div class="modalBody">
    <div class="title">
      提示<i
        class="icon_transport transport-guanbi"
        (click)="hideBxModal()"
      ></i>
    </div>
    <div class="content">
      <div class="icon"><i class="icon_transport transport-wenhao"></i></div>
      <div class="defeat">{{ tipsMsg2 }}</div>
    </div>
    <div class="display_flex justify-content_flex-center">
      <button
        nz-button
        nzType="primary"
        (click)="confirmBx()"
        [nzLoading]="loading6"
      >
        确认
      </button>
      <button
        class="btn cancel"
        nz-button
        nzType="default"
        (click)="hideBxModal()"
      >
        取消
      </button>
    </div>
  </div>
</div>

<!-- 消息弹框模板 -->
<ng-template #msgTemplate let-msg="data">
  <div class="msgTemBox ant-notification-notice-content">
    <div class="borderLeft"></div>
    <div class="ant-notification-notice-with-icon">
      <span class="ant-notification-notice-icon">
        <i class="icon icon_transport transport-shouye9"></i>
      </span>
      <div class="ant-notification-notice-message">
        {{ msg.type == 1 ? "通知" : "消息" }}
      </div>
      <div class="ant-notification-notice-description">{{ msg.content }}</div>
    </div>
  </div>
</ng-template>

<!-- 操作成功/失败提示框 -->
<app-prompt-modal
  *ngIf="promptModalShow"
  [content]="promptContent"
  [success]="ifSuccess"
  [show]="promptModalShow"
  [info]="promptInfo"
  [back]="back"
  (closeModel)="closeModel($event)"
></app-prompt-modal>
<!-- 护士端科室切换提示框 -->
<app-hs-prompt-modal
  [changeShow]="changeShow"
  [closeTime]="closeTime"
  [closeTimeFlag]="closeTimeFlag"
  [show]="hsPromptModalShow"
  (closeModelHs)="closeModelHs($event)"
  (clearModelHs)="clearModelHs($event)"
  deptType="nurse"
>
</app-hs-prompt-modal>
<!-- 标本历史记录查看 -->
<app-history-prompt-modal
  *ngIf="historyPromptModalShow"
  [show]="historyPromptModalShow"
  [scode]="scode"
  (closeModelHs)="closeModelHistory($event)"
></app-history-prompt-modal>
<!-- 药包流程信息查看 -->
<app-log-prompt-modal
  *ngIf="historyDPromptModalShow"
  [show]="historyDPromptModalShow"
  [drugsBagId]="drugsBagId"
  (closeModelHs)="closeModelHistoryDrugsbag($event)"
></app-log-prompt-modal>
<!-- 报修详情查看 -->
<app-bx-prompt-modal
  *ngIf="bxPromptModalShow"
  [show]="bxPromptModalShow"
  [bData]="bData"
  (closeModelHs)="closeModelBx($event)"
></app-bx-prompt-modal>

<!-- 科室二维码模态框 -->
<!-- 在模态框所在的 div 添加属性 [appDrag] -->
<div appDrag class="modal" *ngIf="isShowNurseCode">
  <div class="header drag-title">
    <h2>签到二维码</h2>
    <i
      class="icon-close icon_transport transport-guanbi1"
      (click)="closeNurseCode()"
    ></i>
  </div>
  <div class="dialog-center">
    <div class="dialog-code">
      <img [src]="nurseCodeImg" alt="" />
    </div>
  </div>
  <div class="dialog-operate">
    <strong class="dialog-refresh" (click)="showNurseCode()">刷新</strong>
    <span>{{ refreshQRCodeTime }}s</span>
  </div>
</div>

<router-outlet (deactivate)="refreshList($event)"></router-outlet>
<!-- 遮罩 -->
<app-mask *ngIf="maskFlag"></app-mask>
<!-- 是否需要医护陪同检查模态框 -->
<app-dialog-delete
  [delModal]="accompanyModal"
  (hideDelModalEvent)="hideAccompanyModal($event)"
  (cancelDelEvent)="hideAccompanyModal($event)"
  [btnLoading]="accompanyLoading"
  [cancenlLoading]="cancenlLoading"
  (confirmDelEvent)="confirmAccompany()"
  confirmTxt="是"
  cancelTxt="否"
  content="您选择的患者是危重或特级护理或一级护理患者，请问是否需要医护陪同检查？"
>
</app-dialog-delete>
<!-- 重复建单策略 -->
<app-dialog-delete
  [delModal]="repeatModal"
  (hideDelModalEvent)="hideRepeatModal()"
  [btnLoading]="loadingRepeat"
  (confirmDelEvent)="confirmRepeat()"
  [content]="repeatMsg"
  confirmTxt="是"
  cancelTxt="否"
  (cancelDelEvent)="hideRepeatModal()"
></app-dialog-delete>

<!-- 是否一键接患者模态框 -->
<app-dialog-delete [delModal]="pickUpModal" (hideDelModalEvent)="hidePickUpModal()" [btnLoading]="btnLoading"
(confirmDelEvent)="confirmPickUp()" [content]="pickUpInfo"></app-dialog-delete>

<!-- 其他临床服务-关联数据-模态框 -->
<app-dialog-delete [delModal]="otherDataModal" (hideDelModalEvent)="hideOtherDataModal()" (confirmDelEvent)="confirmOtherData()" [content]="otherDataInfo"></app-dialog-delete>

<!-- 手术即将开始通知 -->
<app-dialog-surgery [delModal]="surgeryModal" (hideDelModalEvent)="hideSurgeryModal()" [btnLoading]="btnLoading"
(confirmDelEvent)="confirmSurgery($event)" [content]="surgeryInfo" [dataObj]="surgeryItem"></app-dialog-surgery>

<!-- 手术中患者-送回病房 -->
<app-dialog-delete [delModal]="sendWardModal" (hideDelModalEvent)="hideSendWardModal()" [btnLoading]="sLoading1"
(confirmDelEvent)="confirmSendWard($event)" [content]="sendWardInfo" [isChecked]="surgeryConfigs && surgeryConfigs.remandClean == 1"></app-dialog-delete>

<!-- 手术中患者-送回苏醒区 -->
<app-dialog-delete [delModal]="sendAwakeningRoomModal" (hideDelModalEvent)="hideSendAwakeningRoomModal()" [btnLoading]="sLoading2"
(confirmDelEvent)="confirmSendAwakeningRoom($event)" [content]="sendAwakeningRoomInfo" [isChecked]="surgeryConfigs && surgeryConfigs.remandClean == 1" [isSelected]="surgeryCarryingCourse && (surgeryCarryingCourse.departmentStrategy.value == 2 || surgeryCarryingCourse.departmentStrategy.value == 3)" [isSelectedArr]="surgeryCarryingCourseDepts" [deptDisplay]="deptDisplay"></app-dialog-delete>

<!-- 是否限制业务发起时间模态框 -->
<app-dialog-delete [delModal]="limitTimeModal" (hideDelModalEvent)="hideLimitTimeModal()" [btnLoading]="limitTimeLoading"
(confirmDelEvent)="confirmLimitTime()" [content]="limitTimeInfo" confirmTxt="继续建单" [isShowConfirm]="isShowConfirm" [isShowConfirmInfo]="isShowConfirmInfo"></app-dialog-delete>

<!-- 关联业务查看 -->
<app-relationTrans-detail-modal *ngIf="relationTransModalShow" [show]="relationTransModalShow" [otherBindConfigDto]="otherBindConfigDto" (closeModelHs)="closeModelRelationTrans($event)" (confirmModelHs)="confirmModelRelationTrans($event)" [deptDisplay]="deptDisplay"></app-relationTrans-detail-modal>

<!-- 打印门诊二维码的内容 -->
<div id="print-section" hidden>
  <div style="width: 105mm;height: 148mm;overflow: hidden;display:flex;flex-direction: column;align-items: center; box-sizing: border-box;">
    <div style="display:flex;justify-content: center;align-items: center;padding: 5mm;border-bottom: 1px solid #88c785;margin-bottom: 5mm;">
      <img  [src]="cardNoDto.logo" style="width: 90%;height: auto;">
    </div>
    <div style="padding: 5mm 10mm;flex: 1;margin:0 5mm 5mm;background-color: #007138;-webkit-print-color-adjust: exact;display:flex;flex-direction: column;align-items: center;overflow: hidden;">
      <img [src]="cardNoDto.base64" style="width: 100%;">
      <p style="font-size: 7mm;margin: 0.3mm auto 0;color:#fff;">{{cardNoDto.name}}</p>
      <p style="font-size: 6mm;margin: 0.3mm auto 0;color:#fff;">{{cardNoDto.cardNo}}</p>
      <p style="font-size: 5mm;margin: 0.3mm auto 0;color:#fff;">{{cardNoDto.sysName}}患者帮扶服务</p>
    </div>
  </div>
</div>
<button ngxPrint printSectionId="print-section" #printBtn hidden [printStyle]="{ '@page': { margin: '0 !important' }, 'body': { margin: '0 !important' } }">打印</button>
