company name and address suggestion added
This commit is contained in:
parent
2d0c79e91d
commit
8c4d9cd959
@ -227,6 +227,7 @@ export class BusinessAssetsInfoComponent implements OnInit {
|
|||||||
params.pd_form_id = '5';
|
params.pd_form_id = '5';
|
||||||
|
|
||||||
this.pdTrigerService.retriveForm(params).subscribe(data => {
|
this.pdTrigerService.retriveForm(params).subscribe(data => {
|
||||||
|
console.log('Address Check',data);
|
||||||
|
|
||||||
if (data.status == 200) {
|
if (data.status == 200) {
|
||||||
if(flag == 1){
|
if(flag == 1){
|
||||||
|
|||||||
@ -63,8 +63,13 @@
|
|||||||
</mat-select>
|
</mat-select>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<mat-form-field style="width:45%;">
|
<mat-form-field style="width:45%;">
|
||||||
<input matInput placeholder="Place" formControlName="residence_place"
|
<input matInput placeholder="Place" formControlName="residence_place" [matAutocomplete]="auto"
|
||||||
required>
|
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>
|
||||||
<mat-form-field style="width:45%;">
|
<mat-form-field style="width:45%;">
|
||||||
<mat-select matInput placeholder="Pin" formControlName="residence_pin"
|
<mat-select matInput placeholder="Pin" formControlName="residence_pin"
|
||||||
|
|||||||
@ -68,6 +68,7 @@ export class FamilyDetailsComponent implements OnInit {
|
|||||||
cityDataList: any = [];
|
cityDataList: any = [];
|
||||||
pincodeDataList: any = [];
|
pincodeDataList: any = [];
|
||||||
product_abbr: any;
|
product_abbr: any;
|
||||||
|
addressList: any = [];
|
||||||
|
|
||||||
/** constructor Of the class */
|
/** constructor Of the class */
|
||||||
constructor(notifier: NotifierService, private fb: FormBuilder, private route: ActivatedRoute,
|
constructor(notifier: NotifierService, private fb: FormBuilder, private route: ActivatedRoute,
|
||||||
@ -93,6 +94,8 @@ export class FamilyDetailsComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.addressSuggestion();
|
||||||
|
|
||||||
this.getMasterDetails('RELATIONSHIPS', 1);
|
this.getMasterDetails('RELATIONSHIPS', 1);
|
||||||
this.getMasterDetails('OCCUPATIONMEMBERS', 2);
|
this.getMasterDetails('OCCUPATIONMEMBERS', 2);
|
||||||
this.getMasterDetails('RESIDENCEOWNERSHIP', 4);
|
this.getMasterDetails('RESIDENCEOWNERSHIP', 4);
|
||||||
@ -843,6 +846,24 @@ export class FamilyDetailsComponent implements OnInit {
|
|||||||
// this.stateList.filter(res => res.state_name.toLowerCase().indexOf(searchVal) > -1)
|
// 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"
|
<input matInput placeholder="Name of current owner(s)/ Seller(s) of the property" formControlName="property_seller"
|
||||||
autocomplete="off">
|
autocomplete="off">
|
||||||
</mat-form-field>
|
</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%;">
|
<mat-form-field style="width:96%;">
|
||||||
<input matInput
|
<input matInput
|
||||||
[placeholder]="address_placeholder"
|
[placeholder]="address_placeholder"
|
||||||
formControlName="address"
|
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>
|
||||||
<mat-form-field style="width:46%;">
|
<mat-form-field style="width:46%;">
|
||||||
<mat-select placeholder="State" formControlName="state" (selectionChange)="getCityAndPincodeDetails($event.value)">
|
<mat-select placeholder="State" formControlName="state" (selectionChange)="getCityAndPincodeDetails($event.value)">
|
||||||
|
|||||||
@ -93,6 +93,7 @@ export class LoanDetailsComponent implements OnInit {
|
|||||||
Owner_placeholder:string;
|
Owner_placeholder:string;
|
||||||
address_placeholder: string;
|
address_placeholder: string;
|
||||||
image_doc_params: { pdid: number; form_id: number; company_id: 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_StatusofCunstruction();
|
||||||
this.getM_BTLenderList();
|
this.getM_BTLenderList();
|
||||||
this.getM_EndUseofTopUpList();
|
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.
|
// 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 = {};
|
let param: any = {};
|
||||||
@ -1133,4 +1135,24 @@ export class LoanDetailsComponent implements OnInit {
|
|||||||
// this.m_stateList.filter(res => res.state_name.toLowerCase().indexOf(searchVal) > -1)
|
// 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>
|
||||||
|
|
||||||
<mat-form-field style="width:45%" *ngIf="details.get('source').value == 5">
|
<mat-form-field style="width:45%" *ngIf="details.get('source').value == 5">
|
||||||
<input matInput autocomplete="off" placeholder="Address"
|
<input matInput placeholder="Address"
|
||||||
formControlName="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>
|
<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> -->
|
<!-- <i (click)="Toview()">Rental Info Details</i> -->
|
||||||
</mat-hint>
|
</mat-hint>
|
||||||
|
|||||||
@ -62,6 +62,7 @@ export class OtherIncomeComponent implements OnInit {
|
|||||||
mergeCompanyApplicant: any = [];
|
mergeCompanyApplicant: any = [];
|
||||||
isIncomeEarnedBy: any = [];
|
isIncomeEarnedBy: any = [];
|
||||||
image_doc_params: { pdid: string; form_id: number; company_id: string; };
|
image_doc_params: { pdid: string; form_id: number; company_id: string; };
|
||||||
|
addressList: any = [];
|
||||||
// stringArr = [];
|
// stringArr = [];
|
||||||
constructor(notifier: NotifierService,
|
constructor(notifier: NotifierService,
|
||||||
private fb: FormBuilder,
|
private fb: FormBuilder,
|
||||||
@ -133,6 +134,7 @@ export class OtherIncomeComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
|
this.addressSuggestion();
|
||||||
this.getFrequency();
|
this.getFrequency();
|
||||||
this.getSourceOtherIncome();
|
this.getSourceOtherIncome();
|
||||||
this.initOtherincomeForm();
|
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">
|
<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-form-field style="width:90%" appearance="outline">
|
||||||
<mat-label>Address of the Property</mat-label>
|
<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>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="60" fxFlex.lg="70" fxFlex.xl="70">
|
<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 = [];
|
stateData: any = [];
|
||||||
cityData: any = [];
|
cityData: any = [];
|
||||||
pincodeData: 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) {
|
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() {
|
ngOnInit() {
|
||||||
|
this.addressSuggestion();
|
||||||
this.initRentalForm();
|
this.initRentalForm();
|
||||||
this.getMasterDetails('RELATIONSHIPS', 1);
|
this.getMasterDetails('RELATIONSHIPS', 1);
|
||||||
this.getMasterDetails('COMPANYRELATIONSHIPS', 2);
|
this.getMasterDetails('COMPANYRELATIONSHIPS', 2);
|
||||||
@ -1210,6 +1212,24 @@ retriveFile(){
|
|||||||
// this.stateList.filter(res => res.state_name.toLowerCase().indexOf(searchVal) > -1)
|
// 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>
|
<i class="fa-1x fa fa-phone" style="width: 37px;padding: 8px 9px 8px 9px;border-bottom: 2px solid red;"></i>
|
||||||
{{applicant.mobile_no}}
|
{{applicant.mobile_no}}
|
||||||
</span>
|
</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">
|
<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>
|
<i class="fa-1x fa fa-phone" style="width: 37px;padding: 8px 9px 8px 9px;border-bottom: 2px solid red;"></i>
|
||||||
{{applicant.landline}}
|
{{applicant.landline}}
|
||||||
|
|||||||
@ -613,7 +613,16 @@ export class PdTrigerService {
|
|||||||
catchError(this.handleError('operation', []))
|
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
|
/** To get Family Member Name For
|
||||||
* 1) Family Form
|
* 1) Family Form
|
||||||
*/
|
*/
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user