<div class="save add display_flex align-items_center justify-content_flex-center">
  <div class="modalBody">
    <div class="title">更多搜索<i class="icon_transport transport-guanbi" (click)="hideModal()"></i>
    </div>
    <div class="content">
      <form nz-form [formGroup]="validateForm" class="addForm">
        <nz-form-item [hidden]="!fieldConfig.config.group">
          <nz-form-label [nzSpan]="6" nzFor="groupId">分<span style="visibility: hidden;">囧囧</span>组</nz-form-label>
          <nz-form-control [nzSpan]="17" nzErrorTip="请选择分组!">
            <nz-select [nzDropdownMatchSelectWidth]="false" nzAllowClear nzServerSearch nzShowSearch (nzOnSearch)="changeGroupInp($event)" formControlName="groupId" nzPlaceHolder="请选择分组" (nzOpenChange)="openChangeGroup($event)" (ngModelChange)="changeGroup($event)">
              <ng-container *ngFor="let option of groupList">
                <nz-option *ngIf="!isLoading" [nzLabel]="option.groupName" [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 [hidden]="!fieldConfig.config.groupAndUser">
          <nz-form-label [nzSpan]="6" nzFor="groupId">分<span style="visibility: hidden;">囧囧</span>组</nz-form-label>
          <nz-form-control [nzSpan]="17" nzErrorTip="请选择分组!">
            <nz-select [nzDropdownMatchSelectWidth]="false" nzAllowClear nzServerSearch nzShowSearch (nzOnSearch)="changeGroupInp($event)" formControlName="groupId" nzPlaceHolder="请选择分组" (nzOpenChange)="openChangeGroup($event)" (ngModelChange)="changeGroup($event)">
              <ng-container *ngFor="let option of groupList">
                <nz-option *ngIf="!isLoading" [nzLabel]="option.groupName" [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 [hidden]="!fieldConfig.config.groupAndUser">
          <nz-form-label [nzSpan]="6" nzFor="userId">人<span style="visibility: hidden;">囧囧</span>员</nz-form-label>
          <nz-form-control [nzSpan]="17" nzErrorTip="请选择人员!">
            <nz-select [nzDropdownMatchSelectWidth]="false" nzAllowClear nzServerSearch nzShowSearch (nzOnSearch)="changeUserInp($event)" formControlName="userId" nzPlaceHolder="请选择人员" (nzOpenChange)="openChangeUser($event)" (ngModelChange)="setIsSelecting(true)">
              <ng-container *ngFor="let option of userList">
                <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-item>

        <nz-form-item [hidden]="!fieldConfig.config.statisticsType">
          <nz-form-label [nzSpan]="6" nzFor="statisticsTypeId">统计分类</nz-form-label>
          <nz-form-control [nzSpan]="17" nzErrorTip="请选择统计分类!">
            <nz-select [nzDropdownMatchSelectWidth]="false" nzAllowClear formControlName="statisticsTypeId" nzPlaceHolder="请选择统计分类">
              <ng-container *ngFor="let option of statisticsTypeList">
                <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-item>

        <nz-form-item [hidden]="!fieldConfig.config.taskType">
          <nz-form-label [nzSpan]="6" nzFor="taskTypeId">任务类型</nz-form-label>
          <nz-form-control [nzSpan]="17" nzErrorTip="请选择任务类型!">
            <nz-select [nzDropdownMatchSelectWidth]="false" nzAllowClear nzServerSearch nzShowSearch (nzOnSearch)="changeTaskTypeInp($event)" formControlName="taskTypeId" nzPlaceHolder="请选择任务类型" (nzOpenChange)="openChangeTaskType($event)" (ngModelChange)="setIsSelecting(true)">
              <ng-container *ngFor="let option of taskTypeList">
                <nz-option *ngIf="!isLoading" [nzLabel]="option.hosId.hosName + '-' + 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>
          </nz-form-control>
        </nz-form-item>

        <nz-form-item [hidden]="!fieldConfig.config.building">
          <nz-form-label [nzSpan]="6" nzFor="buildingId">楼<span style="visibility: hidden;">囧囧</span>栋</nz-form-label>
          <nz-form-control [nzSpan]="17" nzErrorTip="请选择楼栋!">
            <nz-select [nzDropdownMatchSelectWidth]="false" nzAllowClear nzServerSearch nzShowSearch (nzOnSearch)="changeBuildingInp($event)" formControlName="buildingId" nzPlaceHolder="请选择楼栋" (nzOpenChange)="openChangeBuilding($event)" (ngModelChange)="setIsSelecting(true)">
              <ng-container *ngFor="let option of buildingList">
                <nz-option *ngIf="!isLoading" [nzLabel]="option.hosName + '-' + option.buildingName" [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 [hidden]="!fieldConfig.config.dept">
          <nz-form-label [nzSpan]="6" nzFor="deptId">科<span style="visibility: hidden;">囧囧</span>室</nz-form-label>
          <nz-form-control [nzSpan]="17" nzErrorTip="请选择科室!">
            <nz-select [nzDropdownMatchSelectWidth]="false" nzAllowClear nzServerSearch nzShowSearch (nzOnSearch)="changeRepairDeptInp($event)" formControlName="deptId" nzPlaceHolder="请选择科室" (nzOpenChange)="openChangeRepairDept($event)" (ngModelChange)="setIsSelecting(true)">
              <ng-container *ngFor="let option of deptList">
                <nz-option *ngIf="!isLoading" [nzLabel]="option.hospital.hosName + '-' + 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>
          </nz-form-control>
        </nz-form-item>
				
				<nz-form-item [hidden]="!fieldConfig.config.source">
				  <nz-form-label [nzSpan]="6" nzFor="sourceId">来<span style="visibility: hidden;">囧囧</span>源</nz-form-label>
				  <nz-form-control [nzSpan]="17" nzErrorTip="请选择来源!">
				    <nz-select [nzDropdownMatchSelectWidth]="false" nzAllowClear formControlName="sourceId" nzPlaceHolder="请选择来源">
				      <ng-container *ngFor="let option of sourceList">
				        <nz-option [nzLabel]="option.name " [nzValue]="option.sourceId"></nz-option>
				      </ng-container>
				    </nz-select>
				  </nz-form-control>
				</nz-form-item>
				
				<nz-form-item [hidden]="!fieldConfig.config.minute">
				  <nz-form-label [nzSpan]="6" nzFor="minuteClose">分钟内关单</nz-form-label>
				  <nz-form-control [nzSpan]="17" nzErrorTip="请输入分钟内关单!">
						<nz-input-number
							class="width-200"
							formControlName="minuteClose"
						 	[nzMin]="0"
							[nzPrecision]="0"
						 	[nzMax]="999999"
						 	[nzStep]="1"
						 	[nzPlaceHolder]="'请输入分钟内关单'"
						 ></nz-input-number>
					</nz-form-control>
				</nz-form-item>
				
				<nz-form-item [hidden]="!fieldConfig.config.special">
				  <nz-form-label [nzSpan]="6" nzFor="specialId">特殊关闭</nz-form-label>
				  <nz-form-control [nzSpan]="17" nzErrorTip="请选择特殊关闭!">
				    <nz-select [nzDropdownMatchSelectWidth]="false" nzAllowClear formControlName="specialId" nzPlaceHolder="请选择特殊关闭">
				      <ng-container *ngFor="let option of specialList">
				        <nz-option [nzLabel]="option.name" [nzValue]="option.id"></nz-option>
				      </ng-container>
				    </nz-select>
				  </nz-form-control>
				</nz-form-item>
				
			<!-- 	<nz-form-item [hidden]="!fieldConfig.config.overtime">
				  <nz-form-label [nzSpan]="6" nzFor="overtimeId">超时工单</nz-form-label>
				  <nz-form-control [nzSpan]="17" nzErrorTip="请选择超时工单!">
				    <nz-select [nzDropdownMatchSelectWidth]="false" nzAllowClear formControlName="overtimeId" nzPlaceHolder="请选择超时工单">
				      <ng-container *ngFor="let option of overtimeList">
				        <nz-option [nzLabel]="option.name" [nzValue]="option.id"></nz-option>
				      </ng-container>
				    </nz-select>
				  </nz-form-control>
				</nz-form-item> -->
				
			<!-- 	<nz-form-item [hidden]="!fieldConfig.config.abnormal">
				  <nz-form-label [nzSpan]="6" nzFor="abnormalId">异常工单</nz-form-label>
				  <nz-form-control [nzSpan]="17" nzErrorTip="请选择异常工单!">
				    <nz-select [nzDropdownMatchSelectWidth]="false" nzAllowClear formControlName="abnormalId" nzPlaceHolder="请选择异常工单">
				      <ng-container *ngFor="let option of abnormalList">
				        <nz-option [nzLabel]="option.name" [nzValue]="option.id"></nz-option>
				      </ng-container>
				    </nz-select>
				  </nz-form-control>
				</nz-form-item> -->
				
				<nz-form-item [hidden]="!fieldConfig.config.evaluate">
				  <nz-form-label [nzSpan]="6" nzFor="evaluateId">评<span style="visibility: hidden;">囧囧</span>价</nz-form-label>
				  <nz-form-control [nzSpan]="17" nzErrorTip="请选择评价!">
				    <nz-select [nzDropdownMatchSelectWidth]="false" nzAllowClear formControlName="evaluateId" nzPlaceHolder="请选择评价">
				      <ng-container *ngFor="let option of evaluateList">
				        <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-item>
				
				<nz-form-item [hidden]="!fieldConfig.config.executeUser">
				  <nz-form-label [nzSpan]="6" nzFor="executeUserId">执行人</nz-form-label>
				  <nz-form-control [nzSpan]="17" nzErrorTip="请选择人员!">
				    <nz-select [nzDropdownMatchSelectWidth]="false" nzAllowClear nzServerSearch nzShowSearch (nzOnSearch)="changeExecuteUserInp($event)" formControlName="executeUserId" nzPlaceHolder="请选择人员" (nzOpenChange)="openChangeExecuteUser($event)" (ngModelChange)="setIsSelecting(true)">
				      <ng-container *ngFor="let option of executeUserList">
				        <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-item>
				
				<nz-form-item [hidden]="!fieldConfig.config.timeFrame">
				  <nz-form-label [nzSpan]="6" nzFor="timeFrameId">时<span style="visibility: hidden;">囧囧</span>段</nz-form-label>
				  <nz-form-control [nzSpan]="17" nzErrorTip="请选择人员!">
				    <nz-select [nzDropdownMatchSelectWidth]="false" nzAllowClear nzShowSearch formControlName="timeFrameId" nzPlaceHolder="请选择时段">
				      <ng-container *ngFor="let option of timeFrameList">
				        <nz-option [nzLabel]="option.name" [nzValue]="option.id"></nz-option>
				      </ng-container>
				    </nz-select>
				  </nz-form-control>
				</nz-form-item>
				
				<nz-form-item [hidden]="!fieldConfig.config.code">
				  <nz-form-label [nzSpan]="6" nzFor="codeNum">单<span style="visibility: hidden;">囧囧</span>号</nz-form-label>
				  <nz-form-control [nzSpan]="17" nzErrorTip="请输入单号!">
				    <input class="width-200" type="text" placeHolder="请输入单号" nz-input formControlName="codeNum" />
				  </nz-form-control>
				</nz-form-item>
      </form>
    </div>
    <div class="display_flex justify-content_flex-center">
      <button nz-button nzType="default" (click)="hideModal()">取消</button>
      <button nzType="primary" nz-button (click)="submitForm()">确认</button>
    </div>
  </div>
</div>
