|
@@ -82,7 +82,10 @@ export class TaskTypeManagementComponent implements OnInit {
|
82
|
82
|
allScheduleClass; //班次列表
|
83
|
83
|
//基础信息详情字段
|
84
|
84
|
taskName; //任务名称
|
85
|
|
- association: any = {}; //关联类型
|
|
85
|
+ association: any = {
|
|
86
|
+ id: "",
|
|
87
|
+ value: "",
|
|
88
|
+ }; //关联类型
|
86
|
89
|
relatedBusiness: any = {
|
87
|
90
|
id: "",
|
88
|
91
|
value: "",
|
|
@@ -564,12 +567,13 @@ export class TaskTypeManagementComponent implements OnInit {
|
564
|
567
|
this.createRuleConfiguration[index] = data;
|
565
|
568
|
}
|
566
|
569
|
//类型选择
|
567
|
|
- asso(data): void {
|
|
570
|
+ asso(id): void {
|
|
571
|
+ this.association = this.allAssociation.find(v=>v.id == id);
|
568
|
572
|
this.relatedBusiness = {
|
569
|
573
|
id:'',
|
570
|
574
|
value:''
|
571
|
575
|
}
|
572
|
|
- if (data.id == 260) {
|
|
576
|
+ if (id == 260) {
|
573
|
577
|
this.carryingCourses = [
|
574
|
578
|
{
|
575
|
579
|
nodeId: { id: 261 },
|
|
@@ -603,7 +607,6 @@ export class TaskTypeManagementComponent implements OnInit {
|
603
|
607
|
this.getSearchTaskList();
|
604
|
608
|
}
|
605
|
609
|
}
|
606
|
|
- compareFn = (o1: any, o2: any) => (o1 && o2 ? o1.id === o2.id : o1 === o2);
|
607
|
610
|
//选择类型
|
608
|
611
|
currentChoice;
|
609
|
612
|
itemChoice(data, index) {
|
|
@@ -620,7 +623,8 @@ export class TaskTypeManagementComponent implements OnInit {
|
620
|
623
|
};
|
621
|
624
|
this.taskData.taskType["id"] = data.id;
|
622
|
625
|
this.taskName = data.taskName;
|
623
|
|
- this.association = data.associationType;
|
|
626
|
+ this.association.id = data.associationType.id + "";
|
|
627
|
+ this.association.value = data.associationType.value;
|
624
|
628
|
this.getType();
|
625
|
629
|
this.departments = [];
|
626
|
630
|
this.mapOfCheckedId = {};
|
|
@@ -1205,7 +1209,7 @@ export class TaskTypeManagementComponent implements OnInit {
|
1205
|
1209
|
this.departmentIds = "";
|
1206
|
1210
|
this.departmentTypeIds = "";
|
1207
|
1211
|
this.taskName = ""; //任务名称
|
1208
|
|
- this.association = {}; //关联类型
|
|
1212
|
+ this.association.id = null; //关联类型
|
1209
|
1213
|
this.getAllGoods(); //获取携带设备
|
1210
|
1214
|
this.getAllScheduleClass(); //获取班次列表
|
1211
|
1215
|
this.allowUrgent = "1"; //是否加急
|