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