add PD changes
This commit is contained in:
parent
15976511bd
commit
42dba214e9
@ -121,11 +121,11 @@ export class AddPdComponent implements OnInit, OnDestroy {
|
|||||||
// load form data
|
// load form data
|
||||||
loadFormData() {
|
loadFormData() {
|
||||||
this._PDtriggerForm = this._fb.group({
|
this._PDtriggerForm = this._fb.group({
|
||||||
fk_lender_id: [{value:this.userDetails.fk_entity_id,disabled:true} || ''],
|
fk_lender_id: [{value:this.userDetails.fk_entity_id,disabled: this.userDetails.short_name != 'CHFPL' && this.userDetails.short_name != 'CLIX' ? true : false} || ''],
|
||||||
pd_branch_id: [null],
|
pd_branch_id: [null],
|
||||||
lender_applicant_id: [null, Validators.compose([Validators.required])],
|
lender_applicant_id: [null, Validators.compose([Validators.required])],
|
||||||
lender_sales_person:[null],
|
lender_sales_person:[null],
|
||||||
lender_credit_person:[{value:this.userDetails.userid,disabled:true} || ''],
|
lender_credit_person:[{value:this.userDetails.userid,disabled:false} || ''],
|
||||||
imgc_fin_institute:[null],
|
imgc_fin_institute:[null],
|
||||||
// lender_contact_person: [null],
|
// lender_contact_person: [null],
|
||||||
// lender_contact_mobile: [null, Validators.compose([Validators.minLength(10), Validators.maxLength(12), Validators.pattern('^[0-9]*$')])],
|
// lender_contact_mobile: [null, Validators.compose([Validators.minLength(10), Validators.maxLength(12), Validators.pattern('^[0-9]*$')])],
|
||||||
@ -158,6 +158,10 @@ export class AddPdComponent implements OnInit, OnDestroy {
|
|||||||
data => {
|
data => {
|
||||||
if (data.status == 200) {
|
if (data.status == 200) {
|
||||||
this.lenderList = data.records
|
this.lenderList = data.records
|
||||||
|
if(this.userDetails.short_name == 'CHFPL' || this.userDetails.short_name == 'CLIX'){
|
||||||
|
this.lenderList = data.records.filter(item=> item.short_name == 'CHFPL' || item.short_name == 'CLIX');
|
||||||
|
console.log('filter lender',this.lenderList);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
this.loadControl=true
|
this.loadControl=true
|
||||||
this.selectedLender(this.userDetails.fk_entity_id)
|
this.selectedLender(this.userDetails.fk_entity_id)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user