Browse Source

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

seimin 1 year ago
parent
commit
495e9c5c1c

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

@@ -44,7 +44,7 @@
44
             class="checkItem checked"
44
             class="checkItem checked"
45
             (click)="changeInfo()"
45
             (click)="changeInfo()"
46
           >
46
           >
47
-          {{currentDept.typeValue == 'surgery' ? '手术安排信息' : '患者信息'}}
47
+          {{(currentDept.typeValue == 'surgery' && !this.tabSearchCont) ? '手术安排信息' : '患者信息'}}
48
           </button>
48
           </button>
49
         </div>
49
         </div>
50
         <!-- 患者信息-复苏室科室类型 -->
50
         <!-- 患者信息-复苏室科室类型 -->
@@ -178,7 +178,7 @@
178
           </overlay-scrollbars>
178
           </overlay-scrollbars>
179
         </div>
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
           <overlay-scrollbars #osComponentRef4 class="box">
182
           <overlay-scrollbars #osComponentRef4 class="box">
183
             <div
183
             <div
184
               class="loading display_flex align-items_center justify-content_flex-center"
184
               class="loading display_flex align-items_center justify-content_flex-center"
@@ -308,7 +308,7 @@
308
           </overlay-scrollbars>
308
           </overlay-scrollbars>
309
         </div>
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
           <overlay-scrollbars #osComponentRef4 class="box">
312
           <overlay-scrollbars #osComponentRef4 class="box">
313
             <div
313
             <div
314
               class="loading display_flex align-items_center justify-content_flex-center"
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
     this.getCloseTimeFlag();
175
     this.getCloseTimeFlag();
176
     this.currentDept = this.tool.getCurrentUserDept();
176
     this.currentDept = this.tool.getCurrentUserDept();
177
     console.log(this.currentDept, this.tabSearchCont);
177
     console.log(this.currentDept, this.tabSearchCont);
178
-    this.currentDept.typeValue == 'surgery' && this.getSurgeryConfig();
178
+    this.currentDept.typeValue == 'surgery' && !this.tabSearchCont && this.getSurgeryConfig();
179
     this.getSpecimenButton();
179
     this.getSpecimenButton();
180
     //防抖
180
     //防抖
181
     this.getAccountList();
181
     this.getAccountList();
@@ -581,7 +581,7 @@ export class HushijiandanComponent implements OnInit {
581
   // 获取标本按钮
581
   // 获取标本按钮
582
   specimenButton = "";
582
   specimenButton = "";
583
   getSpecimenButton() {
583
   getSpecimenButton() {
584
-    if(this.currentDept.typeValue == 'surgery'){
584
+    if(this.currentDept.typeValue == 'surgery' && !this.tabSearchCont){
585
       return;
585
       return;
586
     }
586
     }
587
     let postData = {
587
     let postData = {
@@ -677,7 +677,7 @@ export class HushijiandanComponent implements OnInit {
677
   yyDate = null; //预约日期-陪检
677
   yyDate = null; //预约日期-陪检
678
   yyDateZy = null; //预约日期-转运
678
   yyDateZy = null; //预约日期-转运
679
   getRecentInfo(patientCode) {
679
   getRecentInfo(patientCode) {
680
-    if(this.currentDept.typeValue == 'surgery'){
680
+    if(this.currentDept.typeValue == 'surgery' && !this.tabSearchCont){
681
       return;
681
       return;
682
     }
682
     }
683
     this.recentInfo = "";
683
     this.recentInfo = "";
@@ -859,7 +859,7 @@ export class HushijiandanComponent implements OnInit {
859
 
859
 
860
   // 急标普标数量
860
   // 急标普标数量
861
   getSpecimenWorkOrderMsg() {
861
   getSpecimenWorkOrderMsg() {
862
-    if(this.currentDept.typeValue == 'surgery'){
862
+    if(this.currentDept.typeValue == 'surgery' && !this.tabSearchCont){
863
       return;
863
       return;
864
     }
864
     }
865
     let that = this;
865
     let that = this;
@@ -946,7 +946,7 @@ export class HushijiandanComponent implements OnInit {
946
   // 药品静配提示信息
946
   // 药品静配提示信息
947
   drugJpLoading = false;
947
   drugJpLoading = false;
948
   getJpDrugsWKOMsg() {
948
   getJpDrugsWKOMsg() {
949
-    if(this.currentDept.typeValue == 'surgery'){
949
+    if(this.currentDept.typeValue == 'surgery' && !this.tabSearchCont){
950
       return;
950
       return;
951
     }
951
     }
952
     let that = this;
952
     let that = this;
@@ -1448,12 +1448,7 @@ export class HushijiandanComponent implements OnInit {
1448
   // 获取患者信息
1448
   // 获取患者信息
1449
   snum = 0;
1449
   snum = 0;
1450
   getPatient(e?) {
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
       this.pLoading = false;
1452
       this.pLoading = false;
1458
       this.patientList = [];
1453
       this.patientList = [];
1459
       this.infoLength = 0;
1454
       this.infoLength = 0;
@@ -1464,7 +1459,7 @@ export class HushijiandanComponent implements OnInit {
1464
       idx: this.infoPageIdx - 1,
1459
       idx: this.infoPageIdx - 1,
1465
       sum: 10,
1460
       sum: 10,
1466
     };
1461
     };
1467
-    if(this.currentDept.typeValue == 'surgery'){
1462
+    if(this.currentDept.typeValue == 'surgery' && !this.tabSearchCont){
1468
       // 手术安排信息-手术室类型
1463
       // 手术安排信息-手术室类型
1469
       postData["surgery"] = {
1464
       postData["surgery"] = {
1470
         searchKey: e ? e : this.tabSearchCont,
1465
         searchKey: e ? e : this.tabSearchCont,
@@ -1496,7 +1491,8 @@ export class HushijiandanComponent implements OnInit {
1496
       if (
1491
       if (
1497
         this.currentDept.typeValue == "checkRoom2" ||
1492
         this.currentDept.typeValue == "checkRoom2" ||
1498
         this.currentDept.typeValue == "outpatientDept" ||
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
         delete postData["patient"]["department"]; //搜索范围为全院在院患者
1497
         delete postData["patient"]["department"]; //搜索范围为全院在院患者
1502
       } else {
1498
       } else {
@@ -1506,12 +1502,12 @@ export class HushijiandanComponent implements OnInit {
1506
 
1502
 
1507
     this.snum++;
1503
     this.snum++;
1508
     this.mainService
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
       .subscribe((data) => {
1506
       .subscribe((data) => {
1511
         this.snum--;
1507
         this.snum--;
1512
         if (data.list.length > 0) {
1508
         if (data.list.length > 0) {
1513
           data.list.forEach((item) => {
1509
           data.list.forEach((item) => {
1514
-            if(this.currentDept.typeValue == 'surgery'){
1510
+            if(this.currentDept.typeValue == 'surgery' && !this.tabSearchCont){
1515
               if (item.patientDTO && item.patientDTO.focusPatient === undefined) {
1511
               if (item.patientDTO && item.patientDTO.focusPatient === undefined) {
1516
                 item.patientDTO.focusPatient = 0;
1512
                 item.patientDTO.focusPatient = 0;
1517
               }
1513
               }