Bläddra i källkod

药房功能开通修复

seimin 3 år sedan
förälder
incheckning
40d428f1cf

+ 14 - 11
src/app/views/hushijiandan/hushijiandan.component.html

@@ -186,7 +186,9 @@
186 186
                   </div>
187 187
 
188 188
                   <!-- 药品/静配信息未开通 -->
189
-                  <div *ngIf="!deptTaskTypeRules.openStaticDistribution" nz-col nzSpan="11" nz-row class="h100p">
189
+                  <div
190
+                    *ngIf="!deptTaskTypeRules.openStaticDistribution&&!deptTaskTypeRules.openDrugsBag&&!drugJpLoading"
191
+                    nz-col nzSpan="11" nz-row class="h100p">
190 192
                     <div class="notAvailable display_flex align-items_center justify-content_flex-center">
191 193
                       <div>
192 194
                         <img src="../../assets/images/icon_jianchakong.png" alt="">
@@ -209,7 +211,9 @@
209 211
                     </div>
210 212
                   </div>
211 213
                   <!-- 药品/静配信息已开通 -->
212
-                  <div *ngIf="deptTaskTypeRules.openStaticDistribution" nz-col nzSpan="11" nz-row class="h100p">
214
+                  <div
215
+                    *ngIf="(deptTaskTypeRules.openStaticDistribution||deptTaskTypeRules.openDrugsBag)&&!drugJpLoading"
216
+                    nz-col nzSpan="11" nz-row class="h100p">
213 217
                     <div nz-col nzSpan="6"
214 218
                       class="borderR alignC display_flex justify-content_flex-center align-items_center h100p">
215 219
                       <img src="../../assets/images/icon_hujingpei.png" alt="">
@@ -223,10 +227,6 @@
223 227
                               *ngFor="let item of jpDrugsWKOMsg.drugsInfoList">
224 228
                               <span>{{item}}</span>
225 229
                             </div>
226
-                            <div class="item txtC alignC display_flex justify-content_flex-center align-items_center"
227
-                              *ngIf="jpDrugsWKOMsg.drugsInfoList.length>0">
228
-                              <span>{{jpDrugsWKOMsg.drugsInfoList[0]}}</span>
229
-                            </div>
230 230
                           </div>
231 231
                           <div class="swiper none display_flex justify-content_flex-center align-items_center"
232 232
                             *ngIf="!jpDrugsWKOMsg.drugsInfoList||!jpDrugsWKOMsg.drugsInfoList.length">
@@ -244,21 +244,24 @@
244 244
                               *ngFor="let item of jpDrugsWKOMsg.jpInfoList">
245 245
                               <span>{{item}}</span>
246 246
                             </div>
247
-                            <div class="item txtC alignC display_flex justify-content_flex-center align-items_center"
248
-                              *ngIf="jpDrugsWKOMsg.jpInfoList.length>0">
249
-                              <span>{{jpDrugsWKOMsg.jpInfoList[0]}}</span>
250
-                            </div>
251 247
                           </div>
252 248
                           <div class="swiper none display_flex justify-content_flex-center align-items_center"
253 249
                             *ngIf="!jpDrugsWKOMsg.jpInfoList||!jpDrugsWKOMsg.jpInfoList.length">
254 250
                             <div class="item alignC display_flex justify-content_flex-center align-items_center">
255
-                              <span>暂无静配药品配送信息</span>
251
+                              <span>暂无静配配送信息</span>
256 252
                             </div>
257 253
                           </div>
258 254
                         </div>
259 255
                       </div>
260 256
                     </div>
261 257
                   </div>
258
+                  <div *ngIf="drugJpLoading" nz-col nzSpan="11" nz-row
259
+                    class="h100p display_flex justify-content_flex-center align-items_center">
260
+                    <div class="txtC" style="text-align: center;">
261
+                      <img src="../../../assets/images/loading.gif" alt="">
262
+                      <div>加载中...</div>
263
+                    </div>
264
+                  </div>
262 265
                 </div>
263 266
                 <div class="tab borderB" nz-row>
264 267
                   <div nz-col nzSpan="6"

+ 1 - 1
src/app/views/hushijiandan/hushijiandan.component.less

@@ -1692,7 +1692,7 @@
1692 1692
   position: fixed;
1693 1693
   top: 40%;
1694 1694
   right: 0;
1695
-  z-index: 99;
1695
+  z-index: 9;
1696 1696
   border-radius: 5px 0 0 5px;
1697 1697
 
1698 1698
   .fixedMark {

+ 3 - 1
src/app/views/hushijiandan/hushijiandan.component.ts

@@ -361,11 +361,13 @@ export class HushijiandanComponent implements OnInit {
361 361
   }
362 362
 
363 363
   // 药品静配提示信息
364
+  drugJpLoading = true;
364 365
   getJpDrugsWKOMsg() {
365 366
     let that = this;
366 367
     that.mainService
367 368
       .postCustom("nurse", "getJpDrugsWKOMsg", {})
368 369
       .subscribe((data) => {
370
+        this.drugJpLoading = false;
369 371
         that.jpDrugsWKOMsg = data.data ? data.data : {};
370 372
         console.log(that.jpDrugsWKOMsg);
371 373
         if (
@@ -545,7 +547,7 @@ export class HushijiandanComponent implements OnInit {
545 547
             // 标本权限
546 548
             that.getSpecimenWorkOrderMsg();
547 549
           }
548
-          if (that.deptTaskTypeRules.openStaticDistribution) {
550
+          if (that.deptTaskTypeRules.openStaticDistribution||that.deptTaskTypeRules.openDrugsBag) {
549 551
             // 药品静配权限
550 552
             that.getJpDrugsWKOMsg();
551 553
           }