This commit is contained in:
venbatechnologies@gmail.com 2019-12-11 16:45:22 +05:30
commit 366e5de4d9
5 changed files with 46 additions and 16 deletions

View File

@ -132,8 +132,10 @@
<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>Reason for Marking PD Status as Positive</mat-placeholder>
<input matInput autocomplete="off" formControlName="reason_for_positive" required> <textarea matInput autocomplete="off" formControlName="reason_for_positive" required></textarea>
<!-- <mat-placeholder>Reason for Marking PD Status as Positive</mat-placeholder>
<input matInput autocomplete="off" formControlName="reason_for_positive" required> -->
</mat-form-field> </mat-form-field>
<ion-buttons end> <ion-buttons end>
<ion-col col-3 offset-3 *ngIf="_finalRemarkForm.get('recommendation_positive').controls.length > 1"> <ion-col col-3 offset-3 *ngIf="_finalRemarkForm.get('recommendation_positive').controls.length > 1">

View File

@ -462,7 +462,8 @@ export class PdQuestionLoansPage {
mortage_type(mortage_value) mortage_type(mortage_value)
{ {
let mortagetypes = this.m_mortageTypeProperty.filter(mor=>mor.mortage_property_id==mortage_value)[0]; let mortagetypes = this.m_mortageTypeProperty.filter(mor=>mor.mortage_property_id==mortage_value)[0];
let property_name = mortagetypes.property_name.replace(/\s/g, "").toLowerCase(); if(mortagetypes != undefined){
let property_name = mortagetypes.property_name.replace(/\s/g, "").toLowerCase();
if(property_name=='others(pleasespecify)' || property_name=='others') if(property_name=='others(pleasespecify)' || property_name=='others')
{ {
this.mortageAccess = true; this.mortageAccess = true;
@ -470,6 +471,9 @@ export class PdQuestionLoansPage {
{ {
this.mortageAccess = false; this.mortageAccess = false;
} }
}
} }
@ -507,6 +511,7 @@ export class PdQuestionLoansPage {
data => { data => {
this.m_endUseForLoan = data['records'].filter(data => data.isactive == 1); this.m_endUseForLoan = data['records'].filter(data => data.isactive == 1);
}); });
this.loanDetailsForm.controls['end_use'].setValue('');
} }
ChangeProperty(subproduct_id){ ChangeProperty(subproduct_id){
@ -538,7 +543,9 @@ export class PdQuestionLoansPage {
//this.endUserList = []; //this.endUserList = [];
event.forEach(option => { event.forEach(option => {
let othresData = this.m_endUseForLoan.filter(sub=>sub.enduse_of_loan_id==option)[0]; let othresData = this.m_endUseForLoan.filter(sub=>sub.enduse_of_loan_id==option)[0];
if(othresData != undefined){
othresData = othresData.enduse_of_loan.substr(0,6).toLowerCase(); othresData = othresData.enduse_of_loan.substr(0,6).toLowerCase();
}
this.endUserList.push({ end_use: option }); this.endUserList.push({ end_use: option });
if (othresData == 'others') { if (othresData == 'others') {
@ -625,9 +632,13 @@ export class PdQuestionLoansPage {
// } // }
// get end user final group data // get end user final group data
let dataEnd_user_data = []; let dataEnd_user_data = [];
this.loanDetailsForm.controls['end_use'].value.forEach(element => { console.log(this.loanDetailsForm.controls['end_use'].value.length> 0);
dataEnd_user_data.push({end_use: element}) if(this.loanDetailsForm.controls['end_use'].value.length> 0){
}); this.loanDetailsForm.controls['end_use'].value.forEach(element => {
dataEnd_user_data.push({end_use: element})
});
}
records.end_use_group = dataEnd_user_data; records.end_use_group = dataEnd_user_data;
if (this.isOtherPurpose) { if (this.isOtherPurpose) {

View File

@ -116,13 +116,23 @@ this.loadingProvider.dataLoader();
console.log("d",values) console.log("d",values)
} }
addMore(){ addMore(){
let passValues: any = { let params: any = {};
manage_status: 1, console.log('add params',params);
// parentData: this.parentData, params.pd_id = this.pdDetails.pd_id;
// masterData: this.masterData, console.log(this.pdDetails.pd_id);
existing_rental_count_id: this.existing_rental_count_id + 1, this.qustCat.getPropertyCount(this.pdDetails.pd_id).subscribe(data => {
} if (data.status == 200){
this.navCtrl.push(PdQuestionRentalInfoPage,{"values":passValues,'pdDetails':this.pdDetails,'FormId':this.form_details}); let passValues: any = {
manage_status: 1,
// parentData: this.parentData,
// masterData: this.masterData,
existing_rental_count_id: data.records,
}
this.navCtrl.push(PdQuestionRentalInfoPage,{"values":passValues,'pdDetails':this.pdDetails,'FormId':this.form_details});
}
})
} }
isactiveProperty(info){ isactiveProperty(info){

View File

@ -36,8 +36,9 @@
<mat-form-field style="width:100%"> <mat-form-field style="width:100%">
<!-- <mat-placeholder> <!-- <mat-placeholder>
{{item.add_requirement}} {{item.add_requirement}}
</mat-placeholder> --> </mat-placeholder> -->
<input matInput type="text" [formControlName]="item.add_req_id" placeholder="Enter the Text"> <textarea matInput autocomplete="off" [formControlName]="item.add_req_id" placeholder="Enter the Text"></textarea>
<!-- <input matInput type="text" [formControlName]="item.add_req_id" placeholder="Enter the Text"> -->
</mat-form-field> </mat-form-field>
</div> </div>
</div> </div>
@ -75,7 +76,8 @@
</ion-row> </ion-row>
<!-- <button *ngIf="camera_btn[i] == true" ion-button slot="end" small float-right (click)="capture(i,item)">Capture<ion-icon name="md-camera"></ion-icon></button> --> <!-- <button *ngIf="camera_btn[i] == true" ion-button slot="end" small float-right (click)="capture(i,item)">Capture<ion-icon name="md-camera"></ion-icon></button> -->
<mat-form-field *ngIf="item.controls['reason']" style="width: 100%"> <mat-form-field *ngIf="item.controls['reason']" style="width: 100%">
<input matInput type="text" formControlName="reason" placeholder="Enter the Reason"> <textarea matInput autocomplete="off" formControlName="reason" placeholder="Enter the Reason"></textarea>
<!-- <input matInput type="text" formControlName="reason" placeholder="Enter the Reason"> -->
</mat-form-field> </mat-form-field>
</div> </div>
</mat-card-content> </mat-card-content>

View File

@ -77,6 +77,11 @@ apiurl:any;
return this.http.post(this.apiurl + 'deactiveFormData', { "records": params }) return this.http.post(this.apiurl + 'deactiveFormData', { "records": params })
} }
getPropertyCount(params :any): Observable<any> {
console.log('service params',params)
return this.http.get(this.apiurl + 'getNextRentalCount?pdid=' +params)
}
/**Assessed Form Details API */ /**Assessed Form Details API */
saveassessedForms(api,saveData) saveassessedForms(api,saveData)