seimin 1 vuosi sitten
vanhempi
commit
33d690b3e1

+ 2 - 2
src/app/views/task-type-management/task-type-management.component.html

@@ -701,11 +701,11 @@
701 701
           </div>
702 702
           <!-- 是否支持多动作签到 -->
703 703
           <div class="turnoff" *ngIf="currentChoice.associationType.value == 'other'&&indexs==1">
704
-            <label nz-checkbox [(ngModel)]="carryingCourses[indexs].actionsSwitch">是否支持多动作签到</label>
704
+            <label nz-checkbox [(ngModel)]="carryingCourses[indexs].actionsSwitch" (ngModelChange)="changeActionsSwitch($event)">是否支持多动作签到</label>
705 705
           </div>
706 706
           <!-- 确认动作 -->
707 707
           <div class="turnoff" *ngIf="carryingCourses[indexs].actionsSwitch">
708
-            <label nz-checkbox [(ngModel)]="carryingCourses[indexs].actionConfirmSwitch">确认动作</label>
708
+            <label nz-checkbox [(ngModel)]="carryingCourses[indexs].actionConfirmSwitch" (ngModelChange)="changeActionConfirmSwitch($event)">确认动作</label>
709 709
             <ng-container *ngIf="carryingCourses[indexs].actionConfirmSwitch">
710 710
               <button nz-button nzType="dashed" (click)="addActions()" *ngIf="!carryingCourses[indexs].actionRemarks">
711 711
                 <i nz-icon nzType="plus"></i>

+ 19 - 0
src/app/views/task-type-management/task-type-management.component.ts

@@ -1229,6 +1229,11 @@ export class TaskTypeManagementComponent implements OnInit {
1229 1229
       this.taskData.taskType.carryingCourses[0].autoAddDeptSwitch = 0; //自动建单追加终点科室开关
1230 1230
       this.taskData.taskType.carryingCourses[0].handAddDeptSwitch = 0; //手动建单追加终点科室开关
1231 1231
     }
1232
+    // 其他临床服务,是否支持多动作签到开启后,必须配置至少确认动作,拍照动作
1233
+    if(this.taskData.taskType.associationType.value === 'other' && this.taskData.taskType.carryingCourses[1].actionsSwitch && !this.taskData.taskType.carryingCourses[1].actionConfirmSwitch && !this.taskData.taskType.carryingCourses[1].actionPhotoSwitch){
1234
+      this.showPromptModal("提示", false, "是否支持多动作签到开启后,请配置确认动作或拍照动作!");
1235
+      return;
1236
+    }
1232 1237
     // 其他临床服务,多动作开启后,必须配置至少一个动作
1233 1238
     if(this.taskData.taskType.associationType.value === 'other' && this.taskData.taskType.carryingCourses[1].actionConfirmSwitch && !this.taskData.taskType.carryingCourses[1].actionRemarks){
1234 1239
       this.showPromptModal("提示", false, "确认动作开启后,至少配置一个动作!");
@@ -2508,4 +2513,18 @@ export class TaskTypeManagementComponent implements OnInit {
2508 2513
       });
2509 2514
     }
2510 2515
   }
2516
+
2517
+  // 修改是否支持多院区签到
2518
+  changeActionsSwitch(e){
2519
+    if(!e){
2520
+      this.carryingCourses[this.indexs].actionRemarks = '';
2521
+    }
2522
+  }
2523
+
2524
+  // 修改是否确认动作
2525
+  changeActionConfirmSwitch(e){
2526
+    if(!e){
2527
+      this.carryingCourses[this.indexs].actionRemarks = '';
2528
+    }
2529
+  }
2511 2530
 }