<div class="list-template">
  <div class="list-template__content">
    <div class="list-template__top" nz-row>
      <div nz-col nzXl="18" class="list-template__searchBox">
        <div class="list-template__searchItem">
          <span class="label">收取科室：</span>
          <nz-select
            [nzDropdownMatchSelectWidth]="false"
            class="formItem"
            nzServerSearch
            nzShowSearch
            nzAllowClear
            nzPlaceHolder="请选择收取科室"
            [(ngModel)]="searchCriteria.department"
            (nzOnSearch)="changeInp($event, 'search')"
            (nzOpenChange)="changeSearch($event)"
          >
            <ng-container *ngFor="let data of departmentSearch">
              <nz-option
                *ngIf="!isLoading"
                nzLabel="{{ data.dept }}"
                nzValue="{{ data.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="list-template__searchItem">
          <span class="label">终点科室：</span>
          <nz-select
            [nzDropdownMatchSelectWidth]="false"
            class="formItem"
            nzServerSearch
            nzShowSearch
            nzAllowClear
            nzPlaceHolder="请选择终点科室"
            [(ngModel)]="searchCriteria.checkDept"
            (nzOnSearch)="changeInp($event, 'search')"
            (nzOpenChange)="changeSearch($event)"
          >
            <ng-container *ngFor="let data of departmentSearch">
              <nz-option
                *ngIf="!isLoading"
                nzLabel="{{ data.dept }}"
                nzValue="{{ data.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="list-template__searchItem">
          <span class="label">标本编码：</span>
          <input
            nz-input
            class="formItem"
            placeholder="请输入标本编码"
            [(ngModel)]="searchCriteria.scode"
          />
        </div>
        <div class="list-template__searchItem">
          <span class="label">患者信息：</span>
          <input
            nz-input
            class="formItem"
            placeholder="请输入患者信息"
            [(ngModel)]="searchCriteria.parent"
          />
        </div>
        <div class="list-template__searchItem">
          <span class="label">状态：</span>
          <nz-select
            [nzDropdownMatchSelectWidth]="false"
            class="formItem"
            nzServerSearch
            nzShowSearch
            nzAllowClear
            nzPlaceHolder="请选择状态"
            [(ngModel)]="searchCriteria.speState"
            (nzOpenChange)="changeSearch1($event)"
          >
            <ng-container *ngFor="let data of types">
              <nz-option
                *ngIf="!isLoading1"
                nzLabel="{{ data.name }}"
                nzValue="{{ data.id }}"
              ></nz-option>
            </ng-container>
            <nz-option *ngIf="isLoading1" nzDisabled nzCustomContent>
              <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
            </nz-option>
          </nz-select>
        </div>
        <div class="list-template__searchItem">
          <span class="label">收取人：</span>
          <nz-select
            [nzDropdownMatchSelectWidth]="false"
            class="formItem"
            nzServerSearch
            nzShowSearch
            nzAllowClear
            nzPlaceHolder="请选择收取人："
            [(ngModel)]="searchCriteria.receiverName"
            (nzOnSearch)="changeInp2($event, 'search')"
            (nzOpenChange)="changeSearch2($event)"
          >
            <ng-container *ngFor="let data of userSearch">
              <nz-option
                *ngIf="!isLoading"
                nzLabel="{{ data.name }}"
                nzValue="{{ data.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="list-template__searchItem">
          <span class="label">收取时间：</span>
          <nz-range-picker nzShowTime [(ngModel)]="searchCriteria.dateRange" (nzOnCalendarChange)="onCalendarChangeDate($event)" (ngModelChange)="changeDate($event)"></nz-range-picker>
        </div>

      </div>
      <div nz-col nzXl="6" class="list-template__btns">
        <!-- <button
          nz-button
          class="btn default"
          (click)="showDelModal('您确认要清空标本吗？')"
          *ngIf="currentUserAccount == 'dsadmin'"
        >
          清空标本
        </button> -->
        <button nz-button class="btn default ml8" (click)="reset()">
          重置
        </button>
        <button nz-button class="btn default ml8" (click)="getList(1)">
          搜索
        </button>
				<button nz-button class="btn default ml8" (click)="addForm()">
				  新增
				</button>
				<button nz-button class="btn default ml8" (click)="autoCreate()">
				  自动生成
				</button>
      </div>
    </div>
    <div class="list-template__checkBoxes">
      <div><nz-checkbox-group [(ngModel)]="checkOptionsOne" (ngModelChange)="log(checkOptionsOne)"></nz-checkbox-group></div>
      <div>合计：{{listLength}}</div>
    </div>
    <div class="list-template__bottom">
      <nz-table
        class="list-template__nzTable"
        #headerTable
        [nzData]="listOfData"
        nzSize="middle"
        [nzShowPagination]="false"
        [nzLoading]="loading1"
      >
        <thead (nzSortChange)="sort($event)" nzSingleSort>
          <tr class="thead">
            <th nzWidth="4%">序号</th>
            <th>科室信息</th>
            <th nzWidth="7%">患者信息</th>
            <th>标本信息</th>
            <th>采集信息</th>
						<th>核收信息</th>
            <th nzWidth="8%">标本类型</th>
            <th nzWidth="7%">状态</th>
            <th nzShowSort nzSortKey="arrive_time" [(nzSort)]="sortCurrent.arrive_time">收取信息</th>
            <th nzWidth="8%">中转时间</th>
            <th>送达信息</th>
            <th nzWidth="12%">操作</th>
          </tr>
        </thead>
        <tbody>
          <tr *ngFor="let data of listOfData; let i = index">
            <td>{{i+(pageIndex-1) * pageSize + 1}}</td>
            <td>
							<div>{{ data.sickRoom ? data.sickRoom.dept : "-" }}</div>
							<div>{{ data.checkDept ? data.checkDept.dept : "-" }}</div>
						</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>
							<div>{{ data.collectNurseName || "-" }}</div>
							<div>{{ data.printDate || "-" }}</div>
						</td>
						<td> 
							<div>{{ data.checkCollectUserDTO ? data.checkCollectUserDTO.name : "" }}</div>
							<div>{{ data.checkCollectTime|date:'yyyy-MM-dd HH:mm:ss' || "" }}</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.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>
							<div>{{ data.delivererName || "-" }}</div>
							<div>{{ data.sendTime || '-' }}</div>
						</td>
            <td>
							<!-- <button (click)="viewSpecimenHistory(data)">查看</button> -->
							<div class="coop">
							  <span (click)="viewSpecimenHistory(data)">查看</span>
								<span *ngIf="coopBtns.collect && (data.speState.value==2 || data.speState.value==3)" (click)="collect($event,data)">设置核收</span>
								<span *ngIf="coopBtns.send && (data.speState.value==1 || data.speState.value==30)" (click)="send($event,data)">消息发送</span>
							</div>
						</td>
          </tr>
        </tbody>
      </nz-table>
      <div class="list-template__pagination">
        <nz-pagination
          [(nzPageIndex)]="pageIndex"
          [(nzTotal)]="listLength"
          [(nzPageSize)]="pageSize"
          (nzPageIndexChange)="getList(0, sortCurrentKey, sortCurrentValue)"
          (nzPageSizeChange)="getList(0, sortCurrentKey, sortCurrentValue)"
        >
        </nz-pagination>
      </div>
    </div>
  </div>
</div>
<!-- 清空标本模态框 -->
<app-dialog-delete
  [delModal]="delModal"
  (hideDelModalEvent)="hideDelModal()"
  [btnLoading]="btnLoading"
  (confirmDelEvent)="confirmDel()"
  [content]="tipsMsg1"
></app-dialog-delete>
<!-- 发送模态框 -->
<app-dialog-delete
  [delModal]="sendModal"
  (hideDelModalEvent)="hideSendModal()"
  [btnLoading]="btnLoading"
  (confirmDelEvent)="confirmSend()"
  [content]="tipsMsg2"
></app-dialog-delete>
<!-- 标本历史记录查看 -->
<app-history-prompt-modal
  *ngIf="historyPromptModalShow"
  [show]="historyPromptModalShow"
  [scode]="scode"
  (closeModelHs)="closeModelHistory($event)"
></app-history-prompt-modal>
<!-- 操作成功/失败提示框 -->
<app-prompt-modal
  *ngIf="promptModalShow"
  [content]="promptContent"
  [success]="ifSuccess"
  [show]="promptModalShow"
  [info]="promptInfo"
>
</app-prompt-modal>

<!-- 新增/编辑模态框 -->
<div class="save add display_flex align-items_center justify-content_flex-center" *ngIf="addModal">
  <div class="modalBody">
    <div class="title">{{add?"新增":view?"查看":"编辑"}}<i class="icon_transport transport-guanbi" (click)="hideModal()"></i>
    </div>
    <div class="content">
      <form nz-form [formGroup]="validateForm" class="addForm" (ngSubmit)="submitForm()">
				<div class="df">
					<nz-form-item>
						<nz-form-label [nzSm]="6" [nzXs]="24" nzRequired nzFor="sickRoom">申请科室</nz-form-label>
						<nz-form-control nzErrorTip="请选择申请科室!">
							<nz-input-group>
								<nz-select [nzDisabled]="view" class="formItem" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch
									(nzOnSearch)="changeInp($event, 'search')" (nzOpenChange)="changeSearch($event)" (ngModelChange)="onDeptChange($event)" nzAllowClear nzPlaceHolder="请选择申请科室" formControlName="sickRoom">
									<ng-container *ngFor="let option of departmentSearch">
										<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>
							</nz-input-group>
						</nz-form-control>
					</nz-form-item>

					<nz-form-item>
						<nz-form-label [nzSm]="6" [nzXs]="24" nzRequired nzFor="checkDept">检验科室</nz-form-label>
						<nz-form-control nzErrorTip="请选择检验科室!">
							<nz-input-group>
								<nz-select [nzDisabled]="view" class="formItem" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch
									(nzOnSearch)="changeInp($event, 'search')" (nzOpenChange)="changeSearch($event)" nzAllowClear nzPlaceHolder="请选择检验科室" formControlName="checkDept">
									<ng-container *ngFor="let option of departmentSearch">
										<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>
							</nz-input-group>
						</nz-form-control>
					</nz-form-item>

					<nz-form-item>
					  <nz-form-label [nzSm]="6" [nzXs]="24" nzRequired nzFor="patientId">患者</nz-form-label>
					  <nz-form-control nzErrorTip="请选择患者!">
					    <nz-input-group>
								<nz-select class="formItem" [nzDisabled]="view" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch
								  (nzOnSearch)="changePatient($event, 1)" (ngModelChange)="onPatientChange($event)" nzAllowClear nzPlaceHolder="请选择患者" formControlName="patientId">
									<ng-container *ngFor="let option of patientList">
									  <nz-option *ngIf="!isLoading" [nzLabel]="option.patientName" [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-input-group>
					  </nz-form-control>
					</nz-form-item>
				</div>

				<div class="df">
					<nz-form-item>
					  <nz-form-label [nzSm]="6" [nzXs]="24" nzRequired nzFor="examinationItemsId">检验项目</nz-form-label>
					  <nz-form-control nzErrorTip="请选择检验项目!">
					    <nz-input-group>
								<nz-select class="formItem" [nzDisabled]="view" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch
								   (ngModelChange)="onExamineChange($event)" nzAllowClear nzPlaceHolder="请选择检验项目" formControlName="examinationItemsId">
									<ng-container *ngFor="let option of projectList">
									  <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-input-group>
					  </nz-form-control>
					</nz-form-item>

					<nz-form-item>
					  <nz-form-label [nzSm]="7" [nzXs]="24" nzFor="stype">标本类型</nz-form-label>
					  <nz-form-control nzErrorTip="请选择标本类型!">
					    <nz-input-group>
								<input nz-input disabled class="formItem" formControlName="stype" placeholder="请输入标本类型" nzSize="default" />
					    </nz-input-group>
					  </nz-form-control>
					</nz-form-item>

					<nz-form-item>
					  <nz-form-label [nzSm]="6" [nzXs]="24" nzFor="tubeType">试管类型</nz-form-label>
					  <nz-form-control nzErrorTip="请选择试管类型!">
					    <nz-input-group>
								<input nz-input disabled class="formItem" formControlName="tubeType" placeholder="请输入试管类型" nzSize="default" />
					    </nz-input-group>
					  </nz-form-control>
					</nz-form-item>
				</div>

      	<div class="df">
					<nz-form-item>
					  <nz-form-label [nzSm]="6" nzRequired [nzXs]="24" nzFor="speState">默认状态</nz-form-label>
					  <nz-form-control nzErrorTip="请选择默认状态!">
					    <nz-input-group>
								<input nz-input disabled class="formItem" formControlName="speState" placeholder="请输入默认状态" nzSize="default" />
							</nz-input-group>
					  </nz-form-control>
					</nz-form-item>

					<nz-form-item>
					  <nz-form-label [nzSm]="6" nzRequired [nzXs]="24" nzFor="urgent">紧急度</nz-form-label>
					  <nz-form-control nzErrorTip="请选择紧急度!">
					    <nz-input-group>
								<nz-radio-group [nzDisabled]="view" formControlName="urgent">
									<label nz-radio nzValue="1">急查</label>
									<label nz-radio nzValue="0">普查</label>
								</nz-radio-group>
							</nz-input-group>
					  </nz-form-control>
					</nz-form-item>

					<nz-form-item>
					  <nz-form-label [nzSm]="6" [nzXs]="24" nzFor="collectNurseId">采集人</nz-form-label>
					  <nz-form-control nzErrorTip="请选择采集人!">
					    <nz-input-group>
								<nz-select class="formItem" [nzDisabled]="view" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch
								  (nzOnSearch)="changeUser($event)" nzAllowClear nzPlaceHolder="请选择采集人" formControlName="collectNurseId">
									<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-input-group>
					  </nz-form-control>
					</nz-form-item>
				</div>

				<div class="df">
					<nz-form-item>
					  <nz-form-label [nzSm]="6" [nzXs]="24" nzFor="sendMsg">是否自动发消息</nz-form-label>
					  <nz-form-control nzErrorTip="请选择是否自动发消息!">
					    <nz-input-group>
								<nz-radio-group [nzDisabled]="view" formControlName="sendMsg">
									<label nz-radio nzValue="1">是</label>
									<label nz-radio nzValue="0">否</label>
								</nz-radio-group>
					    </nz-input-group>
					  </nz-form-control>
					</nz-form-item>
				</div>
      </form>
    </div>
    <div class="display_flex justify-content_flex-center">
      <button nzType="primary" nz-button (click)="submitForm()" [nzLoading]="btnLoading">确认</button>
      <button class="btn cancel" nz-button nzType="default" (click)="hideModal()">取消</button>
    </div>
  </div>
</div>

<!-- 设置核收 -->
<div class="save add display_flex align-items_center justify-content_flex-center" *ngIf="collectModal">
  <div class="modalBody collect">
    <div class="title">设置核收<i class="icon_transport transport-guanbi" (click)="hideCollectModal()"></i>
    </div>
    <div class="content">
      <form nz-form [formGroup]="validateCollectForm" class="addForm" (ngSubmit)="submitCollectForm()">
					<nz-form-item>
					  <nz-form-label [nzSm]="6" [nzXs]="24" nzRequired nzFor="collect">核收人</nz-form-label>
					  <nz-form-control nzErrorTip="请选择核收人!">
					    <nz-input-group>
								<nz-select class="formItem" [nzDisabled]="view" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch
								  (nzOnSearch)="changeUser($event)" nzAllowClear nzPlaceHolder="请选择核收人" formControlName="collect">
									<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-input-group>
					  </nz-form-control>
					</nz-form-item>

					<nz-form-item>
					  <nz-form-label [nzSm]="6" [nzXs]="24" nzRequired nzFor="sendMsg">是否自动发消息</nz-form-label>
					  <nz-form-control nzErrorTip="请选择是否自动发消息!">
					    <nz-input-group>
								<nz-radio-group [nzDisabled]="view" formControlName="sendMsg">
									<label nz-radio nzValue="1">是</label>
									<label nz-radio nzValue="0">否</label>
								</nz-radio-group>
					    </nz-input-group>
					  </nz-form-control>
					</nz-form-item>

      </form>
    </div>
    <div class="display_flex justify-content_flex-center">
      <button nzType="primary" nz-button (click)="submitCollectForm()" [nzLoading]="btnLoading">确认</button>
      <button class="btn cancel" nz-button nzType="default" (click)="hideCollectModal()">取消</button>
    </div>
  </div>
</div>

<!-- 自动生成模态框 -->
<div class="save add display_flex align-items_center justify-content_flex-center" *ngIf="autoCreateModal">
  <div class="modalBody collect">
    <div class="title">自动生成<i class="icon_transport transport-guanbi" (click)="hideAutoModal()"></i>
    </div>
    <div class="content">
      <form nz-form [formGroup]="validateAutoForm" class="addForm" (ngSubmit)="submitAutoForm()">
					<nz-form-item>
						<nz-form-label [nzSm]="6" [nzXs]="24" nzRequired nzFor="sickRoom">申请科室</nz-form-label>
						<nz-form-control nzErrorTip="请选择申请科室!">
							<nz-input-group>
								<nz-select [nzDisabled]="view" class="formItem" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch
									(nzOnSearch)="changeInp($event, 'search')" (nzOpenChange)="changeSearch($event)" (ngModelChange)="onAutoDeptChange($event)" nzAllowClear nzPlaceHolder="请选择申请科室" formControlName="sickRoom">
									<ng-container *ngFor="let option of departmentSearch">
										<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>
							</nz-input-group>
						</nz-form-control>
					</nz-form-item>

					<nz-form-item>
					  <nz-form-label [nzSm]="6" [nzXs]="24" nzFor="patientId">患者</nz-form-label>
					  <nz-form-control nzErrorTip="请选择患者!">
					    <nz-input-group>
								<nz-select class="formItem" [nzDisabled]="view" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch
								  (nzOnSearch)="changePatient($event, 2)" (ngModelChange)="onPatientChange($event)" nzAllowClear nzPlaceHolder="请选择患者" formControlName="patientId">
									<ng-container *ngFor="let option of patientList">
									  <nz-option *ngIf="!isLoading" [nzLabel]="option.patientName" [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-input-group>
					  </nz-form-control>
					</nz-form-item>

					<nz-form-item>
					  <nz-form-label [nzSm]="6" [nzXs]="24" nzFor="examinationItemsId">检验项目</nz-form-label>
					  <nz-form-control nzErrorTip="请选择检验项目!">
					    <nz-input-group>
								<nz-select class="formItem" [nzDisabled]="view" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch
								   (ngModelChange)="onAutoExamineChange($event)" nzAllowClear nzPlaceHolder="请选择检验项目" formControlName="examinationItemsId">
									<ng-container *ngFor="let option of projectList">
									  <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-input-group>
					  </nz-form-control>
					</nz-form-item>

					<nz-form-item>
					  <nz-form-label nzRequired [nzSm]="6" [nzXs]="24" nzFor="amount">生成数量</nz-form-label>
					  <nz-form-control nzErrorTip="请选择生成数量!">
					    <nz-input-group>
								<nz-input-number formControlName="amount" (ngModelChange)="numChange($event)" [nzMin]="1" [nzMax]="50" [nzStep]="1"></nz-input-number>
							</nz-input-group>
					  </nz-form-control>
					</nz-form-item>

					<nz-form-item>
					  <nz-form-label [nzSm]="6" [nzXs]="24" nzFor="urgent">紧急度</nz-form-label>
					  <nz-form-control nzErrorTip="请选择紧急度!">
					    <nz-input-group>
								<nz-radio-group [nzDisabled]="view" formControlName="urgent">
									<label nz-radio nzValue="1">急查</label>
									<label nz-radio nzValue="0">普查</label>
								</nz-radio-group>
							</nz-input-group>
					  </nz-form-control>
					</nz-form-item>

					<nz-form-item>
					  <nz-form-label [nzSm]="6" [nzXs]="24" nzFor="sendMsg">是否自动发消息</nz-form-label>
					  <nz-form-control nzErrorTip="请选择是否自动发消息!">
					    <nz-input-group>
								<nz-radio-group [nzDisabled]="view" formControlName="sendMsg">
									<label nz-radio nzValue="1">是</label>
									<label nz-radio nzValue="0">否</label>
								</nz-radio-group>
					    </nz-input-group>
					  </nz-form-control>
					</nz-form-item>
      </form>
    </div>
    <div class="display_flex justify-content_flex-center">
      <button nzType="primary" nz-button (click)="submitAutoForm()" [nzLoading]="btnLoading">生成标本</button>
      <button class="btn cancel" nz-button nzType="default" (click)="hideAutoModal()">取消</button>
    </div>
  </div>
</div>
<!-- 查看标本 -->
<app-view-specimen *ngIf="showModal" [speId]="speId" (closeModelHs)="closeModel($event)"></app-view-specimen>
