<div class="TaskTypeManagement">
  <div class="taskTypeInfo">
    <div class="top">
      <div class="item" (click)="tabModal('characteristics')" [ngClass]="{'items':tabModalName=='characteristics'}">
        特性配置
      </div>
      <div class="item" (click)="tabModal('automaticOrderCreation')" [ngClass]="{'items':tabModalName=='automaticOrderCreation'}">
        自动建单配置
      </div>
    </div>
    <div class="list" *ngIf="!loading">
      <!-- 特性配置 -->
      <div *ngIf="tabModalName=='characteristics'">
				<div class="display_flex align-items_center mb8">
					<nz-form-label class="label">是否引用父级院区数据</nz-form-label>
					<nz-checkbox-group [(ngModel)]="quoteParentData" (ngModelChange)="parentChange($event)"></nz-checkbox-group>
				</div>
       <!-- 任务类型 -->
       <div class="display_flex align-items_center mb8">
         <nz-form-label class="label" nzRequired>任务类型</nz-form-label>
         <nz-select class="w320px" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch
           (nzOnSearch)="changeTasktype($event)" nzPlaceHolder="请选择任务类型" [(ngModel)]="infusionSolutionsTypeId">
           <ng-container *ngFor="let option of taskTypes1">
             <nz-option *ngIf="!isLoading" [nzLabel]="option.taskName" [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 class="display_flex align-items_center mb8">
			   <nz-form-label class="label" nzRequired>默认发药科室</nz-form-label>
			   <nz-select class="w320px" [nzDropdownMatchSelectWidth]="false" (nzOnSearch)="changeInp($event)" nzServerSearch nzShowSearch nzPlaceHolder="请选择默发药科室" [(ngModel)]="pharmacyDept">
			     <ng-container *ngFor="let option of hospitals">
			       <nz-option *ngIf="!isLoading" [nzLabel]="option.dept" [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>
      <!-- 自动建单配置 -->
      <div *ngIf="tabModalName=='automaticOrderCreation'">
        <!-- 自动建单 -->
        <div class="display_flex align-items_center mb8">
          <nz-form-label class="label">自动建单</nz-form-label>
          <nz-checkbox-group [(ngModel)]="autoCreateOrders"></nz-checkbox-group>
        </div>
				<div class="display_flex align-items_center mb8" *ngIf="autoCreateOrders[0].checked">
					<nz-radio-group [(ngModel)]="radioValue">
						<label nz-radio nzValue="1">定时建单</label>
						<label nz-radio nzValue="2">打印并建单</label>
					</nz-radio-group>
					<nz-time-picker [(ngModel)]="executeTime" nzFormat="HH:mm" *ngIf="radioValue==1"></nz-time-picker>
				</div>
      </div>
      <div class="bottom">
        <button class="login-form-button" nzType="primary" [nzLoading]="btnLoading" nz-button (click)="submitForm()">保存</button>
      </div>
    </div>
    <div class="list" *ngIf="loading">
      <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>
