business form changes
This commit is contained in:
parent
b4aaa5433c
commit
6b693aadec
@ -70,7 +70,7 @@
|
||||
</mat-form-field>
|
||||
<mat-form-field>
|
||||
<mat-select multiple placeholder="Other family members invovled"
|
||||
formControlName="other_main_person"formControlName="family_members_involved" (selectionChange)="relationChanged($event)">
|
||||
formControlName="family_members_involved" (selectionChange)="relationChanged($event)">
|
||||
<mat-option value="{{member.relationship_id}}" *ngFor="let member of relationData">{{member.name}}</mat-option>
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
|
||||
@ -75,13 +75,19 @@ export class BusinessInfoComponent implements OnInit {
|
||||
return data.records.family_members_involved[key];
|
||||
});
|
||||
let enduse: any = [];
|
||||
let existRelative: any =[];
|
||||
selectedMembers.forEach(val => {
|
||||
enduse.push(val.member);
|
||||
existRelative.push(val);
|
||||
});
|
||||
this.relativeNames = existRelative;
|
||||
if (DesgnArray.length == 0) {
|
||||
Desgn.push(this.createDesignation());
|
||||
} else {
|
||||
DesgnArray.forEach(datas => {
|
||||
Desgn.push(this.createDesignation());
|
||||
});
|
||||
|
||||
}
|
||||
if (PartnrArray.length == 0) {
|
||||
Partnr.push(this.createPartners());
|
||||
@ -90,7 +96,7 @@ export class BusinessInfoComponent implements OnInit {
|
||||
Partnr.push(this.createPartners());
|
||||
});
|
||||
}
|
||||
if (data.other_documents == 'yes') {
|
||||
if (data.records.other_documents == 'yes') {
|
||||
DocArray = Object.keys(data.records.documents).map(function (key) {
|
||||
return data.records.documents[key];
|
||||
});
|
||||
@ -114,7 +120,6 @@ export class BusinessInfoComponent implements OnInit {
|
||||
businessVal.designation = DesgnArray;
|
||||
businessVal.partners = PartnrArray;
|
||||
businessVal.documents = DocArray;
|
||||
console.log('businessVal', businessVal);
|
||||
|
||||
this.businessForm.setValue(businessVal);
|
||||
} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user