add additional mobile no
This commit is contained in:
parent
74d76043c3
commit
b782311ebc
@ -266,11 +266,16 @@
|
||||
<input matInput autocomplete="off" [placeholder]="selected_cus_abbr == 'SEP_INDV' ? 'Nature of Service' : 'Company / Firm Name'" formControlName="company_name" type="text">
|
||||
</mat-form-field>
|
||||
|
||||
<mat-form-field style="width: 38%">
|
||||
<mat-form-field style="width: 20%">
|
||||
<input matInput autocomplete="off" placeholder="Mobile Number" formControlName="mobile_no" type="text" ForMobileNumbers maxlength="10" minlength="10" (change)="checkExistPd($event.target.value,2)">
|
||||
<mat-error *ngIf="pdMain.mobile_no.hasError('required')">Mobile No is Required . </mat-error>
|
||||
<mat-error *ngIf="pdMain.mobile_no.hasError('maxlength') || pdMain.mobile_no.hasError('minlength')">Enter Valid Mobile Number. </mat-error>
|
||||
</mat-form-field>
|
||||
<mat-form-field style="width: 25%">
|
||||
<input matInput autocomplete="off" placeholder="Additional Mobile Number" formControlName="additional_mobile_no" type="text" ForMobileNumbers maxlength="10" minlength="10" (change)="checkExistPd($event.target.value,2)">
|
||||
<mat-error *ngIf="pdMain.additional_mobile_no.hasError('required')">Mobile No is Required . </mat-error>
|
||||
<mat-error *ngIf="pdMain.additional_mobile_no.hasError('maxlength') || pdMain.additional_mobile_no.hasError('minlength')">Enter Valid Mobile Number. </mat-error>
|
||||
</mat-form-field>
|
||||
|
||||
<mat-form-field style="width: 12%">
|
||||
<input matInput autocomplete="off" placeholder="STD Code" formControlName="applicant_stdcode" type="text" ForMobileNumbers maxlength="5">
|
||||
@ -311,10 +316,14 @@
|
||||
<input matInput placeholder="Name" formControlName="coapplicant_name" type="text" required>
|
||||
</mat-form-field> -->
|
||||
|
||||
<mat-form-field style="width: 38%">
|
||||
<mat-form-field style="width: 20%">
|
||||
<input matInput placeholder="Mobile Number" formControlName="coapplicant_mobile_no" type="text" maxlength="10" ForMobileNumbers>
|
||||
<mat-error *ngIf="coDetails['controls'].coapplicant_mobile_no.hasError('maxlength') || coDetails['controls'].coapplicant_mobile_no.hasError('minlength')">Enter Valid Mobile Number. </mat-error>
|
||||
</mat-form-field>
|
||||
<mat-form-field style="width: 25%">
|
||||
<input matInput placeholder="Additional Mobile Number" formControlName="coapplicant_additional_mobile_no" type="text" maxlength="10" ForMobileNumbers>
|
||||
<mat-error *ngIf="coDetails['controls'].coapplicant_additional_mobile_no.hasError('maxlength') || coDetails['controls'].coapplicant_additional_mobile_no.hasError('minlength')">Enter Valid Mobile Number. </mat-error>
|
||||
</mat-form-field>
|
||||
|
||||
<mat-form-field style="width: 12%">
|
||||
<input matInput autocomplete="off" placeholder="STD Code" formControlName="coapplicant_stdcode" type="text" maxlength="5" ForMobileNumbers>
|
||||
|
||||
@ -169,6 +169,7 @@ export class AddPdComponent implements OnInit, OnDestroy {
|
||||
applicant_title_name: [''],
|
||||
applicant_name: [null,Validators.compose([Validators.required])],
|
||||
mobile_no: [null, Validators.compose([Validators.maxLength(10), Validators.minLength(10)])],
|
||||
additional_mobile_no:[null, Validators.compose([Validators.maxLength(10), Validators.minLength(10)])],
|
||||
// landline : [null,Validators.compose([Validators.minLength(12),Validators.maxLength(13)])],
|
||||
// email: [null],
|
||||
applicant_stdcode: [null, Validators.compose([Validators.minLength(3), Validators.maxLength(5), Validators.pattern('^[0-9]*$')])],
|
||||
@ -453,6 +454,7 @@ export class AddPdComponent implements OnInit, OnDestroy {
|
||||
applicant_title_name:[null],
|
||||
coapplicant_name: [null, Validators.compose([Validators.required])],
|
||||
coapplicant_mobile_no: [null,Validators.compose([Validators.minLength(10),Validators.maxLength(10)])],
|
||||
coapplicant_additional_mobile_no: [null,Validators.compose([Validators.minLength(10),Validators.maxLength(10)])],
|
||||
coapplicant_stdcode:[null, Validators.compose([Validators.minLength(3), Validators.maxLength(5), Validators.pattern('^[0-9]*$')])],
|
||||
coapplicant_landline: [null, Validators.compose([Validators.minLength(6), Validators.maxLength(8), Validators.pattern('^[0-9]*$')])],
|
||||
company_name:[null],
|
||||
@ -601,7 +603,7 @@ export class AddPdComponent implements OnInit, OnDestroy {
|
||||
this._PDtriggerForm.controls['applicant_title_name'].updateValueAndValidity();
|
||||
|
||||
this._PDtriggerForm.controls['mobile_no'].setValidators(Validators.compose([Validators.required]));
|
||||
|
||||
this._PDtriggerForm.controls['additional_mobile_no'].setValidators(Validators.compose([Validators.required]));
|
||||
|
||||
// this._PDtriggerForm.controls['addressline1'].setValidators([Validators.required]);
|
||||
// this._PDtriggerForm.controls['addressline1'].updateValueAndValidity();
|
||||
@ -662,6 +664,9 @@ export class AddPdComponent implements OnInit, OnDestroy {
|
||||
this._PDtriggerForm.controls['mobile_no'].clearValidators();
|
||||
this._PDtriggerForm.controls['mobile_no'].updateValueAndValidity();
|
||||
|
||||
this._PDtriggerForm.controls['additional_mobile_no'].clearValidators();
|
||||
this._PDtriggerForm.controls['additional_mobile_no'].updateValueAndValidity();
|
||||
|
||||
// this._PDtriggerForm.controls['addressline1'].clearValidators();
|
||||
// this._PDtriggerForm.controls['addressline1'].updateValueAndValidity();
|
||||
|
||||
@ -699,6 +704,10 @@ export class AddPdComponent implements OnInit, OnDestroy {
|
||||
this.notifier.notify('warning', 'Please Check Applicant Mobile Number.!');
|
||||
return;
|
||||
}
|
||||
//if (formValue.additional_mobile_no != null && formValue.additional_mobile_no.length != 10){
|
||||
// this.notifier.notify('warning', 'Please Check Applicant Mobile Number.!');
|
||||
// return;
|
||||
// }
|
||||
else {
|
||||
this.disableAfterSubmit = true;
|
||||
|
||||
@ -767,6 +776,7 @@ export class AddPdComponent implements OnInit, OnDestroy {
|
||||
"applicant_title_name": formValue.applicant_title_name,
|
||||
"company_name": formValue.company_name,
|
||||
"mobile_no": formValue.mobile_no,
|
||||
"additional_mobile_no":formValue.additional_mobile_no,
|
||||
"landline": applicant_landline_no,
|
||||
"applicant_type": 1,
|
||||
"relation": "",
|
||||
@ -809,6 +819,7 @@ export class AddPdComponent implements OnInit, OnDestroy {
|
||||
"applicant_title_name": itemElement.applicant_title_name,
|
||||
"company_name": itemElement.company_name,
|
||||
"mobile_no":itemElement.coapplicant_mobile_no,
|
||||
"additional_mobile_no":itemElement.coapplicant_additional_mobile_no,
|
||||
"landline": coapplicant_landline_no,
|
||||
"applicant_type":0,
|
||||
"relation": "",
|
||||
|
||||
@ -56,6 +56,8 @@
|
||||
<div class="image-label" fxLayout ="row" >
|
||||
|
||||
<p fxFlex="80" >{{val.img_name || val.img_key}} </p>
|
||||
<!--<input name="fullName" style="font-weight: bold;" editable-text="text" value={{val.img_name}} />-->
|
||||
|
||||
<!-- <span fxFlex="20"> -->
|
||||
|
||||
<!-- <object style="height: 35px" type="image/svg+xml" data="../../../assets/spinner/spinner.svg">
|
||||
|
||||
@ -25,7 +25,7 @@ export class ImagesAllComponent implements OnInit { imageData: any;
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
|
||||
|
||||
this.getPDImageDetails();
|
||||
}
|
||||
getPDImageDetails() {
|
||||
@ -40,6 +40,8 @@ export class ImagesAllComponent implements OnInit { imageData: any;
|
||||
// if(this.records.is_cus_link_disabled != '1') {
|
||||
this.imageData =this.records.img_data;
|
||||
this.imageData.forEach(val=>{
|
||||
console.log('tamil');
|
||||
console.log(val);
|
||||
val.is_loader = false
|
||||
val.is_saved = true
|
||||
})
|
||||
|
||||
@ -90,6 +90,7 @@
|
||||
<mat-list-item align="left" *ngIf="master.pd_contact_mobileno" style="height:48px !important;">
|
||||
<i class="fa-1x fa fa-phone"></i><small style="margin-left: 2%; font-size: inherit">{{master.pd_contact_mobileno}}</small>
|
||||
</mat-list-item>
|
||||
|
||||
</div>
|
||||
<div *ngIf="master.lender_credit_person_name != '' && master.lender_credit_person_name != null">
|
||||
<!-- <mat-list-item> -->
|
||||
@ -371,7 +372,7 @@
|
||||
</span>
|
||||
<span *ngIf="applicant.mobile_no != '' && (applicant.mobile_no != null || applicant.mobile_no != undefined) " class="mb-2 text-center hover-icon">
|
||||
<i class="fa-1x fa fa-phone" style="width: 37px;padding: 8px 9px 8px 9px;border-bottom: 2px solid red;"></i>
|
||||
{{applicant.mobile_no}}
|
||||
{{applicant.mobile_no}} <span *ngIf="applicant.additional_mobile_no != '' && (applicant.additional_mobile_no != null || applicant.additional_mobile_no != undefined) "><i class="fa-1x fa fa-phone" style="width: 37px;padding: 8px 9px 8px 9px;border-bottom: 2px solid red;"></i>{{applicant.additional_mobile_no}}</span>
|
||||
</span>
|
||||
<span *ngIf="applicant.company_name!=null" class="mb-2 text-center hover-icon">
|
||||
<i class="fa-1x fa fa-building-o" style="width: 37px;padding: 8px 9px 8px 9px;border-bottom: 2px solid red;"></i>
|
||||
|
||||
@ -62,7 +62,7 @@ export class ViewPdComponent implements OnInit, OnDestroy {
|
||||
{ 'backEnd_FieldName': "pd_contact_landline", 'frontEnd_FieldName': "Lender's Landline Number" },
|
||||
{ 'backEnd_FieldName': "main_applicant", 'frontEnd_FieldName': "Applicant Master" },
|
||||
{ 'backEnd_FieldName': "addressline1", 'frontEnd_FieldName': "Address at which PD is to be done" },
|
||||
{ 'backEnd_FieldName': "fk_city", 'frontEnd_FieldName': "City" },
|
||||
{ 'backEnd_FieldName': "fk_city", 'frontEnd_FieldName': "City" },
|
||||
{ 'backEnd_FieldName': "fk_state", 'frontEnd_FieldName': "State" },
|
||||
{ 'backEnd_FieldName': "pincode", 'frontEnd_FieldName': "Pincode" },
|
||||
{ 'backEnd_FieldName': "lender_sales_person", 'frontEnd_FieldName': "Lender Sales Person" },
|
||||
|
||||
@ -19,7 +19,7 @@
|
||||
<mat-video title="Recorded Video" [autoplay]="true" [preload]="true" [fullscreen]="true" [download]="true" color="primary" spinner="spin" poster="../../assets/images/img/video-icon.png">
|
||||
<source matVideoSource [src]="videoSrc" type="video/webm">
|
||||
|
||||
</mat-video>
|
||||
</mat-video>
|
||||
</div>
|
||||
<!-- <source src="tutorial.webm" type="video/webm"> -->
|
||||
<!-- <track matVideoTrack src="subtitles_en.vtt" kind="subtitles" srclang="en" label="English"> -->
|
||||
|
||||
Loading…
Reference in New Issue
Block a user