<div class="TaskTypeManagement">
  <div class="taskType">
    <div class="title">任务类型</div>
    <div class="operate">
      <div *ngIf="coopBtns.add" class="add item" (click)="showCoopModal()">新增</div>
      <div *ngIf="coopBtns.del" class="del item" (click)="showConfimModal()">删除</div>
    </div>
    <div class="taskTypes" *ngIf="!taskTypeLoading">
      <overlay-scrollbars #osComponentRef1 [ngStyle]="{ height:'100%' }">
        <div [sortablejs]="allTaskType" [sortablejsOptions]="allTaskTypeOptions">
          <div class="item" *ngFor="let data of allTaskType; let i =index" (click)="itemChoice(data,i)"
            [ngClass]="{'itemChoice':allTaskTypeShow==data.taskName}" [title]="data.taskName">
            {{data.taskName}}</div>
        </div>
      </overlay-scrollbars>
    </div>
    <div class="taskTypes" *ngIf="taskTypeLoading">
      <div class="loadingFull display_flex justify-content_flex-center align-items_center">
        <div class="loadingFullInner">
          <img src="../../../assets/images/loading.gif" alt="">
          <div>加载中...</div>
        </div>
      </div>
    </div>
  </div>
  <div class="taskTypeInfo">
    <div class="top" id="itemDes">
      <div class="item" (click)="tabModal('jcxx')" [ngClass]="{'items':tabModalName=='jcxx'}">
        基础信息
      </div>
      <div class="item" (click)="tabModal('gzxx')" [ngClass]="{'items':tabModalName=='gzxx'}">
        规则信息
      </div>
      <div class="item" (click)="tabModal('ysgc')" [ngClass]="{'items':tabModalName=='ysgc'}">
        运送过程
      </div>
      <div class="item" (click)="tabModal('ktks')" [ngClass]="{'items':tabModalName=='ktks'}">
        开通科室
      </div>

    </div>
    <div class="list" *ngIf="!taskTypeLoading&&!loading4&&((add&&allTaskType.length===0)||allTaskType.length)">
      <!-- 基础信息 -->
      <div *ngIf="tabModalName=='jcxx'">
        <div nz-row class="mb8 display_flex align-items_center">
          <nz-form-label class="label" nzRequired>类型名称</nz-form-label>
          <input nz-input class="flex_1" [(ngModel)]="taskName" placeholder="请填写类型名称" nzSize="default" />
        </div>
        <div nz-row class="mb8 display_flex align-items_center">
          <nz-form-label class="label" nzRequired nz-col style="text-align: left;">关联班次</nz-form-label>
          <div nz-col class="flex_1">
            <nz-checkbox-group class="w100" [(ngModel)]="allScheduleClass"></nz-checkbox-group>
          </div>
        </div>
        <div nz-row class="mb8 display_flex align-items_center">
          <nz-form-label class="label" nzRequired>关联类型</nz-form-label>
          <!-- 关联类型禁止修改 -->
          <nz-select class="flex_1" nzShowSearch nzPlaceHolder="请选择关联类型" [ngModel]="association.id"
            (ngModelChange)="asso($event)" [nzDisabled]="!add">
            <nz-option nzLabel="{{data.name}}" nzValue="{{data.id}}" *ngFor="let data of allAssociation"></nz-option>
          </nz-select>
        </div>
        <ng-container *ngIf="association.value == 'ordinary'">
          <div nz-row class="mb8 display_flex align-items_center">
            <nz-form-label class="label" nzRequired>关联业务</nz-form-label>
            <!-- 关联业务禁止修改 -->
            <nz-select class="flex_1" nzShowSearch nzAllowClear nzPlaceHolder="请选择关联业务" [(ngModel)]="relatedBusiness.id" [nzDisabled]="!add">
              <nz-option nzLabel="{{data.name}}" nzValue="{{data.id}}" *ngFor="let data of allRelatedBusiness"></nz-option>
            </nz-select>
          </div>
        </ng-container>
        <nz-form-label *ngIf="association.value == 'specimen'" class="label" nzRequired>空单默认科室</nz-form-label>
        <nz-select *ngIf="association.value == 'specimen'" class="mb8 w100" [ngClass]="{remandTypeId:!defaultNullDeptId}"
          [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch (nzOnSearch)="changeSearchDeptList($event)"
          nzPlaceHolder="请选择空单默认科室" [(ngModel)]="defaultNullDeptId">
          <ng-container *ngFor="let option of searchDeptList">
            <nz-option *ngIf="!searchDeptLoading" [nzLabel]="option.dept" [nzValue]="option.id">
            </nz-option>
          </ng-container>
          <nz-option *ngIf="searchDeptLoading" nzDisabled nzCustomContent>
            <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
          </nz-option>
        </nz-select>
        <!-- -------------------- -->
        <div nz-row class="mb8">
          <nz-form-label class="label" nzRequired>是否允许加急</nz-form-label>
          <nz-radio-group class="handlerType" [(ngModel)]="allowUrgent">
            <label nz-radio nzValue='1'>是</label>
            <label nz-radio nzValue='0'>否</label>
          </nz-radio-group>
          <nz-form-label class="label" nzRequired>加急是否审核</nz-form-label>
          <nz-radio-group class="handlerType" [(ngModel)]="urgentAudit">
            <label nz-radio nzValue='1'>是</label>
            <label nz-radio nzValue='0'>否</label>
          </nz-radio-group>
        </div>
        <div class="mb8 w100" *ngIf="association.value == 'inspect'||association.value == 'patientTransport'||association.value == 'specimen'||association.value == 'other'||association.value == 'ordinary'">
          <nz-form-label class="label" nzRequired>调度台是否可以新建工单</nz-form-label>
          <nz-radio-group class="handlerType" [(ngModel)]="autoFlag">
            <label nz-radio nzValue='1'>是</label>
            <label nz-radio nzValue='0'>否</label>
          </nz-radio-group>
        </div>
				<div class="mb8 w100" *ngIf="association.value == 'other'">
				  <nz-form-label class="label" nzRequired>是否配送人员可以新建工单</nz-form-label>
				  <nz-radio-group class="handlerType" [(ngModel)]="deliveryUserCreate">
				    <label nz-radio nzValue='1'>是</label>
				    <label nz-radio nzValue='0'>否</label>
				  </nz-radio-group>
				</div>
        <!-- 患者其他服务 -->
        <div class="mb8 w100" *ngIf="association.value == 'patientTransport'">
          <nz-form-label class="label" nzRequired>护士端是否允许预约建单</nz-form-label>
          <nz-radio-group class="handlerType" [(ngModel)]="appointmentBuildFlagZy">
            <label nz-radio nzValue='1'>是</label>
            <label nz-radio nzValue='0'>否</label>
          </nz-radio-group>
        </div>
        <!-- 患者陪检业务 -->
        <div class="mb8 w100" *ngIf="association.value == 'inspect'">
          <nz-form-label class="label" nzRequired>护士端是否允许预约建单</nz-form-label>
          <nz-radio-group class="handlerType" [(ngModel)]="appointmentBuildFlag"
            (ngModelChange)="appointmentBuildClick()">
            <label nz-radio nzValue='1'>是</label>
            <label nz-radio nzValue='0'>否</label>
          </nz-radio-group>
        </div>
        <div class="mb8 w100" *ngIf="appointmentBuildFlag === '1'">
          <nz-form-label class="label" nzRequired>生效时间</nz-form-label>
          <span>
            提前
            <nz-input-number [nzFormatter]="formatterDollar" [(ngModel)]="leadTime" [nzMin]="0" [nzStep]="1"
              [nzSize]="'small'">
            </nz-input-number>
            分钟
          </span>
        </div>
        <div class="mb8 w100" *ngIf="association.value == 'inspect'">
          <nz-form-label class="label" nzRequired>护士端是否能标记重点关注</nz-form-label>
          <nz-radio-group class="handlerType" [(ngModel)]="followFlag">
            <label nz-radio nzValue='1'>是</label>
            <label nz-radio nzValue='0'>否</label>
          </nz-radio-group>
        </div>
        <div class="mb8 w100" *ngIf="association.value == 'other'">
          <nz-form-label class="label" nzRequired>是否需要填写工号</nz-form-label>
          <nz-radio-group class="handlerType" [(ngModel)]="reserveUserSwitch" (ngModelChange)="isReserveUserSwitchChange()">
            <label nz-radio nzValue='1'>是</label>
            <label nz-radio nzValue='0'>否</label>
          </nz-radio-group>
        </div>
        <div class="mb8 w100">
          <nz-form-label class="label" nzRequired>{{(association.value == 'inspect' || association.value == 'patientTransport') ? '是否需要注意事项' : '是否需要备注信息'}}</nz-form-label>
          <nz-radio-group class="handlerType" [(ngModel)]="isRemarks">
            <label nz-radio nzValue='1'>是</label>
            <label nz-radio nzValue='0'>否</label>
          </nz-radio-group>
        </div>
        <div class="mb8 display_flex align-items_center" *ngIf="isRemarks == 1">
          <nz-form-label class="label">{{(association.value == 'inspect' || association.value == 'patientTransport') ? '注意事项提示用语' : '备注信息提示用语'}}</nz-form-label>
          <input nz-input class="flex_1" [(ngModel)]="remarks" placeholder="请填写备注信息提示用语" nzSize="default" />
        </div>
        <div class="mb8 w100" *ngIf="!(association.value == 'inspect' || association.value == 'patientTransport') && isRemarks == 1">
          <nz-form-label class="label">备注快捷输入</nz-form-label>
          <button nz-button nzType="dashed" (click)="addQuickRemarks()" *ngIf="!quickRemarks">
            <i nz-icon nzType="plus"></i>
            添加
          </button>
          <span class="mr8" *ngIf="quickRemarks">{{quickRemarks.split('$').join(',')}}</span>
          <button *ngIf="quickRemarks" nz-button nzType="dashed" (click)="editQuickRemarks()">
            <i nz-icon nzType="plus"></i>
            编辑
          </button>
        </div>
        <div class="mb8 w100" *ngIf="association.value == 'patientTransport'">
          <nz-form-label class="label" nzRequired>是否开通自动送回</nz-form-label>
          <nz-radio-group class="handlerType" [(ngModel)]="isRemand">
            <label nz-radio nzValue='1'>是</label>
            <label nz-radio nzValue='0'>否</label>
          </nz-radio-group>
        </div>
        <div class="mb8 w100" *ngIf="isRemand == '1'">
          <nz-form-label class="label" nzRequired>选择自动送回的任务类型</nz-form-label>
          <nz-select (nzOpenChange)="openSearchTaskList($event)" [ngClass]="{remandTypeId:!remandTypeId}"
            style="width:146px;" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch
            (nzOnSearch)="changeSearchTaskList($event)" nzPlaceHolder="请选择任务类型" [(ngModel)]="remandTypeId">
            <ng-container *ngFor="let option of searchTaskList">
              <nz-option *ngIf="!searchTaskLoading" [nzLabel]="option.taskName" [nzValue]="option.id">
              </nz-option>
            </ng-container>
            <nz-option *ngIf="searchTaskLoading" nzDisabled nzCustomContent>
              <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
            </nz-option>
          </nz-select>
        </div>
        <div class="mb8 w100">
          <nz-form-label class="label" nzRequired>是否特殊情况关闭</nz-form-label>
          <nz-radio-group class="handlerType" [(ngModel)]="specialCloseButton" (ngModelChange)="changeSpecialCloseButton()">
            <label nz-radio nzValue='1'>是</label>
            <label nz-radio nzValue='0'>否</label>
          </nz-radio-group>
        </div>
        <div class="mb8 w100" *ngIf="specialCloseButton == 1">
          <nz-form-label class="label" nzRequired>是否需要验证科室码</nz-form-label>
          <nz-radio-group class="handlerType" [(ngModel)]="closeOrderCheckDept">
            <label nz-radio [nzValue]='1'>是</label>
            <label nz-radio [nzValue]='0'>否</label>
          </nz-radio-group>
        </div>
        <div class="mb8 w100">
          <nz-form-label class="label" nzRequired>是否允许提前执行</nz-form-label>
          <nz-radio-group class="handlerType" [(ngModel)]="executeSwitch">
            <label nz-radio [nzValue]='1'>是</label>
            <label nz-radio [nzValue]='0'>否</label>
          </nz-radio-group>
        </div>
        <div class="mb8 w100" *ngIf="association.value == 'other'">
          <nz-form-label class="label" nzRequired>是否关联数据</nz-form-label>
          <nz-radio-group class="handlerType" [(ngModel)]="bindTrans">
            <label nz-radio nzValue='1'>是</label>
            <label nz-radio nzValue='0'>否</label>
          </nz-radio-group>
        </div>
        <div class="mb8 w100" *ngIf="association.value == 'patientTransport' || association.value == 'inspect'">
          <nz-form-label class="label" nzRequired>是否需要医护陪同检查</nz-form-label>
          <nz-radio-group class="handlerType" [(ngModel)]="isAccompany">
            <label nz-radio nzValue='1'>是</label>
            <label nz-radio nzValue='0'>否</label>
          </nz-radio-group>
        </div>
        <div class="mb8 w100" *ngIf="association.value == 'inspect'">
          <nz-form-label class="label" nzRequired>是否半陪检</nz-form-label>
          <nz-radio-group class="handlerType" [ngModel]="isHalfInspect" (ngModelChange)="isHalfInspectChange($event)">
            <label nz-radio nzValue='1'>是</label>
            <label nz-radio nzValue='0'>否</label>
          </nz-radio-group>
        </div>
        <div class="mb8 w100" *ngIf="association.value == 'inspect'">
          <nz-form-label class="label" nzRequired>关联检查是否允许多个科室</nz-form-label>
          <nz-radio-group class="handlerType" [ngModel]="isMoreDept" (ngModelChange)="isMoreDeptChange($event)">
            <label nz-radio nzValue='1'>是</label>
            <label nz-radio nzValue='0'>否</label>
          </nz-radio-group>
        </div>
        <div class="mb8 w100">
          <nz-form-label class="label" nzRequired>限制重复建单</nz-form-label>
          <nz-radio-group class="handlerType" [(ngModel)]="isRepeatCreateOder">
            <label nz-radio nzValue='2'>可重复建单</label>
            <label nz-radio nzValue='1'>可重复需提示</label>
            <label nz-radio nzValue='0'>不可重复建单</label>
          </nz-radio-group>
        </div>
        <div class="mb8 w100" *ngIf="association.value == 'drugsBag'">
          <nz-form-label class="label" nzRequired>药品自动建单</nz-form-label>
          <nz-radio-group class="handlerType" [(ngModel)]="isDrugsCreateTime">
            <label nz-radio nzValue='0'>不建单</label>
            <label nz-radio nzValue='350'>发药可自动建单</label>
            <label nz-radio nzValue='351'>配药可自动建单</label>
            <label nz-radio nzValue='384'>审核可自动建单</label>
          </nz-radio-group>
        </div>
        <div class="mb8 w100" *ngIf="association.value == 'drugsBag'">
          <nz-form-label class="label" nzRequired>是否允许一键签收</nz-form-label>
          <nz-radio-group class="handlerType" [(ngModel)]="isOneClickSignIn">
            <label nz-radio nzValue='1'>是</label>
            <label nz-radio nzValue='0'>否</label>
          </nz-radio-group>
        </div>
        <div class="mb8 w100" *ngIf="association.value == 'specimenPlan'">
          <nz-form-label class="label" nzRequired>是否允许数字交接</nz-form-label>
          <nz-radio-group class="handlerType" [(ngModel)]="isDigitalHandover">
            <label nz-radio nzValue='1'>是</label>
            <label nz-radio nzValue='0'>否</label>
          </nz-radio-group>
        </div>

        <div class="mb8 w100" *ngIf="association.value == 'other'">
          <nz-form-label class="label" nzRequired>是否预定工单</nz-form-label>
          <nz-radio-group class="handlerType" [(ngModel)]="reserveSwitch">
            <label nz-radio nzValue='1'>是</label>
            <label nz-radio nzValue='0'>否</label>
          </nz-radio-group>
        </div>
        <!-- <div class="mb8 w100">
          <nz-form-label class="label" nzRequired>是否限制业务发起时间</nz-form-label>
          <nz-radio-group class="handlerType" [(ngModel)]="reserveType" (ngModelChange)="changeReserveType($event)">
            <label nz-radio [nzValue]='option.value' *ngFor="let option of reserveTypes">{{option.name}}</label>
          </nz-radio-group>
        </div>
        <div class="mb8 w100" *ngIf="reserveType == 3">
          <nz-time-picker [(ngModel)]="reserveDate" nzFormat="HH:mm" class="mr8"></nz-time-picker>
          <input nz-input style="width: 300px;" class="handlerType" [(ngModel)]="reserveMsg" placeholder="请填写超出时间提示用语" nzSize="default" />
        </div> -->
        <div nz-row class="mb8 display_flex align-items_center">
          <nz-form-label class="label">急单权重</nz-form-label>
          <input nz-input type="number" class="flex_1" [(ngModel)]="urgeWeight" placeholder="请填写急单权重" nzSize="default" />
        </div>
        <div nz-row class="mb8 display_flex align-items_center">
          <nz-form-label class="label">普单权重</nz-form-label>
          <input nz-input type="number" class="flex_1" [(ngModel)]="commonWeight" placeholder="请填写普单权重" nzSize="default" />
        </div>
        <div nz-row class="mb8 display_flex align-items_center">
          <nz-form-label class="label">统计备注</nz-form-label>
          <input nz-input type="text" class="flex_1" [(ngModel)]="countRemark" placeholder="请填写统计备注" nzSize="default" />
        </div>
        <div nz-row class="mb8 display_flex align-items_center">
          <nz-form-label class="label">统计分类</nz-form-label>
          <nz-select class="flex_1" nzShowSearch nzPlaceHolder="请选择统计分类" [(ngModel)]="statisticsDateType.id">
            <nz-option nzLabel="{{data.name}}" nzValue="{{data.id}}" *ngFor="let data of allStatisticsDateType"></nz-option>
          </nz-select>
        </div>
				<div nz-row class="mb8 display_flex align-items_center">
				  <nz-form-label class="label">积分单价</nz-form-label>
					<nz-input-number
						class="flex_1"
						[(ngModel)]="scorePrice"
					 	[nzMin]="0"
						[nzPrecision]="2"
					 	[nzMax]="999999"
					 	[nzStep]="0.1"
					 	[nzPlaceHolder]="'请填写积分单价(保留2位小数)'"
					 ></nz-input-number>
				</div>
				<div nz-row class="mb8 display_flex align-items_center">
				  <nz-form-label class="label">颜色</nz-form-label>
					<div (click)="showSketch()" class="colour" [ngStyle]="{background: colorConfig.hex}"></div>
				</div>
      </div>
      <!-- 规则信息 -->
      <div *ngIf="tabModalName=='gzxx'" class="ruleList">
        <div class="table">
          <div class="box">
            <div class='table_title'>
              紧急工单积分算法
            </div>
            <nz-table class="hospitalTable" #rowSelectionTable [nzData]="listOfData" nzSize="middle"
              [nzShowPagination]="false">
              <thead>
                <tr class="thead">
                  <th nzWidth="10%">时间段</th>
                  <th nzWidth="11%">时长（分钟）</th>
                  <th nzWidth="10%">积分</th>
                  <th nzWidth="23%">一级超时</th>
                  <th nzWidth="23%">二级超时</th>
                  <th nzWidth="23%">三级超时</th>
                </tr>
              </thead>
              <tbody>
                <tr>
                  <td>配送人员响应时间</td>
                  <td>
                    <nz-input-number [(ngModel)]="integralDetailedRulesData[0].responseTime" [nzMin]="0" [nzMax]="10000"
                      [nzStep]="1" [nzSize]="'small'" (ngModelChange)='Change(integralDetailedRulesData[0])'>
                    </nz-input-number>
                  </td>
                  <td>
                    <nz-input-number [(ngModel)]="integralDetailedRulesData[0].responseScore" [nzMin]="0"
                      [nzMax]="10000" [nzStep]="1" [nzSize]="'small'"
                      (ngModelChange)='Change(integralDetailedRulesData[0])'></nz-input-number>
                  </td>
                  <td>
                    <span>超时 </span>
                    <nz-input-number [(ngModel)]="integralDetailedRulesData[0].level1ResponseTimeoutTime" [nzMin]="0"
                      [nzMax]="10000" [nzStep]="1" [nzSize]="'small'"></nz-input-number>&nbsp;
                    <span>扣除 </span>
                    <nz-input-number [(ngModel)]="integralDetailedRulesData[0].level1ResponseTimeoutDeduct" [nzMin]="0"
                      [nzMax]="10000" [nzStep]="1" [nzSize]="'small'"></nz-input-number>
                    <span> 分</span>
                  </td>
                  <td>
                    <span>超时 </span>
                    <nz-input-number [(ngModel)]="integralDetailedRulesData[0].level2ResponseTimeoutTime" [nzMin]="0"
                      [nzMax]="10000" [nzStep]="1" [nzSize]="'small'"></nz-input-number>&nbsp;
                    <span>扣除 </span>
                    <nz-input-number [(ngModel)]="integralDetailedRulesData[0].level2ResponseTimeoutDeduct" [nzMin]="0"
                      [nzMax]="10000" [nzStep]="1" [nzSize]="'small'"></nz-input-number>
                    <span> 分</span>
                  </td>
                  <td>
                    <span>超时 </span>
                    <nz-input-number [(ngModel)]="integralDetailedRulesData[0].level3ResponseTimeoutTime" [nzMin]="0"
                      [nzMax]="10000" [nzStep]="1" [nzSize]="'small'"></nz-input-number>&nbsp;
                    <span>扣除 </span>
                    <nz-input-number [(ngModel)]="integralDetailedRulesData[0].level3ResponseTimeoutDeduct" [nzMin]="0"
                      [nzMax]="10000" [nzStep]="1" [nzSize]="'small'"></nz-input-number>
                    <span> 分</span>
                  </td>
                </tr>
                <tr>
                  <td>到达时间</td>
                  <td>
                    <nz-input-number [(ngModel)]="integralDetailedRulesData[0].arriveTime" [nzMin]="0" [nzMax]="10000"
                      [nzStep]="1" [nzSize]="'small'" (ngModelChange)='Change(integralDetailedRulesData[0])'>
                    </nz-input-number>
                  </td>
                  <td>
                    <nz-input-number [(ngModel)]="integralDetailedRulesData[0].arriveScore" [nzMin]="0" [nzMax]="10000"
                      [nzStep]="1" [nzSize]="'small'" (ngModelChange)='Change(integralDetailedRulesData[0])'>
                    </nz-input-number>
                  </td>
                  <td>
                    <span>超时 </span>
                    <nz-input-number [(ngModel)]="integralDetailedRulesData[0].level1ArriveTimeoutTime" [nzMin]="0"
                      [nzMax]="10000" [nzStep]="1" [nzSize]="'small'"></nz-input-number>&nbsp;
                    <span>扣除 </span>
                    <nz-input-number [(ngModel)]="integralDetailedRulesData[0].level1ArriveTimeoutDeduct" [nzMin]="0"
                      [nzMax]="10000" [nzStep]="1" [nzSize]="'small'"></nz-input-number>
                    <span> 分</span>
                  </td>
                  <td>
                    <span>超时 </span>
                    <nz-input-number [(ngModel)]="integralDetailedRulesData[0].level2ArriveTimeoutTime" [nzMin]="0"
                      [nzMax]="10000" [nzStep]="1" [nzSize]="'small'"></nz-input-number>&nbsp;
                    <span>扣除 </span>
                    <nz-input-number [(ngModel)]="integralDetailedRulesData[0].level2ArriveTimeoutDeduct" [nzMin]="0"
                      [nzMax]="10000" [nzStep]="1" [nzSize]="'small'"></nz-input-number>
                    <span> 分</span>
                  </td>
                  <td>
                    <span>超时 </span>
                    <nz-input-number [(ngModel)]="integralDetailedRulesData[0].level3ArriveTimeoutTime" [nzMin]="0"
                      [nzMax]="10000" [nzStep]="1" [nzSize]="'small'"></nz-input-number>&nbsp;
                    <span>扣除 </span>
                    <nz-input-number [(ngModel)]="integralDetailedRulesData[0].level3ArriveTimeoutDeduct" [nzMin]="0"
                      [nzMax]="10000" [nzStep]="1" [nzSize]="'small'"></nz-input-number>
                    <span> 分</span>
                  </td>
                </tr>
                <tr class="zzBontton">
                  <td (click)="implementTime(false)">执行时间</td>
                  <td>
                    <nz-input-number [(ngModel)]="integralDetailedRulesData[0].executeTime" [nzMin]="0" [nzMax]="10000"
                      [nzStep]="1" [nzSize]="'small'" (ngModelChange)='Change(integralDetailedRulesData[0])'>
                    </nz-input-number>
                  </td>
                  <td>
                    <nz-input-number [(ngModel)]="integralDetailedRulesData[0].executeScore" [nzMin]="0" [nzMax]="10000"
                      [nzStep]="1" [nzSize]="'small'" (ngModelChange)='Change(integralDetailedRulesData[0])'>
                    </nz-input-number>
                  </td>
                  <td>
                    <span>超时 </span>
                    <nz-input-number [(ngModel)]="integralDetailedRulesData[0].level1ExecuteTimeoutTime" [nzMin]="0"
                      [nzMax]="10000" [nzStep]="1" [nzSize]="'small'"></nz-input-number>&nbsp;
                    <span>扣除 </span>
                    <nz-input-number [(ngModel)]="integralDetailedRulesData[0].level1ExecuteTimeoutDeduct" [nzMin]="0"
                      [nzMax]="10000" [nzStep]="1" [nzSize]="'small'"></nz-input-number>
                    <span> 分</span>
                  </td>
                  <td>
                    <span>超时 </span>
                    <nz-input-number [(ngModel)]="integralDetailedRulesData[0].level2ExecuteTimeoutTime" [nzMin]="0"
                      [nzMax]="10000" [nzStep]="1" [nzSize]="'small'"></nz-input-number>&nbsp;
                    <span>扣除 </span>
                    <nz-input-number [(ngModel)]="integralDetailedRulesData[0].level2ExecuteTimeoutDeduct" [nzMin]="0"
                      [nzMax]="10000" [nzStep]="1" [nzSize]="'small'"></nz-input-number>
                    <span> 分</span>
                  </td>
                  <td>
                    <span>超时 </span>
                    <nz-input-number [(ngModel)]="integralDetailedRulesData[0].level3ExecuteTimeoutTime" [nzMin]="0"
                      [nzMax]="10000" [nzStep]="1" [nzSize]="'small'"></nz-input-number>&nbsp;
                    <span>扣除 </span>
                    <nz-input-number [(ngModel)]="integralDetailedRulesData[0].level3ExecuteTimeoutDeduct" [nzMin]="0"
                      [nzMax]="10000" [nzStep]="1" [nzSize]="'small'"></nz-input-number>
                    <span> 分</span>
                  </td>
                </tr>
                <tr>
                  <td>基础</td>
                  <td>
                    <!-- <nz-input-number [(ngModel)]="demoValue" [nzMin]="1" [nzMax]="10" [nzStep]="1" [nzSize]="'small'"></nz-input-number> -->
                  </td>
                  <td>
                    <nz-input-number [(ngModel)]="integralDetailedRulesData[0].basicsScore" [nzMin]="0" [nzMax]="10000"
                      [nzStep]="1" [nzSize]="'small'" (ngModelChange)='Change(integralDetailedRulesData[0])'>
                    </nz-input-number>
                  </td>
                  <td>
                    <div class="lin">
                    </div>
                  </td>
                  <td></td>
                  <td></td>
                </tr>
                <tr>
                  <td>多个科室追加分</td>
                  <td>
                    <!-- <nz-input-number [(ngModel)]="demoValue" [nzMin]="1" [nzMax]="10" [nzStep]="1" [nzSize]="'small'"></nz-input-number> -->
                  </td>
                  <td>
                    <nz-input-number [(ngModel)]="integralDetailedRulesData[0].deptsScore" [nzMin]="0" [nzMax]="10000"
                      [nzStep]="1" [nzSize]="'small'" (ngModelChange)='Change(integralDetailedRulesData[0])'>
                    </nz-input-number>
                  </td>
                  <td>
                    <div class="lin">
                    </div>
                  </td>
                  <td></td>
                  <td></td>
                </tr>
                <tr>
                  <td>总计</td>
                  <td>
                    <nz-input-number [(ngModel)]="integralDetailedRulesData[0].sumTime" [nzMin]="0" [nzMax]="10000"
                      [nzStep]="1" [nzSize]="'small'" [nzDisabled]=true></nz-input-number>
                  </td>
                  <td>
                    <nz-input-number [(ngModel)]="integralDetailedRulesData[0].sumScore" [nzMin]="0" [nzMax]="10000"
                      [nzStep]="1" [nzSize]="'small'" [nzDisabled]=true></nz-input-number>
                  </td>
                  <td></td>
                  <td></td>
                  <td></td>
                </tr>
              </tbody>
            </nz-table>
          </div>
          <div class="box">
            <div class='table_title'>
              普通工单积分算法
            </div>
            <nz-table class="hospitalTable" #rowSelectionTable [nzData]="listOfData" nzSize="middle"
              [nzShowPagination]="false">
              <thead>
                <tr class="thead">
                  <th nzWidth="10%">时间段</th>
                  <th nzWidth="11%">时长（分钟）</th>
                  <th nzWidth="10%">积分</th>
                  <th nzWidth="23%">一级超时</th>
                  <th nzWidth="23%">二级超时</th>
                  <th nzWidth="23%">三级超时</th>
                </tr>
              </thead>
              <tbody>
                <tr>
                  <td>配送人员响应时间</td>
                  <td>
                    <nz-input-number [(ngModel)]="integralDetailedRulesData[1].responseTime" [nzMin]="0" [nzMax]="10000"
                      [nzStep]="1" [nzSize]="'small'" (ngModelChange)='Change1(integralDetailedRulesData[1])'>
                    </nz-input-number>
                  </td>
                  <td>
                    <nz-input-number [(ngModel)]="integralDetailedRulesData[1].responseScore" [nzMin]="0"
                      [nzMax]="10000" [nzStep]="1" [nzSize]="'small'"
                      (ngModelChange)='Change1(integralDetailedRulesData[1])'></nz-input-number>
                  </td>
                  <td>
                    <span>超时 </span>
                    <nz-input-number [(ngModel)]="integralDetailedRulesData[1].level1ResponseTimeoutTime" [nzMin]="0"
                      [nzMax]="10000" [nzStep]="1" [nzSize]="'small'"></nz-input-number>&nbsp;
                    <span>扣除 </span>
                    <nz-input-number [(ngModel)]="integralDetailedRulesData[1].level1ResponseTimeoutDeduct" [nzMin]="0"
                      [nzMax]="10000" [nzStep]="1" [nzSize]="'small'"></nz-input-number>
                    <span> 分</span>
                  </td>
                  <td>
                    <span>超时 </span>
                    <nz-input-number [(ngModel)]="integralDetailedRulesData[1].level2ResponseTimeoutTime" [nzMin]="0"
                      [nzMax]="10000" [nzStep]="1" [nzSize]="'small'"></nz-input-number>&nbsp;
                    <span>扣除 </span>
                    <nz-input-number [(ngModel)]="integralDetailedRulesData[1].level2ResponseTimeoutDeduct" [nzMin]="0"
                      [nzMax]="10000" [nzStep]="1" [nzSize]="'small'"></nz-input-number>
                    <span> 分</span>
                  </td>
                  <td>
                    <span>超时 </span>
                    <nz-input-number [(ngModel)]="integralDetailedRulesData[1].level3ResponseTimeoutTime" [nzMin]="0"
                      [nzMax]="10000" [nzStep]="1" [nzSize]="'small'"></nz-input-number>&nbsp;
                    <span>扣除 </span>
                    <nz-input-number [(ngModel)]="integralDetailedRulesData[1].level3ResponseTimeoutDeduct" [nzMin]="0"
                      [nzMax]="10000" [nzStep]="1" [nzSize]="'small'"></nz-input-number>
                    <span> 分</span>
                  </td>
                </tr>
                <tr>
                  <td>到达时间</td>
                  <td>
                    <nz-input-number [(ngModel)]="integralDetailedRulesData[1].arriveTime" [nzMin]="0" [nzMax]="10000"
                      [nzStep]="1" [nzSize]="'small'" (ngModelChange)='Change1(integralDetailedRulesData[1])'>
                    </nz-input-number>
                  </td>
                  <td>
                    <nz-input-number [(ngModel)]="integralDetailedRulesData[1].arriveScore" [nzMin]="0" [nzMax]="10000"
                      [nzStep]="1" [nzSize]="'small'" (ngModelChange)='Change1(integralDetailedRulesData[1])'>
                    </nz-input-number>
                  </td>
                  <td>
                    <span>超时 </span>
                    <nz-input-number [(ngModel)]="integralDetailedRulesData[1].level1ArriveTimeoutTime" [nzMin]="0"
                      [nzMax]="10000" [nzStep]="1" [nzSize]="'small'"></nz-input-number>&nbsp;
                    <span>扣除 </span>
                    <nz-input-number [(ngModel)]="integralDetailedRulesData[1].level1ArriveTimeoutDeduct" [nzMin]="0"
                      [nzMax]="10000" [nzStep]="1" [nzSize]="'small'"></nz-input-number>
                    <span> 分</span>
                  </td>
                  <td>
                    <span>超时 </span>
                    <nz-input-number [(ngModel)]="integralDetailedRulesData[1].level2ArriveTimeoutTime" [nzMin]="0"
                      [nzMax]="10000" [nzStep]="1" [nzSize]="'small'"></nz-input-number>&nbsp;
                    <span>扣除 </span>
                    <nz-input-number [(ngModel)]="integralDetailedRulesData[1].level2ArriveTimeoutDeduct" [nzMin]="0"
                      [nzMax]="10000" [nzStep]="1" [nzSize]="'small'"></nz-input-number>
                    <span> 分</span>
                  </td>
                  <td>
                    <span>超时 </span>
                    <nz-input-number [(ngModel)]="integralDetailedRulesData[1].level3ArriveTimeoutTime" [nzMin]="0"
                      [nzMax]="10000" [nzStep]="1" [nzSize]="'small'"></nz-input-number>&nbsp;
                    <span>扣除 </span>
                    <nz-input-number [(ngModel)]="integralDetailedRulesData[1].level3ArriveTimeoutDeduct" [nzMin]="0"
                      [nzMax]="10000" [nzStep]="1" [nzSize]="'small'"></nz-input-number>
                    <span> 分</span>
                  </td>
                </tr>
                <tr class="zzBontton">
                  <td>执行时间</td>
                  <td>
                    <nz-input-number [(ngModel)]="integralDetailedRulesData[1].executeTime" [nzMin]="0" [nzMax]="10000"
                      [nzStep]="1" [nzSize]="'small'" (ngModelChange)='Change1(integralDetailedRulesData[1])'>
                    </nz-input-number>
                  </td>
                  <td>
                    <nz-input-number [(ngModel)]="integralDetailedRulesData[1].executeScore" [nzMin]="0" [nzMax]="10000"
                      [nzStep]="1" [nzSize]="'small'" (ngModelChange)='Change1(integralDetailedRulesData[1])'>
                    </nz-input-number>
                  </td>
                  <td>
                    <span>超时 </span>
                    <nz-input-number [(ngModel)]="integralDetailedRulesData[1].level1ExecuteTimeoutTime" [nzMin]="0"
                      [nzMax]="10000" [nzStep]="1" [nzSize]="'small'"></nz-input-number>&nbsp;
                    <span>扣除 </span>
                    <nz-input-number [(ngModel)]="integralDetailedRulesData[1].level1ExecuteTimeoutDeduct" [nzMin]="0"
                      [nzMax]="10000" [nzStep]="1" [nzSize]="'small'"></nz-input-number>
                    <span> 分</span>
                  </td>
                  <td>
                    <span>超时 </span>
                    <nz-input-number [(ngModel)]="integralDetailedRulesData[1].level2ExecuteTimeoutTime" [nzMin]="0"
                      [nzMax]="10000" [nzStep]="1" [nzSize]="'small'"></nz-input-number>&nbsp;
                    <span>扣除 </span>
                    <nz-input-number [(ngModel)]="integralDetailedRulesData[1].level2ExecuteTimeoutDeduct" [nzMin]="0"
                      [nzMax]="10000" [nzStep]="1" [nzSize]="'small'"></nz-input-number>
                    <span> 分</span>
                  </td>
                  <td>
                    <span>超时 </span>
                    <nz-input-number [(ngModel)]="integralDetailedRulesData[1].level3ExecuteTimeoutTime" [nzMin]="0"
                      [nzMax]="10000" [nzStep]="1" [nzSize]="'small'"></nz-input-number>&nbsp;
                    <span>扣除 </span>
                    <nz-input-number [(ngModel)]="integralDetailedRulesData[1].level3ExecuteTimeoutDeduct" [nzMin]="0"
                      [nzMax]="10000" [nzStep]="1" [nzSize]="'small'"></nz-input-number>
                    <span> 分</span>
                  </td>
                </tr>
                <tr>
                  <td>基础</td>
                  <td>
                    <!-- <nz-input-number [(ngModel)]="demoValue" [nzMin]="1" [nzMax]="10" [nzStep]="1" [nzSize]="'small'"></nz-input-number> -->
                  </td>
                  <td>
                    <nz-input-number [(ngModel)]="integralDetailedRulesData[1].basicsScore" [nzMin]="0" [nzMax]="10000"
                      [nzStep]="1" [nzSize]="'small'" (ngModelChange)='Change1(integralDetailedRulesData[1])'>
                    </nz-input-number>
                  </td>
                  <td>
                    <div class="lin">
                    </div>
                  </td>
                  <td></td>
                  <td></td>
                </tr>
                <tr>
                  <td>多个科室追加分</td>
                  <td>
                    <!-- <nz-input-number [(ngModel)]="demoValue" [nzMin]="1" [nzMax]="10" [nzStep]="1" [nzSize]="'small'"></nz-input-number> -->
                  </td>
                  <td>
                    <nz-input-number [(ngModel)]="integralDetailedRulesData[1].deptsScore" [nzMin]="0" [nzMax]="10000"
                      [nzStep]="1" [nzSize]="'small'" (ngModelChange)='Change1(integralDetailedRulesData[1])'>
                    </nz-input-number>
                  </td>
                  <td>
                    <div class="lin">
                    </div>
                  </td>
                  <td></td>
                  <td></td>
                </tr>
                <tr>
                  <td>总计</td>
                  <td>
                    <nz-input-number [(ngModel)]="integralDetailedRulesData[1].sumTime" [nzMin]="0" [nzMax]="10000"
                      [nzStep]="1" [nzSize]="'small'" [nzDisabled]=true></nz-input-number>
                  </td>
                  <td>
                    <nz-input-number [(ngModel)]="integralDetailedRulesData[1].sumScore" [nzMin]="0" [nzMax]="10000"
                      [nzStep]="1" [nzSize]="'small'" [nzDisabled]=true></nz-input-number>
                  </td>
                  <td></td>
                  <td></td>
                  <td></td>
                </tr>
              </tbody>
            </nz-table>
          </div>
        </div>
      </div>
      <!-- 运送过程 -->
      <div *ngIf="tabModalName=='ysgc'" class="ysgcItem">
        <div class="ysgc_top">
          <div class="title">
            <span>{{hosName}}--{{allTaskTypeShow}}流程</span>
          </div>
          <div class="process">
            <div *ngFor="let data of carryingCourses; let i =index" (click)="onIndexChange(i)" class="carrItem"
              [ngStyle]="{'width':carryingCourses.length == 2 ? '45%' : '30%' }" [ngClass]="{'carrItems':indexs==i}">
              <div class="carrItem_icon" [ngClass]="{'carrItems':indexs==i}">
                <i nz-icon nzType="check" nzTheme="outline"></i>
              </div>
              <div>{{data.name}}</div>
            </div>
          </div>
        </div>
        <div class="ysgc_cont">
          <nz-form-label class="label" nzRequired>名称</nz-form-label>
          <input nz-input class="mb8 w100" [(ngModel)]="carryingCourses[indexs].name" placeholder="请选择科室名称" nzSize="" />
          <nz-form-label class="label" nzRequired>默认科室</nz-form-label>
          <span class="red" *ngIf="(carryingCourses[indexs]?.nodeId?.value == 'finish') && currentChoice?.associationType?.value == 'patientTransport'">（苏醒科室只支持固定科室或固定科室范围）</span>
          <nz-select class="mb8 w100" nzShowSearch nzAllowClear nzPlaceHolder="请选择默认科室"
            [ngModel]="departmentStrategy.idv" (ngModelChange)="depa(departmentStrategy,$event,'clear')"
            [nzLoading]="yLoading">
            <nz-option nzLabel="{{data.name}}" nzValue="{{data.id+'__'+data.value}}" *ngFor="let data of departmentData"></nz-option>
          </nz-select>
          <div *ngIf="depaShow1">
            <nz-form-label class="label" nzRequired>固定科室范围</nz-form-label>
            <div class="item_type_cont">
              <div>
                <div class="item_type_cont_L" *ngIf='carryingCourses[indexs].departmentDTOS'>
                  <div *ngFor='let data of carryingCourses[indexs].departmentDTOS'>
                    <span>{{data.dept}}</span>
                  </div>
                </div>
                <div class="item_type_cont_L" *ngIf='!carryingCourses[indexs].departmentDTOS'>

                </div>
                <div class="item_type_cont_R" (click)="adddepartment()">
                  <i nz-icon nzType="search" nzTheme="outline" class="icon_btn"></i>
                  <span class="icon_text">搜索</span>
                </div>
              </div>
            </div>
          </div>
          <div *ngIf="depaShow">
            <nz-form-label class="label" nzRequired>固定科室</nz-form-label>
            <nz-select class="mb8 w100" [nzDropdownMatchSelectWidth]="false" nzShowSearch nzAllowClear
              nzPlaceHolder="请选择固定科室" nzServerSearch (nzOnSearch)="changeInp($event)"
              (nzOpenChange)="changeFormEnd($event)" [(ngModel)]="departmentIds">
              <ng-container *ngFor="let data of courseListDataAll">
                <nz-option *ngIf="!loading1" nzLabel="{{data.dept}}" nzValue="{{data.id}}"></nz-option>
              </ng-container>
              <nz-option *ngIf="loading1" nzDisabled nzCustomContent>
                <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
              </nz-option>
            </nz-select>
          </div>
          <div *ngIf="depaShow4">
            <nz-form-label class="label" nzRequired>固定科室类型</nz-form-label>
            <nz-select class="mb8 w100" nzShowSearch nzAllowClear nzPlaceHolder="请选择固定科室类型"
              [(ngModel)]="departmentTypeIds">
              <nz-option nzLabel="{{data.name}}" nzValue="{{data.id}}" *ngFor="let data of courseTypeListDataAll">
              </nz-option>
            </nz-select>
          </div>
          <ng-container *ngIf="currentChoice.associationType.value != 'ordinary'">
            <nz-form-label class="label" nzRequired>检验方式</nz-form-label>
            <nz-select class="mb8 w100" nzShowSearch nzAllowClear nzPlaceHolder="请选择检验方式" [(ngModel)]="checkoutMethod.id"
              [nzLoading]="yLoading">
              <nz-option nzLabel="{{data.name}}" nzValue="{{data.id}}" *ngFor="let data of checkoutData"></nz-option>
            </nz-select>
          </ng-container>
          <!-- 是否必填交接人信息 -->
          <div class="turnoff">
            <label nz-checkbox [(ngModel)]="carryingCourses[indexs].handoverSwitch">是否必填交接人信息</label>
          </div>
					<!-- 是否支持多院区 -->
					<div class="turnoff" *ngIf="multipleShow">
					  <label nz-checkbox [(ngModel)]="carryingCourses[indexs].multipleHospital">是否支持多院区</label>
					</div>
          <!-- 是否支持拍照签到 -->
          <div class="turnoff" *ngIf="currentChoice.associationType.value == 'other'&&indexs==0">
            <label nz-checkbox [nzDisabled]="carryingCourses[indexs].actionsSwitch == 1" [(ngModel)]="carryingCourses[indexs].photoSwitch">是否支持拍照签到</label>
          </div>
          <!-- 是否支持多动作签到 -->
          <div class="turnoff" *ngIf="currentChoice.associationType.value == 'other'">
            <label nz-checkbox [nzDisabled]="indexs==0 && carryingCourses[indexs].photoSwitch == 1" [(ngModel)]="carryingCourses[indexs].actionsSwitch" (ngModelChange)="changeActionsSwitch($event)">是否支持多动作签到</label>
          </div>
          <!-- 确认动作 -->
          <div class="turnoff" *ngIf="carryingCourses[indexs].actionsSwitch">
            <label nz-checkbox [(ngModel)]="carryingCourses[indexs].actionConfirmSwitch" (ngModelChange)="changeActionConfirmSwitch($event)">确认动作</label>
            <ng-container *ngIf="carryingCourses[indexs].actionConfirmSwitch">
              <button nz-button nzType="dashed" (click)="addActions()" *ngIf="!carryingCourses[indexs].actionRemarks">
                <i nz-icon nzType="plus"></i>
                添加动作
              </button>
              <span class="mr8" *ngIf="carryingCourses[indexs].actionRemarks">{{carryingCourses[indexs].actionRemarks.split('$').join(',')}}</span>
              <button *ngIf="carryingCourses[indexs].actionRemarks" nz-button nzType="dashed" (click)="editActions()">
                <i nz-icon nzType="plus"></i>
                编辑动作
              </button>
            </ng-container>
          </div>
          <!-- 确认动作类型 -->
          <div class="turnoff" *ngIf="carryingCourses[indexs].actionConfirmSwitch">
            <nz-form-label class="label" nzRequired>确认动作模式</nz-form-label>
            <nz-radio-group [(ngModel)]="carryingCourses[indexs].actionConfirmType">
              <label nz-radio [nzValue]="1">多选必全选</label>
              <label nz-radio [nzValue]="2">多选至少一项</label>
              <label nz-radio [nzValue]="3">单选</label>
            </nz-radio-group>
          </div>
          <!-- 拍照动作 -->
          <div class="turnoff" *ngIf="carryingCourses[indexs].actionsSwitch">
            <label nz-checkbox [(ngModel)]="carryingCourses[indexs].actionPhotoSwitch">拍照动作</label>
          </div>
					<!-- 数字交接 -->
					<div class="turnoff" *ngIf="carryingCourses[indexs].actionsSwitch && association.value == 'other' && indexs == 0">
					  <label nz-checkbox [(ngModel)]="carryingCourses[indexs].digitalHandover">数字交接</label>
					</div>
          <!-- 运送过程备注 -->
          <div class="mb8 w100" *ngIf="currentChoice.associationType.value == 'other' && indexs==1">
            <label nz-checkbox [(ngModel)]="carryingCourses[indexs].logSwitch" (ngModelChange)="changeLogSwitch($event)">是否开通备注填写</label>
          </div>
          <div class="mb8 w100" *ngIf="carryingCourses[indexs].logSwitch == 1">
            <nz-form-label class="label">备注信息提示用语</nz-form-label>
            <input nz-input class="handlerType" [(ngModel)]="carryingCourses[indexs].logPrompts" placeholder="请填写备注信息提示用语" nzSize="default" />
          </div>
          <div class="mb8 w100" *ngIf="carryingCourses[indexs].logSwitch == 1">
            <nz-form-label class="label">备注快捷输入</nz-form-label>
            <button nz-button nzType="dashed" (click)="addLogRemarks()" *ngIf="!carryingCourses[indexs].logRemarks">
              <i nz-icon nzType="plus"></i>
              添加
            </button>
            <span class="mr8" *ngIf="carryingCourses[indexs].logRemarks">{{carryingCourses[indexs].logRemarks.split('$').join(',')}}</span>
            <button *ngIf="carryingCourses[indexs].logRemarks" nz-button nzType="dashed" (click)="editLogRemarks()">
              <i nz-icon nzType="plus"></i>
              编辑
            </button>
          </div>
          <!-- 静配自动建单 -->
          <div class="turnoff" *ngIf="currentChoice.associationType.value == 'jPBag'&&indexs==0">
            <label nz-checkbox [(ngModel)]="bagOrderSwitch">根据对接数据自动建单</label>
          </div>
          <!-- 药品自动建单 -->
          <div class="turnoff" *ngIf="currentChoice.associationType.value == 'drugsBag'&&indexs==0">
            <label nz-checkbox [(ngModel)]="bagOrderSwitch">根据对接数据自动建单</label>
          </div>
          <div *ngIf="depaShow3">
            <!-- 标本配送才有自动建单，重要！ -->
            <!-- <div class="red">自动建单需配置检验科室的工作时间；任务类型的开通科室；关联班次的时间区间；配置是否急标；配置标本类型；</div>
            <nz-form-label class="label">自动建单</nz-form-label>
            <div class="item_type_cont">
              <div>
                <div class="item_type_cont_L" *ngIf='association.value=="jPBag"||association.value=="drugsBag"'>
                  <div *ngFor='let data of createRuleConfiguration'>
                    <p *ngIf='data.flag=="0"'>{{data.name}} : 自动建单</p>
                    <p *ngIf='data.flag=="1"'>{{data.name}} : 手动建单</p>
                  </div>
                </div>
                <div class="item_type_cont_L" *ngIf='association.value=="inspect"'>
                  <div *ngFor='let data of createRuleConfiguration'>
                    {{data.name}}
                    <span *ngIf="data.urgentFlag"> : 急查---- &nbsp;
                      <span *ngFor='let list of data.urgentTypeIds'>{{list.name}}</span>&nbsp;&nbsp;
                    </span>&nbsp;&nbsp;
                    <span *ngIf="data.ordinaryFlag"> : 普查---- &nbsp;
                      <span *ngFor='let list of data.ordinaryTypeIds'>{{list.name}}</span>&nbsp;&nbsp;
                    </span>

                  </div>
                </div>
                <div class="item_type_cont_L" *ngIf='association.value=="specimen"'>
                  <div *ngFor='let data of createRuleConfiguration'>
                    <span *ngIf="data.flag == 1">
                      {{data.className}}
                      <span *ngIf='data.urgentFlag'> : 急查---- &nbsp;
                        <span *ngFor='let list of data.urgentTypeIds'>{{list.name}}&nbsp;</span>
                      </span>&nbsp;&nbsp;
                      <span *ngIf='data.ordinaryFlag'> 普查---- &nbsp;
                        <span *ngFor='let list of data.ordinaryTypeIds'>{{list.name}}&nbsp;</span>
                      </span>
                    </span>
                  </div>
                </div>
                <div class="item_type_cont_R" (click)="addIncident()">
                  <i nz-icon nzType="setting" nzTheme="outline" class="icon_btn"></i>
                  <span class="icon_text">设置</span>
                </div>
              </div>
            </div> -->
            <nz-form-label class="label">自动(手动)建单追加终点科室</nz-form-label>
            <nz-select class="mb8 w100" nzMode="multiple" nzPlaceHolder="请选择科室" nzAllowClear nzShowSearch nzServerSearch
              [(ngModel)]="addEndDeptIds" (nzOnSearch)="onSearch($event)">
              <ng-container *ngFor="let o of optionList">
                <nz-option *ngIf="!isLoading" [nzValue]="o.id" [nzLabel]="o.dept"></nz-option>
              </ng-container>
              <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
                <i nz-icon nzType="loading" class="loading-icon"></i> 加载数据中...
              </nz-option>
            </nz-select>
            <div class="turnoff" *ngIf="addEndDeptIds.length"><label nz-checkbox
                [(ngModel)]="autoAddDeptSwitch">自动建单追加终点科室开关</label></div>
            <div class="turnoff" *ngIf="addEndDeptIds.length"><label nz-checkbox
                [(ngModel)]="handAddDeptSwitch">手动建单追加终点科室开关</label></div>
          </div>

        </div>
      </div>
      <!-- 开通科室 -->
      <div *ngIf="tabModalName=='ktks'" class="ktksItem">
        <div class="top">
          <div class="top_L">
            <div class="top_L_item">
              <span class="label">科室名称：</span>
              <input nz-input [(ngModel)]="deptName" placeholder="请选择科室名称" nzSize="default" />
            </div>
            <div class="top_L_item">
              <span class="label">科室编码：</span>
              <input nz-input [(ngModel)]="deptPcode" placeholder="请选择科室编码" nzSize="default" />
            </div>
            <div class="top_L_item">
              <span class="label">科室类型：</span>
              <nz-select nzShowSearch nzAllowClear nzPlaceHolder="请选择科室类型" [(ngModel)]="deptType">
                <nz-option nzLabel="{{data.name}}" nzValue="{{data.id}}" *ngFor="let data of courseData"></nz-option>
              </nz-select>
            </div>
          </div>
          <div class="top_R">
            <button class="btn default fr" (click)='search()'>搜索</button>
            <button class="btn default fr" (click)='reset()'>重置</button>
          </div>
        </div>
        <div class="ktksItemList">
          <div class="operate">
            <span>已选择
              <span class="num">{{ numberOfChecked||0 }} </span>个</span>
          </div>
          <div class="table">
            <nz-table #rowSelectionTable #headerTable [nzShowPagination]="false" [nzData]="courseListData"
              nzSize="middle" (nzCurrentPageDataChange)="currentPageDataChange($event)" [nzLoading]="loading2">
              <thead>
                <tr class="thead">
                  <th nzShowCheckbox [(nzChecked)]="isAllDisplayDataChecked" [nzIndeterminate]="isIndeterminate"
                    (nzCheckedChange)="checkAll($event)" style="width: 5%;"></th>
                  <th style="width: 25%;">科室名称</th>
                  <th style="width: 20%;">科室编码</th>
                  <th style="width: 25%;">科室类型</th>
                  <th style="width: 25%;">科室位置</th>
                </tr>
              </thead>
              <tbody>
                <tr *ngFor="let data of courseListData" (click)="selectedListData(data.id)">
                  <td nzShowCheckbox [(nzChecked)]="mapOfCheckedId[data.id]" [nzDisabled]="data.disabled"
                    (nzCheckedChange)="refreshStatus()" style="width: 5%;"></td>
                  <td style="width: 25%;">{{ data.dept||'无' }}</td>
                  <td style="width: 20%;">{{ data.pcode||'无' }}</td>
                  <td style="width: 25%;">{{ data.type?data.type.name:'无' }}</td>
                  <td style="width: 25%;">{{ data.building?data.building.buildingName:'-'
                    }}栋{{data.floor?data.floor.floorName:'-'}}层{{data.address}}</td>
                </tr>
              </tbody>
            </nz-table>
          </div>
          <div class="pagination">
            <nz-pagination class="page" [(nzPageIndex)]="pageIndex" [(nzTotal)]="listLength"
              [nzPageSizeOptions]="[10,200]" nzShowSizeChanger [(nzPageSize)]="pageSize"
              (nzPageIndexChange)="getList1()" (nzPageSizeChange)="getList1()">
            </nz-pagination>
          </div>
        </div>
      </div>
      <div class="bottom">
        <button class="login-form-button" nzType="primary" [nzLoading]="loading5" nz-button (click)="submitForm()"
          *ngIf="coopBtns.edit">保存</button>
      </div>
    </div>
    <div class="list" *ngIf="taskTypeLoading||loading4">
      <div class="loadingFull display_flex justify-content_flex-center align-items_center">
        <div class="loadingFullInner">
          <img src="../../../assets/images/loading.gif" alt="">
          <div>加载中...</div>
        </div>
      </div>
    </div>
  </div>
</div>
<!-- 运送过程-
   详情模态框 -->
<div>
  <div class="newOrder1" *ngIf="transportShow">
    <div class="modalBody">
      <p class="title">{{transportTitle}}
        <i class="icon_transport transport-guanbi" (click)="newOrder1Cancel()"></i>
      </p>
      <div nz-row class="content">
        <div class="addItem" (click)='addItem()' *ngIf="scheduleClassChecked.length > 0">
          <i nz-icon nzType="plus-circle" nzTheme="outline"></i>
          增加
        </div>
        <div [ngClass]="{'fixHieght':true,'items1':createRuleConfiguration.length>=3}">
          <div class="Items" *ngFor="let data of createRuleConfiguration; let i =index">
            <div class="Items_cont">
              <div class="top">
                {{data.className}}
              </div>
              <div class="cont" *ngIf='association.value=="jPBag"||association.value=="drugsBag"'>
                <nz-form-label class="label" nz-col nzSpan="5" style="text-align: left;">药品</nz-form-label>
                <!-- <label style="line-height: 2.8" nz-checkbox [(ngModel)]="true">自动建单</label> -->
              </div>
              <div class="cont1" *ngIf='association.value=="specimen"'>
                <!-- 急查 -->
                <div class="item_types">
                  <div class="item_title">
                    <nz-form-label class="label" nz-col nzSpan="5" style="text-align: left;">急查</nz-form-label>
                    <label style="line-height: 2.8" nz-checkbox
                      (ngModelChange)="changeFlag($event,data.classesId,'urgentFlag')"
                      [(ngModel)]="data.urgentFlag">自动建单</label>
                    <!-- 自动建单1 -->
                  </div>
                  <div class="item_type" *ngIf="data.urgentFlag">
                    <div class="item_type_top">
                      <div class="label1">自动标本类型</div>
                      <!-- <nz-checkbox-wrapper (nzOnChange)="log($event)" style="float: right;">
                        <div>
                          <div>
                            <label nz-checkbox nzValue="A">全部</label>
                          </div>
                        </div>
                      </nz-checkbox-wrapper> -->
                    </div>
                    <div class="item_type_cont">
                      <div>
                        <div class="item_type_cont_L">
                          <div class="item_yq" *ngFor='let list of data.urgentTypeIds; let i =index'>
                            <span>{{list.name}}</span>
                            <i nz-icon nzType="close-circle" nzTheme="outline"
                              (click)='remItem(list,i,"urgentTypeIds",data)'></i>
                          </div>
                        </div>
                        <div class="item_type_cont_R" *ngIf="data.specimenDataNowurgentTypeIds.length > 0"
                          (click)="specimen_ss(data,'urgentTypeIds',i)">
                          <i nz-icon nzType="search" nzTheme="outline" class="icon_btn"></i>
                          <span class="icon_text">搜索</span>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
                <!-- 普查 -->
                <div class="item_types">
                  <div class="item_title">
                    <nz-form-label class="label" nz-col nzSpan="5" style="text-align: left;">普查</nz-form-label>
                    <label style="line-height: 2.8" nz-checkbox
                      (ngModelChange)="changeFlag($event,data.classesId,'ordinaryFlag')"
                      [(ngModel)]="data.ordinaryFlag">自动建单</label>
                    <!-- 自动建单2 -->
                  </div>
                  <div class="item_type" *ngIf="data.ordinaryFlag">
                    <div class="item_type_top">
                      <div class="label1">自动标本类型</div>
                      <!-- <nz-checkbox-wrapper (nzOnChange)="log($event)" style="float: right;">
                        <div>
                          <div>
                            <label nz-checkbox nzValue="A">全部</label>
                          </div>
                        </div>
                      </nz-checkbox-wrapper> -->
                    </div>
                    <div class="item_type_cont">
                      <div>
                        <div class="item_type_cont_L">
                          <div class="item_yq" *ngFor='let list of data.ordinaryTypeIds; let i =index'>
                            <span>{{list.name}}</span>
                            <i nz-icon nzType="close-circle" nzTheme="outline"
                              (click)='remItem(list,i,"ordinaryTypeIds",data)'></i>
                          </div>
                        </div>
                        <div class="item_type_cont_R" *ngIf="data.specimenDataNowordinaryTypeIds.length > 0"
                          (click)="specimen_ss(data,'ordinaryTypeIds',i)">
                          <i nz-icon nzType="search" nzTheme="outline" class="icon_btn"></i>
                          <span class="icon_text">搜索</span>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
                <!-- 此班次内接收标本科室 -->
                <div class="item_types" *ngIf="data.ordinaryFlag||data.urgentFlag">
                  <div class="item_title">
                    <label style="line-height: 2.8" nz-checkbox
                      (ngModelChange)="changeFlag($event,data.classesId,'autoDeptLimit')"
                      [(ngModel)]="data.autoDeptLimit">此班次内接收标本科室</label>
                  </div>
                  <div class="item_type" *ngIf="data.autoDeptLimit">
                    <div class="item_type_cont">
                      <div>
                        <div class="item_type_cont_L">
                          <div class="item_yq" *ngFor='let list of data.limitDeptIds; let i =index'>
                            <span>{{list.dept}}</span>
                            <i nz-icon nzType="close-circle" nzTheme="outline"
                              (click)='remItem(list,i,"limitDeptIds",data)'></i>
                          </div>
                        </div>
                        <div class="item_type_cont_R" *ngIf="data.specimenDataNowlimitDeptIds.length > 0"
                          (click)="dept_ss(data,'limitDeptIds',i)">
                          <i nz-icon nzType="search" nzTheme="outline" class="icon_btn"></i>
                          <span class="icon_text">搜索</span>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
              <div class="cont2" *ngIf='association.value=="inspect"'>
                <div class="item_types">
                  <div class="item_title">
                    <nz-form-label class="label" nz-col nzSpan="24" style="text-align: left;">急查</nz-form-label>
                    <!-- <nz-checkbox-wrapper (nzOnChange)="log($event,data)" nz-col nzSpan="18" style="line-height: 2.8;">
                      <div nz-row>
                        <div nz-col nzSpan="12">
                          <label nz-checkbox nzValue="A" [ngModel]="true">自动建单</label>
                        </div>
                      </div>
                    </nz-checkbox-wrapper> -->
                  </div>
                  <div class="item_level">
                    <nz-form-label class="label" nz-col nzSpan="6" style="text-align: left;">患者护理级别</nz-form-label>
                    <nz-checkbox-wrapper (nzOnChange)="log2($event,data,i)" nz-col nzSpan="17"
                      style="line-height: 2.8;">
                      <div nz-row>
                        <div nz-col nzSpan="8" *ngFor='let list of data.levelData1'>
                          <label nz-checkbox nzValue={{list.id}} [ngModel]='list.checked'>{{list.name}}</label>
                        </div>
                      </div>
                    </nz-checkbox-wrapper>
                  </div>
                </div>
                <div class="item_types">
                  <div class="item_title">
                    <nz-form-label class="label" nz-col nzSpan="24" style="text-align: left;">普查</nz-form-label>
                    <!-- <nz-checkbox-wrapper (nzOnChange)="log($event)" nz-col nzSpan="18" style="line-height: 2.8;">
                      <div nz-row>
                        <div nz-col nzSpan="12">
                          <label nz-checkbox nzValue='A' [ngModel]="true">自动建单</label>
                        </div>
                      </div>
                    </nz-checkbox-wrapper> -->
                  </div>
                  <div class="item_level">
                    <nz-form-label class="label" nz-col nzSpan="6" style="text-align: left;">患者护理级别</nz-form-label>
                    <nz-checkbox-wrapper (nzOnChange)="log3($event,data,i)" nz-col nzSpan="17"
                      style="line-height: 2.8;">
                      <div nz-row>
                        <div nz-col nzSpan="8" *ngFor='let list of data.levelData2'>
                          <label nz-checkbox nzValue={{list.id}} [ngModel]='list.checked'>{{list.name}}</label>
                        </div>
                      </div>
                    </nz-checkbox-wrapper>
                  </div>
                </div>
              </div>
            </div>
            <div class="Items_bott">
              <div class="stop" (click)="item_stop(i)"
                *ngIf="createRuleConfiguration[i].flag == 1&&(data.ordinaryFlag||data.urgentFlag)">
                停用
              </div>
              <div class="start" (click)="item_start(i)"
                *ngIf="createRuleConfiguration[i].flag == 0&&(data.ordinaryFlag||data.urgentFlag)">
                启用
              </div>
              <div class="delete" (click)="item_delete(i)"
                *ngIf="createRuleConfiguration[i].flag == 0||(!data.ordinaryFlag&&!data.urgentFlag)">
                删除
              </div>
            </div>
          </div>
        </div>

      </div>
      <div class="btns">
        <button *ngIf="coopBtns.edit" nz-button nzType="primary" (click)="newOrderOk1()">保存</button>
        <button class="btn cancel" nz-button nzType="default" (click)="hideModal()">取消</button>
      </div>
    </div>
  </div>
</div>
<!-- 班次选择模态框 -->
<div>
  <div class="newOrder1" *ngIf="ClassChecked">
    <div class="modalBody">
      <p class="title">新建自动建单班次
        <i class="icon_transport transport-guanbi" (click)="newOrderCancel2()"></i>
      </p>
      <div nz-row class="content">
        <div>
          <nz-form-label class="label" nzRequired>班次</nz-form-label>
          <nz-select class="mb8 w100" nzShowSearch nzAllowClear nzPlaceHolder="请选择班次" [(ngModel)]="classChecked">
            <nz-option nzLabel="{{data.name}}" nzValue="{{data.id}}" *ngFor="let data of scheduleClassChecked">
            </nz-option>
          </nz-select>
        </div>
      </div>
      <div class="btns">
        <button nz-button nzType="primary" (click)="newOrderOk2()">确认</button>
        <button class="btn cancel" nz-button nzType="default" (click)="hideModal2()">取消</button>
      </div>
    </div>
  </div>
</div>
<!-- 标本选择模态框 -->
<div>
  <div class="newOrder1" *ngIf="specimen_types">
    <div class="modalBody">
      <p class="title">标本选择
        <i class="icon_transport transport-guanbi" (click)="hideModal3('specimen_types')"></i>
      </p>
      <div nz-row class="content">
        <div>
          <nz-form-label class="label" nzRequired>标本</nz-form-label>
          <nz-select class="mb8 w100" nzMode="multiple" nzShowSearch nzAllowClear nzPlaceHolder="请选择标本"
            [(ngModel)]="specimens" [nzMaxMultipleCount]="9999">
            <nz-option nzLabel="{{data.name}}" nzValue="{{data.id}}"
              *ngFor="let data of createRuleConfiguration[specimen_index]['specimenDataNow'+specimenList]"></nz-option>
          </nz-select>
        </div>
      </div>
      <div class="btns">
        <button nz-button nzType="primary" (click)="newOrderOk3()">确认</button>
        <button class="btn cancel" nz-button nzType="default" (click)="hideModal3('specimen_types')">取消</button>
      </div>
    </div>
  </div>
</div>
<!-- 急查或普查限制的科室选择模态框 -->
<div>
  <div class="newOrder1" *ngIf="dept_types">
    <div class="modalBody">
      <p class="title">科室选择
        <i class="icon_transport transport-guanbi" (click)="hideModal3('dept_types')"></i>
      </p>
      <div nz-row class="content">
        <div>
          <nz-form-label class="label" nzRequired>科室</nz-form-label>
          <nz-select class="mb8 w100" nzMode="multiple" nzShowSearch nzAllowClear nzPlaceHolder="请选择科室"
            [(ngModel)]="dps" [nzMaxMultipleCount]="9999">
            <nz-option nzLabel="{{data.dept}}" nzValue="{{data.id}}"
              *ngFor="let data of createRuleConfiguration[dept_index]['specimenDataNow'+deptList]"></nz-option>
          </nz-select>
        </div>
      </div>
      <div class="btns">
        <button nz-button nzType="primary" (click)="newOrderOk31()">确认</button>
        <button class="btn cancel" nz-button nzType="default" (click)="hideModal3('dept_types')">取消</button>
      </div>
    </div>
  </div>
</div>
<!-- 固定科室范围选择模态框 -->
<div>
  <div class="newOrder1" *ngIf="departmenShow">
    <div class="modalBody">
      <p class="title">固定科室选择
        <i class="icon_transport transport-guanbi" (click)="newOrderCancel4()"></i>
      </p>
      <div nz-row class="content">
        <div>
          <nz-form-label class="label" nzRequired>固定科室</nz-form-label>
          <nz-select class="mb8 w100" [nzMode]="'multiple'" [nzDropdownMatchSelectWidth]="false" nzShowSearch
            nzAllowClear nzPlaceHolder="请选择固定科室" nzShowSearch

             [(ngModel)]="departments">
            <ng-container *ngFor="let data of courseListDataAll">
              <nz-option *ngIf="!loading1" [nzLabel]="data.dept" [nzValue]="data"></nz-option>
            </ng-container>
            <nz-option *ngIf="loading1" nzDisabled nzCustomContent>
              <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
            </nz-option>
          </nz-select>
        </div>
      </div>
      <div class="btns">
        <button nz-button nzType="primary" (click)="newOrderOk5()">确认</button>
        <button class="btn cancel" nz-button nzType="default" (click)="hideModal4()">取消</button>
      </div>
    </div>
  </div>
  <!-- 删除模态框 -->
  <app-dialog-delete [delModal]="delModal" (hideDelModalEvent)="hideDelModal()" [btnLoading]="btnLoading"
    (confirmDelEvent)="confirmDel()" content="您确认要删除此任务类型吗？" tips="会影响已绑定的工作分配和轮巡计划"></app-dialog-delete>
</div>

<!-- 操作成功/失败提示框 -->
<app-prompt-modal *ngIf="promptModalShow" [content]="promptContent" [success]="ifSuccess" [show]="promptModalShow"
  [info]="errorInfo"></app-prompt-modal>
<!-- 新增/编辑备注快捷输入模态框 -->
<div class="save display_flex justify-content_flex-center align-items_center add" *ngIf="quickRemarksModal">
  <div class="modalBody">
    <div class="title">{{quickRemarksAdd?"新增":"编辑"}}备注快捷输入<i class="icon_transport transport-guanbi"
        (click)="hideQuickRemarksModal()"></i>
    </div>
    <div class="content">
      <form nz-form [formGroup]="validateForm" class="addForm">
        <nz-form-item>
          <nz-form-label style="line-height: normal;" [nzSm]="6" [nzXs]="24" nzFor="quickRemarks">备注快捷输入</nz-form-label>
          <nz-form-control nzErrorTip="请输入备注快捷输入!">
            <nz-input-group>
              <input (ngModelChange)="qRemarksChange()" nz-input formControlName="quickRemarks"
                placeholder="请填写备注快捷输入" />
            </nz-input-group>
            <nz-input-group *ngFor="let quickRemark of quickRemarkses;let index = index" class="dynamic">
              <input nz-input [ngModel]="quickRemark.content" [ngModelOptions]="{standalone: true}"
                placeholder="请填写备注快捷输入" (ngModelChange)="qRemarksChange($event,quickRemark)" />
              <i nz-icon nzType="minus-circle-o" (click)="removeQRemarks(index, $event)"></i>
            </nz-input-group>
            <button nz-button nzType="dashed" [disabled]="isAddQRemarks" *ngIf="quickRemarkses.length < 4"
              class="add-button" (click)="addQRemarks($event)">
              <i nz-icon nzType="plus"></i>
              添加备注快捷输入
            </button>
          </nz-form-control>
        </nz-form-item>
      </form>
    </div>
    <div class=" display_flex justify-content_flex-center">
      <button nzType="primary" nz-button (click)="submitFormQuickRemarks()">保存</button>
      <button class="btn cancel" nz-button nzType="default" (click)="hideQuickRemarksModal()">取消</button>
    </div>
  </div>
</div>

<!-- 新增/编辑运输过程------备注快捷输入模态框 -->
<div class="save display_flex justify-content_flex-center align-items_center add" *ngIf="logRemarksModal">
  <div class="modalBody">
    <div class="title">{{logRemarksAdd?"新增":"编辑"}}备注快捷输入<i class="icon_transport transport-guanbi"
        (click)="hideLogRemarksModal()"></i>
    </div>
    <div class="content">
      <form nz-form [formGroup]="validateLogRemarksForm" class="addForm">
        <nz-form-item>
          <nz-form-label style="line-height: normal;" [nzSm]="6" [nzXs]="24" nzFor="logRemarks">备注快捷输入</nz-form-label>
          <nz-form-control nzErrorTip="请输入备注快捷输入!">
            <nz-input-group>
              <input (ngModelChange)="lRemarksChange()" nz-input formControlName="logRemarks"
                placeholder="请填写备注快捷输入" />
            </nz-input-group>
            <nz-input-group *ngFor="let logRemark of logRemarkses;let index = index" class="dynamic">
              <input nz-input [ngModel]="logRemark.content" [ngModelOptions]="{standalone: true}"
                placeholder="请填写备注快捷输入" (ngModelChange)="lRemarksChange($event,logRemark)" />
              <i nz-icon nzType="minus-circle-o" (click)="removeLRemarks(index, $event)"></i>
            </nz-input-group>
            <button nz-button nzType="dashed" [disabled]="isAddLRemarks" *ngIf="logRemarkses.length < 4"
              class="add-button" (click)="addLRemarks($event)">
              <i nz-icon nzType="plus"></i>
              添加备注快捷输入
            </button>
          </nz-form-control>
        </nz-form-item>
      </form>
    </div>
    <div class=" display_flex justify-content_flex-center">
      <button nzType="primary" nz-button (click)="submitFormLogRemarks()">保存</button>
      <button class="btn cancel" nz-button nzType="default" (click)="hideLogRemarksModal()">取消</button>
    </div>
  </div>
</div>

<!-- 新增/编辑动作模态框 -->
<div class="save display_flex justify-content_flex-center align-items_center add" *ngIf="actionsModal">
  <div class="modalBody">
    <div class="title">{{actionsAdd?"新增":"编辑"}}动作<i class="icon_transport transport-guanbi"
        (click)="hideActionsModal()"></i>
    </div>
    <div class="content">
      <form nz-form [formGroup]="validateActionForm" class="addForm">
        <nz-form-item>
          <nz-form-label style="line-height: normal;" [nzSm]="6" [nzXs]="24" nzFor="actions">动作</nz-form-label>
          <nz-form-control nzErrorTip="请输入动作!">
            <nz-input-group>
              <input (ngModelChange)="actionsChange()" nz-input formControlName="actions"
                placeholder="请填写动作" />
            </nz-input-group>
            <nz-input-group *ngFor="let action of actionses;let index = index" class="dynamic">
              <input nz-input [ngModel]="action.content" [ngModelOptions]="{standalone: true}"
                placeholder="请填写动作" (ngModelChange)="actionsChange($event,action)" />
              <i nz-icon nzType="minus-circle-o" (click)="removeActions(index, $event)"></i>
            </nz-input-group>
            <button nz-button nzType="dashed" [disabled]="isAddActions" *ngIf="actionses.length < 9"
              class="add-button" (click)="addAction($event)">
              <i nz-icon nzType="plus"></i>
              添加动作
            </button>
          </nz-form-control>
        </nz-form-item>
      </form>
    </div>
    <div class=" display_flex justify-content_flex-center">
      <button nzType="primary" nz-button (click)="submitFormActions()">保存</button>
      <button class="btn cancel" nz-button nzType="default" (click)="hideActionsModal()">取消</button>
    </div>
  </div>
</div>

<!-- 拾色器 -->
<div class="save display_flex justify-content_flex-center align-items_center add" *ngIf="colorShow">
  <div class="modalBody">
    <div class="title">选取颜色<i class="icon_transport transport-guanbi"
        (click)="hideColorModal()"></i>
    </div>
    <div class="content">
     <color-sketch [color]="colorConfig" (onChange)="handleChange($event)"></color-sketch>
    </div>
    <div class=" display_flex justify-content_flex-center">
      <button nzType="primary" nz-button (click)="submitFormColor()">确定</button>
      <button class="btn cancel" nz-button nzType="default" (click)="hideColorModal()">取消</button>
    </div>
  </div>
</div>
