merge
This commit is contained in:
parent
2f32d5f2ec
commit
a55e370654
3
ng6-seed/package-lock.json
generated
3
ng6-seed/package-lock.json
generated
@ -1270,8 +1270,6 @@
|
|||||||
"version": "11.1.5",
|
"version": "11.1.5",
|
||||||
"resolved": "https://registry.npmjs.org/@swimlane/ngx-datatable/-/ngx-datatable-11.1.5.tgz",
|
"resolved": "https://registry.npmjs.org/@swimlane/ngx-datatable/-/ngx-datatable-11.1.5.tgz",
|
||||||
"integrity": "sha512-BRRHMrgw9tG0BezTnfszzFTlpW9B9Zh5kyZF/pxqfJxpUsZ0aA/uXlL4cloe4+msQ6yIdu1/jhUCDInwSzmpFw=="
|
"integrity": "sha512-BRRHMrgw9tG0BezTnfszzFTlpW9B9Zh5kyZF/pxqfJxpUsZ0aA/uXlL4cloe4+msQ6yIdu1/jhUCDInwSzmpFw=="
|
||||||
<<<<<<< HEAD
|
|
||||||
=======
|
|
||||||
},
|
},
|
||||||
"@swimlane/ngx-dnd": {
|
"@swimlane/ngx-dnd": {
|
||||||
"version": "9.0.0",
|
"version": "9.0.0",
|
||||||
@ -1307,7 +1305,6 @@
|
|||||||
"integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw=="
|
"integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw=="
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
>>>>>>> 6f3613fe88d9f917ac496803b264c51a0ccc6410
|
|
||||||
},
|
},
|
||||||
"@types/aws-sdk": {
|
"@types/aws-sdk": {
|
||||||
"version": "2.7.0",
|
"version": "2.7.0",
|
||||||
|
|||||||
@ -23,7 +23,7 @@
|
|||||||
</mat-option>
|
</mat-option>
|
||||||
<mat-option> Select </mat-option>
|
<mat-option> Select </mat-option>
|
||||||
<mat-option (click)="selectedLender(LL)" *ngFor="let LL of filteredLenderList | async" [value]="LL.entity_id" >
|
<mat-option (click)="selectedLender(LL)" *ngFor="let LL of filteredLenderList | async" [value]="LL.entity_id" >
|
||||||
{{LL.full_name}}{{LL.entity_id}}
|
{{LL.full_name}}
|
||||||
</mat-option>
|
</mat-option>
|
||||||
</mat-select>
|
</mat-select>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
@ -57,10 +57,10 @@
|
|||||||
<mat-form-field style="width: 28%">
|
<mat-form-field style="width: 28%">
|
||||||
<mat-label>{{lenderShortName == 'CFPL' ? 'Facility' :'Loan'}} Application ID</mat-label>
|
<mat-label>{{lenderShortName == 'CFPL' ? 'Facility' :'Loan'}} Application ID</mat-label>
|
||||||
<input matInput autocomplete="off" formControlName="lender_applicant_id" type="text" (change)="checkExistPd($event.target.value,1)">
|
<input matInput autocomplete="off" formControlName="lender_applicant_id" type="text" (change)="checkExistPd($event.target.value,1)">
|
||||||
<mat-error *ngIf="_PDtriggerForm.get('fk_lender_id').value =='16'"> Required</mat-error>
|
<!-- <mat-error *ngIf="_PDtriggerForm.get('fk_lender_id').value =='16'"> Required</mat-error> -->
|
||||||
<!-- <div *ngIf="_PDtriggerForm.get('fk_lender_id').value =='16'"><mat-error *ngIf="pdMain.lender_applicant_id.hasError('required')" >Applicant ID Required</mat-error> </div>
|
<!-- <div *ngIf="_PDtriggerForm.get('fk_lender_id').value =='16'"><mat-error *ngIf="pdMain.lender_applicant_id.hasError('required')" >Applicant ID Required</mat-error> </div>
|
||||||
<ng-container *ngIf="_PDtriggerForm.get('fk_lender_id').value =='16'" ngProjectAs="mat-error"> <mat-error *ngIf="pdMain.lender_applicant_id.hasError('required')" >Applicant ID Required</mat-error> </ng-container> -->
|
<ng-container *ngIf="_PDtriggerForm.get('fk_lender_id').value =='16'" ngProjectAs="mat-error"> <mat-error *ngIf="pdMain.lender_applicant_id.hasError('required')" >Applicant ID Required</mat-error> </ng-container> -->
|
||||||
<mat-error *ngIf="pdMain.lender_applicant_id.hasError('required')">Applicant ID Required</mat-error>
|
<!-- <mat-error *ngIf="pdMain.lender_applicant_id.hasError('required')">Applicant ID Required</mat-error> -->
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<!-- <div *ngIf="sales_and_credit_enable"> -->
|
<!-- <div *ngIf="sales_and_credit_enable"> -->
|
||||||
<mat-form-field style="width: 28%">
|
<mat-form-field style="width: 28%">
|
||||||
@ -176,8 +176,8 @@
|
|||||||
<mat-hint align="start" style="font-size:90%" *ngIf="pdMain.loan_amount.value">{{"₹"}} {{pdMain.loan_amount.value | numberToWords}} Only</mat-hint>
|
<mat-hint align="start" style="font-size:90%" *ngIf="pdMain.loan_amount.value">{{"₹"}} {{pdMain.loan_amount.value | numberToWords}} Only</mat-hint>
|
||||||
<mat-error *ngIf="pdMain.loan_amount.hasError('required')">Required.</mat-error>
|
<mat-error *ngIf="pdMain.loan_amount.hasError('required')">Required.</mat-error>
|
||||||
<mat-error *ngIf="pdMain.loan_amount.hasError('pattern')">Enter valid amount. </mat-error>
|
<mat-error *ngIf="pdMain.loan_amount.hasError('pattern')">Enter valid amount. </mat-error>
|
||||||
<mat-error *ngIf="_PDtriggerForm.get('fk_lender_id').value =='16'">Loan Amount Required</mat-error>
|
<!-- <mat-error *ngIf="_PDtriggerForm.get('fk_lender_id').value =='16'">Loan Amount Required</mat-error>
|
||||||
|
-->
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
</mat-card>
|
</mat-card>
|
||||||
|
|||||||
@ -195,6 +195,12 @@ export class AddPdComponent implements OnInit, OnDestroy {
|
|||||||
lenderShortName:string;
|
lenderShortName:string;
|
||||||
/** FOR Dropdowns */
|
/** FOR Dropdowns */
|
||||||
selectedLender(lender) {
|
selectedLender(lender) {
|
||||||
|
// if(this.lenderShortName == 'CLIX'){
|
||||||
|
// this._PDtriggerForm.controls['lender_applicant_id'].setValidators([Validators.required,Validators.pattern('^[0-9]*$')])
|
||||||
|
// this._PDtriggerForm.controls['lender_applicant_id'].updateValueAndValidity();
|
||||||
|
// // this._PDtriggerForm.controls["lender_applicant_id"].setValidators
|
||||||
|
// }
|
||||||
|
|
||||||
console.log('lender',lender);
|
console.log('lender',lender);
|
||||||
this.lenderBranchList = lender['branches'];
|
this.lenderBranchList = lender['branches'];
|
||||||
this.filteredBranchList.next(this.lenderBranchList.slice());
|
this.filteredBranchList.next(this.lenderBranchList.slice());
|
||||||
@ -203,33 +209,38 @@ export class AddPdComponent implements OnInit, OnDestroy {
|
|||||||
this._PDtriggerForm.controls.pd_branch_id.setValue(null);
|
this._PDtriggerForm.controls.pd_branch_id.setValue(null);
|
||||||
|
|
||||||
this.productList = this.productAllList;
|
this.productList = this.productAllList;
|
||||||
// if(this.lenderShortName == 'CLIX')
|
// if(this.lenderShortName == 'CLIX')
|
||||||
// {
|
// {
|
||||||
|
|
||||||
// this._PDtriggerForm.controls['loan_amount'].setValue(null)
|
// this._PDtriggerForm.controls['loan_amount'].setValue(null)
|
||||||
// this._PDtriggerForm.controls['loan_amount'].clearValidators()
|
// this._PDtriggerForm.controls['loan_amount'].clearValidators()
|
||||||
// this._PDtriggerForm.controls['loan_amount'].updateValueAndValidity()
|
// this._PDtriggerForm.controls['loan_amount'].updateValueAndValidity()
|
||||||
|
|
||||||
// }
|
// }
|
||||||
// if(this.lenderShortName == 'CLIX'){
|
if(this.lenderShortName == 'CLIX')
|
||||||
|
{
|
||||||
|
|
||||||
// let getProductAbbr = this.productAllList.map(dval => dval.product_abbr);
|
this._PDtriggerForm.controls['lender_applicant_id'].setValidators([Validators.required])
|
||||||
// let ClixProductAbbr = ['BL','LAEP'];
|
}
|
||||||
// let FilteredAbbr: any = [];
|
// if(this.lenderShortName == 'CLIX'){
|
||||||
// FilteredAbbr = ClixProductAbbr.map(x => {
|
|
||||||
// let findIndex = getProductAbbr.indexOf(x);
|
// let getProductAbbr = this.productAllList.map(dval => dval.product_abbr);
|
||||||
// return this.productAllList[findIndex];
|
// let ClixProductAbbr = ['BL','LAEP'];
|
||||||
// });
|
// let FilteredAbbr: any = [];
|
||||||
// this.productList = FilteredAbbr.length > 0 ? FilteredAbbr : this.productAllList;
|
// FilteredAbbr = ClixProductAbbr.map(x => {
|
||||||
// }
|
// let findIndex = getProductAbbr.indexOf(x);
|
||||||
// else{
|
// return this.productAllList[findIndex];
|
||||||
// this.productList = this.productAllList;
|
// });
|
||||||
// }
|
// this.productList = FilteredAbbr.length > 0 ? FilteredAbbr : this.productAllList;
|
||||||
|
// }
|
||||||
|
// else{
|
||||||
|
// this.productList = this.productAllList;
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// console.log(this.productList);
|
// console.log(this.productList);
|
||||||
|
|
||||||
// console.log('this.productList',this.productList);
|
// console.log('this.productList',this.productList);
|
||||||
this._PDtriggerForm.controls['fk_product_id'].setValue('');
|
this._PDtriggerForm.controls['fk_product_id'].setValue('');
|
||||||
@ -256,33 +267,33 @@ export class AddPdComponent implements OnInit, OnDestroy {
|
|||||||
this._PDtriggerForm.controls['loan_amount'].setValidators([Validators.required,Validators.pattern('^[0-9]*$')])
|
this._PDtriggerForm.controls['loan_amount'].setValidators([Validators.required,Validators.pattern('^[0-9]*$')])
|
||||||
this._PDtriggerForm.controls['loan_amount'].updateValueAndValidity();
|
this._PDtriggerForm.controls['loan_amount'].updateValueAndValidity();
|
||||||
}
|
}
|
||||||
// else{
|
// else{
|
||||||
// this._PDtriggerForm.controls['loan_amount'].setValidators([Validators.required,Validators.pattern('^[0-9]*$')]);
|
// this._PDtriggerForm.controls['loan_amount'].setValidators([Validators.required,Validators.pattern('^[0-9]*$')]);
|
||||||
// this._PDtriggerForm.controls['loan_amount'].updateValueAndValidity();
|
// this._PDtriggerForm.controls['loan_amount'].updateValueAndValidity();
|
||||||
// }
|
// }
|
||||||
|
|
||||||
// if(this.lenderShortName == "IIB"){ //FOR INDUSLAND BANK
|
// if(this.lenderShortName == "IIB"){ //FOR INDUSLAND BANK
|
||||||
// // console.log("entered");
|
// // console.log("entered");
|
||||||
// this._PDtriggerForm.controls['fk_product_id'].setValue("3")
|
// this._PDtriggerForm.controls['fk_product_id'].setValue("3")
|
||||||
// this._PDtriggerForm.controls['fk_pd_type'].setValue("1");
|
// this._PDtriggerForm.controls['fk_pd_type'].setValue("1");
|
||||||
// this.getSubproductList("3")
|
// this.getSubproductList("3")
|
||||||
// }
|
// }
|
||||||
// else if(this.lenderShortName == 'HHFL'){
|
// else if(this.lenderShortName == 'HHFL'){
|
||||||
// this.getSubproductList("1")
|
// this.getSubproductList("1")
|
||||||
// this._PDtriggerForm.controls['fk_product_id'].setValue('1');
|
// this._PDtriggerForm.controls['fk_product_id'].setValue('1');
|
||||||
// this._PDtriggerForm.controls['fk_subproduct_id'].setValue('1');
|
// this._PDtriggerForm.controls['fk_subproduct_id'].setValue('1');
|
||||||
// this._PDtriggerForm.controls['fk_customer_segment'].setValue('5');
|
// this._PDtriggerForm.controls['fk_customer_segment'].setValue('5');
|
||||||
// this._PDtriggerForm.controls['fk_pd_type'].setValue('1');
|
// this._PDtriggerForm.controls['fk_pd_type'].setValue('1');
|
||||||
// this._PDtriggerForm.controls['loan_amount'].setValue(0);
|
// this._PDtriggerForm.controls['loan_amount'].setValue(0);
|
||||||
// }
|
// }
|
||||||
// console.log("len",lender)
|
// console.log("len",lender)
|
||||||
|
|
||||||
if(lender.entity_id == '16')
|
// if(lender.entity_id == '16'|| this.lenderShortName == 'CLIX')
|
||||||
{
|
// {
|
||||||
alert('kjjhf')
|
|
||||||
this._PDtriggerForm.controls['lender_applicant_id'].setValidators([Validators.required])
|
// this._PDtriggerForm.controls['lender_applicant_id'].setValidators([Validators.required])
|
||||||
this._PDtriggerForm.controls['loan_amount'].setValidators([Validators.required])
|
// this._PDtriggerForm.controls['loan_amount'].setValidators([Validators.required])
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1058,6 +1069,9 @@ checkExistPd(value,option){
|
|||||||
// if(option == 2 || ){
|
// if(option == 2 || ){
|
||||||
if((this.pdMain.mobile_no.value != null && this.pdMain.applicant_name.value != null && option == 2) || option == 1){
|
if((this.pdMain.mobile_no.value != null && this.pdMain.applicant_name.value != null && option == 2) || option == 1){
|
||||||
this._pd.checkExistPDDetails(param).subscribe(result=>{
|
this._pd.checkExistPDDetails(param).subscribe(result=>{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(result['dataStatus']){
|
if(result['dataStatus']){
|
||||||
if(result['records'].length > 0){
|
if(result['records'].length > 0){
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user