KYC field added
This commit is contained in:
parent
237fd6dcf9
commit
963c8eee64
@ -99,7 +99,7 @@
|
|||||||
</ion-row>
|
</ion-row>
|
||||||
</ion-label>
|
</ion-label>
|
||||||
<!--<p><ion-icon name="school"></ion-icon> {{item.get('qualification').value}}</p>-->
|
<!--<p><ion-icon name="school"></ion-icon> {{item.get('qualification').value}}</p>-->
|
||||||
<button ion-button align="end" item-end small clear (click)="editIndividuals(i)" >
|
<button ion-button align="end" *ngIf="i > 0" item-end small clear (click)="editIndividuals(i)" >
|
||||||
<ion-icon name="md-create"></ion-icon>
|
<ion-icon name="md-create"></ion-icon>
|
||||||
</button>
|
</button>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
@ -267,7 +267,21 @@
|
|||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</mat-card>
|
</mat-card>
|
||||||
|
|
||||||
|
<mat-card>
|
||||||
|
<mat-form-field style="width:100%" class="mt-1">
|
||||||
|
<mat-select placeholder="KYC"
|
||||||
|
formControlName="is_kyc" (selectionChange)="kycchange($event.value)" required>
|
||||||
|
<mat-option>Select</mat-option>
|
||||||
|
<mat-option *ngFor="let val of KYC" [value]="val.value" >
|
||||||
|
{{val.isdisplayvalue}}
|
||||||
|
</mat-option> </mat-select>
|
||||||
|
<mat-error *ngIf="generalForm.controls['is_kyc'].hasError('required')">KYC Required</mat-error>
|
||||||
|
</mat-form-field>
|
||||||
|
<mat-form-field class="mt-1" style="width: 100%" *ngIf="generalForm.controls.is_kyc.value == 'no'">
|
||||||
|
<input matInput placeholder="Name as per KYC and capture the name." formControlName="kyc_and_captur_the_name"
|
||||||
|
type="text">
|
||||||
|
</mat-form-field>
|
||||||
|
</mat-card>
|
||||||
|
|
||||||
<!--Company Value Display Field-->
|
<!--Company Value Display Field-->
|
||||||
<mat-card style="padding: 0px 10px !important;" *ngIf="customer_segment_abbr != 'SE-RI'">
|
<mat-card style="padding: 0px 10px !important;" *ngIf="customer_segment_abbr != 'SE-RI'">
|
||||||
|
|||||||
@ -3,7 +3,7 @@ import { IonicPage, NavController, NavParams, ModalController, CardTitle, Conten
|
|||||||
import { AwsServiceProvider } from '../../../providers/aws-service/aws-service';
|
import { AwsServiceProvider } from '../../../providers/aws-service/aws-service';
|
||||||
import { QuestionCategoryProvider } from '../../../providers/question-category/question-category';
|
import { QuestionCategoryProvider } from '../../../providers/question-category/question-category';
|
||||||
import { ToastProvider } from '../../../providers/common-provider/toast';
|
import { ToastProvider } from '../../../providers/common-provider/toast';
|
||||||
import { FormGroup, FormBuilder,FormArray,Validator, Validators } from '@angular/forms';
|
import { FormGroup, FormBuilder,FormArray,Validator, Validators, FormControl } from '@angular/forms';
|
||||||
import { PdQuestionGeneralOtherApplicantPage } from './pd-question-general-other-applicant/pd-question-general-other-applicant';
|
import { PdQuestionGeneralOtherApplicantPage } from './pd-question-general-other-applicant/pd-question-general-other-applicant';
|
||||||
import { DatePipe} from '@angular/common';
|
import { DatePipe} from '@angular/common';
|
||||||
import { SearchRelationPipe } from '../../../pipes/search-relation/search-relation';
|
import { SearchRelationPipe } from '../../../pipes/search-relation/search-relation';
|
||||||
@ -86,6 +86,8 @@ export class PdQuestionGeneralInfoPage {
|
|||||||
imageBucket: any=[];
|
imageBucket: any=[];
|
||||||
tab: any='0';
|
tab: any='0';
|
||||||
|
|
||||||
|
public KYC: any = [{value:"yes",isdisplayvalue:"Yes"},{value:"no",isdisplayvalue:"No"}];
|
||||||
|
|
||||||
constructor(public navCtrl: NavController, public navParams: NavParams,
|
constructor(public navCtrl: NavController, public navParams: NavParams,
|
||||||
public aws:AwsServiceProvider,public qustCat:QuestionCategoryProvider,
|
public aws:AwsServiceProvider,public qustCat:QuestionCategoryProvider,
|
||||||
public toast:ToastProvider,public fb:FormBuilder,public modal:ModalController,
|
public toast:ToastProvider,public fb:FormBuilder,public modal:ModalController,
|
||||||
@ -120,6 +122,8 @@ export class PdQuestionGeneralInfoPage {
|
|||||||
company_with_relationships:this.fb.array([]),
|
company_with_relationships:this.fb.array([]),
|
||||||
rental_income_rcv_in_years:[''],
|
rental_income_rcv_in_years:[''],
|
||||||
rental_income_rcv_in_month:[''],
|
rental_income_rcv_in_month:[''],
|
||||||
|
is_kyc: '',
|
||||||
|
kyc_and_captur_the_name: '',
|
||||||
|
|
||||||
general_remark:''
|
general_remark:''
|
||||||
});
|
});
|
||||||
@ -1188,6 +1192,8 @@ console.log('1)',this.temp);
|
|||||||
saveRecords.persons_with_relationships=answerData.persons_with_relationships;
|
saveRecords.persons_with_relationships=answerData.persons_with_relationships;
|
||||||
// saveRecords.company_with_relationships=answerData.company_with_relationships
|
// saveRecords.company_with_relationships=answerData.company_with_relationships
|
||||||
saveRecords.general_remark=answerData.general_remark;
|
saveRecords.general_remark=answerData.general_remark;
|
||||||
|
saveRecords.is_kyc=answerData.is_kyc;
|
||||||
|
saveRecords.kyc_and_captur_the_name=answerData.kyc_and_captur_the_name;
|
||||||
this.spinner_access=true;
|
this.spinner_access=true;
|
||||||
this.cons.getGeoTag().then(res=>{
|
this.cons.getGeoTag().then(res=>{
|
||||||
// console.log("Geo Coords",res)
|
// console.log("Geo Coords",res)
|
||||||
@ -1275,6 +1281,8 @@ console.log('1)',this.temp);
|
|||||||
|
|
||||||
|
|
||||||
this.generalForm.controls['general_remark'].setValue(this.data_all.general_remark);
|
this.generalForm.controls['general_remark'].setValue(this.data_all.general_remark);
|
||||||
|
this.generalForm.controls['is_kyc'].setValue(this.data_all.is_kyc);
|
||||||
|
this.generalForm.controls['kyc_and_captur_the_name'].setValue(this.data_all.kyc_and_captur_the_name);
|
||||||
//
|
//
|
||||||
|
|
||||||
var arrlist_indi:any=[]
|
var arrlist_indi:any=[]
|
||||||
@ -1592,4 +1600,9 @@ console.log('1)',this.temp);
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
kycchange(event){
|
||||||
|
// console.log(event);
|
||||||
|
if(event === 'yes') {event.value =='yes' ? this.generalForm.addControl('kyc_and_captur_the_name', new FormControl('')) : this.generalForm.removeControl('kyc_and_captur_the_name');}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user