Loand details data fetching issue and final remarks field changes are done

This commit is contained in:
venbatechnologies@gmail.com 2019-12-12 18:13:58 +05:30
parent e88aa91d7d
commit 96d66decd0
5 changed files with 25 additions and 17 deletions

View File

@ -1 +1 @@
{"version":3,"sources":["../../@angular/common/http (ignored)"],"names":[],"mappings":";;;;;AAAA,e","file":"0.js","sourcesContent":["/* (ignored) */\n\n\n//////////////////\n// WEBPACK FOOTER\n// @angular/common/http (ignored)\n// module id = 726\n// module chunks = 0"],"sourceRoot":""} {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -132,7 +132,7 @@
<div formArrayName="recommendation_positive"> <div formArrayName="recommendation_positive">
<div *ngFor="let details of _finalRemarkForm.get('recommendation_positive').controls; let i=index; let l=last" [formGroupName]="i"> <div *ngFor="let details of _finalRemarkForm.get('recommendation_positive').controls; let i=index; let l=last" [formGroupName]="i">
<mat-form-field> <mat-form-field>
<mat-placeholder>Reason for Marking PD Status as Positive</mat-placeholder> <mat-placeholder>Reasons for Marking PD Status as Positive</mat-placeholder>
<textarea matInput autocomplete="off" formControlName="reason_for_positive" required></textarea> <textarea matInput autocomplete="off" formControlName="reason_for_positive" required></textarea>
<!-- <mat-placeholder>Reason for Marking PD Status as Positive</mat-placeholder> <!-- <mat-placeholder>Reason for Marking PD Status as Positive</mat-placeholder>
<input matInput autocomplete="off" formControlName="reason_for_positive" required> --> <input matInput autocomplete="off" formControlName="reason_for_positive" required> -->
@ -153,7 +153,7 @@
<div *ngFor="let details of _finalRemarkForm.get('recommendation_negative').controls;let i=index; let l=last" [formGroupName]="i"> <div *ngFor="let details of _finalRemarkForm.get('recommendation_negative').controls;let i=index; let l=last" [formGroupName]="i">
<mat-form-field> <mat-form-field>
<mat-placeholder>Reasons for marking PD status as Negative</mat-placeholder> <mat-placeholder>Reasons for marking PD status as Negative</mat-placeholder>
<input matInput autocomplete="off" formControlName="reason_for_negative" required> <textarea matInput autocomplete="off" formControlName="reason_for_negative" required></textarea>
</mat-form-field> </mat-form-field>
<ion-buttons end> <ion-buttons end>
<ion-col col-3 offset-3 *ngIf="_finalRemarkForm.get('recommendation_negative').controls.length > 1"> <ion-col col-3 offset-3 *ngIf="_finalRemarkForm.get('recommendation_negative').controls.length > 1">
@ -171,7 +171,7 @@
<div *ngFor="let details of _finalRemarkForm.get('recommendation_refer_to_credit').controls;let i=index; let l=last" [formGroupName]="i"> <div *ngFor="let details of _finalRemarkForm.get('recommendation_refer_to_credit').controls;let i=index; let l=last" [formGroupName]="i">
<mat-form-field> <mat-form-field>
<mat-placeholder>Reasons for marking PD status as Refer to Credit</mat-placeholder> <mat-placeholder>Reasons for marking PD status as Refer to Credit</mat-placeholder>
<input matInput autocomplete="off" formControlName="reason_for_refer_to_credit" required> <textarea matInput autocomplete="off" formControlName="reason_for_refer_to_credit" required></textarea>
</mat-form-field> </mat-form-field>
<ion-buttons end> <ion-buttons end>
<ion-col col-3 offset-3 *ngIf="_finalRemarkForm.get('recommendation_refer_to_credit').controls.length > 1"> <ion-col col-3 offset-3 *ngIf="_finalRemarkForm.get('recommendation_refer_to_credit').controls.length > 1">

View File

@ -180,7 +180,7 @@ export class PdQuestionLoansPage {
} }
if(this.productAbbr == 'PL' || this.productAbbr == 'BL' || this.productAbbr == 'LAP'){ if(this.productAbbr == 'PL' || this.productAbbr == 'BL' || this.productAbbr == 'LAP' || this.productAbbr == 'LFMP'){
this.isContribution = true; this.isContribution = true;
} }
this.loanDetailsForm.controls['filterCtrl'].valueChanges this.loanDetailsForm.controls['filterCtrl'].valueChanges
@ -195,6 +195,7 @@ export class PdQuestionLoansPage {
ionViewDidLoad() { ionViewDidLoad() {
console .log('ionViewDidLoad PdQuestionLoansPage'); console .log('ionViewDidLoad PdQuestionLoansPage');
this.getDropdown(); this.getDropdown();
} }
ngOnDestroy() { ngOnDestroy() {
@ -327,13 +328,13 @@ export class PdQuestionLoansPage {
this.filteredBanks.next(this.dbmasters.slice()) this.filteredBanks.next(this.dbmasters.slice())
})
this.qustCat.getcommondrop('STATUSOFCONSTRUCTION').subscribe( this.qustCat.getcommondrop('STATUSOFCONSTRUCTION').subscribe(
data => { data => {
this.m_statusofCunstruction = data['records'].filter(data => data.isactive == 1); this.m_statusofCunstruction = data['records'].filter(data => data.isactive == 1);
});
this.qustCat.getcommondrop('MORTAGEPROPERTIES').subscribe( this.qustCat.getcommondrop('MORTAGEPROPERTIES').subscribe(
data => { data => {
@ -360,11 +361,11 @@ export class PdQuestionLoansPage {
// this.mortage_type(this.propertyType); // this.mortage_type(this.propertyType);
} }
console.log('this.m_mortageTypeProperty',this.m_mortageTypeProperty); console.log('this.m_mortageTypeProperty',this.m_mortageTypeProperty);
});
this.qustCat.getcommondrop('SOURCEOFBALANCETRANSFER').subscribe( this.qustCat.getcommondrop('SOURCEOFBALANCETRANSFER').subscribe(
data => { data => {
this.m_sourceofamount = data['records'].filter(data => data.isactive == 1); this.m_sourceofamount = data['records'].filter(data => data.isactive == 1);
});
this.qustCat.getcommondrop('SUBPRODUCTS').subscribe( this.qustCat.getcommondrop('SUBPRODUCTS').subscribe(
subdata => { subdata => {
if(subdata['dataStatus']==true){ if(subdata['dataStatus']==true){
@ -379,7 +380,7 @@ export class PdQuestionLoansPage {
}); });
this.endUserChange(this.enduse) this.endUserChange(this.enduse)
} }
});
this.qustCat.getCompaniesListsForBusiness(this.pdid).subscribe(data=>{ this.qustCat.getCompaniesListsForBusiness(this.pdid).subscribe(data=>{
if(data['dataStatus']==true){ if(data['dataStatus']==true){
@ -393,7 +394,7 @@ export class PdQuestionLoansPage {
this.mergeCompanyApplicant.push({groupName:'COMPANIES',groupValues:modifyCompanyList}) this.mergeCompanyApplicant.push({groupName:'COMPANIES',groupValues:modifyCompanyList})
} }
} }
})
let modifyApplicantList: any=[]; let modifyApplicantList: any=[];
if(this.applicants.length > 0){ if(this.applicants.length > 0){
@ -408,20 +409,27 @@ export class PdQuestionLoansPage {
} }
this.qustCat.getcommondrop('ENDUSEOFTOPUP').subscribe(data=>{ this.qustCat.getcommondrop('ENDUSEOFTOPUP').subscribe(data=>{
this.m_endUseOFTopUpList=data['records'].filter(val=>val.is_active == 1) this.m_endUseOFTopUpList=data['records'].filter(val=>val.is_active == 1)
})
this.qustCat.getcommondrop('STATE').subscribe(res=> this.qustCat.getcommondrop('STATE').subscribe(res=>
{ {
if(res['dataStatus']==true){ if(res['dataStatus']==true){
this.stateData=res['records'].filter(item=>item.isactive==1); this.stateData=res['records'].filter(item=>item.isactive==1);
this.stateDataValue=this.stateData.slice(); this.stateDataValue=this.stateData.slice();
} }
})
this.qustCat.getEndUseForLoan(this.pdid,this.pdDetails.fk_subproduct_id).subscribe(data=>{ this.qustCat.getEndUseForLoan(this.pdid,this.pdDetails.fk_subproduct_id).subscribe(data=>{
this.m_endUseForLoan=data['records'].filter(data=>data.isactive==1); this.m_endUseForLoan=data['records'].filter(data=>data.isactive==1);
this.getLoanDetails(); this.getLoanDetails()
}); });
})
})
})
});
});
});
});
})
} }