|
@@ -1,57 +1,162 @@
|
1
|
|
-<div class="modal display_flex justify-content_flex-center align-items_center" *ngIf="show">
|
|
1
|
+<div
|
|
2
|
+ class="modal display_flex justify-content_flex-center align-items_center"
|
|
3
|
+ *ngIf="show"
|
|
4
|
+>
|
2
|
5
|
<div class="modalBody" *ngIf="changeShow">
|
3
|
|
- <div class="title">当前科室<i *ngIf="closeTimeFlag<=0||closeTimeFlag>0&&closeTime===0"
|
4
|
|
- class="icon_transport transport-guanbi" (click)="hideModal()"></i></div>
|
|
6
|
+ <div class="title">
|
|
7
|
+ 当前科室<i
|
|
8
|
+ *ngIf="closeTimeFlag <= 0 || (closeTimeFlag > 0 && closeTime === 0)"
|
|
9
|
+ class="icon_transport transport-guanbi"
|
|
10
|
+ (click)="hideModal()"
|
|
11
|
+ ></i>
|
|
12
|
+ </div>
|
5
|
13
|
<div class="content">
|
6
|
|
- <div class="defeat"><span *ngIf="deptDisplay">{{deptDisplay==2?currentDept.deptalias:currentDept.dept}}</span>
|
|
14
|
+ <div class="defeat">
|
|
15
|
+ <span *ngIf="!deptDisplayLoading">{{
|
|
16
|
+ deptDisplay == 2 ? currentDept.deptalias : currentDept.dept
|
|
17
|
+ }}</span>
|
|
18
|
+ <img
|
|
19
|
+ *ngIf="deptDisplayLoading"
|
|
20
|
+ src="../../../assets/images/loading.gif"
|
|
21
|
+ alt=""
|
|
22
|
+ />
|
|
23
|
+ </div>
|
|
24
|
+ <div
|
|
25
|
+ class="countDown"
|
|
26
|
+ *ngIf="closeTimeFlag < 0 || (closeTimeFlag > 0 && closeTime > 0)"
|
|
27
|
+ >
|
|
28
|
+ <span *ngIf="closeTimeFlag < 0">关闭</span>倒计时<em
|
|
29
|
+ >{{ closeTime }}s</em
|
|
30
|
+ >
|
7
|
31
|
</div>
|
8
|
|
- <div class="countDown" *ngIf="closeTimeFlag<0||closeTimeFlag>0&&closeTime>0"><span
|
9
|
|
- *ngIf="closeTimeFlag<0">关闭</span>倒计时<em>{{closeTime}}s</em></div>
|
10
|
32
|
</div>
|
11
|
33
|
<div class="display_flex justify-content_flex-center">
|
12
|
|
- <button *ngIf="closeTimeFlag<=0||closeTimeFlag>0&&closeTime===0" class="btn know" nz-button nzType="primary"
|
13
|
|
- (click)="hideModal()">知道了</button>
|
14
|
|
- <button *ngIf="closeTimeFlag<=0||closeTimeFlag>0&&closeTime===0" class="btn know" nz-button nzType="primary"
|
15
|
|
- nzGhost (click)="changeModal()">切换科室</button>
|
|
34
|
+ <button
|
|
35
|
+ *ngIf="closeTimeFlag <= 0 || (closeTimeFlag > 0 && closeTime === 0)"
|
|
36
|
+ class="btn know"
|
|
37
|
+ nz-button
|
|
38
|
+ nzType="primary"
|
|
39
|
+ (click)="hideModal()"
|
|
40
|
+ >
|
|
41
|
+ 知道了
|
|
42
|
+ </button>
|
|
43
|
+ <button
|
|
44
|
+ *ngIf="closeTimeFlag <= 0 || (closeTimeFlag > 0 && closeTime === 0)"
|
|
45
|
+ class="btn know"
|
|
46
|
+ nz-button
|
|
47
|
+ nzType="primary"
|
|
48
|
+ nzGhost
|
|
49
|
+ (click)="changeModal()"
|
|
50
|
+ >
|
|
51
|
+ 切换科室
|
|
52
|
+ </button>
|
16
|
53
|
</div>
|
17
|
54
|
</div>
|
18
|
55
|
<div class="modalBody modalBody-search" *ngIf="!changeShow">
|
19
|
|
- <div class="title">搜索当前科室<i class="icon_transport transport-guanbi" (click)="hideModal()"></i></div>
|
|
56
|
+ <div class="title">
|
|
57
|
+ 搜索当前科室<i
|
|
58
|
+ class="icon_transport transport-guanbi"
|
|
59
|
+ (click)="hideModal()"
|
|
60
|
+ ></i>
|
|
61
|
+ </div>
|
20
|
62
|
<div class="content content-search">
|
21
|
|
- <div class="defeat-search display_flex justify-content_flex-center flex-direction_column">
|
22
|
|
- <span>当前院区:<em>{{currentHospital.hosName}}</em></span>
|
23
|
|
- <span>当前科室:<em *ngIf="deptDisplay">{{deptDisplay==2?currentDept.deptalias:currentDept.dept}}</em></span>
|
|
63
|
+ <div
|
|
64
|
+ class="
|
|
65
|
+ defeat-search
|
|
66
|
+ display_flex
|
|
67
|
+ justify-content_flex-center
|
|
68
|
+ flex-direction_column
|
|
69
|
+ "
|
|
70
|
+ >
|
|
71
|
+ <span
|
|
72
|
+ >当前院区:<em>{{ currentHospital.hosName }}</em></span
|
|
73
|
+ >
|
|
74
|
+ <span
|
|
75
|
+ >当前科室:<em *ngIf="!deptDisplayLoading">{{
|
|
76
|
+ deptDisplay == 2 ? currentDept.deptalias : currentDept.dept
|
|
77
|
+ }}</em
|
|
78
|
+ ><img
|
|
79
|
+ *ngIf="deptDisplayLoading"
|
|
80
|
+ src="../../../assets/images/loading.gif"
|
|
81
|
+ alt=""
|
|
82
|
+ /></span>
|
24
|
83
|
</div>
|
25
|
84
|
<div class="form">
|
26
|
85
|
<form nz-form [formGroup]="validateForm">
|
27
|
|
- <nz-form-item style="margin-bottom: 0;">
|
28
|
|
- <nz-form-label class="label" [nzSm]="24" [nzXs]="24" nzRequired nzFor="hospital">搜索院区
|
|
86
|
+ <nz-form-item style="margin-bottom: 0">
|
|
87
|
+ <nz-form-label
|
|
88
|
+ class="label"
|
|
89
|
+ [nzSm]="24"
|
|
90
|
+ [nzXs]="24"
|
|
91
|
+ nzRequired
|
|
92
|
+ nzFor="hospital"
|
|
93
|
+ >搜索院区
|
29
|
94
|
</nz-form-label>
|
30
|
|
- <nz-form-control class="control" [nzSm]="24" [nzXs]="24" nzErrorTip="请选择院区!">
|
31
|
|
- <nz-select formControlName="hospital" [nzDropdownMatchSelectWidth]="false"
|
32
|
|
- (ngModelChange)="searchHospital($event)" nzPlaceHolder="请选择院区">
|
|
95
|
+ <nz-form-control
|
|
96
|
+ class="control"
|
|
97
|
+ [nzSm]="24"
|
|
98
|
+ [nzXs]="24"
|
|
99
|
+ nzErrorTip="请选择院区!"
|
|
100
|
+ >
|
|
101
|
+ <nz-select
|
|
102
|
+ formControlName="hospital"
|
|
103
|
+ [nzDropdownMatchSelectWidth]="false"
|
|
104
|
+ (ngModelChange)="searchHospital($event)"
|
|
105
|
+ nzPlaceHolder="请选择院区"
|
|
106
|
+ >
|
33
|
107
|
<ng-container *ngFor="let option of hospitals">
|
34
|
|
- <nz-option *ngIf="!isLoading" [nzLabel]="option.hosName" [nzValue]="option.id"></nz-option>
|
|
108
|
+ <nz-option
|
|
109
|
+ *ngIf="!isLoading"
|
|
110
|
+ [nzLabel]="option.hosName"
|
|
111
|
+ [nzValue]="option.id"
|
|
112
|
+ ></nz-option>
|
35
|
113
|
</ng-container>
|
36
|
114
|
<nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
|
37
|
|
- <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
|
|
115
|
+ <i nz-icon nzType="loading" class="loading-icon"></i>
|
|
116
|
+ 搜索中...
|
38
|
117
|
</nz-option>
|
39
|
118
|
</nz-select>
|
40
|
119
|
</nz-form-control>
|
41
|
120
|
</nz-form-item>
|
42
|
121
|
<nz-form-item>
|
43
|
|
- <nz-form-label class="label" [nzSm]="24" [nzXs]="24" nzRequired nzFor="dutyDeptFc">搜索当值科室<span
|
44
|
|
- class="red ml8">(可通过拼音首字母检索科室)</span>
|
|
122
|
+ <nz-form-label
|
|
123
|
+ class="label"
|
|
124
|
+ [nzSm]="24"
|
|
125
|
+ [nzXs]="24"
|
|
126
|
+ nzRequired
|
|
127
|
+ nzFor="dutyDeptFc"
|
|
128
|
+ >搜索当值科室<span class="red ml8"
|
|
129
|
+ >(可通过拼音首字母检索科室)</span
|
|
130
|
+ >
|
45
|
131
|
</nz-form-label>
|
46
|
|
- <nz-form-control class="control" [nzSm]="24" [nzXs]="24" nzErrorTip="请选择当值科室!">
|
47
|
|
- <nz-select formControlName="dutyDeptFc" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch
|
48
|
|
- (nzOnSearch)="searchDept(validateForm.controls.hospital.value,$event)" nzPlaceHolder="请选择当值科室">
|
|
132
|
+ <nz-form-control
|
|
133
|
+ class="control"
|
|
134
|
+ [nzSm]="24"
|
|
135
|
+ [nzXs]="24"
|
|
136
|
+ nzErrorTip="请选择当值科室!"
|
|
137
|
+ >
|
|
138
|
+ <nz-select
|
|
139
|
+ formControlName="dutyDeptFc"
|
|
140
|
+ [nzDropdownMatchSelectWidth]="false"
|
|
141
|
+ nzServerSearch
|
|
142
|
+ nzShowSearch
|
|
143
|
+ (nzOnSearch)="
|
|
144
|
+ searchDept(validateForm.controls.hospital.value, $event)
|
|
145
|
+ "
|
|
146
|
+ nzPlaceHolder="请选择当值科室"
|
|
147
|
+ >
|
49
|
148
|
<ng-container *ngFor="let option of dutyDepts">
|
50
|
|
- <nz-option *ngIf="!isLoading" [nzLabel]="deptDisplay==2?option.deptalias:option.dept"
|
51
|
|
- [nzValue]="option.id"></nz-option>
|
|
149
|
+ <nz-option
|
|
150
|
+ *ngIf="!isLoading"
|
|
151
|
+ [nzLabel]="
|
|
152
|
+ deptDisplay == 2 ? option.deptalias : option.dept
|
|
153
|
+ "
|
|
154
|
+ [nzValue]="option.id"
|
|
155
|
+ ></nz-option>
|
52
|
156
|
</ng-container>
|
53
|
157
|
<nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
|
54
|
|
- <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
|
|
158
|
+ <i nz-icon nzType="loading" class="loading-icon"></i>
|
|
159
|
+ 搜索中...
|
55
|
160
|
</nz-option>
|
56
|
161
|
</nz-select>
|
57
|
162
|
</nz-form-control>
|
|
@@ -60,13 +165,29 @@
|
60
|
165
|
</div>
|
61
|
166
|
</div>
|
62
|
167
|
<div class="display_flex justify-content_flex-center">
|
63
|
|
- <button class="btn know" nz-button nzType="primary" (click)="ok()">确定</button>
|
64
|
|
- <button class="btn know" nz-button nzType="primary" nzGhost (click)="hideModal()">取消</button>
|
|
168
|
+ <button class="btn know" nz-button nzType="primary" (click)="ok()">
|
|
169
|
+ 确定
|
|
170
|
+ </button>
|
|
171
|
+ <button
|
|
172
|
+ class="btn know"
|
|
173
|
+ nz-button
|
|
174
|
+ nzType="primary"
|
|
175
|
+ nzGhost
|
|
176
|
+ (click)="hideModal()"
|
|
177
|
+ >
|
|
178
|
+ 取消
|
|
179
|
+ </button>
|
65
|
180
|
</div>
|
66
|
181
|
</div>
|
67
|
182
|
</div>
|
68
|
183
|
<!-- 操作成功/失败提示框 -->
|
69
|
|
-<app-prompt-modal *ngIf="promptModalShow" [content]="promptContent" [success]="ifSuccess" [show]="promptModalShow"
|
70
|
|
- [info]="promptInfo" [isReLoad]="true"></app-prompt-modal>
|
|
184
|
+<app-prompt-modal
|
|
185
|
+ *ngIf="promptModalShow"
|
|
186
|
+ [content]="promptContent"
|
|
187
|
+ [success]="ifSuccess"
|
|
188
|
+ [show]="promptModalShow"
|
|
189
|
+ [info]="promptInfo"
|
|
190
|
+ [isReLoad]="true"
|
|
191
|
+></app-prompt-modal>
|
71
|
192
|
<!-- 遮罩 -->
|
72
|
193
|
<app-mask *ngIf="maskFlag"></app-mask>
|