general fom updated
This commit is contained in:
parent
130a6e7da1
commit
b011f06bdb
@ -165,8 +165,11 @@ export class GeneralInfoComponent implements OnInit {
|
|||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// exist_status
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
let relationControl = <FormArray>this._generalForm.controls['applicant_relation'];
|
let relationControl = <FormArray>this._generalForm.controls['applicant_relation'];
|
||||||
@ -178,6 +181,7 @@ export class GeneralInfoComponent implements OnInit {
|
|||||||
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
if(item.pd_co_applicant_id.value!=0){
|
||||||
let relationControl = <FormArray>this._generalForm.controls['applicant_relation'];
|
let relationControl = <FormArray>this._generalForm.controls['applicant_relation'];
|
||||||
let pos_id = relationControl.value.map(e=> e.pd_co_applicant_id).indexOf(item.pd_co_applicant_id.value);
|
let pos_id = relationControl.value.map(e=> e.pd_co_applicant_id).indexOf(item.pd_co_applicant_id.value);
|
||||||
relationControl.removeAt(pos_id);
|
relationControl.removeAt(pos_id);
|
||||||
@ -185,6 +189,7 @@ export class GeneralInfoComponent implements OnInit {
|
|||||||
let pos_name=this.fetch_related_details.indexOf(item.applicant_name.value);
|
let pos_name=this.fetch_related_details.indexOf(item.applicant_name.value);
|
||||||
this.fetch_related_details.splice(pos_name, 1);
|
this.fetch_related_details.splice(pos_name, 1);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// submit form details
|
// submit form details
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user