pending Changes : ps
This commit is contained in:
parent
67238513de
commit
b743724616
BIN
ng6-seed/Sineedge_prod_280119.zip
Normal file
BIN
ng6-seed/Sineedge_prod_280119.zip
Normal file
Binary file not shown.
@ -428,6 +428,7 @@ export class AddPdComponent implements OnInit, OnDestroy {
|
||||
this.disableAfterSubmit=true;
|
||||
|
||||
let concat_landline
|
||||
let concat_landline1
|
||||
if(formValue.lender_stdcode != null || formValue.lender_landline != null){
|
||||
concat_landline = formValue.lender_stdcode +'-'+formValue.lender_landline;
|
||||
}
|
||||
@ -435,6 +436,13 @@ export class AddPdComponent implements OnInit, OnDestroy {
|
||||
concat_landline = null;
|
||||
}
|
||||
|
||||
if(formValue.applicant_stdcode != null || formValue.applicant_landline != null){
|
||||
concat_landline1 = formValue.applicant_stdcode +'-'+formValue.applicant_landline;
|
||||
}
|
||||
else{
|
||||
concat_landline1 = null;
|
||||
}
|
||||
|
||||
let pd_details:any={
|
||||
"fk_lender_id":formValue.fk_lender_id,
|
||||
"lender_applicant_id":formValue.lender_applicant_id,
|
||||
@ -463,7 +471,7 @@ export class AddPdComponent implements OnInit, OnDestroy {
|
||||
"applicant_title_name":formValue.applicant_title_name,
|
||||
"company_name":formValue.company_name,
|
||||
"mobile_no":formValue.mobile_no,
|
||||
"landline":formValue.applicant_stdcode +'-'+formValue.applicant_landline,
|
||||
"landline":concat_landline1 ,
|
||||
"applicant_type":1,
|
||||
"relation":"",
|
||||
});
|
||||
|
||||
@ -55,9 +55,11 @@ export class EditPdApplicantComponent implements OnInit {
|
||||
}
|
||||
|
||||
loadApplicantFormData() {
|
||||
console.log('loadApplicantFormData',this.mainApplicantData[0].landline);
|
||||
let stdcodesearch = this.mainApplicantData[0].landline.search("-");
|
||||
let stdcode = this.mainApplicantData[0].landline.substr(0,stdcodesearch);
|
||||
let landline = this.mainApplicantData[0].landline.substr(+stdcodesearch + 1,8);
|
||||
let stdcode = this.mainApplicantData[0].landline.substr(0,stdcodesearch) ;
|
||||
let landline = this.mainApplicantData[0].landline.substr(+stdcodesearch + 1,8) ;
|
||||
|
||||
this._EditApplicantForm = this._fb.group({
|
||||
fk_applicant_primary_id: [this.mainApplicantData[0].pd_co_applicant_id],
|
||||
applicant_name: [this.mainApplicantData[0].applicant_name, Validators.compose([Validators.required])],
|
||||
@ -79,16 +81,16 @@ export class EditPdApplicantComponent implements OnInit {
|
||||
|
||||
}
|
||||
createItem(listData): FormGroup {
|
||||
console.log('listData',listData);
|
||||
if(listData){
|
||||
let stdcode;
|
||||
let landline;
|
||||
if(listData.landline != null){
|
||||
let stdcodesearch = listData.landline.search("-");
|
||||
stdcode = listData.landline.substr(0,stdcodesearch);
|
||||
//console.log(stdcode);
|
||||
landline = listData.landline.substr(+stdcodesearch + 1,8);}
|
||||
else{
|
||||
stdcode = '';
|
||||
stdcode = '';
|
||||
landline = '';
|
||||
}
|
||||
return this._fb.group({
|
||||
@ -144,17 +146,32 @@ export class EditPdApplicantComponent implements OnInit {
|
||||
return;
|
||||
}
|
||||
else{
|
||||
let concat_landline1
|
||||
if(formValue.stdcode != null && formValue.landline != null){
|
||||
if(formValue.stdcode == '' && formValue.landline == ''){
|
||||
concat_landline1 = null;
|
||||
}else {
|
||||
let std = formValue.stdcode == '' ? '' : formValue.stdcode;
|
||||
let landline = formValue.landline == '' ? '' : formValue.landline;
|
||||
concat_landline1 = std+'-'+landline;
|
||||
}
|
||||
}
|
||||
else if(formValue.stdcode == '' && formValue.landline == ''){
|
||||
concat_landline1 = null;
|
||||
}else{
|
||||
concat_landline1 = null;
|
||||
}
|
||||
|
||||
let pd_applicant_details : any=[{
|
||||
"fk_pd_id": this.data.pdID,
|
||||
"pd_co_applicant_id": formValue.fk_applicant_primary_id,
|
||||
"applicant_name":formValue.applicant_name,
|
||||
"company_name":formValue.company_name,
|
||||
"mobile_no":formValue.mobile_no,
|
||||
"landline":formValue.stdcode+'-'+formValue.landline,
|
||||
"landline":concat_landline1,
|
||||
"applicant_type":formValue.applicant_type,
|
||||
"relation":formValue.relationship,
|
||||
"applicant_title_name": formValue.applicant_title_name,
|
||||
|
||||
"isactive":1
|
||||
}];
|
||||
formValue.coApplicantItems.forEach((itemElement, itemIndex) => {
|
||||
@ -189,19 +206,19 @@ export class EditPdApplicantComponent implements OnInit {
|
||||
}
|
||||
pd_applicant_details.push(obj1)
|
||||
});
|
||||
|
||||
// this._pd.updatePdApplicant(pd_applicant_details).subscribe(result => {
|
||||
// if (result.status == 200) {
|
||||
// this.notifier.notify('success', 'PD Details Updated.');
|
||||
// this.dialogRef.close();
|
||||
// }
|
||||
// else {
|
||||
// this.notifier.notify('warning', 'Something Wents Wrong Try Again.!');
|
||||
// }
|
||||
// }, error => {
|
||||
// this.notifier.notify('warning', 'Something Wents Wrong Try Again.!');
|
||||
// });
|
||||
}}
|
||||
this._pd.updatePdApplicant(pd_applicant_details).subscribe(result => {
|
||||
if (result.status == 200) {
|
||||
this.notifier.notify('success', 'PD Details Updated.');
|
||||
this.dialogRef.close();
|
||||
}
|
||||
else {
|
||||
this.notifier.notify('warning', 'Something Wents Wrong Try Again.!');
|
||||
}
|
||||
}, error => {
|
||||
this.notifier.notify('warning', 'Something Wents Wrong Try Again.!');
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// get relation master details
|
||||
|
||||
@ -151,6 +151,10 @@
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
|
||||
<mat-form-field style="width: 24%" *ngIf="pdMain.pincode.value == 1" >
|
||||
<input matInput autocomplete="off" placeholder="Specify Pincode" formControlName="other_pincode" type="number">
|
||||
</mat-form-field>
|
||||
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
|
||||
|
||||
@ -168,6 +168,7 @@ export class EditPdMasterComponent implements OnInit {
|
||||
fk_city: [this.data.records.fk_city],
|
||||
fk_state: [this.data.records.fk_state],
|
||||
pincode : [this.data.records.pincode],/** Validators.compose([Validators.minLength(6),Validators.maxLength(6),Validators.pattern('^[0-9]*$')])], */
|
||||
other_pincode:[this.data.records.other_pincode],
|
||||
remarks: [this.data.records.remarks],
|
||||
});
|
||||
}
|
||||
@ -206,7 +207,7 @@ export class EditPdMasterComponent implements OnInit {
|
||||
}
|
||||
//trigger pd
|
||||
triggerPD(formValue: any, status:any){
|
||||
|
||||
console.log('triggerPD',formValue);
|
||||
// this._EditPDtriggerForm.controls['fk_lender_id'].setValidators([Validators.required]);
|
||||
// this._EditPDtriggerForm.controls['fk_lender_id'].updateValueAndValidity();
|
||||
|
||||
@ -333,6 +334,7 @@ export class EditPdMasterComponent implements OnInit {
|
||||
"fk_city": my_array.fk_city,
|
||||
"fk_state": my_array.fk_state,
|
||||
"pincode": my_array.pincode,
|
||||
"other_pincode":my_array.other_pincode,
|
||||
"remarks": my_array.remarks,
|
||||
}
|
||||
|
||||
|
||||
@ -25,7 +25,7 @@
|
||||
|
||||
<mat-form-field style="width: 80%;">
|
||||
<!-- <input matInput placeholder="Name" formControlName="name_ans" type="text" required> -->
|
||||
<input matInput placeholder="Address" formControlName="address" required autocomplete="off">
|
||||
<input matInput placeholder="Address" formControlName="address" oninput="this.value = this.value.toUpperCase()" required autocomplete="off">
|
||||
|
||||
</mat-form-field>
|
||||
</div>
|
||||
|
||||
@ -111,7 +111,7 @@
|
||||
<mat-option *ngFor="let btLen of m_btLenderList" [value]="btLen.bt_lender_list_id">{{ btLen.lender_name }}</mat-option>
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
<mat-form-field *ngIf="itemrow.get('bank_name').value == 3">
|
||||
<mat-form-field *ngIf="itemrow.get('bank_name').value == 1">
|
||||
<input matInput placeholder="Specify Bank Name"
|
||||
formControlName="other_bank" autocomplete="off">
|
||||
</mat-form-field>
|
||||
|
||||
@ -42,7 +42,7 @@
|
||||
<mat-option *ngFor="let btLen of m_btLenderList" [value]="btLen.bt_lender_list_id">{{ btLen.lender_name }}</mat-option>
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
<mat-form-field *ngIf="itemrow.get('bank_name').value == 3">
|
||||
<mat-form-field *ngIf="itemrow.get('bank_name').value == 1">
|
||||
<input matInput placeholder="Specify Bank Name"
|
||||
formControlName="other_bank" autocomplete="off">
|
||||
</mat-form-field>
|
||||
|
||||
@ -315,6 +315,9 @@
|
||||
</mat-option>
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
<mat-form-field *ngIf="sup.get('residence_pin').value == 1">
|
||||
<input matInput placeholder="Specify PinCode" formControlName="residence_other_pincode">
|
||||
</mat-form-field>
|
||||
|
||||
<!-- <mat-form-field>
|
||||
<input matInput placeholder="City" formControlName="residence_city" required>
|
||||
|
||||
@ -551,6 +551,7 @@ export class FamilyDetailsComponent implements OnInit {
|
||||
residence_city: ['', Validators.compose([])],
|
||||
residence_state: ['', Validators.compose([])],
|
||||
residence_pin: ['', Validators.compose([])],
|
||||
residence_other_pincode:[''],
|
||||
residence_No_of_years: ['', Validators.compose([])],
|
||||
residence_ownership: ['', Validators.compose([])],
|
||||
ownershipOther: [''],
|
||||
@ -570,6 +571,7 @@ export class FamilyDetailsComponent implements OnInit {
|
||||
residence_city: [val.residence_city, Validators.compose([])],
|
||||
residence_state: [val.residence_state, Validators.compose([])],
|
||||
residence_pin: [val.residence_pin, Validators.compose([])],
|
||||
residence_other_pincode:[val.residence_other_pincode],
|
||||
residence_No_of_years: [val.residence_No_of_years, Validators.compose([])],
|
||||
residence_ownership: [val.residence_ownership, Validators.compose([])],
|
||||
ownershipOther: [val.ownershipOther || null],
|
||||
|
||||
@ -48,3 +48,4 @@
|
||||
</mat-dialog-actions>
|
||||
</form>
|
||||
</div>
|
||||
<notifier-container></notifier-container>
|
||||
@ -112,7 +112,7 @@ export class GeneralInfoComponent implements OnInit {
|
||||
this.companyRelationShipList=data.records.filter(item => item.name != 'Others');
|
||||
}
|
||||
if(type==3){
|
||||
this.qualificationList = data.records;
|
||||
this.qualificationList = data.records.filter(item => item.qualification_name != 'Others');
|
||||
}
|
||||
if(type==4) {
|
||||
this.businessEntityTypeList = data.records;
|
||||
|
||||
@ -58,7 +58,7 @@
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
|
||||
<mat-form-field *ngIf="loanDetailsForm.controls['lender'].value == 3" style="width: 28%">
|
||||
<mat-form-field *ngIf="loanDetailsForm.controls['lender'].value == 1" style="width: 28%">
|
||||
<input matInput placeholder="Specify Others Lender" formControlName="other_bt_lender" autocomplete="off">
|
||||
</mat-form-field>
|
||||
|
||||
@ -84,9 +84,9 @@
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
|
||||
<mat-form-field *ngIf="isPLSource" style="width: 28%">
|
||||
<!-- <mat-form-field *ngIf="isPLSource" style="width: 28%">
|
||||
<input matInput placeholder="Specify Personal Loan" formControlName="personal_loan_source" autocomplete="off">
|
||||
</mat-form-field>
|
||||
</mat-form-field> -->
|
||||
|
||||
<mat-form-field *ngIf="isOtherSource" style="width: 28%">
|
||||
<input matInput placeholder="Specify Other Sources" formControlName="other_source" autocomplete="off">
|
||||
|
||||
@ -237,10 +237,10 @@ export class LoanDetailsComponent implements OnInit {
|
||||
this.loanDetailsForm.controls['other_source'].setValue(value.records.other_source);
|
||||
}
|
||||
|
||||
if(value.records.personal_loan_source) {
|
||||
// this.isPLSource = true;
|
||||
this.loanDetailsForm.controls['personal_loan_source'].setValue(value.records.personal_loan_source);
|
||||
}
|
||||
// if(value.records.personal_loan_source) {
|
||||
// // this.isPLSource = true;
|
||||
// this.loanDetailsForm.controls['personal_loan_source'].setValue(value.records.personal_loan_source);
|
||||
// }
|
||||
}
|
||||
|
||||
// if (value.records.lender_name_type) {
|
||||
@ -435,7 +435,7 @@ getM_sourceofamount() {
|
||||
own_contribution: [''],
|
||||
source: [''],
|
||||
other_source:[''],
|
||||
personal_loan_source:[''],
|
||||
// personal_loan_source:[''],
|
||||
//lender_name_type: [''],
|
||||
emi_level: [''],
|
||||
property_type: [''],
|
||||
@ -465,9 +465,9 @@ getM_sourceofamount() {
|
||||
event.forEach(option => {
|
||||
// let othersData = this.m_endUseofLoad.filter(sub=>sub.subproduct_id==option)[0];
|
||||
let othersData = this.m_endUseForLoan.filter(sub=>sub.enduse_of_loan_id==option)[0];
|
||||
// console.log(othersData);
|
||||
// console.log('1',othersData);
|
||||
OthersAvaliable = othersData.enduse_of_loan.substr(0,6).toLowerCase();
|
||||
// console.log(OthersAvaliable);
|
||||
// console.log('1',OthersAvaliable);
|
||||
this.endUserList.push({ end_use: option });
|
||||
});
|
||||
|
||||
@ -488,8 +488,8 @@ getM_sourceofamount() {
|
||||
// this.isOtherSource = (evt.some(e => e == 4) == true) ? true : false ;
|
||||
// this.isPLSource = (evt.some(e => e == 3) == true) ? true : false ;
|
||||
|
||||
this.isOtherSource = evt.some(e => e == 4) // this return true or false Only;
|
||||
this.isPLSource = evt.some(e => e == 3) // this return true or false Only;
|
||||
this.isOtherSource = evt.some(e => e == 1) // this return true or false Only;
|
||||
// this.isPLSource = evt.some(e => e == 3) // this return true or false Only;
|
||||
|
||||
this.sourceList = [];
|
||||
|
||||
@ -603,9 +603,9 @@ getM_sourceofamount() {
|
||||
records.other_source = this.loanDetailsForm.controls['other_source'].value;
|
||||
}else{ records.other_source = ''; }
|
||||
|
||||
if(this.isPLSource){
|
||||
records.personal_loan_source = this.loanDetailsForm.controls['personal_loan_source'].value;
|
||||
}else{ records.personal_loan_source = ''; }
|
||||
// if(this.isPLSource){
|
||||
// records.personal_loan_source = this.loanDetailsForm.controls['personal_loan_source'].value;
|
||||
// }else{ records.personal_loan_source = ''; }
|
||||
|
||||
|
||||
//records.percentage_of_construction = this.loanDetailsForm.controls['percentage_of_construction'].value;
|
||||
|
||||
@ -85,7 +85,6 @@
|
||||
</mat-form-field>
|
||||
<mat-form-field style="width: 12%">
|
||||
<input matInput autocomplete="off" placeholder=" STD " formControlName="std_code" type="text" (keypress)="keyPress($event)">
|
||||
<span matPrefix>+91</span>
|
||||
<mat-error *ngIf="reference['controls'].std_code.hasError('maxlength') || reference['controls'].std_code.hasError('minlength')">Enter Valid STD Code. </mat-error>
|
||||
</mat-form-field> <span>-</span>
|
||||
<mat-form-field style="width: 20%">
|
||||
@ -104,7 +103,7 @@
|
||||
</mat-option>
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
<mat-form-field style="width: 30%" *ngIf="reference.controls.relationship_with.value==5">
|
||||
<mat-form-field style="width: 30%" *ngIf="reference.controls.relationship_with.value==1">
|
||||
<input matInput autocomplete="off" placeholder="Specify Business Relation" formControlName="others" type="text">
|
||||
</mat-form-field>
|
||||
<p #period_paragraph>Period of Relationship</p>
|
||||
@ -126,7 +125,7 @@
|
||||
</mat-option>
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
<mat-form-field style="width: 30%" *ngIf="reference.controls.business_volume_unit.value==8">
|
||||
<mat-form-field style="width: 30%" *ngIf="reference.controls.business_volume_unit.value==1">
|
||||
<input matInput autocomplete="off" placeholder="Specify Unit" formControlName="others_unit" type="text">
|
||||
</mat-form-field>
|
||||
<span style="width:100%">
|
||||
|
||||
@ -48,7 +48,7 @@
|
||||
</mat-select>
|
||||
</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 == 1">
|
||||
<input matInput autocomplete="off" placeholder="Specify Source"
|
||||
formControlName="others_source">
|
||||
</mat-form-field>
|
||||
@ -80,7 +80,7 @@
|
||||
|
||||
<!-- {{otherIncomeForm.controls.frequency.value}} -->
|
||||
|
||||
<mat-form-field style="width:45%" *ngIf="details.get('frequency').value == 8">
|
||||
<mat-form-field style="width:45%" *ngIf="details.get('frequency').value == 1">
|
||||
<input matInput autocomplete="off" placeholder="Specify Frequency"
|
||||
formControlName="others_frequency">
|
||||
</mat-form-field>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user