seimin 3 gadi atpakaļ
vecāks
revīzija
70adf68f6c

+ 2 - 2
src/app/share/dialog-delete/dialog-delete.component.html

@@ -1,7 +1,7 @@
1 1
 <!-- 删除模态框 -->
2 2
 <div class="dialog-delete" *ngIf="delModal">
3 3
   <div class="modalBody">
4
-    <div class="title">提示<i class="icon_transport transport-guanbi" (click)="hideDelModal()"></i></div>
4
+    <div class="title">提示<i class="icon_transport transport-guanbi" (click)="hideDelModal('x')"></i></div>
5 5
     <div class="content">
6 6
       <div class="icon"><i class="icon_transport transport-wenhao"></i></div>
7 7
       <div class="defeat">{{content}}</div>
@@ -9,7 +9,7 @@
9 9
     </div>
10 10
     <div class="operate">
11 11
       <button nz-button nzType="primary" (click)="confirmDel()" [nzLoading]="btnLoading">{{confirmTxt}}</button>
12
-      <button class="btn cancel ml8" nz-button nzType="default" (click)="hideDelModal()" [nzLoading]="cancenlLoading">{{cancelTxt}}</button>
12
+      <button class="btn cancel ml8" nz-button nzType="default" (click)="hideDelModal('cancel')" [nzLoading]="cancenlLoading">{{cancelTxt}}</button>
13 13
     </div>
14 14
   </div>
15 15
 </div>

+ 2 - 2
src/app/share/dialog-delete/dialog-delete.component.ts

@@ -20,8 +20,8 @@ export class DialogDeleteComponent implements OnInit {
20 20
   ngOnInit() {
21 21
   }
22 22
   // 隐藏
23
-  hideDelModal() {
24
-    this.hideDelModalEvent.emit();
23
+  hideDelModal(e:string) {
24
+    this.hideDelModalEvent.emit(e);
25 25
   }
26 26
   // 确认删除
27 27
   confirmDel() {

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

@@ -1208,6 +1208,6 @@
1208 1208
 <!-- 遮罩 -->
1209 1209
 <app-mask *ngIf="maskFlag"></app-mask>
1210 1210
 <!-- 是否需要医护陪同检查模态框 -->
1211
-<app-dialog-delete [delModal]="accompanyModal" (hideDelModalEvent)="hideAccompanyModal()"
1211
+<app-dialog-delete [delModal]="accompanyModal" (hideDelModalEvent)="hideAccompanyModal($event)"
1212 1212
   [btnLoading]="accompanyLoading" [cancenlLoading]="cancenlLoading" (confirmDelEvent)="confirmAccompany()"
1213 1213
   confirmTxt="是" cancelTxt="否" content="您选择的患者是危重或特级护理或一级护理患者,请问是否需要医护陪同检查?"></app-dialog-delete>

+ 18 - 9
src/app/views/hushijiandan/hushijiandan.component.ts

@@ -663,21 +663,19 @@ export class HushijiandanComponent implements OnInit {
663 663
       );
664 664
     }
665 665
     //是否需要医护陪同检查
666
-    let isAccompany = false;
667
-    if (this.patientMsg.careLevel && !isAccompany) {
666
+    if (this.patientMsg.careLevel && this.currentTasktype.isAccompany == 1) {
668 667
       //特级护理或一级护理
669 668
       if (
670 669
         this.patientMsg.careLevel.value === "0" ||
671 670
         this.patientMsg.careLevel.value === "1"
672 671
       ) {
673
-        isAccompany = true;
674 672
         this.btnLoading = false;
675 673
         this.btnLoading1 = false;
676 674
         this.accompany(this.confirmPostData, this.confirmYuyue, "patient-yy");
677 675
         return;
678 676
       }
679 677
     }
680
-    if (this.patientMsg.illnessState && !isAccompany) {
678
+    if (this.patientMsg.illnessState && this.currentTasktype.isAccompany == 1) {
681 679
       //病危或病重
682 680
       if (
683 681
         this.patientMsg.illnessState.value === "2" ||
@@ -970,21 +968,22 @@ export class HushijiandanComponent implements OnInit {
970 968
         postData.workOrder["isRemand"] = this.isRemand ? 1 : 0;
971 969
       }
972 970
       //是否需要医护陪同检查
973
-      let isAccompany = false;
974
-      if (this.patientMsg.careLevel && !isAccompany) {
971
+      if (this.patientMsg.careLevel && this.currentTasktype.isAccompany == 1) {
975 972
         //特级护理或一级护理
976 973
         if (
977 974
           this.patientMsg.careLevel.value === "0" ||
978 975
           this.patientMsg.careLevel.value === "1"
979 976
         ) {
980
-          isAccompany = true;
981 977
           this.btnLoading = false;
982 978
           this.btnLoading1 = false;
983 979
           this.accompany(postData, yuyue, "patient");
984 980
           return;
985 981
         }
986 982
       }
987
-      if (this.patientMsg.illnessState && !isAccompany) {
983
+      if (
984
+        this.patientMsg.illnessState &&
985
+        this.currentTasktype.isAccompany == 1
986
+      ) {
988 987
         //病危或病重
989 988
         if (
990 989
           this.patientMsg.illnessState.value === "2" ||
@@ -1077,7 +1076,13 @@ export class HushijiandanComponent implements OnInit {
1077 1076
         });
1078 1077
     }
1079 1078
   }
1080
-  hideAccompanyModal() {
1079
+  hideAccompanyModal(e) {
1080
+    console.log(e);
1081
+    if (e === "x") {
1082
+      //关闭
1083
+      this.accompanyModal = false;
1084
+      return;
1085
+    }
1081 1086
     this.accompanyPostData.workOrder.isAccompany = 0;
1082 1087
     this.cancenlLoading = true;
1083 1088
     if (this.accompanyType == "patient") {
@@ -1130,9 +1135,13 @@ export class HushijiandanComponent implements OnInit {
1130 1135
   // 切换患者送检检查项目
1131 1136
   checkedShowMsg: any = {}; //患者送检检查项目对应展示信息
1132 1137
   current_allowUrgent = false; //当前任务类型是否允许加急
1138
+  currentTasktype; //当前选中的任务类型对象
1133 1139
   changeCheckedType() {
1134 1140
     this.clickYYFlag = false;
1135 1141
     this.clickYYZyFlag = false;
1142
+    this.currentTasktype = this.checkTypeLis.find(
1143
+      (item) => item.id == this.patientForm.controls.checkedType.value
1144
+    );
1136 1145
     // 获取患者其他服务,护士端是否预约建单
1137 1146
     let appointmentZyBuildFlag = this.checkTypeLis.filter(
1138 1147
       (item) =>