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