query-range.component.html 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <div class="save add display_flex align-items_center justify-content_flex-center">
  2. <div class="modalBody">
  3. <div class="title">查询范围<i class="icon_transport transport-guanbi" (click)="hideModal()"></i>
  4. </div>
  5. <div class="content">
  6. <form nz-form [formGroup]="validateForm" class="addForm">
  7. <nz-form-item class="mb0">
  8. <nz-form-label [nzSpan]="4" nzRequired nzFor="queryType">查询范围</nz-form-label>
  9. <nz-form-control [nzSpan]="20" nzErrorTip="请选择查询范围!">
  10. <nz-radio-group formControlName="queryType" (ngModelChange)="changeQueryType($event)">
  11. <label nz-radio [nzValue]="1">全院查询</label>
  12. <label nz-radio [nzValue]="2">院区查询</label>
  13. <label nz-radio [nzValue]="3">部门查询</label>
  14. <label nz-radio [nzValue]="4">垂直部门查询</label>
  15. </nz-radio-group>
  16. </nz-form-control>
  17. </nz-form-item>
  18. <nz-form-item [hidden]="!(validateForm.value.queryType == 2 || validateForm.value.queryType == 3)">
  19. <nz-form-label [nzSpan]="4" nzRequired nzFor="hospital">院<span style="visibility: hidden;">囧囧</span>区</nz-form-label>
  20. <nz-form-control [nzSpan]="20" nzErrorTip="请选择院区!">
  21. <nz-select [nzDropdownMatchSelectWidth]="false" formControlName="hospital" nzPlaceHolder="请选择院区" (ngModelChange)="changeHospital($event)">
  22. <nz-option [nzLabel]="data.hosName" [nzValue]="data.id" *ngFor="let data of hospitalList">
  23. </nz-option>
  24. </nz-select>
  25. </nz-form-control>
  26. </nz-form-item>
  27. <nz-form-item [hidden]="validateForm.value.queryType != 3">
  28. <nz-form-label [nzSpan]="4" nzRequired nzFor="duty">责任部门</nz-form-label>
  29. <nz-form-control [nzSpan]="20" nzErrorTip="请选择责任部门!">
  30. <nz-select [nzDropdownMatchSelectWidth]="false" formControlName="duty" nzPlaceHolder="请选择责任部门">
  31. <nz-option [nzLabel]="data.hosName" [nzValue]="data.id" *ngFor="let data of dutyList">
  32. </nz-option>
  33. </nz-select>
  34. </nz-form-control>
  35. </nz-form-item>
  36. <nz-form-item [hidden]="validateForm.value.queryType != 4">
  37. <nz-form-label [nzSpan]="6" nzRequired nzFor="dutyOne">一级责任部门</nz-form-label>
  38. <nz-form-control [nzSpan]="18" nzErrorTip="请选择一级责任部门!">
  39. <nz-select [nzDropdownMatchSelectWidth]="false" formControlName="dutyOne" nzPlaceHolder="请选择一级责任部门">
  40. <nz-option [nzLabel]="data.hosName" [nzValue]="data.id" *ngFor="let data of dutyOneList">
  41. </nz-option>
  42. </nz-select>
  43. </nz-form-control>
  44. </nz-form-item>
  45. <nz-form-item class="mb0">
  46. <nz-form-label [nzSpan]="7" nzRequired nzFor="parent">是否显示父级科室</nz-form-label>
  47. <nz-form-control [nzSpan]="15" nzErrorTip="请选择是否显示父级科室!">
  48. <nz-radio-group formControlName="parent">
  49. <label nz-radio [nzValue]="1">是</label>
  50. <label nz-radio [nzValue]="0">否</label>
  51. </nz-radio-group>
  52. </nz-form-control>
  53. </nz-form-item>
  54. </form>
  55. </div>
  56. <div class="display_flex justify-content_flex-center">
  57. <button nz-button nzType="default" (click)="hideModal()">取消</button>
  58. <button nzType="primary" nz-button (click)="submitForm()">确认</button>
  59. </div>
  60. </div>
  61. </div>