<div class="nurse">
  <nz-layout class="app-layout display_flex flex_auto">
    <nz-sider class="menu-sidebar slider" nzWidth="190px" 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 logoTitle">
          <div class="title ellipsis-multiline" nz-tooltip nzTooltipTitle="{{tool.logoTitle}}">{{tool.logoTitle}}</div>
        </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]="item.illnessState.name"></i>
                    <i *ngIf="item.illnessState.value === '3'" class="colorRed icon_transport transport-zhong1" nz-tooltip [nzTooltipTitle]="item.illnessState.name"></i>
                  </ng-container>
                  <ng-container *ngIf="item.careLevel">
                    <i *ngIf="item.careLevel.value === '0'" class="icon_transport transport-te1" nz-tooltip [nzTooltipTitle]="item.careLevel.name"></i>
                    <i *ngIf="item.careLevel.value === '1'" class="icon_transport transport-Bduanshuzi1" nz-tooltip [nzTooltipTitle]="item.careLevel.name"></i>
                    <i *ngIf="item.careLevel.value === '2'" class="icon_transport transport-Bduanshuzi" nz-tooltip [nzTooltipTitle]="item.careLevel.name"></i>
                    <i *ngIf="item.careLevel.value === '3'" class="icon_transport transport-Bduanshuzi11" nz-tooltip [nzTooltipTitle]="item.careLevel.name"></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]="item.illnessState.name"></i>
                    <i *ngIf="item.illnessState.value === '3'" class="colorRed icon_transport transport-zhong1" nz-tooltip [nzTooltipTitle]="item.illnessState.name"></i>
                  </ng-container>
                  <ng-container *ngIf="item.careLevel">
                    <i *ngIf="item.careLevel.value === '0'" class="icon_transport transport-te1" nz-tooltip [nzTooltipTitle]="item.careLevel.name"></i>
                    <i *ngIf="item.careLevel.value === '1'" class="icon_transport transport-Bduanshuzi1" nz-tooltip [nzTooltipTitle]="item.careLevel.name"></i>
                    <i *ngIf="item.careLevel.value === '2'" class="icon_transport transport-Bduanshuzi" nz-tooltip [nzTooltipTitle]="item.careLevel.name"></i>
                    <i *ngIf="item.careLevel.value === '3'" class="icon_transport transport-Bduanshuzi11" nz-tooltip [nzTooltipTitle]="item.careLevel.name"></i>
                  </ng-container>
                  <span nz-tooltip [nzTooltipTitle]="recentInfo" nzTooltipPlacement="right" [nzMouseEnterDelay]="1" (mouseenter)="getRecentInfo(item.patientCode)">{{ item.patientName }}({{ currentDept.typeValue == 'outpatientService' ? item.cardNo : 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>
                  <ng-container *ngIf="currentDept.typeValue == 'outpatientService'">
                    <span nz-col nzSpan="18">{{ item.identityCardNo }}</span>
                  </ng-container>
                  <ng-container *ngIf="!(currentDept.typeValue == 'outpatientService')">
                    <span nz-col nzSpan="12">{{ item.residenceNo }}</span>
                    <span nz-col nzSpan="6" class="txtR">待检 {{ item.watingCount }}</span>
                  </ng-container>
                  <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>
                  <ng-container *ngIf="currentDept.typeValue == 'outpatientService'">
                    <span nz-col nzSpan="18">{{ item.identityCardNo }}</span>
                  </ng-container>
                  <ng-container *ngIf="!(currentDept.typeValue == 'outpatientService')">
                    <span nz-col nzSpan="12">{{ item.residenceNo }}</span>
                    <span nz-col nzSpan="6" class="txtR">待检 {{ item.watingCount }}</span>
                  </ng-container>
                  <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]="item.patientDTO.illnessState.name"></i>
                    <i *ngIf="item.patientDTO && item.patientDTO.illnessState.value === '3'" class="colorRed icon_transport transport-zhong1" nz-tooltip [nzTooltipTitle]="item.patientDTO.illnessState.name"></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]="item.patientDTO.careLevel.name"></i>
                    <i *ngIf="item.patientDTO && item.patientDTO.careLevel.value === '1'" class="icon_transport transport-Bduanshuzi1" nz-tooltip [nzTooltipTitle]="item.patientDTO.careLevel.name"></i>
                    <i *ngIf="item.patientDTO && item.patientDTO.careLevel.value === '2'" class="icon_transport transport-Bduanshuzi" nz-tooltip [nzTooltipTitle]="item.patientDTO.careLevel.name"></i>
                    <i *ngIf="item.patientDTO && item.patientDTO.careLevel.value === '3'" class="icon_transport transport-Bduanshuzi11" nz-tooltip [nzTooltipTitle]="item.patientDTO.careLevel.name"></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>
    </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>
          <div class="right">
            <div class="userInfo dropdown">
              <div class="user" (mouseenter)="showDropdown = true" (mouseleave)="showDropdown = false">
                <img src="../../assets/images/icon_keshi.png" alt="">
                <span><ng-container *ngIf="loginUser.dept">{{deptDisplay == 2 ? loginUser.dept.deptalias : loginUser.dept.dept}}-</ng-container>{{loginUser.name}}</span>
                <i class="icon_transport transport-xiala1 ml8"></i>
              </div>
              <div class="dropdown-content r8" [hidden]="!showDropdown" (mouseenter)="showDropdown = true" (mouseleave)="showDropdown = false">
                <div class="dropdownItem" (click)="changeKsNow()">切换科室</div>
                <div class="dropdownItem" (click)="showUpPwd()">修改密码</div>
                <div class="dropdownItem" *ngIf="mainRole && loginUser.usertype.value != 1" (click)="toMain()">回到系统管理</div>
                <div class="dropdownItem" *ngIf="mainRole && loginUser.usertype.value == 1" (click)="toOrder()">查看工单</div>
                <div class="dropdownItem" (click)="logOut()">退出</div>
              </div>
            </div>
          </div>
        </div>
      </nz-header>
      <nz-content class="nzContent">
        <div class="inner-content">
          <div class="mainInfo">
            <div class="cont">
              <div class="top" [ngSwitch]="currentDept.typeValue">
                <div class="nums borderB" nz-row *ngSwitchCase="'outpatientService'" hidden></div>
                <div class="nums borderB surgeryNums" 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]="surgeryWKOMsg.patientDTO.illnessState.name"
                                ></i>
                                <i
                                  *ngIf="surgeryWKOMsg.patientDTO && surgeryWKOMsg.patientDTO.illnessState.value === '3'"
                                  class="colorRed icon_transport transport-zhong1"
                                  nz-tooltip
                                  [nzTooltipTitle]="surgeryWKOMsg.patientDTO.illnessState.name"
                                ></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]="surgeryWKOMsg.patientDTO.careLevel.name"
                                ></i>
                                <i
                                  *ngIf="surgeryWKOMsg.patientDTO && surgeryWKOMsg.patientDTO.careLevel.value === '1'"
                                  class="icon_transport transport-Bduanshuzi1"
                                  nz-tooltip
                                  [nzTooltipTitle]="surgeryWKOMsg.patientDTO.careLevel.name"
                                ></i>
                                <i
                                  *ngIf="surgeryWKOMsg.patientDTO && surgeryWKOMsg.patientDTO.careLevel.value === '2'"
                                  class="icon_transport transport-Bduanshuzi"
                                  nz-tooltip
                                  [nzTooltipTitle]="surgeryWKOMsg.patientDTO.careLevel.name"
                                ></i>
                                <i
                                  *ngIf="surgeryWKOMsg.patientDTO && surgeryWKOMsg.patientDTO.careLevel.value === '3'"
                                  class="icon_transport transport-Bduanshuzi11"
                                  nz-tooltip
                                  [nzTooltipTitle]="surgeryWKOMsg.patientDTO.careLevel.name"
                                ></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.isPathologyForm == 1" nz-button nzType="primary" class="btn txtC mr8" (click)="pathologyAdd($event)">病理申请单</button>
                      <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 nurseNav" nz-row *ngSwitchDefault>
                  <div class="nav">
                    <div class="navItem" *ngFor="let item of pagePermissionConfigList" (click)="buildQuick(item)">
                      <div class="navIcon" [ngClass]="backColorComputed(item.icon.extra1)"><i class="icon_transport" [ngClass]="[item.icon.extra1]"></i></div>
                      <div class="navContent">
                        <h2>{{item.name}}</h2>
                        <div class="navSpecimen" *ngIf="item.urgentFlag || item.ordinaryFlag">
                          <span *ngIf="item.urgentFlag" (click)="changeSpeDetail($event, 1)">急:<span class="red">{{ specimenWorkOrderMsg.specimenCount ? specimenWorkOrderMsg.specimenCount.urgent : 0 }}</span></span>
                          <span *ngIf="item.ordinaryFlag" (click)="changeSpeDetail($event, 0)">普:{{ specimenWorkOrderMsg.specimenCount ? specimenWorkOrderMsg.specimenCount.noUrgent : 0 }}</span>
                        </div>
                        <div class="navSpecimen" *ngIf="item.bussType.value === 'inspect'">
                          <span (click)="changeInspectClosedLoopView($event, '2')">预:{{patientInspectCountMsg.data ? patientInspectCountMsg.data[0].yyCount : 0}}</span>
                          <span (click)="changeInspectClosedLoopView($event, '3,4')">检:{{patientInspectCountMsg.data ? patientInspectCountMsg.data[0].workingCount : 0}}</span>
                        </div>
                        <div class="navSpecimen" *ngIf="item.icon.value === 'specimenPackage'">
                          <span (click)="toSpecimenPackage($event, '1')">未:{{specimenPackageCountMsg.data ? specimenPackageCountMsg.data[0].waitCount : 0}}</span>
                          <span (click)="toSpecimenPackage($event, '2')">送:{{specimenPackageCountMsg.data ? specimenPackageCountMsg.data[0].workingCount : 0}}</span>
                        </div>
                      </div>
                    </div>
                  </div>
                  <div class="nurseCode" (click)="showNurseCode()">
                    <i class="nurseCodeIcon icon_transport transport-erweima"></i>
                  </div>
                  <!-- 标本信息未开通 -->
                  <!-- <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>
                      </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">
                  <div class="h100p">
                    <overlay-scrollbars #osComponentRef11 class="h100p w100">
                      <div style="height: 100%; display: flex;flex-wrap: wrap;">
                        <ng-container *ngFor="let item of tabPermission">
                          <div *ngIf="(coopBtns.buildOrdersForOtherTasks && item.system) || !item.system" class="tabPermissionItem" [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" class="tabPermissionItem" [ngClass]="{txtC: true, cur: true, checked: checkedTableType == 'advice'}" (click)="checkTable('advice')">
                          <div class="text">意见箱</div>
                        </div>
                        <div *ngIf="coopBtns.surgery" class="tabPermissionItem" [ngClass]="{txtC: true, cur: true, checked: checkedTableType == 'surgery'}" (click)="checkTable('surgery')">
                          <div class="text">手术排程信息</div>
                        </div>
                        <div *ngIf="coopBtns.outpatientHelpAppointment" class="tabPermissionItem" [ngClass]="{txtC: true, cur: true, checked: checkedTableType == 'outpatientHelpAppointment'}" (click)="checkTable('outpatientHelpAppointment')">
                          <div class="text">门诊帮扶预约</div>
                        </div>
                        <div *ngIf="coopBtns.inquiryOfHistoricalSpecimens && currentDept.typeValue != 'outpatientService'" class="tabPermissionItem" [ngClass]="{txtC: true, cur: true, checked: checkedTableType == 'historySpecimen'}" (click)="checkTable('historySpecimen')">
                          <div class="text">历史标本查询</div>
                        </div>
                        <div *ngIf="coopBtns.historicalMedicineListInquiry && currentDept.typeValue != 'outpatientService'" class="tabPermissionItem" [ngClass]="{txtC: true, cur: true, checked: checkedTableType == 'historyDrugsbag'}" (click)="checkTable('historyDrugsbag')">
                          <div class="text">历史药单查询</div>
                        </div>
                        <div *ngIf="coopBtns.repairList && isShowBx" class="tabPermissionItem" [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>
              </div>
              <!-- 其他任务建单 -->
              <ng-container *ngIf="othersList[checkedTableType]">
                <div style="flex: 1; height: 100%;min-height:0;; 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="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" [nzShowSearch]="isStartFixedType" [nzServerSearch]="isStartFixedType"  (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" [nzShowSearch]="isEndFixedType" [nzServerSearch]="isEndFixedType"  (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" [nzShowSearch]="isStartFixedType" [nzServerSearch]="isStartFixedType"  (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" [nzShowSearch]="isEndFixedType" [nzServerSearch]="isEndFixedType"  (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)" *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%;min-height:0;"
              >
                <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+(advicePageIndex-1) * advicePageSize + 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%;min-height:0;">
                <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">
										<span class="label">排程时间：</span>
										<nz-date-picker [(ngModel)]="scheduleTime" (ngModelChange)="changeDate($event)"></nz-date-picker>
									</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="5%">#</th>
                          <th nzWidth="12%">患者姓名<br>住院号</th>
                          <th nzWidth="12%">手术时间</th>
                          <th nzWidth="20%">申请科室</th>
                          <th>手术名称<br>状态</th>
                          <th nzWidth="30%" *ngIf="currentDept.typeValue == 'surgery'">操作</th>
                        </tr>
                      </thead>
                      <tbody>
                        <tr *ngFor="let item of surgeryList;let i = index">
                          <td>{{i+(surgeryPageIndex-1) * surgeryPageSize + 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 }}<br>{{ 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 *ngIf="item.patientDTO && surgeryConfigs && surgeryConfigs.isPathologyForm == 1" class="btn1 mr8 mb8 mt8" (click)="pathologyAddItem($event,item)">病理申请单</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>
                            <button class="btn1 mr8 mb8 mt8" (click)="createOrder($event, item)">一键建单</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 == 'outpatientHelpAppointment'" style="flex: 1; height: 100%;min-height:0;">
                <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-date-picker [(ngModel)]="outpatientHelpAppointmentDateSearchInp"></nz-date-picker>
                    </div>
                  </div>
                  <div class="btns">
                    <button
                      nz-button
                      nzType="primary"
                      nzGhost
                      (click)="getOutpatientHelpAppointment(true)"
                    >
                      搜索
                    </button>
                  </div>
                </div>
                <div class="table">
                  <div class="box">
                    <nz-table
                      class="hospitalTable"
                      [nzData]="outpatientHelpAppointmentList"
                      nzSize="middle"
                      [nzShowPagination]="false"
                      [nzLoading]="outpatientHelpAppointmentInfoLoading"
                    >
                      <thead>
                        <tr class="thead">
                          <th nzWidth="20%">患者姓名</th>
                          <th nzWidth="20%">申请类型</th>
                          <th nzWidth="20%">联系电话</th>
                          <th nzWidth="20%">陪诊时间<br>状态</th>
                          <th nzWidth="20%">操作</th>
                        </tr>
                      </thead>
                      <tbody>
                        <tr *ngFor="let item of outpatientHelpAppointmentList;let i = index">
                          <td>{{ item.patientName }}<br>{{ item.sex?.name }}<ng-container *ngIf="item && item.age !== undefined"> {{item.age}}岁</ng-container></td>
                          <td>{{ item.applyType?.name }}<br>{{ item.equipment?.name }}</td>
                          <td>患者：{{ item.patientPhone }}<br>代表：{{ item.agent_phone }}</td>
                          <td>{{ item.escortTime | date:'yyyy-MM-dd HH:mm' }}<br>{{ item.status?.name }}</td>
                          <td>
                            <div class="coop">
                              <span (click)="createOrder($event, item)">一键申请</span>
                              <span (click)="openOutpatientServiceModal(item.patientDTO)">打印</span>
                            </div>
                          </td>
                        </tr>
                      </tbody>
                    </nz-table>
                    <div class="pagination">
                      <nz-pagination
                        [(nzPageIndex)]="outpatientHelpAppointmentPageIndex"
                        [(nzTotal)]="outpatientHelpAppointmentListLength"
                        [(nzPageSize)]="outpatientHelpAppointmentPageSize"
                        (nzPageIndexChange)="getOutpatientHelpAppointment()"
                        (nzPageSizeChange)="getOutpatientHelpAppointment()"
                      >
                      </nz-pagination>
                    </div>
                  </div>
                </div>
              </div>
              <!-- 历史标本查询 -->
              <div
                *ngIf="checkedTableType == 'historySpecimen'"
                style="flex: 1; height: 100%;min-height:0;"
              >
                <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="10%">患者信息</th>
                          <th nzWidth="11%">标本信息</th>
                          <th nzWidth="11%">标本类型</th>
                          <th nzWidth="10%">状态</th>
                          <th nzWidth="11%">采集信息</th>
                          <th nzWidth="11%">收取信息</th>
                          <th nzWidth="10%">中转时间</th>
                          <th nzWidth="10%">送达时间</th>
                          <th nzWidth="9%">操作</th>
                        </tr>
                      </thead>
                      <tbody>
                        <tr
                          *ngFor="
                            let data of historySpecimenList;
                            let i = index
                          "
                        >
                          <td>{{i+(historySpecimenPageIndex-1) * historySpecimenPageSize + 1}}</td>
                          <td>
                          	<div>{{data.residenceNo || data.patientNo}}</div>
                          	<div>
                          		{{ data.patientName}}<span *ngIf="data.bedNum">({{data.bedNum}})</span>
                          	</div>
                          </td>
                          <td>
                          	<div>{{ data.scode || "-" }}</div>
                          	<div>{{ data.specimenDesc || "-" }}</div>
                          </td>
													<td>{{ data.stype ? data.stype.name : "-" }}<span *ngIf="data.tubeType">,</span>{{data.tubeType && data.tubeType.name}}</td>
													<td>{{ data.speState ? data.speState.name : "-" }}</td>
                          <td>
                          	<div>{{ data.collectNurseName || "-" }}</div>
                          	<div>{{ data.printDate || "-" }}</div>
                          </td>
                          <td>
                          	<div>{{ data.receiverName }}<ng-container *ngIf="data.packageId">-<span class="underline" (click)="viewSpe(data.packageId)">包</span></ng-container></div>
                          	<div>{{ data.arriveTime || "-" }}</div>
                          </td>
                          <td>{{ data.transTime || '-' }}</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%;min-height:0;"
              >
                <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="13%">请领单号</th>
                          <th nzWidth="13%">发药科室</th>
                          <th nzWidth="10%">状态</th>
													<th nzWidth="15%">收取信息</th>
													<th nzWidth="15%">送达信息</th>
													<th nzWidth="13%">送达交接人</th>
                          <th nzWidth="15%">操作</th>
                        </tr>
                      </thead>
                      <tbody>
                        <tr
                          *ngFor="
                            let data of historyDrugsbagList;
                            let i = index
                          "
                        >
                          <td>{{i+(historyDrugsbagPageIndex-1) * historyDrugsbagPageSize + 1}}</td>
                          <td>{{ data.packid || "-" }}</td>
													<td>{{ data.launch?.dept}}</td>
													<td>
													  {{ data.drugsState ? data.drugsState.name : "-" }}
													</td>
													<td>
														<div>{{ data.deliveryUser?.name }}</div>
														<div>{{ data.packTime }}</div>
													</td>
													<td>
														<div>{{ data.sendUserDTO?.name }}</div>
														<div>{{ data.signtime }}</div>
													</td>
                          <td>{{ data.sendHandoverUserDTO?.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 == 'bxlb' && isShowBx && coopBtns.repairList"
                style="flex: 1; height: 100%;min-height:0;"
              >
                <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"
                        nzPlaceHolder="请选择状态"
                        [(ngModel)]="incidentStateId"
                      >
                        <nz-option
                          [nzLabel]="data.name"
                          [nzValue]="data.value"
                          *ngFor="let data of incidentStateList"
                        ></nz-option>
                      </nz-select>
                    </div>
                  </div>

                  <div class="btns">
                    <button nz-button nzType="primary" nzGhost (click)="getBxlb(true)">
                      搜索
                    </button>
                    <button nz-button nzType="primary" nzGhost (click)="showBxModal()">
                      新增
                    </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="5%">序号</th>
                          <th nzWidth="19%">报修内容</th>
                          <th nzWidth="19%">报修时间</th>
                          <th nzWidth="19%">状态</th>
                          <th nzWidth="19%">维修人</th>
                          <th nzWidth="19%"></th>
                        </tr>
                      </thead>
                      <tbody>
                        <tr *ngFor="let data of bxlbList; let i = index">
                          <td>{{i+(bxlbPageIndex-1) * bxlbPageSize + 1}}</td>
                          <td>{{ data.description || "无" }}</td>
                          <td>
                            {{ data.startDate | date: "yyyy-MM-dd HH:mm" }}
                          </td>
                          <td>{{ data.state?data.state.name:'无' }}</td>
                          <td>
                            {{ data.handlingPersonnelUser ? data.handlingPersonnelUser.name + (data.handlingPersonnelUser.phone?'('+ data.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)" *ngIf="data.state && data.state.value == 'close' && !data.wxdegree">评价</button>
                            <button class="btn1 mr8 mb8 mt8" (click)="delBx(data)" *ngIf="data.state && data.state.value == 'accept'">撤销</button>
                          </td>
                        </tr>
                      </tbody>
                    </nz-table>
                    <div class="pagination">
                      <nz-pagination
                        [(nzPageIndex)]="bxlbPageIndex"
                        [(nzTotal)]="bxlbListLength"
                        [(nzPageSize)]="bxlbPageSize"
                        (nzPageIndexChange)="getBxlb(false)"
                        (nzPageSizeChange)="getBxlb(false)"
                      >
                      </nz-pagination>
                    </div>
                  </div>
                </div>
              </div>
            </div>
            <div 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.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>

                            </div>

                            <div nz-col nzSpan="12" class="col txtR">
                              {{ item.gdState.name }}
                            </div>
                          </div>
													<div class="row" nz-row>
														<span *ngIf="item.patient && (item.taskType.associationType.value == 'patientTransport' || item.taskType.associationType.value == 'inspect')">
														  {{ item.patient.patientName }}
														</span>
														<span *ngIf="item.patient && item.patient.bedNum">
															({{item.patient.bedNum || ''}})
														</span>
													</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">
                              <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 class="save display_flex align-items_center justify-content_flex-center patient" *ngIf="patientModal" (click)="clickExtra($event)">
  <div class="modalBody">
    <div class="title">患者送检<i class="icon_transport transport-guanbi" (click)="hidePatientOrder()"></i></div>
    <overlay-scrollbars #osComponentRef7 class="content" style="max-height: 80vh">
      <div class="patientMsg">
        <div class="patientMsgTips">患者姓名：{{patientMsg.patientName}}</div>
        <div class="patientMsgTips">住院号：{{patientMsg.residenceNo}}</div>
        <div class="patientMsgTips">护理级别：{{patientMsg.careLevel?.name}}</div>
        <div class="patientMsgTips">危重等级：{{patientMsg.illnessState?.name}}</div>
      </div>
      <div>
        <form nz-form [formGroup]="patientForm" class="patientForm">
          <div class="pos">
            <!-- 提示 -->
            <nz-form-item class="pos-item pos-tip" *ngIf="checkedShowMsg.msg">
              <nz-form-control>
                <b class="pos-red ellipsis-oneline" [title]="checkedShowMsg.msg">{{ checkedShowMsg.msg }}</b>
              </nz-form-control>
            </nz-form-item>
            <nz-form-item class="datesControl">
              <nz-form-label [nzSm]="24" [nzXs]="24" nzRequired nzFor="checkedType">任务类型</nz-form-label>
              <nz-form-control nzErrorTip="请选择任务类型!" class="checkedType">
                <nz-radio-group class="radioGroup w100" formControlName="checkedType" (ngModelChange)="changeCheckedType()">
                  <label class="col6 ellipsis-oneline" [title]="item.taskName" *ngFor="let item of checkTypeLis" nz-radio [nzValue]="item.id">{{ item.taskName }}</label>
                </nz-radio-group>
              </nz-form-control>
            </nz-form-item>
          </div>
          <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">
            <div class="pos" *ngIf="checkedShowMsg.status == 200">
              <div class="pos-item" style="left: 110px;top: -4px;">
                <span style="font-size: 18px">{{inspectToday| date:'yyyy-MM-dd'}}</span>
                <button nz-button nzSize="small" nzType="default" class="pos-btn ml8" (click)="previousDayNew()">
                  上一日
                </button>
                <button nz-button nzSize="small" nzType="default" class="pos-btn ml8" (click)="todayNew()">
                  今天
                </button>
                <button nz-button nzSize="small" nzType="default" class="pos-btn ml8" (click)="nextDayNew()">
                  下一日
                </button>
                <button nz-button nzSize="small" nzType="primary" class="ml8" (click)="addInspect()" *ngIf="inspectAndPatientTransportConfig.nurseAppendInspect == 1">
                  追加检查
                </button>
              </div>
              <!-- 检查 -->
              <nz-form-item>
                <nz-form-label [nzSm]="24" [nzXs]="24" nzFor="linkCheck">关联的检查</nz-form-label>
                <nz-form-control class="datesGroup" *ngIf="linkCheckLis.length">
                  <nz-checkbox-wrapper nz-row class="linkCheckCheck w100" ngDefaultControl formControlName="linkCheck" (nzOnChange)="linkCheckLisChange($event)">
                    <div nz-row nz-col nzSpan="24" *ngFor="let item of linkCheckLis">
                      <div nz-col nzSpan="24">
                        <label nz-checkbox [nzValue]="item" [title]="item.remark" *ngIf="item.remark"><i class="icon_transport transport-chaoshi"></i>{{ item.label}}</label>
                        <label nz-checkbox [nzValue]="item" *ngIf="!item.remark">{{ item.label}}</label>
                        <i class="icon_transport transport-shanchu1 cur" *ngIf="item.manualCreate == 1" (click)="delInspect(item.value)"></i>
                        <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 class="noInspect" *ngIf="!linkCheckLis.length">暂无关联的检查</div>
              </nz-form-item>
            </div>
            <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 class="mt13" 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>
                  <span class="red pos-red">请您填写实际预约检查时间，系统会根据时间安排人员进行陪检!</span>
                </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>
              </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>
              </nz-form-item>
            </div>
            <!-- 100009 科室任务类型状态码未配置 -->
            <nz-form-item *ngIf="checkedShowMsg.status == 100009">
              <div class="txtC">{{ checkedShowMsg.msg }}</div>
            </nz-form-item>
            <div class="display_flex align-items_center">
              <!-- 100015 （护士端一键建单展策略）起点科室和终点科室下拉展示 -->
              <nz-form-item class="top16bottom0 w100" nz-row *ngIf="checkedShowMsg.status == 100015 || checkedShowMsg.status == 100013">
                <nz-form-label [nzSpan]="4" nzRequired nzFor="originOffice">起点科室</nz-form-label>
                <nz-form-control [nzSpan]="20" nzErrorTip="请选择起点科室!">
                  <nz-select formControlName="originOffice" [nzDropdownMatchSelectWidth]="false" [nzShowSearch]="isStartFixedType" [nzServerSearch]="isStartFixedType"  (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>
              <!-- 其他情况 -->
              <nz-form-item class="top16bottom0 w100" nz-row *ngIf="checkedShowMsg.start && (checkedShowMsg.status == 100014 || checkedShowMsg.status == 100012)">
                <nz-form-label [nzSpan]="4" nzRequired nzFor="originOffice">起点科室</nz-form-label>
                <nz-form-control [nzSpan]="20" nzErrorTip="请选择起点科室!">
                  <span class="readonly">{{deptDisplay == 2 ? checkedShowMsg.start.start.list[0].deptalias : checkedShowMsg.start.start.list[0].dept}}</span>
                </nz-form-control>
              </nz-form-item>
              <nz-form-item class="top16bottom0 w100 ml8" nz-row *ngIf="checkedShowMsg.end && (checkedShowMsg.status == 100012 || checkedShowMsg.status == 100013)">
                <nz-form-label [nzSpan]="4" nzRequired nzFor="targetOffice">目标科室</nz-form-label>
                <nz-form-control [nzSpan]="20" nzErrorTip="请选择目标科室!">
                  <span class="readonly">{{deptDisplay == 2 ? checkedShowMsg.end.end.list[0].deptalias : checkedShowMsg.end.end.list[0].dept}}</span>
                </nz-form-control>
              </nz-form-item>
              <!-- 100014 （护士端一键建单展示策略）取终点科室和msg 值展示 -->
              <nz-form-item class="top16bottom0 w100 ml8" nz-row *ngIf="checkedShowMsg.status == 100014 || checkedShowMsg.status == 100015">
                <nz-form-label [nzSpan]="4" nzRequired nzFor="targetOffice">目标科室</nz-form-label>
                <nz-form-control [nzSpan]="20" nzErrorTip="请选择目标科室!">
                  <nz-select formControlName="targetOffice" [nzDropdownMatchSelectWidth]="false"  [nzShowSearch]="isEndFixedType" [nzServerSearch]="isEndFixedType"  (nzOnSearch)="searchDept('target', checkedShowMsg, $event)" nzPlaceHolder="请选择目标科室">
                    <ng-container *ngFor="let option of checkedShowMsg.end.end.list">
                      <nz-option [nzLabel]="deptDisplay == 2 ? option.deptalias : option.dept" [nzValue]="option.id"></nz-option>
                    </ng-container>
                  </nz-select>
                </nz-form-control>
              </nz-form-item>
            </div>

            <div class="display_flex top16bottom0">
              <!-- 自动送回 -->
              <nz-form-item class="isRemand" *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>
              <!-- 是否加急 -->
              <nz-form-item nz-row *ngIf="current_allowUrgent" class="allowUrgent">
                <nz-form-label [nzSpan]="2" nzFor="allowUrgent" class="goods">是否加急</nz-form-label>
                <nz-form-control [nzSpan]="6">
                  <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>
            </div>
            <!-- 加急原因 -->
            <nz-form-item nz-row *ngIf="current_allowUrgent && allowUrgent == 1">
              <nz-form-label [nzSpan]="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 *ngIf="isRemarks">
              <nz-form-item>
                <div class="display_flex align-items_center">
                  <nz-form-label nzFor="workOrderRemark2" class="mt8 mb8">注意事项</nz-form-label>
                </div>
                <nz-form-control>
                  <div class="noteSign">
                    <textarea class="noteFocus" (focus)="focusNote()" nz-input [placeholder]="workOrderRemarkTips2" rows="3" maxlength="100" formControlName="workOrderRemark2" [(ngModel)]="workOrderRemark2" #remarksEle2></textarea>
                    <div class="noteList" *ngIf="isShowNoteList">
                      <ng-container *ngIf="!noteLoading && noteList.length">
                        <div class="noteItem ellipsis-oneline" *ngFor="let item of noteList" [title]="item.name" (click)="selectNote(item.name)">{{item.name}}</div>
                      </ng-container>
                      <div *ngIf="!noteLoading && !noteList.length" class="w100 h100 padding8 display_flex justify-content_flex-center align-items_center">
                        <nz-empty></nz-empty>
                      </div>
                      <div *ngIf="noteLoading" class="w100 h100 padding8 display_flex justify-content_flex-center align-items_center">
                        <nz-spin nzSimple></nz-spin>
                      </div>
                    </div>
                  </div>
                </nz-form-control>
              </nz-form-item>
            </ng-container>
            <!-- 携带设备 -->
            <div class="display_flex justify-content_space-between align-items_center">
              <nz-form-item class="display_flex align-items_center flex_1" *ngIf="inspectAndPatientTransportConfig.enableTripType == 1">
                <nz-form-label nzFor="inspectScore" nzRequired class="goods mt8">陪检方式</nz-form-label>
                <nz-form-control nzErrorTip="请选择陪检方式!">
                  <nz-radio-group formControlName="inspectScore" [(ngModel)]="workOrderInspectScore">
                    <label nz-radio [nzValue]="item.id" *ngFor="let item of workOrderInspectScoreList">{{item.inspectMode}}</label>
                  </nz-radio-group>
                </nz-form-control>
              </nz-form-item>
              <nz-form-item class="display_flex align-items_center flex_1" *ngIf="inspectAndPatientTransportConfig.enableGoods == 1">
                <nz-form-label nzFor="goods" class="goods mt8">携带设备</nz-form-label>
                <nz-form-control>
                  <nz-checkbox-group formControlName="goods" [(ngModel)]="goodsLis"></nz-checkbox-group>
                </nz-form-control>
              </nz-form-item>
            </div>
          </ng-container>
        </form>
      </div>
    </overlay-scrollbars>
    <div class="btns patientBtns 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="primary" [nzLoading]="btnLoading" (click)="confirmPatient()" *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"
        rows="3"
        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-bx
  *ngIf="reqModal"
  [delModal]="reqModal"
  (hideDelModalEvent)="hideReqModal()"
  [btnLoading]="btnLoading"
  [cancenlLoading]="cancenlLoading"
  [deptDto]="deptDto"
  [extraData]="extraData"
  [validateBxForm]="validateBxForm"
  (confirmDelEvent)="confirmReq()"
  (cancelDelEvent)="cancelReq()"
></app-dialog-bx>
<!-- 删除意见模态框 -->
<app-dialog-delete
  [delModal]="delAdviceModal"
  (hideDelModalEvent)="hideDelAdviceModal()"
  [btnLoading]="btnLoading"
  (confirmDelEvent)="confirmDelAdvice()"
  content="您确认要删除此条意见吗？"
></app-dialog-delete>
<!-- 删除检查模态框 -->
<app-dialog-delete
  [delModal]="delInspectModal"
  (hideDelModalEvent)="hideDelInspectModal()"
  [btnLoading]="btnLoading4"
  (confirmDelEvent)="confirmDelInspect()"
  content="您确认要删除此条检查吗？"
></app-dialog-delete>
<!-- 撤销报修 -->
<app-dialog-delete
  [delModal]="delBxModal"
  (hideDelModalEvent)="hideDelBxModal()"
  [btnLoading]="btnLoading"
  (confirmDelEvent)="confirmDelBx()"
  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" (click)="clickExtra($event)">
  <div class="modalBody">
    <div class="title">一键报修<i class="icon_transport transport-guanbi" (click)="hideBxModal()"></i>
    </div>
    <div class="content">
      <form nz-form [formGroup]="validateBxForm" class="bxFormAdd" (ngSubmit)="confirmBx()">
        <nz-form-item *ngIf="cmdbRepair">
          <nz-form-label [nzSm]="4" [nzXs]="4" nzFor="assetId">资产</nz-form-label>
          <nz-form-control style="display: inline-block;">
            <nz-select style="width:168px;margin-right: 8px;" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch nzPlaceHolder="请选择资产" (nzOnSearch)="changeAsset($event)" formControlName="assetId" (ngModelChange)="changeAssetData($event)">
            	<ng-container *ngFor="let option of assetData">
            		<nz-option *ngIf="!isLoading" [nzLabel]="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>
          </nz-form-control>

    <!--      <nz-form-label nzFor="contactsInformation">故障现象</nz-form-label>
          <nz-form-control style="display: inline-block;">
            <nz-select style="width:185px;" [nzDropdownMatchSelectWidth]="false" nzShowSearch nzPlaceHolder="请选择故障现象" formControlName="category" (ngModelChange)="changeApplyCategory($event)">
            	<ng-container *ngFor="let option of applicationCategoryList">
            		<nz-option *ngIf="!isLoading" [nzLabel]="option.mutiCategory" [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>
          </nz-form-control> -->
        </nz-form-item>

				<nz-form-item>
          <nz-form-label [nzSm]="4" [nzXs]="4" nzRequired nzFor="description">故障描述</nz-form-label>
          <nz-form-control>
            <nz-input-group style="width:442px;">
              <textarea nz-input formControlName="description" rows="4" placeholder="请输入故障描述"></textarea>
            </nz-input-group>
          </nz-form-control>
        </nz-form-item>
				<nz-form-item>
					<nz-form-label [nzSm]="4" [nzXs]="4" nzFor="description">图片上传</nz-form-label>
					<nz-form-control style="display: inline-block;" *ngIf="repairImgs.length === 0">
					  <nz-upload nzListType="picture-card" [(nzFileList)]="fileList"
						[nzShowUploadList]="showUploadList" [nzPreview]="handlePreview"
						nzFileType="image/jpeg,image/png" nzAccept="image/jpeg,image/png"
						[nzShowButton]="fileList.length < 3"
						[nzBeforeUpload]="beforeUpload" [nzAction]="temporarilyUrl"
						[nzSize]="10240">
					    <i nz-icon nzType="plus"></i>
					    <div class="ant-upload-text">上传照片</div>
					  </nz-upload>
					  <nz-modal [nzVisible]="previewVisible" [nzContent]="modalContent" [nzFooter]="null" (nzOnCancel)="previewVisible = false">
					    <ng-template #modalContent>
					      <img [src]="previewImage" [ngStyle]="{ width: '100%' }" />
					    </ng-template>
					  </nz-modal>
					  <div class="tips">只支持.jpg.png.jpg 格式，最多上传3 张图片。</div>
					</nz-form-control>
					<div class="thumbList" *ngIf="repairImgs.length > 0">
					  <div class="thumb" *ngFor="let item of repairImgs;let index = index;" (click)="previewImageHandler(repairImgs, index)"><img [src]="item.thumbFilePath" alt=""></div>
					</div>
				</nz-form-item>
        <nz-form-item>
          <nz-form-label [nzSm]="4" [nzXs]="4" nzRequired nzFor="contacts">联系人</nz-form-label>
          <nz-form-control style="display: inline-block;">
            <nz-input-group>
              <input style="width:168px;" class="mr8" nz-input formControlName="contacts" placeholder="请输入联系人" />
            </nz-input-group>
          </nz-form-control>

          <nz-form-label nzRequired nzFor="contactsInformation">联系电话</nz-form-label>
          <nz-form-control style="display: inline-block;">
            <nz-input-group>
              <input style="width:185px;" nz-input formControlName="contactsInformation" placeholder="请输入联系电话" />
            </nz-input-group>
          </nz-form-control>
        </nz-form-item>
        <nz-form-item style="display: inline-block;vertical-align:bottom;" class="last">
          <nz-form-label [nzSm]="4" [nzXs]="4" nzRequired nzFor="building">详细地址</nz-form-label>
          <nz-form-control style="display: inline-block;">
            <nz-select [nzDropdownMatchSelectWidth]="false" style="width:120px;" class="mr8" type="building"
              nzShowSearch formControlName="building" nzPlaceHolder="请选择楼栋"
              (ngModelChange)="changeBuilding($event)">
              <nz-option [nzLabel]="data.buildingName" [nzValue]="data.id" *ngFor="let data of buildings">
              </nz-option>
            </nz-select>
          </nz-form-control>
          <nz-form-label [nzSm]="4" [nzXs]="4" nzRequired nzFor="floor" hidden></nz-form-label>
          <nz-form-control style="display: inline-block;">
            <nz-select [nzDropdownMatchSelectWidth]="false" style="width:120px;" class="mr8" type="floor" nzShowSearch
             formControlName="floor" nzPlaceHolder="请选择楼层" [nzLoading]="floorLoading">
              <nz-option [nzLabel]="data.floorName" [nzValue]="data.id" *ngFor="let data of floors"></nz-option>
            </nz-select>
          </nz-form-control>
          <nz-form-label [nzSm]="4" [nzXs]="4" nzRequired nzFor="officeAddress" hidden></nz-form-label>
          <nz-form-control style="display: inline-block;" class="address">
            <nz-input-group>
              <input class="addressFocus" style="width:185px;" nz-input formControlName="officeAddress" placeholder="请输入详细位置" (focus)="focusAddress()" />
              <div class="addressList" *ngIf="isShowAddressList">
                <ng-container *ngIf="!addressLoading && addressList.length">
                  <div class="addressItem ellipsis-oneline" *ngFor="let item of addressList" [title]="item.name" (click)="selectAddress(item.name)">{{item.name}}</div>
                </ng-container>
                <div *ngIf="!addressLoading && !addressList.length" class="w100 h100 padding8 display_flex justify-content_flex-center align-items_center">
                  <nz-empty></nz-empty>
                </div>
                <div *ngIf="addressLoading" class="w100 h100 padding8 display_flex justify-content_flex-center align-items_center">
                  <nz-spin nzSimple></nz-spin>
                </div>
              </div>
            </nz-input-group>
          </nz-form-control>
        </nz-form-item>
      </form>
    </div>
    <div class="display_flex justify-content_flex-center">
      <button nz-button nzType="primary" (click)="confirmBx()">
        确认
      </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" [ngClass]="{'isKeyClass': iskeySwitch}" *ngIf="isShowNurseCode">
  <div class="header drag-title">
    <h2>交接码</h2>
    <i
      class="icon-close icon_transport transport-guanbi1"
      (click)="closeNurseCode()"
    ></i>
  </div>
	<div class="key" *ngIf="iskeySwitch">{{numberKey}}</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>
    <strong>{{tool.getCurrentUserInfo().name}}</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;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>

<!-- 病理申请单 -->
<app-pathology-add *ngIf="pathologyModal" [surgeryId]="surgeryDataId" [patientId]="patientDataId" [patientId]="patientDataId" [detailId]="detailId" [applicationType]="applicationType" (pathologyCancel)="pathologyCancel($event)"></app-pathology-add>

<!-- 病理详情 -->
<app-pathology-detail *ngIf="pathologyDetailModal" [surgeryId]="surgeryDataId" [patientId]="patientDataId" [detailId]="detailId" (pathologyCancel)="pathologyDetailCancel($event)"></app-pathology-detail>

<!-- 多个申请单 -->
<div class="save add display_flex align-items_center justify-content_flex-center" *ngIf="multiDialog">
	<div class="modalBody modalBody-ga">
		<div class="new-title"><span class="title-weight">{{viewData[0].patientDTO.patientName}}（{{viewData[0].patientDTO.patientCode}}）</span>患者申请单列表<i class="icon_transport transport-guanbi" (click)="hideModal()"></i>
		</div>
		<div class="content">
			<div class="list-template__bottom">
				<nz-table class="list-template__nzTable" [nzData]="viewData" nzSize="middle" [nzShowPagination]="false">
					<thead>
						<tr class="thead">
							<th>申请单类型</th>
							<th>申请单号</th>
							<th nzWidth="20%">检验项目</th>
							<th>标本类型</th>
							<th>申请时间</th>
							<th>申请科室</th>
							<th>状态</th>
							<th>作废</th>
						</tr>
					</thead>
					<tbody>
						<tr *ngFor="let data of viewData">
							<td *ngIf="data.pathologyFormType==1" class="red">术中快速</td>
							<td *ngIf="data.pathologyFormType==0">普通病理</td>
							<td *ngIf="data.pathologyFormType==2">病理细胞学</td>
							<td style="text-decoration: underline;cursor: pointer;" (click)="itemClick(data)">{{ data.applyCode}}</td>
							<td>{{ data.arr ? data.arr.join('、') : '无' }}</td>
							<td>{{ data.specimenType?data.specimenType.name:'无'}}</td>
							<td>{{ data.createTime | date:'yyyy-MM-dd HH:mm'}}</td>
							<td>{{ data.patientDTO.department? data.patientDTO.department.dept:'-'}}</td>
							<td>{{ data.status?data.status.name:'-'}}</td>
							<td>
							  <div class="coop-btn">
									<button class="btn" *ngIf="data.status.value==1 || data.status.value==2
									|| data.status.value==3 || data.status.value==4 ||
									data.status.value==5" (click)="cancellation(data)" nz-button nzType="primary">作废</button>
							  </div>
							</td>
						</tr>
					</tbody>
				</nz-table>
			</div>
		</div>
		<div class="display_flex justify-content_flex-center mar-20 btns">
			<button class="btn" style="margin-right: 0;" *ngIf="autoCreate==1" nz-button nzType="primary" (click)="addPathologyType(0)">新增普通病理</button>
			<button class="btn" nzGhost *ngIf="autoCreate==1" nz-button nzType="primary" (click)="addPathologyType(1)">新增术中快速</button>
			<button class="btn cancel" nz-button nzType="default" (click)="hideModal()">知道了</button>
		</div>
	</div>
</div>
<div class="mask-style" *ngIf="isSpinning">
	<nz-spin nzSimple class="spin-style"></nz-spin>
</div>

<!-- 作废模态框 -->
<app-dialog-delete [delModal]="cancellationModal" (hideDelModalEvent)="cancelCancellation()" [btnLoading]="cancellationLoading"
  (confirmDelEvent)="confirmCancellation()" (cancelDelEvent)="cancelCancellation()" content="是否作废申请单？" confirmTxt="是" cancelTxt="否">
</app-dialog-delete>

<!-- 新增申请单提示 -->
<nz-modal [(nzVisible)]="isPathologyVisible" nzTitle="提示" (nzOnCancel)="handlePathologyCancel()" (nzOnOk)="handlePathologyOk()">
	<p style="font-size: 20px;"><span class="red" *ngIf="viewData.length>0">{{viewData[0].patientDTO.patientName}}（{{viewData[0].patientDTO.patientCode}}）</span>患者已有申请单，如需<span class="red">追加新标本</span>可在<span class="red">原有</span>申请单中<span class="red">添加</span>。</p>
	<p style="font-size: 20px;">注意：<span class="red">一张纸质申请单对应一条申请单数据，请谨慎添加申请单！</span></p>
</nz-modal>

<!-- 修改密码 -->
<nz-modal [(nzVisible)]="isPwdVisible" nzTitle="修改密码" (nzOnCancel)="pwdHandleCancel()" (nzOnOk)="pwdHandleOk()" [nzOkLoading]="pwdIsOkLoading" (nzAfterOpen)="pwdAfterOpen()">
  <div>
    <label>
      原始密码:
      <nz-input-group [nzSuffix]="suffixTemplate">
        <input minlength="9" [type]="passwordVisible ? 'text' : 'password'" nz-input placeholder="原始密码" [(ngModel)]="upModalData.pwdOld" />
      </nz-input-group>
      <ng-template #suffixTemplate>
        <i nz-icon [nzType]="passwordVisible ? 'eye-invisible' : 'eye'" (click)="passwordVisible = !passwordVisible"></i>
      </ng-template>
    </label>
    <label>新密码:
      <div style="display: flex;">
        <nz-input-group [nzSuffix]="suffixTemplate">
          <input minlength="9" [type]="passwordVisible ? 'text' : 'password'" nz-input placeholder="新密码" [(ngModel)]="upModalData.newPwd" (ngModelChange)="blurNewPwd()" />
        </nz-input-group>
        <ng-template #suffixTemplate>
          <i nz-icon [nzType]="passwordVisible ? 'eye-invisible' : 'eye'" (click)="passwordVisible = !passwordVisible"></i>
        </ng-template>
        <div class="red" style="display: flex;justify-content: center;align-items: center;padding-left: 5px;" *ngIf="enoughRegFlag">弱</div>
        <div style="display: flex;justify-content: center;align-items: center;padding-left: 5px;" *ngIf="mediumRegFlag">中</div>
        <div class="green" style="display: flex;justify-content: center;align-items: center;padding-left: 5px;" *ngIf="strongRegFlag">强</div>
      </div>
    </label>
    <div class="red">强密码需包含大小写字母、数字、特殊字符，长度至少9个字符</div>
    <label>确认新密码:
      <nz-input-group [nzSuffix]="suffixTemplate">
        <input minlength="9" [type]="passwordVisible ? 'text' : 'password'" nz-input placeholder="确认新密码" [(ngModel)]="upModalData.newPwd2" />
      </nz-input-group>
      <ng-template #suffixTemplate>
        <i nz-icon [nzType]="passwordVisible ? 'eye-invisible' : 'eye'" (click)="passwordVisible = !passwordVisible"></i>
      </ng-template>
    </label>
  </div>
</nz-modal>

<!-- <div class="kefu" (click)="smartOpen()">
	<img src="../../assets/images/kefu.png" alt="">
</div> -->

<!-- 快捷方式建单弹窗 -->
<app-build-quick-confirm *ngIf="isShowBuildQuickConfirm" [buildQuickConfirmData]="buildQuickConfirmData" (cancelModal)="cancelBuildQuickConfirm($event)" (confirmModal)="confirmBuildQuickConfirm($event)" [loading5]="loadingQuick"></app-build-quick-confirm>

<!-- 智能客服 -->
<app-smart-dialogue *ngIf="smartShow" (cancelModal)="smartClose($event)"></app-smart-dialogue>

<!-- 标本打包-数字点击 -->
<app-specimen-package-list-modal *ngIf="isShowSpecimenPackageList" (closeModelHs)="closeSpecimenPackageList($event)" [specimenPackageStateValue]="specimenPackageStateValue"></app-specimen-package-list-modal>

<!-- 追加检查 -->
<!-- <app-add-inspect-two-modal *ngIf="isShowAddInspect" [deptDisplay]="deptDisplay" (closeModelHs)="closeAddInspectModel($event)" (confirmModelHs)="confirmAddInspectModel($event)"></app-add-inspect-two-modal> -->

<!-- 追加检查项目 -->
<app-add-inspect-three-modal *ngIf="isShowAddInspect" [inspectAndPatientTransportConfig]="inspectAndPatientTransportConfig" [patientDTO]="patientMsg" [deptDisplay]="deptDisplay" (closeModelHs)="closeAddInspectModel($event)" (confirmModelHs)="confirmAddInspectModel($event)"></app-add-inspect-three-modal>
