Ver código fonte

增加文字说明

seimin 3 anos atrás
pai
commit
197beeeaa9

+ 34 - 124
src/app/share/hs-prompt-modal/hs-prompt-modal.component.html

@@ -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>

+ 14 - 2
src/app/share/hs-prompt-modal/hs-prompt-modal.component.less

@@ -1,4 +1,5 @@
1 1
 @import "../../../../src/theme.less";
2
+
2 3
 .modal {
3 4
   position: fixed;
4 5
   left: 0;
@@ -15,6 +16,7 @@
15 16
     border-radius: 5px;
16 17
     padding: 10px 20px;
17 18
     color: #333;
19
+
18 20
     &.modalBody-search {
19 21
       width: 480px;
20 22
       min-height: 250px;
@@ -38,7 +40,8 @@
38 40
     }
39 41
 
40 42
     .content {
41
-      min-height: 117px;
43
+      padding: 16px;
44
+      min-height: 150px;
42 45
       background: #f9fafb;
43 46
       border: 1px solid #e5e9ed;
44 47
       border-radius: 5px;
@@ -46,11 +49,14 @@
46 49
       margin-top: 12px;
47 50
       display: flex;
48 51
       flex-direction: column;
49
-      justify-content: center;
52
+      justify-content: space-around;
50 53
       align-items: center;
54
+
51 55
       &.content-search {
56
+        padding: 0;
52 57
         min-height: 147px;
53 58
         justify-content: start;
59
+
54 60
         .defeat-search {
55 61
           width: 100%;
56 62
           height: 52px;
@@ -58,14 +64,17 @@
58 64
           justify-content: center;
59 65
           align-items: center;
60 66
           border-bottom: solid 1px #e5e9ed;
67
+
61 68
           em {
62 69
             color: #666;
63 70
             font-style: normal;
64 71
           }
65 72
         }
73
+
66 74
         .form {
67 75
           width: 100%;
68 76
           padding: 0 16px;
77
+
69 78
           .ant-form-item-label,
70 79
           .ant-form-explain {
71 80
             text-align: left !important;
@@ -79,10 +88,13 @@
79 88
         &.defeat {
80 89
           color: #333;
81 90
           font-size: 28px;
91
+          text-align: justify;
82 92
         }
93
+
83 94
         &.countDown {
84 95
           font-size: 14px;
85 96
           color: 666;
97
+
86 98
           em {
87 99
             font-style: normal;
88 100
             color: @primary-color;

+ 1 - 0
src/app/views/task-type-management/task-type-management.component.html

@@ -695,6 +695,7 @@
695 695
           </div>
696 696
           <div *ngIf="depaShow3">
697 697
             <!-- 标本配送才有自动建单,重要! -->
698
+            <div class="red">自动建单需配置检验科室的工作时间;任务类型的开通科室;关联班次的时间区间;配置是否急标;配置标本类型;</div>
698 699
             <nz-form-label class="label">自动建单</nz-form-label>
699 700
             <div class="item_type_cont">
700 701
               <div>