Selaa lähdekoodia

护士端科室类型是手术,并且搜索内容是空的时候则查询手术安排信息,搜索内容不是空的时候则查询患者信息

seimin 1 vuosi sitten
vanhempi
commit
495e9c5c1c

+ 3 - 3
src/app/views/hushijiandan/hushijiandan.component.html

@@ -44,7 +44,7 @@
44 44
             class="checkItem checked"
45 45
             (click)="changeInfo()"
46 46
           >
47
-          {{currentDept.typeValue == 'surgery' ? '手术安排信息' : '患者信息'}}
47
+          {{(currentDept.typeValue == 'surgery' && !this.tabSearchCont) ? '手术安排信息' : '患者信息'}}
48 48
           </button>
49 49
         </div>
50 50
         <!-- 患者信息-复苏室科室类型 -->
@@ -178,7 +178,7 @@
178 178
           </overlay-scrollbars>
179 179
         </div>
180 180
         <!-- 患者信息 -->
181
-        <div class="checkedInfo patient" style="padding-bottom: 0" *ngIf="currentDept.typeValue != 'surgery' && currentDept.typeValue != 'recovery'">
181
+        <div class="checkedInfo patient" style="padding-bottom: 0" *ngIf="(currentDept.typeValue != 'surgery' || (currentDept.typeValue == 'surgery' && this.tabSearchCont)) && currentDept.typeValue != 'recovery'">
182 182
           <overlay-scrollbars #osComponentRef4 class="box">
183 183
             <div
184 184
               class="loading display_flex align-items_center justify-content_flex-center"
@@ -308,7 +308,7 @@
308 308
           </overlay-scrollbars>
309 309
         </div>
310 310
         <!-- 手术安排信息-手术室科室类型 -->
311
-        <div class="checkedInfo patient" style="padding-bottom: 0" *ngIf="currentDept.typeValue == 'surgery'">
311
+        <div class="checkedInfo patient" style="padding-bottom: 0" *ngIf="currentDept.typeValue == 'surgery' && !this.tabSearchCont">
312 312
           <overlay-scrollbars #osComponentRef4 class="box">
313 313
             <div
314 314
               class="loading display_flex align-items_center justify-content_flex-center"

+ 11 - 15
src/app/views/hushijiandan/hushijiandan.component.ts

@@ -175,7 +175,7 @@ export class HushijiandanComponent implements OnInit {
175 175
     this.getCloseTimeFlag();
176 176
     this.currentDept = this.tool.getCurrentUserDept();
177 177
     console.log(this.currentDept, this.tabSearchCont);
178
-    this.currentDept.typeValue == 'surgery' && this.getSurgeryConfig();
178
+    this.currentDept.typeValue == 'surgery' && !this.tabSearchCont && this.getSurgeryConfig();
179 179
     this.getSpecimenButton();
180 180
     //防抖
181 181
     this.getAccountList();
@@ -581,7 +581,7 @@ export class HushijiandanComponent implements OnInit {
581 581
   // 获取标本按钮
582 582
   specimenButton = "";
583 583
   getSpecimenButton() {
584
-    if(this.currentDept.typeValue == 'surgery'){
584
+    if(this.currentDept.typeValue == 'surgery' && !this.tabSearchCont){
585 585
       return;
586 586
     }
587 587
     let postData = {
@@ -677,7 +677,7 @@ export class HushijiandanComponent implements OnInit {
677 677
   yyDate = null; //预约日期-陪检
678 678
   yyDateZy = null; //预约日期-转运
679 679
   getRecentInfo(patientCode) {
680
-    if(this.currentDept.typeValue == 'surgery'){
680
+    if(this.currentDept.typeValue == 'surgery' && !this.tabSearchCont){
681 681
       return;
682 682
     }
683 683
     this.recentInfo = "";
@@ -859,7 +859,7 @@ export class HushijiandanComponent implements OnInit {
859 859
 
860 860
   // 急标普标数量
861 861
   getSpecimenWorkOrderMsg() {
862
-    if(this.currentDept.typeValue == 'surgery'){
862
+    if(this.currentDept.typeValue == 'surgery' && !this.tabSearchCont){
863 863
       return;
864 864
     }
865 865
     let that = this;
@@ -946,7 +946,7 @@ export class HushijiandanComponent implements OnInit {
946 946
   // 药品静配提示信息
947 947
   drugJpLoading = false;
948 948
   getJpDrugsWKOMsg() {
949
-    if(this.currentDept.typeValue == 'surgery'){
949
+    if(this.currentDept.typeValue == 'surgery' && !this.tabSearchCont){
950 950
       return;
951 951
     }
952 952
     let that = this;
@@ -1448,12 +1448,7 @@ export class HushijiandanComponent implements OnInit {
1448 1448
   // 获取患者信息
1449 1449
   snum = 0;
1450 1450
   getPatient(e?) {
1451
-    if (
1452
-      (this.currentDept.typeValue == "checkRoom2" ||
1453
-        this.currentDept.typeValue == "outpatientDept" ||
1454
-        this.currentDept.typeValue == "checkRoom") &&
1455
-      !this.tabSearchCont
1456
-    ) {
1451
+    if ((this.currentDept.typeValue == "checkRoom2" || this.currentDept.typeValue == "outpatientDept" || this.currentDept.typeValue == "checkRoom") && !this.tabSearchCont) {
1457 1452
       this.pLoading = false;
1458 1453
       this.patientList = [];
1459 1454
       this.infoLength = 0;
@@ -1464,7 +1459,7 @@ export class HushijiandanComponent implements OnInit {
1464 1459
       idx: this.infoPageIdx - 1,
1465 1460
       sum: 10,
1466 1461
     };
1467
-    if(this.currentDept.typeValue == 'surgery'){
1462
+    if(this.currentDept.typeValue == 'surgery' && !this.tabSearchCont){
1468 1463
       // 手术安排信息-手术室类型
1469 1464
       postData["surgery"] = {
1470 1465
         searchKey: e ? e : this.tabSearchCont,
@@ -1496,7 +1491,8 @@ export class HushijiandanComponent implements OnInit {
1496 1491
       if (
1497 1492
         this.currentDept.typeValue == "checkRoom2" ||
1498 1493
         this.currentDept.typeValue == "outpatientDept" ||
1499
-        this.currentDept.typeValue == "checkRoom"
1494
+        this.currentDept.typeValue == "checkRoom" ||
1495
+        (this.currentDept.typeValue == 'surgery' && this.tabSearchCont)
1500 1496
       ) {
1501 1497
         delete postData["patient"]["department"]; //搜索范围为全院在院患者
1502 1498
       } else {
@@ -1506,12 +1502,12 @@ export class HushijiandanComponent implements OnInit {
1506 1502
 
1507 1503
     this.snum++;
1508 1504
     this.mainService
1509
-      .getFetchDataList(this.currentDept.typeValue == 'surgery' ? "simple/data" : 'nurse', this.currentDept.typeValue == 'surgery' ? "surgery" : 'patient', postData)
1505
+      .getFetchDataList((this.currentDept.typeValue == 'surgery' && !this.tabSearchCont) ? "simple/data" : 'nurse', (this.currentDept.typeValue == 'surgery' && !this.tabSearchCont) ? "surgery" : 'patient', postData)
1510 1506
       .subscribe((data) => {
1511 1507
         this.snum--;
1512 1508
         if (data.list.length > 0) {
1513 1509
           data.list.forEach((item) => {
1514
-            if(this.currentDept.typeValue == 'surgery'){
1510
+            if(this.currentDept.typeValue == 'surgery' && !this.tabSearchCont){
1515 1511
               if (item.patientDTO && item.patientDTO.focusPatient === undefined) {
1516 1512
                 item.patientDTO.focusPatient = 0;
1517 1513
               }