Tele PD Changes
This commit is contained in:
parent
4ea478f042
commit
a3e175f170
@ -142,17 +142,17 @@
|
||||
</button>
|
||||
</a>
|
||||
|
||||
<button *ngIf="details.fk_pd_type == '3'"
|
||||
<!-- <button *ngIf="details.fk_pd_type == '3'"
|
||||
mat-button mat-icon-button class="mb-1 hover-icon" type="button" color="primary" (click)="copyCusURL(details.random_string)"
|
||||
matTooltip="Copy Customer Link" matTooltipPosition="above">
|
||||
<mat-icon>link</mat-icon>
|
||||
</button>
|
||||
</button> -->
|
||||
|
||||
<button *ngIf="details.fk_pd_type == '3'"
|
||||
<!-- <button *ngIf="details.fk_pd_type == '3'"
|
||||
mat-button mat-icon-button class="mb-1 hover-icon" type="button" color="primary" (click)="onClickSmsLink(details)"
|
||||
matTooltip="Send Link Via SMS" matTooltipPosition="above">
|
||||
<mat-icon>sms</mat-icon>
|
||||
</button>
|
||||
</button> -->
|
||||
|
||||
<button style="float: right" mat-button mat-icon-button class="mb-1 hover-icon" type="button" color="primary" (click)="viewPD(details.is_child == 0 ? details.pd_id : details.parent_pd_id,details.random_string)"
|
||||
matTooltip="View" matTooltipPosition="above">
|
||||
|
||||
@ -238,24 +238,24 @@ export class AllPdComponent implements OnInit, OnChanges {
|
||||
this.dataSourceTab1.paginator = this.paginator;
|
||||
this.dataSourceTab1.sort = this.sort;
|
||||
}
|
||||
copyCusURL(randomStr) {
|
||||
// console.log(window.location);
|
||||
let cus_link = window.location.origin+'/customer/#/pd-images/'+randomStr;
|
||||
console.log(randomStr)
|
||||
this._pd.copyToClipBoard(cus_link);
|
||||
this.notifier.notify('info','Customer link copied');
|
||||
}
|
||||
onClickSmsLink(details){
|
||||
let param={
|
||||
pd_id: details.pd_id,
|
||||
mobile_no: details.applicat_details[0].mobile_no,
|
||||
random_string: details.random_string,
|
||||
}
|
||||
this._pd.smsLink(param).subscribe(res=>{
|
||||
if(res['dataStatus']){
|
||||
this.notifier.notify("info","SMS Sent Successfully")
|
||||
}
|
||||
})
|
||||
}
|
||||
// copyCusURL(randomStr) {
|
||||
// // console.log(window.location);
|
||||
// let cus_link = window.location.origin+'/customer/#/pd-images/'+randomStr;
|
||||
// console.log(randomStr)
|
||||
// this._pd.copyToClipBoard(cus_link);
|
||||
// this.notifier.notify('info','Customer link copied');
|
||||
// }
|
||||
// onClickSmsLink(details){
|
||||
// let param={
|
||||
// pd_id: details.pd_id,
|
||||
// mobile_no: details.applicat_details[0].mobile_no,
|
||||
// random_string: details.random_string,
|
||||
// }
|
||||
// this._pd.smsLink(param).subscribe(res=>{
|
||||
// if(res['dataStatus']){
|
||||
// this.notifier.notify("info","SMS Sent Successfully")
|
||||
// }
|
||||
// })
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
@ -119,17 +119,17 @@
|
||||
<ng-container matColumnDef="Action">
|
||||
<mat-cell class="cell center" *matCellDef="let details;">
|
||||
<!-- <button mat-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="viewPD(details.is_child == 0 ? details.pd_id : details.parent_pd_id)" -->
|
||||
<button *ngIf="details.fk_pd_type == '3'"
|
||||
<!-- <button *ngIf="details.fk_pd_type == '3'"
|
||||
mat-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" color="primary" (click)="copyCusURL(details.random_string)"
|
||||
matTooltip="Copy Customer Link" matTooltipPosition="above">
|
||||
<mat-icon>link</mat-icon>
|
||||
</button>
|
||||
</button> -->
|
||||
|
||||
<button *ngIf="details.fk_pd_type == '3'"
|
||||
<!-- <button *ngIf="details.fk_pd_type == '3'"
|
||||
mat-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" color="primary" (click)="onClickSmsLink(details)"
|
||||
matTooltip="Send Link Via SMS" matTooltipPosition="above">
|
||||
<mat-icon>sms</mat-icon>
|
||||
</button>
|
||||
</button> -->
|
||||
|
||||
<button style ="float: right" mat-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="viewPD(details.is_child == 0 ? details.pd_id : details.parent_pd_id,details.random_string)" matTooltip="View"
|
||||
matTooltipPosition="above" color="primary"><mat-icon>visibility</mat-icon></button>
|
||||
|
||||
@ -246,25 +246,25 @@ export class CompletedPdComponent implements OnInit, OnChanges {
|
||||
this.dataSourceTab4.paginator = this.paginator;
|
||||
this.dataSourceTab4.sort = this.sort;
|
||||
}
|
||||
copyCusURL(randomStr) {
|
||||
// console.log(window.location);
|
||||
let cus_link = window.location.origin+'/customer/#/pd-images/'+randomStr;
|
||||
console.log(randomStr)
|
||||
this._pd.copyToClipBoard(cus_link);
|
||||
this.notifier.notify('info','Customer link copied');
|
||||
}
|
||||
onClickSmsLink(details){
|
||||
let param={
|
||||
pd_id: details.pd_id,
|
||||
mobile_no: details.applicat_details[0].mobile_no,
|
||||
random_string: details.random_string,
|
||||
}
|
||||
this._pd.smsLink(param).subscribe(res=>{
|
||||
if(res['dataStatus']){
|
||||
this.notifier.notify("info","SMS Sent Successfully")
|
||||
}
|
||||
})
|
||||
}
|
||||
// copyCusURL(randomStr) {
|
||||
// // console.log(window.location);
|
||||
// let cus_link = window.location.origin+'/customer/#/pd-images/'+randomStr;
|
||||
// console.log(randomStr)
|
||||
// this._pd.copyToClipBoard(cus_link);
|
||||
// this.notifier.notify('info','Customer link copied');
|
||||
// }
|
||||
// onClickSmsLink(details){
|
||||
// let param={
|
||||
// pd_id: details.pd_id,
|
||||
// mobile_no: details.applicat_details[0].mobile_no,
|
||||
// random_string: details.random_string,
|
||||
// }
|
||||
// this._pd.smsLink(param).subscribe(res=>{
|
||||
// if(res['dataStatus']){
|
||||
// this.notifier.notify("info","SMS Sent Successfully")
|
||||
// }
|
||||
// })
|
||||
// }
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -115,16 +115,16 @@
|
||||
</ng-container>
|
||||
<ng-container matColumnDef="Action">
|
||||
<mat-cell class="cell center" *matCellDef="let details;">
|
||||
<button *ngIf="details.fk_pd_type == '3'"
|
||||
<!-- <button *ngIf="details.fk_pd_type == '3'"
|
||||
mat-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" color="primary" (click)="copyCusURL(details.random_string)"
|
||||
matTooltip="Copy Customer Link" matTooltipPosition="above">
|
||||
<mat-icon>link</mat-icon>
|
||||
</button>
|
||||
<button *ngIf="details.fk_pd_type == '3'"
|
||||
</button> -->
|
||||
<!-- <button *ngIf="details.fk_pd_type == '3'"
|
||||
mat-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" color="primary" (click)="onClickSmsLink(details)"
|
||||
matTooltip="Send Link Via SMS" matTooltipPosition="above">
|
||||
<mat-icon>sms</mat-icon>
|
||||
</button>
|
||||
</button> -->
|
||||
<button style="float: right" mat-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="viewPD(details.is_child == 0 ? details.pd_id : details.parent_pd_id,details.random_string)" matTooltip="View" matTooltipPosition="above" color="primary"><mat-icon>visibility</mat-icon></button>
|
||||
</mat-cell>
|
||||
</ng-container>
|
||||
|
||||
@ -238,24 +238,24 @@ export class InprogressPdComponent implements OnInit, OnChanges {
|
||||
this.dataSourceTab2.paginator = this.paginator;
|
||||
this.dataSourceTab2.sort = this.sort;
|
||||
}
|
||||
copyCusURL(randomStr) {
|
||||
// console.log(window.location);
|
||||
let cus_link = window.location.origin+'/customer/#/pd-images/'+randomStr;
|
||||
console.log(randomStr)
|
||||
this._pd.copyToClipBoard(cus_link);
|
||||
this.notifier.notify('info','Customer link copied');
|
||||
}
|
||||
onClickSmsLink(details){
|
||||
let param={
|
||||
pd_id: details.pd_id,
|
||||
mobile_no: details.applicat_details[0].mobile_no,
|
||||
random_string: details.random_string,
|
||||
}
|
||||
this._pd.smsLink(param).subscribe(res=>{
|
||||
if(res['dataStatus']){
|
||||
this.notifier.notify("info","SMS Sent Successfully")
|
||||
}
|
||||
})
|
||||
}
|
||||
// copyCusURL(randomStr) {
|
||||
// // console.log(window.location);
|
||||
// let cus_link = window.location.origin+'/customer/#/pd-images/'+randomStr;
|
||||
// console.log(randomStr)
|
||||
// this._pd.copyToClipBoard(cus_link);
|
||||
// this.notifier.notify('info','Customer link copied');
|
||||
// }
|
||||
// onClickSmsLink(details){
|
||||
// let param={
|
||||
// pd_id: details.pd_id,
|
||||
// mobile_no: details.applicat_details[0].mobile_no,
|
||||
// random_string: details.random_string,
|
||||
// }
|
||||
// this._pd.smsLink(param).subscribe(res=>{
|
||||
// if(res['dataStatus']){
|
||||
// this.notifier.notify("info","SMS Sent Successfully")
|
||||
// }
|
||||
// })
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
@ -118,17 +118,17 @@
|
||||
<ng-container matColumnDef="Action">
|
||||
<mat-cell class="cell center" *matCellDef="let details;">
|
||||
<!-- <button mat-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="viewPD(details.is_child == 0 ? details.pd_id : details.parent_pd_id)" matTooltip="View" matTooltipPosition="above" color="primary"><mat-icon>visibility</mat-icon></button> -->
|
||||
<button *ngIf="details.fk_pd_type == '3'"
|
||||
<!-- <button *ngIf="details.fk_pd_type == '3'"
|
||||
mat-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" color="primary" (click)="copyCusURL(details.random_string)"
|
||||
matTooltip="Copy Customer Link" matTooltipPosition="above">
|
||||
<mat-icon>link</mat-icon>
|
||||
</button>
|
||||
</button> -->
|
||||
|
||||
<button *ngIf="details.fk_pd_type == '3'"
|
||||
<!-- <button *ngIf="details.fk_pd_type == '3'"
|
||||
mat-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" color="primary" (click)="onClickSmsLink(details)"
|
||||
matTooltip="Send Link Via SMS" matTooltipPosition="above">
|
||||
<mat-icon>sms</mat-icon>
|
||||
</button>
|
||||
</button> -->
|
||||
|
||||
<button style="float: right" mat-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="viewPD(details.is_child == 0 ? details.pd_id : details.parent_pd_id,details.random_string)" color="primary" matTooltip="View" matTooltipPosition="above"><mat-icon>visibility</mat-icon></button>
|
||||
</mat-cell>
|
||||
|
||||
@ -220,23 +220,23 @@ export class QcCompletedPdComponent implements OnInit, OnChanges {
|
||||
this.loadPDDetails();
|
||||
this.xpandStatus = false;
|
||||
}
|
||||
copyCusURL(randomStr) {
|
||||
// console.log(window.location);
|
||||
let cus_link = window.location.origin+'/customer/#/pd-images/'+randomStr;
|
||||
console.log(randomStr)
|
||||
this._pd.copyToClipBoard(cus_link);
|
||||
this.notifier.notify('info','Customer link copied');
|
||||
}
|
||||
onClickSmsLink(details){
|
||||
let param={
|
||||
pd_id: details.pd_id,
|
||||
mobile_no: details.applicat_details[0].mobile_no,
|
||||
random_string: details.random_string,
|
||||
}
|
||||
this._pd.smsLink(param).subscribe(res=>{
|
||||
if(res['dataStatus']){
|
||||
this.notifier.notify("info","SMS Sent Successfully")
|
||||
}
|
||||
})
|
||||
}
|
||||
// copyCusURL(randomStr) {
|
||||
// // console.log(window.location);
|
||||
// let cus_link = window.location.origin+'/customer/#/pd-images/'+randomStr;
|
||||
// console.log(randomStr)
|
||||
// this._pd.copyToClipBoard(cus_link);
|
||||
// this.notifier.notify('info','Customer link copied');
|
||||
// }
|
||||
// onClickSmsLink(details){
|
||||
// let param={
|
||||
// pd_id: details.pd_id,
|
||||
// mobile_no: details.applicat_details[0].mobile_no,
|
||||
// random_string: details.random_string,
|
||||
// }
|
||||
// this._pd.smsLink(param).subscribe(res=>{
|
||||
// if(res['dataStatus']){
|
||||
// this.notifier.notify("info","SMS Sent Successfully")
|
||||
// }
|
||||
// })
|
||||
// }
|
||||
}
|
||||
|
||||
@ -118,17 +118,17 @@
|
||||
</ng-container>
|
||||
<ng-container matColumnDef="Action">
|
||||
<mat-cell class="cell center" *matCellDef="let details;">
|
||||
<button *ngIf="details.fk_pd_type == '3'"
|
||||
<!-- <button *ngIf="details.fk_pd_type == '3'"
|
||||
mat-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" color="primary" (click)="copyCusURL(details.random_string)"
|
||||
matTooltip="Copy Customer Link" matTooltipPosition="above">
|
||||
<mat-icon>link</mat-icon>
|
||||
</button>
|
||||
</button> -->
|
||||
|
||||
<button *ngIf="details.fk_pd_type == '3'"
|
||||
<!-- <button *ngIf="details.fk_pd_type == '3'"
|
||||
mat-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" color="primary" (click)="onClickSmsLink(details)"
|
||||
matTooltip="Send Link Via SMS" matTooltipPosition="above">
|
||||
<mat-icon>sms</mat-icon>
|
||||
</button>
|
||||
</button> -->
|
||||
|
||||
<button style="float: right" mat-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="viewPD(details.is_child == 0 ? details.pd_id : details.parent_pd_id,details.random_string)" color="primary" matTooltip="View" matTooltipPosition="above"><mat-icon>visibility</mat-icon></button>
|
||||
</mat-cell>
|
||||
|
||||
@ -234,25 +234,25 @@ export class ScheduledPdComponent implements OnInit, OnChanges {
|
||||
this.loadPDDetails();
|
||||
this.xpandStatus = false;
|
||||
}
|
||||
copyCusURL(randomStr) {
|
||||
// console.log(window.location);
|
||||
let cus_link = window.location.origin+'/customer/#/pd-images/'+randomStr;
|
||||
console.log(randomStr)
|
||||
this._pd.copyToClipBoard(cus_link);
|
||||
this.notifier.notify('info','Customer link copied');
|
||||
}
|
||||
onClickSmsLink(details){
|
||||
let param={
|
||||
pd_id: details.pd_id,
|
||||
mobile_no: details.applicat_details[0].mobile_no,
|
||||
random_string: details.random_string,
|
||||
}
|
||||
this._pd.smsLink(param).subscribe(res=>{
|
||||
if(res['dataStatus']){
|
||||
this.notifier.notify("info","SMS Sent Successfully")
|
||||
}
|
||||
})
|
||||
}
|
||||
// copyCusURL(randomStr) {
|
||||
// // console.log(window.location);
|
||||
// let cus_link = window.location.origin+'/customer/#/pd-images/'+randomStr;
|
||||
// console.log(randomStr)
|
||||
// this._pd.copyToClipBoard(cus_link);
|
||||
// this.notifier.notify('info','Customer link copied');
|
||||
// }
|
||||
// onClickSmsLink(details){
|
||||
// let param={
|
||||
// pd_id: details.pd_id,
|
||||
// mobile_no: details.applicat_details[0].mobile_no,
|
||||
// random_string: details.random_string,
|
||||
// }
|
||||
// this._pd.smsLink(param).subscribe(res=>{
|
||||
// if(res['dataStatus']){
|
||||
// this.notifier.notify("info","SMS Sent Successfully")
|
||||
// }
|
||||
// })
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -196,7 +196,7 @@
|
||||
|
||||
<mat-form-field style="width: 96%">
|
||||
<input matInput
|
||||
placeholder="Reason for change in PD visit address"
|
||||
[placeholder]=" fk_pd_type == '3' ? 'Reason for change in business address' : 'Reason for change in PD visit address'"
|
||||
formControlName="reason_for_alternative_address"
|
||||
required autocomplete="off">
|
||||
<mat-error
|
||||
@ -277,7 +277,7 @@
|
||||
</div>
|
||||
|
||||
<div fxFlex="100">
|
||||
<mat-form-field style="width: 46%;">
|
||||
<mat-form-field style="width: 46%;" *ngIf="fk_pd_type != '3'">
|
||||
<mat-select placeholder="Approach to PD Location"
|
||||
formControlName="pd_location" required>
|
||||
<mat-option>Select</mat-option>
|
||||
@ -290,7 +290,7 @@
|
||||
Approach to PD Location Required</mat-error>
|
||||
</mat-form-field>
|
||||
|
||||
<mat-form-field style="width: 46%;">
|
||||
<mat-form-field style="width: 46%;" *ngIf="fk_pd_type != '3'">
|
||||
<mat-select placeholder="Comment on Locality"
|
||||
formControlName="comment_locality" required>
|
||||
<mat-option>Select</mat-option>
|
||||
|
||||
@ -74,6 +74,7 @@ export class AddressComponent implements OnInit {
|
||||
product_abbr: any;
|
||||
split_customer_abbr: any;
|
||||
prod_catagory: any;
|
||||
fk_pd_type: any;
|
||||
|
||||
/**Constructor of the class */
|
||||
constructor(private el: ElementRef, notifier: NotifierService,
|
||||
@ -97,6 +98,8 @@ export class AddressComponent implements OnInit {
|
||||
this.subproduct_abbr = this.pd_all_details.pdmaster_details.subproduct_abbr;
|
||||
this.product_abbr = this.pd_all_details.pdmaster_details.product_abbr;
|
||||
this.prod_catagory = this.pd_all_details.pdmaster_details.prod_catagory;
|
||||
this.fk_pd_type = this.pd_all_details.pdmaster_details.fk_pd_type;
|
||||
console.log('fk pd type',this.fk_pd_type);
|
||||
console.log('prod catagory',this.prod_catagory);
|
||||
this.customer_segment_abbr = this.pd_all_details.pdmaster_details.customer_segment_abbr;
|
||||
this.split_customer_abbr = this.customer_segment_abbr.split('-')
|
||||
@ -239,6 +242,13 @@ export class AddressComponent implements OnInit {
|
||||
// was_the_company_name_board_sighted:['', Validators.compose([Validators.required])],
|
||||
address_form_remark: ['']
|
||||
});
|
||||
if(this.fk_pd_type == '3'){
|
||||
this.addressForm.controls['pd_location'].clearValidators();
|
||||
this.addressForm.controls['pd_location'].updateValueAndValidity();
|
||||
|
||||
this.addressForm.controls['comment_locality'].clearValidators();
|
||||
this.addressForm.controls['comment_locality'].updateValueAndValidity();
|
||||
}
|
||||
if(this.lender_short_name == 'CLIX' || this.prod_catagory == 'BL'){
|
||||
this.addressForm.removeControl('estimated_area');
|
||||
this.addressForm.removeControl('uom');
|
||||
|
||||
@ -71,7 +71,7 @@
|
||||
</div>
|
||||
|
||||
|
||||
<mat-form-field style="width: 95%;">
|
||||
<mat-form-field style="width: 95%;" *ngIf="fk_pd_type != '3'">
|
||||
<mat-select
|
||||
[placeholder]="placeholderName[i] ? placeholderName[i] :'Was any business activity seen at the Address Type during PD visit?'"
|
||||
formControlName="business_is_pd_visited">
|
||||
@ -84,7 +84,7 @@
|
||||
</mat-form-field>
|
||||
|
||||
|
||||
<mat-form-field *ngIf=" itemrow.get('business_is_pd_visited').value != ''" style="width: 95%;">
|
||||
<mat-form-field *ngIf=" itemrow.get('business_is_pd_visited').value != '' && fk_pd_type != '3'" style="width: 95%;">
|
||||
<input matInput autocomplete="off" placeholder="Remarks"
|
||||
formControlName="business_pd_visited_remark">
|
||||
<mat-error *ngIf="itemrow.controls['business_pd_visited_remark'].hasError('required')">Remarks
|
||||
|
||||
@ -72,6 +72,7 @@ export class BusinessAssetsInfoComponent implements OnInit {
|
||||
form_id: string;
|
||||
product_abbr: any;
|
||||
prod_catagory: any;
|
||||
fk_pd_type: any;
|
||||
/**Constructor of the class */
|
||||
constructor(
|
||||
notifier: NotifierService,
|
||||
@ -86,6 +87,7 @@ export class BusinessAssetsInfoComponent implements OnInit {
|
||||
this.lender_short_name=this.pd_all_details.pdmaster_details.lender_short_name
|
||||
this.product_abbr = this.pd_all_details.pdmaster_details.product_abbr;
|
||||
this.prod_catagory = this.pd_all_details.pdmaster_details.prod_catagory;
|
||||
this.fk_pd_type = this.pd_all_details.pdmaster_details.fk_pd_type;
|
||||
|
||||
this.applicants = this.pd_all_details.pdapplicants_detials;
|
||||
this.applicants = this.applicants.filter(appt => appt.applicant_type != 2)
|
||||
|
||||
@ -1605,11 +1605,11 @@
|
||||
</mat-card>
|
||||
<mat-card>
|
||||
<mat-card-header>
|
||||
<mat-card-title>No of Employees Sighted By PD Officer During His Visit
|
||||
</mat-card-title>
|
||||
<mat-card-title *ngIf="fk_pd_type != '3'">No of Employees Sighted By PD Officer During His Visit </mat-card-title>
|
||||
<mat-card-title *ngIf="fk_pd_type == '3'">Company Name Board </mat-card-title>
|
||||
</mat-card-header>
|
||||
<mat-card-content class="matcard">
|
||||
<mat-form-field>
|
||||
<mat-form-field *ngIf="fk_pd_type != '3'">
|
||||
<input matInput placeholder="Total" formControlName="officer_total" required>
|
||||
<mat-error *ngIf="businessForm.controls['officer_total'].hasError('required')">Total Required</mat-error>
|
||||
</mat-form-field>
|
||||
@ -1622,7 +1622,7 @@
|
||||
formControlName="officer_temporary" required>
|
||||
</mat-form-field> -->
|
||||
<mat-form-field>
|
||||
<mat-select placeholder="Was the Company name board sighted ?" formControlName="was_the_company_name_board_sighted"
|
||||
<mat-select [placeholder]=" fk_pd_type == '3' ? 'Company name board photo shared' : 'Was the Company name board sighted ?'" formControlName="was_the_company_name_board_sighted"
|
||||
required>
|
||||
<mat-option value="yes">Yes</mat-option>
|
||||
<mat-option value="no">No</mat-option>
|
||||
@ -1634,7 +1634,8 @@
|
||||
</mat-card>
|
||||
<mat-card>
|
||||
<mat-card-header>
|
||||
<mat-card-title>Documents Sighted </mat-card-title>
|
||||
<mat-card-title *ngIf="fk_pd_type != '3'">Documents Sighted</mat-card-title>
|
||||
<mat-card-title *ngIf="fk_pd_type == '3'">Documents Images Shared</mat-card-title>
|
||||
</mat-card-header>
|
||||
<mat-card-content class="matcard">
|
||||
|
||||
|
||||
@ -104,6 +104,7 @@ export class BusinessInfoComponent implements OnInit {
|
||||
image_doc_params: { pdid: number; form_id: number; company_id: String; };
|
||||
@ViewChild('business_activity_type') business_activity_type_scroll : ElementRef
|
||||
prod_catagory: any;
|
||||
fk_pd_type: any;
|
||||
|
||||
|
||||
constructor(notifier: NotifierService,
|
||||
@ -121,6 +122,7 @@ export class BusinessInfoComponent implements OnInit {
|
||||
this.applicants = this.pd_all_details.pdapplicants_detials;
|
||||
this.form_id = 13;
|
||||
this.notifier = notifier;
|
||||
this.fk_pd_type = this.pd_all_details.pdmaster_details.fk_pd_type;
|
||||
this.generalExistEntityType = this.pd_all_details.business_entity_type;
|
||||
this.generalExistEntityType_other = this.pd_all_details.business_entity_type_other;
|
||||
this.generalExistBusinessYear = this.pd_all_details.business_years;
|
||||
@ -727,6 +729,15 @@ export class BusinessInfoComponent implements OnInit {
|
||||
service_provider_activity_details: this.fb.array([]),
|
||||
// others_activity_details: this.fb.array([]),
|
||||
});
|
||||
|
||||
if(this.fk_pd_type == '3'){
|
||||
this.businessForm.controls['officer_total'].clearValidators();
|
||||
this.businessForm.controls['officer_total'].updateValueAndValidity();
|
||||
|
||||
this.businessForm.controls['was_the_company_name_board_sighted'].clearValidators();
|
||||
this.businessForm.controls['was_the_company_name_board_sighted'].updateValueAndValidity();
|
||||
}
|
||||
|
||||
if(this.lender_short_name == 'CLIX'){
|
||||
this.businessForm.removeControl('persons_with_relationships');
|
||||
}
|
||||
|
||||
@ -31,7 +31,7 @@
|
||||
<mat-card>
|
||||
<mat-card-content>
|
||||
<mat-card-subtitle>Location</mat-card-subtitle>
|
||||
<mat-form-field style="width:94%;">
|
||||
<mat-form-field style="width:94%;" *ngIf="fk_pd_type != '3'">
|
||||
<mat-select placeholder="Is the location of the business / profession suited to the nature of business / service provided? "
|
||||
formControlName="is_service_provided" required>
|
||||
<mat-option>Select</mat-option>
|
||||
@ -136,11 +136,11 @@
|
||||
</div>
|
||||
</div>
|
||||
</span>
|
||||
<div class="toggle" fxLayout="row nowrap">
|
||||
<div class="toggle" fxLayout="row nowrap" *ngIf="fk_pd_type != '3'">
|
||||
<mat-label>Any additional visit (Godown /multiple rental properties)</mat-label>
|
||||
<mat-slide-toggle formControlName="was_the_pd_address_ogl" color="primary"></mat-slide-toggle>
|
||||
</div>
|
||||
<mat-form-field style="width:50%;">
|
||||
<mat-form-field style="width:50%;" *ngIf="fk_pd_type != '3'">
|
||||
<mat-select placeholder="Mode of Transport Used to Visit the PD address" formControlName="mode_of_transport_during_visit"
|
||||
required>
|
||||
<mat-option>Select</mat-option>
|
||||
@ -160,7 +160,7 @@
|
||||
<mat-card-content>
|
||||
<mat-card-subtitle *ngIf="lender_short_name == 'CLIX'">CLIX</mat-card-subtitle>
|
||||
<mat-card-subtitle *ngIf="lender_short_name == 'MWISE'">MWISE</mat-card-subtitle>
|
||||
<mat-form-field style="width:94%;" *ngIf="_finalRemarkForm.controls['outlet_location'] && prod_catagory == 'LAEP'">
|
||||
<mat-form-field style="width:94%;" *ngIf="_finalRemarkForm.controls['outlet_location'] && prod_catagory == 'LAEP' && fk_pd_type != '3'">
|
||||
<mat-select placeholder="Comment on Footfall in the market where the B2C outlet is located…" formControlName="outlet_location"
|
||||
required>
|
||||
<mat-option>Select</mat-option>
|
||||
@ -176,13 +176,15 @@
|
||||
Is there Competition to the applicant’s business in the location <strong>( {{ _finalRemarkForm.value.is_competition ===true ? 'Yes' : 'No'}} )</strong>
|
||||
</mat-checkbox>
|
||||
</div> -->
|
||||
<div *ngIf="fk_pd_type != '3'">
|
||||
<mat-form-field style="width:94%;" *ngIf="_finalRemarkForm.controls['is_competition']">
|
||||
<mat-select placeholder="Is there Competition to the applicant’s business in the location" formControlName="is_competition" (selectionChange)="clixChange($event.value,1)">
|
||||
<mat-option>Select</mat-option>
|
||||
<mat-option value="yes"> Yes</mat-option>
|
||||
<mat-option value="no"> No</mat-option>
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
</mat-form-field>
|
||||
</div>
|
||||
|
||||
<mat-form-field style="width:80%;" *ngIf="_finalRemarkForm.controls['appx_outlet_or_stores']">
|
||||
<input matInput autocomplete="off"
|
||||
@ -220,6 +222,7 @@
|
||||
<mat-checkbox color="primary" formControlName="sealing_activity" (change)="clixChange($event.checked,3)">
|
||||
Any sealing activity observed in the locality by PD office <strong>( {{ _finalRemarkForm.value.sealing_activity ===true ? 'Yes' : 'No'}} )</strong></mat-checkbox>
|
||||
</div> -->
|
||||
<div *ngIf="fk_pd_type != '3'">
|
||||
<mat-form-field style="width:94%;" *ngIf="_finalRemarkForm.controls['demolition_activity']">
|
||||
<mat-select placeholder="Any sealing activity observed in the locality by PD officer" formControlName="sealing_activity" (selectionChange)="clixChange($event.value,3)">
|
||||
<mat-option>Select</mat-option>
|
||||
@ -227,6 +230,7 @@
|
||||
<mat-option value="no"> No</mat-option>
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
</div>
|
||||
|
||||
<mat-form-field style="width:80%;" *ngIf="_finalRemarkForm.controls['comment_of_sealing_activity']">
|
||||
<input matInput autocomplete="off" type="text" placeholder="Comment on any sealing activity observed in area " formControlName="comment_of_sealing_activity" required>
|
||||
|
||||
@ -57,6 +57,7 @@ export class FinalRemarksComponent implements OnInit {
|
||||
private notifier: NotifierService;
|
||||
image_doc_params: { pdid: string; form_id: number; company_id: string; };
|
||||
prod_catagory: any;
|
||||
fk_pd_type: any;
|
||||
|
||||
constructor(
|
||||
notifier: NotifierService,
|
||||
@ -77,6 +78,7 @@ export class FinalRemarksComponent implements OnInit {
|
||||
this.lender_short_name = this.pd_all_details.pdmaster_details.lender_short_name;
|
||||
this.product_abbr = this.pd_all_details.pdmaster_details.product_abbr;
|
||||
this.prod_catagory = this.pd_all_details.pdmaster_details.prod_catagory;
|
||||
this.fk_pd_type = this.pd_all_details.pdmaster_details.fk_pd_type;
|
||||
|
||||
this._finalRemarkForm = this._formBuilder.group({
|
||||
parent_pdid: [this.parent_pdid],
|
||||
@ -106,7 +108,15 @@ export class FinalRemarksComponent implements OnInit {
|
||||
final_form_remarks: ['']
|
||||
});
|
||||
|
||||
if(this.lender_short_name == 'CLIX' || this.lender_short_name == 'MWISE' || this.prod_catagory == 'LAEP'){
|
||||
if(this.fk_pd_type == '3'){
|
||||
this._finalRemarkForm.controls['is_service_provided'].clearValidators();
|
||||
this._finalRemarkForm.controls['is_service_provided'].updateValueAndValidity();
|
||||
|
||||
this._finalRemarkForm.controls['mode_of_transport_during_visit'].clearValidators();
|
||||
this._finalRemarkForm.controls['mode_of_transport_during_visit'].updateValueAndValidity();
|
||||
}
|
||||
|
||||
if(this.fk_pd_type != '3' && (this.lender_short_name == 'CLIX' || this.lender_short_name == 'MWISE' || this.prod_catagory == 'LAEP')){
|
||||
this.prod_catagory == 'LAEP' ? this._finalRemarkForm.addControl('outlet_location', new FormControl('', Validators.required)) : this._finalRemarkForm.removeControl('outlet_location');
|
||||
this._finalRemarkForm.addControl('is_competition', new FormControl(''));
|
||||
this._finalRemarkForm.addControl('sealing_activity', new FormControl(''));
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
<ng-template matTabContent>
|
||||
<div fxLayout="row wrap">
|
||||
<div fxFlex="100">
|
||||
<mat-card>
|
||||
<mat-card *ngIf="fk_pd_type != '3'">
|
||||
<mat-card-header>
|
||||
<mat-card-title>
|
||||
<p>Data as Per Financial Statements</p>
|
||||
@ -499,21 +499,22 @@
|
||||
</mat-radio-group>
|
||||
</div><br/>
|
||||
<div style="width:auto" *ngIf="financialForm.value.kuccha_records_shown == 'yes'">
|
||||
<mat-label>Photograph of Kuchha bills allowed</mat-label><br/>
|
||||
<mat-label *ngIf="fk_pd_type != '3'">Photograph of Kuchha bills allowed</mat-label><br/>
|
||||
<mat-label *ngIf="fk_pd_type == '3'">Photographs of kuccha bills uploded</mat-label><br/>
|
||||
<mat-radio-group formControlName="kuccha_bill_allowed" >
|
||||
<mat-radio-button value="yes">Yes
|
||||
</mat-radio-button>
|
||||
<mat-radio-button value="no"> No</mat-radio-button>
|
||||
</mat-radio-group>
|
||||
</div><br/>
|
||||
<div style="width:auto" *ngIf="financialForm.value.kuccha_records_shown == 'yes'">
|
||||
<div style="width:auto" *ngIf="financialForm.value.kuccha_records_shown == 'yes' && fk_pd_type != '3'">
|
||||
<mat-label>Does the Number of Kuccha Bills and Values therein, justify the customer declared turnover?</mat-label><br/>
|
||||
<mat-radio-group formControlName="customer_declared_turnover" >
|
||||
<mat-radio-button value="yes">Yes
|
||||
</mat-radio-button>
|
||||
<mat-radio-button value="no"> No</mat-radio-button>
|
||||
</mat-radio-group>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- </mat-form-field> -->
|
||||
</div><br/>
|
||||
|
||||
@ -100,6 +100,7 @@ export class FinancialInfoComponent implements OnInit {
|
||||
name:'Others'
|
||||
},
|
||||
]
|
||||
fk_pd_type: any;
|
||||
|
||||
constructor(notifier: NotifierService,
|
||||
private fb: FormBuilder,
|
||||
@ -121,6 +122,7 @@ export class FinancialInfoComponent implements OnInit {
|
||||
this.product_abbr = this.pd_all_details.pdmaster_details.product_abbr;
|
||||
this.prod_catagory = this.pd_all_details.pdmaster_details.prod_catagory;
|
||||
this.subproduct_abbr = this.pd_all_details.pdmaster_details.subproduct_abbr;
|
||||
this.fk_pd_type = this.pd_all_details.pdmaster_details.fk_pd_type;
|
||||
this.customer_segment_abbr = this.pd_all_details.pdmaster_details.customer_segment_abbr;
|
||||
let x = this.customer_segment_abbr.split("-");
|
||||
this.CustSegAbbr = x[1];
|
||||
|
||||
@ -29,12 +29,12 @@
|
||||
<mat-card *ngFor="let neighbourhood of _neighbourhoodForm.controls.neighbourhood_list['controls']; let n = index; let last = last"
|
||||
[formGroupName]="n">
|
||||
<mat-card-content>
|
||||
<mat-form-field style="width: 42%">
|
||||
<mat-form-field style="width: 42%" *ngIf="fk_pd_type != '3'">
|
||||
<input matInput autocomplete="off" placeholder="Neighbour Name" formControlName="neighbourhood_name" appCustomTitleCase
|
||||
[value]="neighbourhood.get('neighbourhood_name').value" type="text">
|
||||
</mat-form-field>
|
||||
|
||||
<mat-form-field style="width: 40%">
|
||||
<mat-form-field style="width: 40%" *ngIf="fk_pd_type != '3'">
|
||||
<!-- Do You Know the Applicant -->
|
||||
<mat-select placeholder=" Do you know about the applicants or their business?"
|
||||
formControlName="do_know">
|
||||
@ -44,8 +44,8 @@
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
|
||||
<div fxLayout="row wrap" *ngIf="neighbourhood.controls.do_know.value!=''">
|
||||
<div fxFlex="80">
|
||||
<div fxLayout="row wrap" *ngIf="neighbourhood.controls.do_know.value!='' && fk_pd_type != '3'">
|
||||
<div fxFlex="80" *ngIf="fk_pd_type != '3'">
|
||||
<label>As per you how long has this business been in operation?</label>
|
||||
<mat-form-field *ngIf="!this.isDisplay[n]">
|
||||
<mat-label>Year</mat-label>
|
||||
@ -58,7 +58,7 @@
|
||||
OnlyNumber type="text" (change)="ConvertMonthintoYear(neighbourhood,$event.target.value,1)">
|
||||
</mat-form-field>
|
||||
</div>
|
||||
<div fxFlex="10" style="text-align: center;">
|
||||
<div fxFlex="10" style="text-align: center;" *ngIf="fk_pd_type != '3'">
|
||||
<label>Do not know</label>
|
||||
<div>
|
||||
<mat-checkbox color="primary" formControlName="did_not_know_the_business_operation"
|
||||
@ -70,7 +70,7 @@
|
||||
|
||||
<div fxLayout="row wrap" *ngIf="neighbourhood.controls.do_know.value!=''">
|
||||
|
||||
<div fxFlex="60">
|
||||
<div fxFlex="60" *ngIf="fk_pd_type != '3'">
|
||||
<mat-form-field style="width: 95%" *ngIf="neighbourhood.controls.do_know.value!='' && !isDisplay2[n] ; else OtherCondition;">
|
||||
<mat-select multiple placeholder="Who is the owner of the organisation?"
|
||||
formControlName="organisation_owner" [compareWith]="compareObjects"
|
||||
|
||||
@ -41,6 +41,7 @@ export class NeighbourHoodComponent implements OnInit {
|
||||
mergeCompanyApplicant: any=[];
|
||||
isOrganisationOwner: any=[];
|
||||
image_doc_params: { pdid: string; form_id: number; company_id: string; };
|
||||
fk_pd_type: any;
|
||||
// amtInwords : any = [];
|
||||
|
||||
// isOtherApplicant: any = [];
|
||||
@ -50,6 +51,7 @@ export class NeighbourHoodComponent implements OnInit {
|
||||
this.notifier = notifier;
|
||||
this.form_id = 19;
|
||||
this.main_applicant = this.data.pdmaster_details.main_applicant;
|
||||
this.fk_pd_type = this.data.pd_all_details.pdmaster_details.fk_pd_type;
|
||||
this.lender_applicant_id = this.data.pdmaster_details.lender_applicant_id;
|
||||
this.subproduct_abbr = this.data.pdmaster_details.subproduct_abbr;
|
||||
this.customer_segment_abbr = this.data.pdmaster_details.customer_segment_abbr;
|
||||
|
||||
@ -60,7 +60,8 @@
|
||||
<mat-card *ngIf="docs_array_value.length !=0 ">
|
||||
<mat-card-header>
|
||||
<mat-card-title>
|
||||
<h5>Documents to be collected</h5>
|
||||
<h5 *ngIf="fk_pd_type != '3'">Documents to be collected</h5>
|
||||
<h5 *ngIf="fk_pd_type == '3'">Docuements to be uploaded</h5>
|
||||
</mat-card-title>
|
||||
</mat-card-header>
|
||||
<mat-card style="margin-left: 15px;">
|
||||
|
||||
@ -30,6 +30,7 @@ export class QueriesDocsComponent implements OnInit {
|
||||
docsCollectedForm:FormGroup
|
||||
loadComponent:boolean=false
|
||||
disableAfterSubmit: boolean;
|
||||
fk_pd_type: any;
|
||||
|
||||
constructor(notifier: NotifierService,
|
||||
private _ngZone: NgZone,
|
||||
@ -52,6 +53,7 @@ export class QueriesDocsComponent implements OnInit {
|
||||
this.subproduct_abbr = this.pd_all_details.pdmaster_details.subproduct_abbr;
|
||||
this.customer_segment_abbr = this.pd_all_details.pdmaster_details.customer_segment_abbr;
|
||||
this.lenderShortName = this.pd_all_details.pdmaster_details.lender_short_name;
|
||||
this.fk_pd_type = this.pd_all_details.pdmaster_details.fk_pd_type;
|
||||
|
||||
}
|
||||
@ViewChild('autosize') autosize: CdkTextareaAutosize;
|
||||
|
||||
@ -40,7 +40,8 @@
|
||||
(selectionChange)="checkComments($event.value,1,a);" required>
|
||||
<mat-option>Select</mat-option>
|
||||
<mat-option value="yes">Add Stock Details</mat-option>
|
||||
<mat-option value="no">No Stock Observed</mat-option>
|
||||
<mat-option *ngIf="fk_pd_type != '3'" value="no">No Stock Observed</mat-option>
|
||||
<mat-option *ngIf="fk_pd_type == '3'" value="no">No Stock Available</mat-option>
|
||||
<!-- <mat-option value="stock not required to be maintained">Stock not required to be maintained</mat-option> -->
|
||||
</mat-select>
|
||||
<mat-error *ngIf="mrm.controls['stock_observed'].hasError('required')">Stock Required</mat-error>
|
||||
@ -136,7 +137,8 @@
|
||||
(selectionChange)="checkComments($event.value,2,b);" required>
|
||||
<mat-option>Select</mat-option>
|
||||
<mat-option value="yes">Add Stock Details</mat-option>
|
||||
<mat-option value="no">No Stock Observed</mat-option>
|
||||
<mat-option *ngIf="fk_pd_type != '3'" value="no">No Stock Observed</mat-option>
|
||||
<mat-option *ngIf="fk_pd_type == '3'" value="no">No Stock Available</mat-option>
|
||||
<!-- <mat-option value="stock not required to be maintained">Stock not required to be maintained</mat-option> -->
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
@ -222,7 +224,8 @@
|
||||
(selectionChange)="checkComments($event.value,3,e)" required>
|
||||
<mat-option>Select</mat-option>
|
||||
<mat-option value="yes">Add Stock Details</mat-option>
|
||||
<mat-option value="no">No Stock Observed</mat-option>
|
||||
<mat-option *ngIf="fk_pd_type != '3'" value="no">No Stock Observed</mat-option>
|
||||
<mat-option *ngIf="fk_pd_type == '3'" value="no">No Stock Available</mat-option>
|
||||
<!-- <mat-option value="stock not required to be maintained">Stock not required to be maintained</mat-option> -->
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
@ -311,7 +314,8 @@
|
||||
(selectionChange)="checkComments($event.value,4,g)" required>
|
||||
<mat-option>Select</mat-option>
|
||||
<mat-option value="yes">Add Stock Details</mat-option>
|
||||
<mat-option value="no">No stock observed</mat-option>
|
||||
<mat-option *ngIf="fk_pd_type != '3'" value="no">No Stock Observed</mat-option>
|
||||
<mat-option *ngIf="fk_pd_type == '3'" value="no">No Stock Available</mat-option>
|
||||
<!-- <mat-option value="stock not required to be maintained">Stock not required to be maintained</mat-option> -->
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
@ -425,7 +429,8 @@
|
||||
(selectionChange)="checkComments($event.value,5,g)" required>
|
||||
<mat-option>Select</mat-option>
|
||||
<mat-option value="yes">Add Stock Details</mat-option>
|
||||
<mat-option value="no">No stock observed</mat-option>
|
||||
<mat-option *ngIf="fk_pd_type != '3'" value="no">No Stock Observed</mat-option>
|
||||
<mat-option *ngIf="fk_pd_type == '3'" value="no">No Stock Available</mat-option>
|
||||
<!-- <mat-option value="stock not required to be maintained">Stock not required to be maintained</mat-option> -->
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
|
||||
@ -61,6 +61,7 @@ export class StockComponent implements OnInit {
|
||||
image_doc_params: { pdid: number; form_id: number; company_id: string; };
|
||||
product_abbr: any;
|
||||
prod_catagory: any;
|
||||
fk_pd_type: any;
|
||||
|
||||
/** Constructor */
|
||||
constructor(notifier: NotifierService,
|
||||
@ -86,6 +87,10 @@ export class StockComponent implements OnInit {
|
||||
this.lender_applicant_id = this.pd_all_details.pdmaster_details.lender_applicant_id;
|
||||
this.subproduct_abbr = this.pd_all_details.pdmaster_details.subproduct_abbr;
|
||||
this.customer_segment_abbr = this.pd_all_details.pdmaster_details.customer_segment_abbr;
|
||||
this.fk_pd_type = this.pd_all_details.pdmaster_details.fk_pd_type;
|
||||
if(this.fk_pd_type == '3'){
|
||||
this.SPsufficientList.push({value:"not able to assess",isdisplayvalue:"Not able to assess",isdisabled:false})
|
||||
}
|
||||
this.image_doc_params={pdid:this.pdid,form_id:this.form_id,company_id:this.company_id}
|
||||
}
|
||||
pdf(fileURL){
|
||||
|
||||
@ -127,9 +127,20 @@
|
||||
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="60" fxFlex.lg="70" fxFlex.xl="70" class="content-data" *ngFor="let master of pdMasterData">
|
||||
<div fxLayout="row">
|
||||
<div fxFlex="100" align="right">
|
||||
<button mat-raised-button class="mr-1 mb-1" color="primary" style="cursor: not-allowed !important;">
|
||||
<strong> {{master.pd_status==pdStatusCheck.QC_COMPLETED ? 'QC Completed' : master.pd_status==pdStatusCheck.ADD_ON_PENDING ? 'Addon Pending' : master.pd_status | titlecase}}</strong>
|
||||
</button>
|
||||
<button mat-raised-button class="mr-1 mb-1" color="primary" style="cursor: not-allowed !important;">
|
||||
<strong> {{master.pd_status==pdStatusCheck.QC_COMPLETED ? 'QC Completed' : master.pd_status==pdStatusCheck.ADD_ON_PENDING ? 'Addon Pending' : master.pd_status | titlecase}}</strong>
|
||||
</button>
|
||||
<span> <button *ngIf="master.fk_pd_type == '3'"
|
||||
mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="copyCusURL(master.random_string)"
|
||||
matTooltip="Copy Customer Link" matTooltipPosition="above">
|
||||
<mat-icon>link</mat-icon>
|
||||
</button></span>
|
||||
<span> <button *ngIf="master.fk_pd_type == '3'"
|
||||
mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="onClickSmsLink(master)"
|
||||
matTooltip="Send Link Via SMS" matTooltipPosition="above">
|
||||
<mat-icon>sms</mat-icon>
|
||||
</button></span>
|
||||
|
||||
<span *ngIf="userRoleID == 10 || userRoleID == 3"><button *ngIf="roleAccessDetails.trigger && currentPDStatus==pdStatusCheck.DRAFT || currentPDStatus==pdStatusCheck.TRIGGERED || currentPDStatus==pdStatusCheck.ALLOCATED || currentPDStatus==pdStatusCheck.SCHEDULED" mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="editPdMaster(master)" matTooltipPosition="above" matTooltip="Edit PD Master"><mat-icon>edit</mat-icon></button>
|
||||
<button *ngIf="roleAccessDetails.trigger && currentPDStatus==pdStatusCheck.DRAFT" mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Trigger" matTooltipPosition="above" (click)="directTriggerPD(mandatoryFieldsValidations,master)"><mat-icon>flash_on</mat-icon></button>
|
||||
</span>
|
||||
|
||||
@ -559,5 +559,26 @@ export class ViewPdComponent implements OnInit, OnDestroy {
|
||||
})
|
||||
|
||||
}
|
||||
copyCusURL(randomStr) {
|
||||
// console.log(window.location);
|
||||
let cus_link = window.location.origin+'/customer/#/pd-images/'+randomStr;
|
||||
console.log(randomStr)
|
||||
this._pd.copyToClipBoard(cus_link);
|
||||
this.notifier.notify('info','Customer link copied');
|
||||
}
|
||||
|
||||
onClickSmsLink(master){
|
||||
console.log('SMS',master);
|
||||
let param={
|
||||
pd_id: master.pd_id,
|
||||
mobile_no: this.pdApplicantData[0].mobile_no,
|
||||
random_string: master.random_string,
|
||||
}
|
||||
this._pd.smsLink(param).subscribe(res=>{
|
||||
if(res['dataStatus']){
|
||||
this.notifier.notify("info","SMS Sent Successfully")
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user