Merge
This commit is contained in:
commit
6481ca9ac8
@ -710,12 +710,14 @@ export class AddPdComponent implements OnInit, OnDestroy {
|
||||
coapplicant_landline_no = null;
|
||||
}
|
||||
else if(itemElement.coapplicant_stdcode && itemElement.coapplicant_landline){
|
||||
coapplicant_landline_no = formValue.coapplicant_stdcode + '-' + itemElement.applicant_landline;
|
||||
coapplicant_landline_no = itemElement.coapplicant_stdcode + '-' + itemElement.coapplicant_landline;
|
||||
}
|
||||
else{
|
||||
coapplicant_landline_no = null;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// if (itemElement.coapplicant_stdcode != null || itemElement.coapplicant_landline != null) {
|
||||
// if (itemElement.coapplicant_stdcode != '' && itemElement.coapplicant_landline != '') {
|
||||
// coapplicant_landline_no = formValue.coapplicant_stdcode + '-' + itemElement.applicant_landline;
|
||||
|
||||
@ -227,6 +227,7 @@ export class BusinessAssetsInfoComponent implements OnInit {
|
||||
params.pd_form_id = '5';
|
||||
|
||||
this.pdTrigerService.retriveForm(params).subscribe(data => {
|
||||
console.log('Address Check',data);
|
||||
|
||||
if (data.status == 200) {
|
||||
if(flag == 1){
|
||||
|
||||
@ -63,8 +63,13 @@
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
<mat-form-field style="width:45%;">
|
||||
<input matInput placeholder="Place" formControlName="residence_place"
|
||||
<input matInput placeholder="Place" formControlName="residence_place" [matAutocomplete]="auto"
|
||||
required>
|
||||
<mat-autocomplete #auto="matAutocomplete">
|
||||
<mat-option *ngFor="let address of addressList" [value]="address.value">
|
||||
<span>{{address.value}}</span>
|
||||
</mat-option>
|
||||
</mat-autocomplete>
|
||||
</mat-form-field>
|
||||
<mat-form-field style="width:45%;">
|
||||
<mat-select matInput placeholder="Pin" formControlName="residence_pin"
|
||||
|
||||
@ -68,6 +68,7 @@ export class FamilyDetailsComponent implements OnInit {
|
||||
cityDataList: any = [];
|
||||
pincodeDataList: any = [];
|
||||
product_abbr: any;
|
||||
addressList: any = [];
|
||||
|
||||
/** constructor Of the class */
|
||||
constructor(notifier: NotifierService, private fb: FormBuilder, private route: ActivatedRoute,
|
||||
@ -93,6 +94,8 @@ export class FamilyDetailsComponent implements OnInit {
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.addressSuggestion();
|
||||
|
||||
this.getMasterDetails('RELATIONSHIPS', 1);
|
||||
this.getMasterDetails('OCCUPATIONMEMBERS', 2);
|
||||
this.getMasterDetails('RESIDENCEOWNERSHIP', 4);
|
||||
@ -843,6 +846,24 @@ export class FamilyDetailsComponent implements OnInit {
|
||||
// this.stateList.filter(res => res.state_name.toLowerCase().indexOf(searchVal) > -1)
|
||||
// )
|
||||
}
|
||||
|
||||
addressSuggestion(){
|
||||
|
||||
let params: any = {};
|
||||
|
||||
params.parent_pdid = this.parent_pdid;
|
||||
params.pd_id = this.pdid;
|
||||
params.pd_form_id = '5';
|
||||
|
||||
this._pd.getAddressSuggestion(params).subscribe(data => {
|
||||
console.log('Address Check',data);
|
||||
let initiated_address_check = data.records.hasOwnProperty('is_pd_done_on_initiated_address') ? data.records.is_pd_done_on_initiated_address : true;
|
||||
this.addressList.push({ key_name: 'initiate_address', value: data.records.addresses[0].address, description: 'Initiated Address' });
|
||||
if (initiated_address_check == false ) {
|
||||
this.addressList.push({ key_name: 'alternative_addresses', value: data.records.alternative_addresses[0].alternative_address, description: 'Alternative Address' });
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -250,12 +250,25 @@
|
||||
<input matInput placeholder="Name of current owner(s)/ Seller(s) of the property" formControlName="property_seller"
|
||||
autocomplete="off">
|
||||
</mat-form-field>
|
||||
|
||||
<!-- (change)="addOptionOnAutoComplete(detail.get('property_type').value,$event.target.value,i)"
|
||||
[matAutocomplete]="auto">
|
||||
<mat-autocomplete #auto="matAutocomplete">
|
||||
<mat-option *ngFor="let address of addressList" [value]="address.value">
|
||||
<span>{{address.value}}</span>
|
||||
</mat-option>
|
||||
</mat-autocomplete> -->
|
||||
|
||||
<mat-form-field style="width:96%;">
|
||||
<input matInput
|
||||
[placeholder]="address_placeholder"
|
||||
formControlName="address"
|
||||
required autocomplete="off">
|
||||
required [matAutocomplete]="auto">
|
||||
<mat-autocomplete #auto="matAutocomplete">
|
||||
<mat-option *ngFor="let address of addressList" [value]="address.value">
|
||||
<span>{{address.value}}</span>
|
||||
</mat-option>
|
||||
</mat-autocomplete>
|
||||
</mat-form-field>
|
||||
<mat-form-field style="width:46%;">
|
||||
<mat-select placeholder="State" formControlName="state" (selectionChange)="getCityAndPincodeDetails($event.value)">
|
||||
|
||||
@ -93,6 +93,7 @@ export class LoanDetailsComponent implements OnInit {
|
||||
Owner_placeholder:string;
|
||||
address_placeholder: string;
|
||||
image_doc_params: { pdid: number; form_id: number; company_id: string; };
|
||||
addressList: any = [];
|
||||
|
||||
|
||||
|
||||
@ -150,6 +151,7 @@ export class LoanDetailsComponent implements OnInit {
|
||||
this.getM_StatusofCunstruction();
|
||||
this.getM_BTLenderList();
|
||||
this.getM_EndUseofTopUpList();
|
||||
this.addressSuggestion();
|
||||
|
||||
// note : Details of Property being Mortgaged section, In Name of the owner drop down list currently show all names (Applicants & In Person Met) need to change show Applicant names only.
|
||||
let param: any = {};
|
||||
@ -1133,4 +1135,24 @@ export class LoanDetailsComponent implements OnInit {
|
||||
// this.m_stateList.filter(res => res.state_name.toLowerCase().indexOf(searchVal) > -1)
|
||||
// )
|
||||
}
|
||||
|
||||
addressSuggestion() {
|
||||
|
||||
let params: any = {};
|
||||
|
||||
params.parent_pdid = this.parent_pdid;
|
||||
params.pd_id = this.pdid;
|
||||
params.pd_form_id = '5';
|
||||
|
||||
this._pd.getAddressSuggestion(params).subscribe(data => {
|
||||
console.log('Address Check',data);
|
||||
let initiated_address_check = data.records.hasOwnProperty('is_pd_done_on_initiated_address') ? data.records.is_pd_done_on_initiated_address : true;
|
||||
this.addressList.push({ key_name: 'initiate_address', value: data.records.addresses[0].address, description: 'Initiated Address' });
|
||||
if (initiated_address_check == false ) {
|
||||
this.addressList.push({ key_name: 'alternative_addresses', value: data.records.alternative_addresses[0].alternative_address, description: 'Alternative Address' });
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -65,8 +65,13 @@
|
||||
</mat-form-field>
|
||||
|
||||
<mat-form-field style="width:45%" *ngIf="details.get('source').value == 5">
|
||||
<input matInput autocomplete="off" placeholder="Address"
|
||||
formControlName="address">
|
||||
<input matInput placeholder="Address"
|
||||
formControlName="address" [matAutocomplete]="auto">
|
||||
<mat-autocomplete #auto="matAutocomplete">
|
||||
<mat-option *ngFor="let address of addressList" [value]="address.value">
|
||||
<span>{{address.value}}</span>
|
||||
</mat-option>
|
||||
</mat-autocomplete>
|
||||
<mat-hint align="end"> <button mat-flat-button color="primary" (click)="Toview()" type="button"><strong>Validate Rental Income</strong></button>
|
||||
<!-- <i (click)="Toview()">Rental Info Details</i> -->
|
||||
</mat-hint>
|
||||
|
||||
@ -62,6 +62,7 @@ export class OtherIncomeComponent implements OnInit {
|
||||
mergeCompanyApplicant: any = [];
|
||||
isIncomeEarnedBy: any = [];
|
||||
image_doc_params: { pdid: string; form_id: number; company_id: string; };
|
||||
addressList: any = [];
|
||||
// stringArr = [];
|
||||
constructor(notifier: NotifierService,
|
||||
private fb: FormBuilder,
|
||||
@ -133,6 +134,7 @@ export class OtherIncomeComponent implements OnInit {
|
||||
}
|
||||
|
||||
})
|
||||
this.addressSuggestion();
|
||||
this.getFrequency();
|
||||
this.getSourceOtherIncome();
|
||||
this.initOtherincomeForm();
|
||||
@ -491,4 +493,23 @@ export class OtherIncomeComponent implements OnInit {
|
||||
});
|
||||
}*/
|
||||
|
||||
addressSuggestion() {
|
||||
|
||||
let params: any = {};
|
||||
|
||||
params.parent_pdid = this.parent_pdid;
|
||||
params.pd_id = this.pdid;
|
||||
params.pd_form_id = '5';
|
||||
|
||||
this._pd.getAddressSuggestion(params).subscribe(data => {
|
||||
console.log('Address Check',data);
|
||||
let initiated_address_check = data.records.hasOwnProperty('is_pd_done_on_initiated_address') ? data.records.is_pd_done_on_initiated_address : true;
|
||||
this.addressList.push({ key_name: 'initiate_address', value: data.records.addresses[0].address, description: 'Initiated Address' });
|
||||
if (initiated_address_check == false ) {
|
||||
this.addressList.push({ key_name: 'alternative_addresses', value: data.records.alternative_addresses[0].alternative_address, description: 'Alternative Address' });
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -33,7 +33,13 @@
|
||||
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="40" fxFlex.lg="30" fxFlex.xl="30">
|
||||
<mat-form-field style="width:90%" appearance="outline">
|
||||
<mat-label>Address of the Property</mat-label>
|
||||
<textarea matInput rows="4" placeholder="" formControlName="address_property" required></textarea>
|
||||
<textarea matInput rows="4" placeholder="" formControlName="address_property" required [matAutocomplete]="auto"></textarea>
|
||||
<mat-autocomplete #auto="matAutocomplete">
|
||||
<mat-option *ngFor="let address of addressList" [value]="address.value">
|
||||
<span>{{address.value}}</span>
|
||||
</mat-option>
|
||||
</mat-autocomplete>
|
||||
|
||||
</mat-form-field>
|
||||
</div>
|
||||
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="60" fxFlex.lg="70" fxFlex.xl="70">
|
||||
|
||||
@ -77,6 +77,7 @@ export class ManageRentalVerificationComponent implements OnInit {
|
||||
stateData: any = [];
|
||||
cityData: any = [];
|
||||
pincodeData: any = [];
|
||||
addressList: any = [];
|
||||
|
||||
constructor(notifier: NotifierService, private _pd: PdTrigerService ,private _fb: FormBuilder, @Inject(MAT_DIALOG_DATA) public data: any,private dialogRef: MatDialogRef<ManageRentalVerificationComponent>,private dialog: MatDialog) {
|
||||
|
||||
@ -98,6 +99,7 @@ export class ManageRentalVerificationComponent implements OnInit {
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.addressSuggestion();
|
||||
this.initRentalForm();
|
||||
this.getMasterDetails('RELATIONSHIPS', 1);
|
||||
this.getMasterDetails('COMPANYRELATIONSHIPS', 2);
|
||||
@ -1210,6 +1212,24 @@ retriveFile(){
|
||||
// this.stateList.filter(res => res.state_name.toLowerCase().indexOf(searchVal) > -1)
|
||||
// )
|
||||
}
|
||||
|
||||
addressSuggestion() {
|
||||
|
||||
let params: any = {};
|
||||
|
||||
params.parent_pdid = this.parent_pdid;
|
||||
params.pd_id = this.pdid;
|
||||
params.pd_form_id = '5';
|
||||
|
||||
this._pd.getAddressSuggestion(params).subscribe(data => {
|
||||
console.log('Address Check',data);
|
||||
let initiated_address_check = data.records.hasOwnProperty('is_pd_done_on_initiated_address') ? data.records.is_pd_done_on_initiated_address : true;
|
||||
this.addressList.push({ key_name: 'initiate_address', value: data.records.addresses[0].address, description: 'Initiated Address' });
|
||||
if (initiated_address_check == false ) {
|
||||
this.addressList.push({ key_name: 'alternative_addresses', value: data.records.alternative_addresses[0].alternative_address, description: 'Alternative Address' });
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -314,6 +314,10 @@
|
||||
<i class="fa-1x fa fa-phone" style="width: 37px;padding: 8px 9px 8px 9px;border-bottom: 2px solid red;"></i>
|
||||
{{applicant.mobile_no}}
|
||||
</span>
|
||||
<span *ngIf="applicant.company_name!=null" class="mb-2 text-center hover-icon">
|
||||
<i class="fa-1x fa fa-building-o" style="width: 37px;padding: 8px 9px 8px 9px;border-bottom: 2px solid red;"></i>
|
||||
{{applicant.company_name}}
|
||||
</span>
|
||||
<span *ngIf="applicant.landline != '' && (applicant.landline != 'null-null'|| applicant.landline != undefined-undefined) && (applicant.landline != null || applicant.landline != undefined) " class="mb-2 text-center hover-icon">
|
||||
<i class="fa-1x fa fa-phone" style="width: 37px;padding: 8px 9px 8px 9px;border-bottom: 2px solid red;"></i>
|
||||
{{applicant.landline}}
|
||||
|
||||
@ -613,7 +613,16 @@ export class PdTrigerService {
|
||||
catchError(this.handleError('operation', []))
|
||||
)
|
||||
}
|
||||
|
||||
/**
|
||||
* To Get Address For Suggestion
|
||||
*
|
||||
*/
|
||||
getAddressSuggestion(params): Observable<any> {
|
||||
return this._http.post(this.apiUrl + 'getPDFormDetails', params)
|
||||
.pipe(
|
||||
catchError(this.handleError('role', []))
|
||||
)
|
||||
}
|
||||
/** To get Family Member Name For
|
||||
* 1) Family Form
|
||||
*/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user