|
@@ -46,6 +46,9 @@ export class ProjectManageArchivesAddEssentialInformationComponent implements On
|
|
|
validateForm!: FormGroup;
|
|
|
projectManageArchivesa: ProjectManageArchives = {
|
|
|
totalPrice: 0,
|
|
|
+ impConsultantList:[],
|
|
|
+ deEngineerList:[],
|
|
|
+ seEngineerList:[]
|
|
|
}; //项目档案主表对象
|
|
|
proList: any = []; //项目立项档案数据集合
|
|
|
cusList = []; //客户档案数据集合
|
|
@@ -199,7 +202,7 @@ export class ProjectManageArchivesAddEssentialInformationComponent implements On
|
|
|
});
|
|
|
});
|
|
|
});
|
|
|
- this.getProjectManageArchivesa();
|
|
|
+ this.getProjectManageArchivesa(type);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -271,13 +274,64 @@ export class ProjectManageArchivesAddEssentialInformationComponent implements On
|
|
|
this.projectManageArchivesa.seEngineer = '';
|
|
|
}
|
|
|
}
|
|
|
- this.getProjectManageArchivesa();
|
|
|
+ this.getProjectManageArchivesa(type);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ // //人员选择信息回写到其他页签的执行人
|
|
|
+ // @Output() personnelIds = new EventEmitter<{}>();
|
|
|
+ // getPersonnelIds(type){
|
|
|
+ // //参数人员ids,类型(2实施、3开发、4服务)
|
|
|
+ // let personnelIds=[];
|
|
|
+ // if(type==='2'){//实施
|
|
|
+ // personnelIds.push(this.projectManageArchivesa.impManagerId);//实施经理
|
|
|
+ // Array.prototype.push.apply(personnelIds, this.impConsultantIds);//实施顾问
|
|
|
+ // }
|
|
|
+ // if(type==='3'){//开发
|
|
|
+ // personnelIds.push(this.projectManageArchivesa.deManagerId);//开发经理
|
|
|
+ // Array.prototype.push.apply(personnelIds, this.deEngineerIds);//开发工程师
|
|
|
+ // }
|
|
|
+ // if(type==='4'){//服务
|
|
|
+ // personnelIds.push(this.projectManageArchivesa.seManagerId);//服务经理
|
|
|
+ // Array.prototype.push.apply(personnelIds, this.seEngineerIds);//服务工程师
|
|
|
+ // }
|
|
|
+ // let per={personnelIds:personnelIds,type:type}
|
|
|
+ // this.personnelIds.emit(per);
|
|
|
+ // }
|
|
|
+
|
|
|
//基本信息回写到其他页签
|
|
|
@Output() projectManageArchivesaEntiy = new EventEmitter<{}>();
|
|
|
- getProjectManageArchivesa() {
|
|
|
+ getProjectManageArchivesa(type?:any) {
|
|
|
+ //获取人员id传到其他页签
|
|
|
+ if(type){
|
|
|
+ if(type==='2'){//实施
|
|
|
+ this.projectManageArchivesa.impConsultantList=[];
|
|
|
+ if(this.projectManageArchivesa.impManagerId){
|
|
|
+ this.projectManageArchivesa.impConsultantList.push(this.projectManageArchivesa.impManagerId);//实施经理
|
|
|
+ }
|
|
|
+ if(this.impConsultantIds&&this.impConsultantIds.length>0){
|
|
|
+ Array.prototype.push.apply(this.projectManageArchivesa.impConsultantList, this.impConsultantIds);//实施顾问
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(type==='3'){//开发
|
|
|
+ this.projectManageArchivesa.deEngineerList=[]
|
|
|
+ if(this.projectManageArchivesa.deManagerId){
|
|
|
+ this.projectManageArchivesa.deEngineerList.push(this.projectManageArchivesa.deManagerId);//开发经理
|
|
|
+ }
|
|
|
+ if(this.deEngineerIds&&this.deEngineerIds.length>0){
|
|
|
+ Array.prototype.push.apply(this.projectManageArchivesa.deEngineerList, this.deEngineerIds);//开发工程师
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(type==='4'){//服务
|
|
|
+ this.projectManageArchivesa.seEngineerList=[];
|
|
|
+ if(this.projectManageArchivesa.seManagerId){
|
|
|
+ this.projectManageArchivesa.seEngineerList.push(this.projectManageArchivesa.seManagerId);//服务经理
|
|
|
+ }
|
|
|
+ if(this.seEngineerIds&&this.seEngineerIds.length>0){
|
|
|
+ Array.prototype.push.apply(this.projectManageArchivesa.seEngineerList, this.seEngineerIds);//服务工程师
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
this.projectManageArchivesaEntiy.emit(this.projectManageArchivesa);
|
|
|
}
|
|
|
|