浏览代码

其他临床服务起点科室多动作签到

seimin 1 年之前
父节点
当前提交
1759f73b7b

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

@@ -734,11 +734,11 @@
734 734
           </div>
735 735
           <!-- 是否支持拍照签到 -->
736 736
           <div class="turnoff" *ngIf="currentChoice.associationType.value == 'other'&&indexs==0">
737
-            <label nz-checkbox [(ngModel)]="carryingCourses[indexs].photoSwitch">是否支持拍照签到</label>
737
+            <label nz-checkbox [nzDisabled]="carryingCourses[indexs].actionsSwitch == 1" [(ngModel)]="carryingCourses[indexs].photoSwitch">是否支持拍照签到</label>
738 738
           </div>
739 739
           <!-- 是否支持多动作签到 -->
740
-          <div class="turnoff" *ngIf="currentChoice.associationType.value == 'other'&&indexs==1">
741
-            <label nz-checkbox [(ngModel)]="carryingCourses[indexs].actionsSwitch" (ngModelChange)="changeActionsSwitch($event)">是否支持多动作签到</label>
740
+          <div class="turnoff" *ngIf="currentChoice.associationType.value == 'other'">
741
+            <label nz-checkbox [nzDisabled]="indexs==0 && carryingCourses[indexs].photoSwitch == 1" [(ngModel)]="carryingCourses[indexs].actionsSwitch" (ngModelChange)="changeActionsSwitch($event)">是否支持多动作签到</label>
742 742
           </div>
743 743
           <!-- 确认动作 -->
744 744
           <div class="turnoff" *ngIf="carryingCourses[indexs].actionsSwitch">
@@ -755,6 +755,15 @@
755 755
               </button>
756 756
             </ng-container>
757 757
           </div>
758
+          <!-- 确认动作类型 -->
759
+          <div class="turnoff" *ngIf="carryingCourses[indexs].actionConfirmSwitch">
760
+            <nz-form-label class="label" nzRequired>确认动作模式</nz-form-label>
761
+            <nz-radio-group [(ngModel)]="carryingCourses[indexs].actionConfirmType">
762
+              <label nz-radio [nzValue]="1">多选必全选</label>
763
+              <label nz-radio [nzValue]="2">多选至少一项</label>
764
+              <label nz-radio [nzValue]="3">单选</label>
765
+            </nz-radio-group>
766
+          </div>
758 767
           <!-- 拍照动作 -->
759 768
           <div class="turnoff" *ngIf="carryingCourses[indexs].actionsSwitch">
760 769
             <label nz-checkbox [(ngModel)]="carryingCourses[indexs].actionPhotoSwitch">拍照动作</label>

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

@@ -1384,15 +1384,22 @@ export class TaskTypeManagementComponent implements OnInit {
1384 1384
       this.taskData.taskType.carryingCourses[0].autoAddDeptSwitch = 0; //自动建单追加终点科室开关
1385 1385
       this.taskData.taskType.carryingCourses[0].handAddDeptSwitch = 0; //手动建单追加终点科室开关
1386 1386
     }
1387
-    // 其他临床服务,是否支持多动作签到开启后,必须配置至少确认动作,拍照动作
1388
-    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){
1389
-      this.showPromptModal("提示", false, "是否支持多动作签到开启后,请配置确认动作或拍照动作!");
1390
-      return;
1391
-    }
1392
-    // 其他临床服务,多动作开启后,必须配置至少一个动作
1393
-    if(this.taskData.taskType.associationType.value === 'other' && this.taskData.taskType.carryingCourses[1].actionConfirmSwitch && !this.taskData.taskType.carryingCourses[1].actionRemarks){
1394
-      this.showPromptModal("提示", false, "确认动作开启后,至少配置一个动作!");
1395
-      return;
1387
+    for(let i = 0; i < this.taskData.taskType.carryingCourses.length; i++){
1388
+      // 其他临床服务,是否支持多动作签到开启后,必须配置至少确认动作,拍照动作
1389
+      if(this.taskData.taskType.associationType.value === 'other' && this.taskData.taskType.carryingCourses[i].actionsSwitch && !this.taskData.taskType.carryingCourses[i].actionConfirmSwitch && !this.taskData.taskType.carryingCourses[i].actionPhotoSwitch){
1390
+        this.showPromptModal("提示", false, `【${i == 0 ? '起点科室' : '终点科室'}】是否支持多动作签到开启后,请配置确认动作或拍照动作!`);
1391
+        return;
1392
+      }
1393
+      // 其他临床服务,多动作开启后,必须配置至少一个动作
1394
+      if(this.taskData.taskType.associationType.value === 'other' && this.taskData.taskType.carryingCourses[i].actionConfirmSwitch && !this.taskData.taskType.carryingCourses[i].actionRemarks){
1395
+        this.showPromptModal("提示", false, `【${i == 0 ? '起点科室' : '终点科室'}】确认动作开启后,至少配置一个动作!`);
1396
+        return;
1397
+      }
1398
+      // 其他临床服务,多动作开启后,必须配置确认动作模式
1399
+      if(this.taskData.taskType.associationType.value === 'other' && this.taskData.taskType.carryingCourses[i].actionConfirmSwitch && !this.taskData.taskType.carryingCourses[i].actionConfirmType){
1400
+        this.showPromptModal("提示", false, `【${i == 0 ? '起点科室' : '终点科室'}】确认动作开启后,请配置确认动作模式!`);
1401
+        return;
1402
+      }
1396 1403
     }
1397 1404
     console.log(this.taskData);
1398 1405
     // return;
@@ -1462,9 +1469,9 @@ export class TaskTypeManagementComponent implements OnInit {
1462 1469
     this.departmentIds = "";
1463 1470
     this.departmentTypeIds = "";
1464 1471
     this.taskName = ""; //任务名称
1465
-    this.urgeWeight = ''; 
1466
-    this.commonWeight = ''; 
1467
-    this.countRemark = ''; 
1472
+    this.urgeWeight = '';
1473
+    this.commonWeight = '';
1474
+    this.countRemark = '';
1468 1475
     this.association = {
1469 1476
       id: null,
1470 1477
       value: "",