|
@@ -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: "",
|