seimin il y a 3 ans
Parent
commit
70adf68f6c

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

@@ -1,7 +1,7 @@
1
 <!-- 删除模态框 -->
1
 <!-- 删除模态框 -->
2
 <div class="dialog-delete" *ngIf="delModal">
2
 <div class="dialog-delete" *ngIf="delModal">
3
   <div class="modalBody">
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
     <div class="content">
5
     <div class="content">
6
       <div class="icon"><i class="icon_transport transport-wenhao"></i></div>
6
       <div class="icon"><i class="icon_transport transport-wenhao"></i></div>
7
       <div class="defeat">{{content}}</div>
7
       <div class="defeat">{{content}}</div>
@@ -9,7 +9,7 @@
9
     </div>
9
     </div>
10
     <div class="operate">
10
     <div class="operate">
11
       <button nz-button nzType="primary" (click)="confirmDel()" [nzLoading]="btnLoading">{{confirmTxt}}</button>
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
     </div>
13
     </div>
14
   </div>
14
   </div>
15
 </div>
15
 </div>

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

@@ -20,8 +20,8 @@ export class DialogDeleteComponent implements OnInit {
20
   ngOnInit() {
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
   confirmDel() {
27
   confirmDel() {

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

@@ -1208,6 +1208,6 @@
1208
 <!-- 遮罩 -->
1208
 <!-- 遮罩 -->
1209
 <app-mask *ngIf="maskFlag"></app-mask>
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
   [btnLoading]="accompanyLoading" [cancenlLoading]="cancenlLoading" (confirmDelEvent)="confirmAccompany()"
1212
   [btnLoading]="accompanyLoading" [cancenlLoading]="cancenlLoading" (confirmDelEvent)="confirmAccompany()"
1213
   confirmTxt="是" cancelTxt="否" content="您选择的患者是危重或特级护理或一级护理患者,请问是否需要医护陪同检查?"></app-dialog-delete>
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
       if (
668
       if (
670
         this.patientMsg.careLevel.value === "0" ||
669
         this.patientMsg.careLevel.value === "0" ||
671
         this.patientMsg.careLevel.value === "1"
670
         this.patientMsg.careLevel.value === "1"
672
       ) {
671
       ) {
673
-        isAccompany = true;
674
         this.btnLoading = false;
672
         this.btnLoading = false;
675
         this.btnLoading1 = false;
673
         this.btnLoading1 = false;
676
         this.accompany(this.confirmPostData, this.confirmYuyue, "patient-yy");
674
         this.accompany(this.confirmPostData, this.confirmYuyue, "patient-yy");
677
         return;
675
         return;
678
       }
676
       }
679
     }
677
     }
680
-    if (this.patientMsg.illnessState && !isAccompany) {
678
+    if (this.patientMsg.illnessState && this.currentTasktype.isAccompany == 1) {
681
       //病危或病重
679
       //病危或病重
682
       if (
680
       if (
683
         this.patientMsg.illnessState.value === "2" ||
681
         this.patientMsg.illnessState.value === "2" ||
@@ -970,21 +968,22 @@ export class HushijiandanComponent implements OnInit {
970
         postData.workOrder["isRemand"] = this.isRemand ? 1 : 0;
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
         if (
973
         if (
977
           this.patientMsg.careLevel.value === "0" ||
974
           this.patientMsg.careLevel.value === "0" ||
978
           this.patientMsg.careLevel.value === "1"
975
           this.patientMsg.careLevel.value === "1"
979
         ) {
976
         ) {
980
-          isAccompany = true;
981
           this.btnLoading = false;
977
           this.btnLoading = false;
982
           this.btnLoading1 = false;
978
           this.btnLoading1 = false;
983
           this.accompany(postData, yuyue, "patient");
979
           this.accompany(postData, yuyue, "patient");
984
           return;
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
         if (
988
         if (
990
           this.patientMsg.illnessState.value === "2" ||
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
     this.accompanyPostData.workOrder.isAccompany = 0;
1086
     this.accompanyPostData.workOrder.isAccompany = 0;
1082
     this.cancenlLoading = true;
1087
     this.cancenlLoading = true;
1083
     if (this.accompanyType == "patient") {
1088
     if (this.accompanyType == "patient") {
@@ -1130,9 +1135,13 @@ export class HushijiandanComponent implements OnInit {
1130
   // 切换患者送检检查项目
1135
   // 切换患者送检检查项目
1131
   checkedShowMsg: any = {}; //患者送检检查项目对应展示信息
1136
   checkedShowMsg: any = {}; //患者送检检查项目对应展示信息
1132
   current_allowUrgent = false; //当前任务类型是否允许加急
1137
   current_allowUrgent = false; //当前任务类型是否允许加急
1138
+  currentTasktype; //当前选中的任务类型对象
1133
   changeCheckedType() {
1139
   changeCheckedType() {
1134
     this.clickYYFlag = false;
1140
     this.clickYYFlag = false;
1135
     this.clickYYZyFlag = false;
1141
     this.clickYYZyFlag = false;
1142
+    this.currentTasktype = this.checkTypeLis.find(
1143
+      (item) => item.id == this.patientForm.controls.checkedType.value
1144
+    );
1136
     // 获取患者其他服务,护士端是否预约建单
1145
     // 获取患者其他服务,护士端是否预约建单
1137
     let appointmentZyBuildFlag = this.checkTypeLis.filter(
1146
     let appointmentZyBuildFlag = this.checkTypeLis.filter(
1138
       (item) =>
1147
       (item) =>