Tele PD Changes

This commit is contained in:
sriram-at-840620226347 2020-05-12 18:25:57 +05:30
parent 4ea478f042
commit a3e175f170
28 changed files with 238 additions and 150 deletions

View File

@ -142,17 +142,17 @@
</button> </button>
</a> </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)" 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"> matTooltip="Copy Customer Link" matTooltipPosition="above">
<mat-icon>link</mat-icon> <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)" mat-button mat-icon-button class="mb-1 hover-icon" type="button" color="primary" (click)="onClickSmsLink(details)"
matTooltip="Send Link Via SMS" matTooltipPosition="above"> matTooltip="Send Link Via SMS" matTooltipPosition="above">
<mat-icon>sms</mat-icon> <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)" <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"> matTooltip="View" matTooltipPosition="above">

View File

@ -238,24 +238,24 @@ export class AllPdComponent implements OnInit, OnChanges {
this.dataSourceTab1.paginator = this.paginator; this.dataSourceTab1.paginator = this.paginator;
this.dataSourceTab1.sort = this.sort; this.dataSourceTab1.sort = this.sort;
} }
copyCusURL(randomStr) { // copyCusURL(randomStr) {
// console.log(window.location); // // console.log(window.location);
let cus_link = window.location.origin+'/customer/#/pd-images/'+randomStr; // let cus_link = window.location.origin+'/customer/#/pd-images/'+randomStr;
console.log(randomStr) // console.log(randomStr)
this._pd.copyToClipBoard(cus_link); // this._pd.copyToClipBoard(cus_link);
this.notifier.notify('info','Customer link copied'); // this.notifier.notify('info','Customer link copied');
} // }
onClickSmsLink(details){ // onClickSmsLink(details){
let param={ // let param={
pd_id: details.pd_id, // pd_id: details.pd_id,
mobile_no: details.applicat_details[0].mobile_no, // mobile_no: details.applicat_details[0].mobile_no,
random_string: details.random_string, // random_string: details.random_string,
} // }
this._pd.smsLink(param).subscribe(res=>{ // this._pd.smsLink(param).subscribe(res=>{
if(res['dataStatus']){ // if(res['dataStatus']){
this.notifier.notify("info","SMS Sent Successfully") // this.notifier.notify("info","SMS Sent Successfully")
} // }
}) // })
} // }
} }

View File

@ -119,17 +119,17 @@
<ng-container matColumnDef="Action"> <ng-container matColumnDef="Action">
<mat-cell class="cell center" *matCellDef="let details;"> <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 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)" 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"> matTooltip="Copy Customer Link" matTooltipPosition="above">
<mat-icon>link</mat-icon> <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)" 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"> matTooltip="Send Link Via SMS" matTooltipPosition="above">
<mat-icon>sms</mat-icon> <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" <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> matTooltipPosition="above" color="primary"><mat-icon>visibility</mat-icon></button>

View File

@ -246,25 +246,25 @@ export class CompletedPdComponent implements OnInit, OnChanges {
this.dataSourceTab4.paginator = this.paginator; this.dataSourceTab4.paginator = this.paginator;
this.dataSourceTab4.sort = this.sort; this.dataSourceTab4.sort = this.sort;
} }
copyCusURL(randomStr) { // copyCusURL(randomStr) {
// console.log(window.location); // // console.log(window.location);
let cus_link = window.location.origin+'/customer/#/pd-images/'+randomStr; // let cus_link = window.location.origin+'/customer/#/pd-images/'+randomStr;
console.log(randomStr) // console.log(randomStr)
this._pd.copyToClipBoard(cus_link); // this._pd.copyToClipBoard(cus_link);
this.notifier.notify('info','Customer link copied'); // this.notifier.notify('info','Customer link copied');
} // }
onClickSmsLink(details){ // onClickSmsLink(details){
let param={ // let param={
pd_id: details.pd_id, // pd_id: details.pd_id,
mobile_no: details.applicat_details[0].mobile_no, // mobile_no: details.applicat_details[0].mobile_no,
random_string: details.random_string, // random_string: details.random_string,
} // }
this._pd.smsLink(param).subscribe(res=>{ // this._pd.smsLink(param).subscribe(res=>{
if(res['dataStatus']){ // if(res['dataStatus']){
this.notifier.notify("info","SMS Sent Successfully") // this.notifier.notify("info","SMS Sent Successfully")
} // }
}) // })
} // }
} }

View File

@ -115,16 +115,16 @@
</ng-container> </ng-container>
<ng-container matColumnDef="Action"> <ng-container matColumnDef="Action">
<mat-cell class="cell center" *matCellDef="let details;"> <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)" 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"> matTooltip="Copy Customer Link" matTooltipPosition="above">
<mat-icon>link</mat-icon> <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)" 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"> matTooltip="Send Link Via SMS" matTooltipPosition="above">
<mat-icon>sms</mat-icon> <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> <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> </mat-cell>
</ng-container> </ng-container>

View File

@ -238,24 +238,24 @@ export class InprogressPdComponent implements OnInit, OnChanges {
this.dataSourceTab2.paginator = this.paginator; this.dataSourceTab2.paginator = this.paginator;
this.dataSourceTab2.sort = this.sort; this.dataSourceTab2.sort = this.sort;
} }
copyCusURL(randomStr) { // copyCusURL(randomStr) {
// console.log(window.location); // // console.log(window.location);
let cus_link = window.location.origin+'/customer/#/pd-images/'+randomStr; // let cus_link = window.location.origin+'/customer/#/pd-images/'+randomStr;
console.log(randomStr) // console.log(randomStr)
this._pd.copyToClipBoard(cus_link); // this._pd.copyToClipBoard(cus_link);
this.notifier.notify('info','Customer link copied'); // this.notifier.notify('info','Customer link copied');
} // }
onClickSmsLink(details){ // onClickSmsLink(details){
let param={ // let param={
pd_id: details.pd_id, // pd_id: details.pd_id,
mobile_no: details.applicat_details[0].mobile_no, // mobile_no: details.applicat_details[0].mobile_no,
random_string: details.random_string, // random_string: details.random_string,
} // }
this._pd.smsLink(param).subscribe(res=>{ // this._pd.smsLink(param).subscribe(res=>{
if(res['dataStatus']){ // if(res['dataStatus']){
this.notifier.notify("info","SMS Sent Successfully") // this.notifier.notify("info","SMS Sent Successfully")
} // }
}) // })
} // }
} }

View File

@ -118,17 +118,17 @@
<ng-container matColumnDef="Action"> <ng-container matColumnDef="Action">
<mat-cell class="cell center" *matCellDef="let details;"> <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 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)" 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"> matTooltip="Copy Customer Link" matTooltipPosition="above">
<mat-icon>link</mat-icon> <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)" 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"> matTooltip="Send Link Via SMS" matTooltipPosition="above">
<mat-icon>sms</mat-icon> <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> <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> </mat-cell>

View File

@ -220,23 +220,23 @@ export class QcCompletedPdComponent implements OnInit, OnChanges {
this.loadPDDetails(); this.loadPDDetails();
this.xpandStatus = false; this.xpandStatus = false;
} }
copyCusURL(randomStr) { // copyCusURL(randomStr) {
// console.log(window.location); // // console.log(window.location);
let cus_link = window.location.origin+'/customer/#/pd-images/'+randomStr; // let cus_link = window.location.origin+'/customer/#/pd-images/'+randomStr;
console.log(randomStr) // console.log(randomStr)
this._pd.copyToClipBoard(cus_link); // this._pd.copyToClipBoard(cus_link);
this.notifier.notify('info','Customer link copied'); // this.notifier.notify('info','Customer link copied');
} // }
onClickSmsLink(details){ // onClickSmsLink(details){
let param={ // let param={
pd_id: details.pd_id, // pd_id: details.pd_id,
mobile_no: details.applicat_details[0].mobile_no, // mobile_no: details.applicat_details[0].mobile_no,
random_string: details.random_string, // random_string: details.random_string,
} // }
this._pd.smsLink(param).subscribe(res=>{ // this._pd.smsLink(param).subscribe(res=>{
if(res['dataStatus']){ // if(res['dataStatus']){
this.notifier.notify("info","SMS Sent Successfully") // this.notifier.notify("info","SMS Sent Successfully")
} // }
}) // })
} // }
} }

View File

@ -118,17 +118,17 @@
</ng-container> </ng-container>
<ng-container matColumnDef="Action"> <ng-container matColumnDef="Action">
<mat-cell class="cell center" *matCellDef="let details;"> <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)" 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"> matTooltip="Copy Customer Link" matTooltipPosition="above">
<mat-icon>link</mat-icon> <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)" 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"> matTooltip="Send Link Via SMS" matTooltipPosition="above">
<mat-icon>sms</mat-icon> <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> <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> </mat-cell>

View File

@ -234,25 +234,25 @@ export class ScheduledPdComponent implements OnInit, OnChanges {
this.loadPDDetails(); this.loadPDDetails();
this.xpandStatus = false; this.xpandStatus = false;
} }
copyCusURL(randomStr) { // copyCusURL(randomStr) {
// console.log(window.location); // // console.log(window.location);
let cus_link = window.location.origin+'/customer/#/pd-images/'+randomStr; // let cus_link = window.location.origin+'/customer/#/pd-images/'+randomStr;
console.log(randomStr) // console.log(randomStr)
this._pd.copyToClipBoard(cus_link); // this._pd.copyToClipBoard(cus_link);
this.notifier.notify('info','Customer link copied'); // this.notifier.notify('info','Customer link copied');
} // }
onClickSmsLink(details){ // onClickSmsLink(details){
let param={ // let param={
pd_id: details.pd_id, // pd_id: details.pd_id,
mobile_no: details.applicat_details[0].mobile_no, // mobile_no: details.applicat_details[0].mobile_no,
random_string: details.random_string, // random_string: details.random_string,
} // }
this._pd.smsLink(param).subscribe(res=>{ // this._pd.smsLink(param).subscribe(res=>{
if(res['dataStatus']){ // if(res['dataStatus']){
this.notifier.notify("info","SMS Sent Successfully") // this.notifier.notify("info","SMS Sent Successfully")
} // }
}) // })
} // }
} }

View File

@ -196,7 +196,7 @@
<mat-form-field style="width: 96%"> <mat-form-field style="width: 96%">
<input matInput <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" formControlName="reason_for_alternative_address"
required autocomplete="off"> required autocomplete="off">
<mat-error <mat-error
@ -277,7 +277,7 @@
</div> </div>
<div fxFlex="100"> <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" <mat-select placeholder="Approach to PD Location"
formControlName="pd_location" required> formControlName="pd_location" required>
<mat-option>Select</mat-option> <mat-option>Select</mat-option>
@ -290,7 +290,7 @@
Approach to PD Location Required</mat-error> Approach to PD Location Required</mat-error>
</mat-form-field> </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" <mat-select placeholder="Comment on Locality"
formControlName="comment_locality" required> formControlName="comment_locality" required>
<mat-option>Select</mat-option> <mat-option>Select</mat-option>

View File

@ -74,6 +74,7 @@ export class AddressComponent implements OnInit {
product_abbr: any; product_abbr: any;
split_customer_abbr: any; split_customer_abbr: any;
prod_catagory: any; prod_catagory: any;
fk_pd_type: any;
/**Constructor of the class */ /**Constructor of the class */
constructor(private el: ElementRef, notifier: NotifierService, 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.subproduct_abbr = this.pd_all_details.pdmaster_details.subproduct_abbr;
this.product_abbr = this.pd_all_details.pdmaster_details.product_abbr; this.product_abbr = this.pd_all_details.pdmaster_details.product_abbr;
this.prod_catagory = this.pd_all_details.pdmaster_details.prod_catagory; 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); console.log('prod catagory',this.prod_catagory);
this.customer_segment_abbr = this.pd_all_details.pdmaster_details.customer_segment_abbr; this.customer_segment_abbr = this.pd_all_details.pdmaster_details.customer_segment_abbr;
this.split_customer_abbr = this.customer_segment_abbr.split('-') 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])], // was_the_company_name_board_sighted:['', Validators.compose([Validators.required])],
address_form_remark: [''] 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'){ if(this.lender_short_name == 'CLIX' || this.prod_catagory == 'BL'){
this.addressForm.removeControl('estimated_area'); this.addressForm.removeControl('estimated_area');
this.addressForm.removeControl('uom'); this.addressForm.removeControl('uom');

View File

@ -71,7 +71,7 @@
</div> </div>
<mat-form-field style="width: 95%;"> <mat-form-field style="width: 95%;" *ngIf="fk_pd_type != '3'">
<mat-select <mat-select
[placeholder]="placeholderName[i] ? placeholderName[i] :'Was any business activity seen at the Address Type during PD visit?'" [placeholder]="placeholderName[i] ? placeholderName[i] :'Was any business activity seen at the Address Type during PD visit?'"
formControlName="business_is_pd_visited"> formControlName="business_is_pd_visited">
@ -84,7 +84,7 @@
</mat-form-field> </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" <input matInput autocomplete="off" placeholder="Remarks"
formControlName="business_pd_visited_remark"> formControlName="business_pd_visited_remark">
<mat-error *ngIf="itemrow.controls['business_pd_visited_remark'].hasError('required')">Remarks <mat-error *ngIf="itemrow.controls['business_pd_visited_remark'].hasError('required')">Remarks

View File

@ -72,6 +72,7 @@ export class BusinessAssetsInfoComponent implements OnInit {
form_id: string; form_id: string;
product_abbr: any; product_abbr: any;
prod_catagory: any; prod_catagory: any;
fk_pd_type: any;
/**Constructor of the class */ /**Constructor of the class */
constructor( constructor(
notifier: NotifierService, 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.lender_short_name=this.pd_all_details.pdmaster_details.lender_short_name
this.product_abbr = this.pd_all_details.pdmaster_details.product_abbr; this.product_abbr = this.pd_all_details.pdmaster_details.product_abbr;
this.prod_catagory = this.pd_all_details.pdmaster_details.prod_catagory; 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.pd_all_details.pdapplicants_detials;
this.applicants = this.applicants.filter(appt => appt.applicant_type != 2) this.applicants = this.applicants.filter(appt => appt.applicant_type != 2)

View File

@ -1605,11 +1605,11 @@
</mat-card> </mat-card>
<mat-card> <mat-card>
<mat-card-header> <mat-card-header>
<mat-card-title>No of Employees Sighted By PD Officer During His Visit <mat-card-title *ngIf="fk_pd_type != '3'">No of Employees Sighted By PD Officer During His Visit </mat-card-title>
</mat-card-title> <mat-card-title *ngIf="fk_pd_type == '3'">Company Name Board </mat-card-title>
</mat-card-header> </mat-card-header>
<mat-card-content class="matcard"> <mat-card-content class="matcard">
<mat-form-field> <mat-form-field *ngIf="fk_pd_type != '3'">
<input matInput placeholder="Total" formControlName="officer_total" required> <input matInput placeholder="Total" formControlName="officer_total" required>
<mat-error *ngIf="businessForm.controls['officer_total'].hasError('required')">Total Required</mat-error> <mat-error *ngIf="businessForm.controls['officer_total'].hasError('required')">Total Required</mat-error>
</mat-form-field> </mat-form-field>
@ -1622,7 +1622,7 @@
formControlName="officer_temporary" required> formControlName="officer_temporary" required>
</mat-form-field> --> </mat-form-field> -->
<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> required>
<mat-option value="yes">Yes</mat-option> <mat-option value="yes">Yes</mat-option>
<mat-option value="no">No</mat-option> <mat-option value="no">No</mat-option>
@ -1634,7 +1634,8 @@
</mat-card> </mat-card>
<mat-card> <mat-card>
<mat-card-header> <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-header>
<mat-card-content class="matcard"> <mat-card-content class="matcard">

View File

@ -104,6 +104,7 @@ export class BusinessInfoComponent implements OnInit {
image_doc_params: { pdid: number; form_id: number; company_id: String; }; image_doc_params: { pdid: number; form_id: number; company_id: String; };
@ViewChild('business_activity_type') business_activity_type_scroll : ElementRef @ViewChild('business_activity_type') business_activity_type_scroll : ElementRef
prod_catagory: any; prod_catagory: any;
fk_pd_type: any;
constructor(notifier: NotifierService, constructor(notifier: NotifierService,
@ -121,6 +122,7 @@ export class BusinessInfoComponent implements OnInit {
this.applicants = this.pd_all_details.pdapplicants_detials; this.applicants = this.pd_all_details.pdapplicants_detials;
this.form_id = 13; this.form_id = 13;
this.notifier = notifier; 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 = this.pd_all_details.business_entity_type;
this.generalExistEntityType_other = this.pd_all_details.business_entity_type_other; this.generalExistEntityType_other = this.pd_all_details.business_entity_type_other;
this.generalExistBusinessYear = this.pd_all_details.business_years; this.generalExistBusinessYear = this.pd_all_details.business_years;
@ -727,6 +729,15 @@ export class BusinessInfoComponent implements OnInit {
service_provider_activity_details: this.fb.array([]), service_provider_activity_details: this.fb.array([]),
// others_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'){ if(this.lender_short_name == 'CLIX'){
this.businessForm.removeControl('persons_with_relationships'); this.businessForm.removeControl('persons_with_relationships');
} }

View File

@ -31,7 +31,7 @@
<mat-card> <mat-card>
<mat-card-content> <mat-card-content>
<mat-card-subtitle>Location</mat-card-subtitle> <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? " <mat-select placeholder="Is the location of the business / profession suited to the nature of business / service provided? "
formControlName="is_service_provided" required> formControlName="is_service_provided" required>
<mat-option>Select</mat-option> <mat-option>Select</mat-option>
@ -136,11 +136,11 @@
</div> </div>
</div> </div>
</span> </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>&nbsp;&nbsp; <mat-label>Any additional visit (Godown /multiple rental properties)</mat-label>&nbsp;&nbsp;
<mat-slide-toggle formControlName="was_the_pd_address_ogl" color="primary"></mat-slide-toggle> <mat-slide-toggle formControlName="was_the_pd_address_ogl" color="primary"></mat-slide-toggle>
</div> </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" <mat-select placeholder="Mode of Transport Used to Visit the PD address" formControlName="mode_of_transport_during_visit"
required> required>
<mat-option>Select</mat-option> <mat-option>Select</mat-option>
@ -160,7 +160,7 @@
<mat-card-content> <mat-card-content>
<mat-card-subtitle *ngIf="lender_short_name == 'CLIX'">CLIX</mat-card-subtitle> <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-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" <mat-select placeholder="Comment on Footfall in the market where the B2C outlet is located…" formControlName="outlet_location"
required> required>
<mat-option>Select</mat-option> <mat-option>Select</mat-option>
@ -176,13 +176,15 @@
Is there Competition to the applicants business in the location <strong>( {{ _finalRemarkForm.value.is_competition ===true ? 'Yes' : 'No'}} )</strong> Is there Competition to the applicants business in the location <strong>( {{ _finalRemarkForm.value.is_competition ===true ? 'Yes' : 'No'}} )</strong>
</mat-checkbox> </mat-checkbox>
</div> --> </div> -->
<div *ngIf="fk_pd_type != '3'">
<mat-form-field style="width:94%;" *ngIf="_finalRemarkForm.controls['is_competition']"> <mat-form-field style="width:94%;" *ngIf="_finalRemarkForm.controls['is_competition']">
<mat-select placeholder="Is there Competition to the applicants business in the location" formControlName="is_competition" (selectionChange)="clixChange($event.value,1)"> <mat-select placeholder="Is there Competition to the applicants business in the location" formControlName="is_competition" (selectionChange)="clixChange($event.value,1)">
<mat-option>Select</mat-option> <mat-option>Select</mat-option>
<mat-option value="yes"> Yes</mat-option> <mat-option value="yes"> Yes</mat-option>
<mat-option value="no"> No</mat-option> <mat-option value="no"> No</mat-option>
</mat-select> </mat-select>
</mat-form-field> </mat-form-field>
</div>
<mat-form-field style="width:80%;" *ngIf="_finalRemarkForm.controls['appx_outlet_or_stores']"> <mat-form-field style="width:80%;" *ngIf="_finalRemarkForm.controls['appx_outlet_or_stores']">
<input matInput autocomplete="off" <input matInput autocomplete="off"
@ -220,6 +222,7 @@
<mat-checkbox color="primary" formControlName="sealing_activity" (change)="clixChange($event.checked,3)"> <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> Any sealing activity observed in the locality by PD office <strong>( {{ _finalRemarkForm.value.sealing_activity ===true ? 'Yes' : 'No'}} )</strong></mat-checkbox>
</div> --> </div> -->
<div *ngIf="fk_pd_type != '3'">
<mat-form-field style="width:94%;" *ngIf="_finalRemarkForm.controls['demolition_activity']"> <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-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> <mat-option>Select</mat-option>
@ -227,6 +230,7 @@
<mat-option value="no"> No</mat-option> <mat-option value="no"> No</mat-option>
</mat-select> </mat-select>
</mat-form-field> </mat-form-field>
</div>
<mat-form-field style="width:80%;" *ngIf="_finalRemarkForm.controls['comment_of_sealing_activity']"> <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> <input matInput autocomplete="off" type="text" placeholder="Comment on any sealing activity observed in area " formControlName="comment_of_sealing_activity" required>

View File

@ -57,6 +57,7 @@ export class FinalRemarksComponent implements OnInit {
private notifier: NotifierService; private notifier: NotifierService;
image_doc_params: { pdid: string; form_id: number; company_id: string; }; image_doc_params: { pdid: string; form_id: number; company_id: string; };
prod_catagory: any; prod_catagory: any;
fk_pd_type: any;
constructor( constructor(
notifier: NotifierService, 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.lender_short_name = this.pd_all_details.pdmaster_details.lender_short_name;
this.product_abbr = this.pd_all_details.pdmaster_details.product_abbr; this.product_abbr = this.pd_all_details.pdmaster_details.product_abbr;
this.prod_catagory = this.pd_all_details.pdmaster_details.prod_catagory; 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({ this._finalRemarkForm = this._formBuilder.group({
parent_pdid: [this.parent_pdid], parent_pdid: [this.parent_pdid],
@ -106,7 +108,15 @@ export class FinalRemarksComponent implements OnInit {
final_form_remarks: [''] 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.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('is_competition', new FormControl(''));
this._finalRemarkForm.addControl('sealing_activity', new FormControl('')); this._finalRemarkForm.addControl('sealing_activity', new FormControl(''));

View File

@ -17,7 +17,7 @@
<ng-template matTabContent> <ng-template matTabContent>
<div fxLayout="row wrap"> <div fxLayout="row wrap">
<div fxFlex="100"> <div fxFlex="100">
<mat-card> <mat-card *ngIf="fk_pd_type != '3'">
<mat-card-header> <mat-card-header>
<mat-card-title> <mat-card-title>
<p>Data as Per Financial Statements</p> <p>Data as Per Financial Statements</p>
@ -499,21 +499,22 @@
</mat-radio-group> </mat-radio-group>
</div><br/> </div><br/>
<div style="width:auto" *ngIf="financialForm.value.kuccha_records_shown == 'yes'"> <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-group formControlName="kuccha_bill_allowed" >
<mat-radio-button value="yes">Yes <mat-radio-button value="yes">Yes
</mat-radio-button>&nbsp;&nbsp; </mat-radio-button>&nbsp;&nbsp;
<mat-radio-button value="no"> No</mat-radio-button> <mat-radio-button value="no"> No</mat-radio-button>
</mat-radio-group> </mat-radio-group>
</div><br/> </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-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-group formControlName="customer_declared_turnover" >
<mat-radio-button value="yes">Yes <mat-radio-button value="yes">Yes
</mat-radio-button>&nbsp;&nbsp; </mat-radio-button>&nbsp;&nbsp;
<mat-radio-button value="no"> No</mat-radio-button> <mat-radio-button value="no"> No</mat-radio-button>
</mat-radio-group> </mat-radio-group>
</div> </div>
<!-- </mat-form-field> --> <!-- </mat-form-field> -->
</div><br/> </div><br/>

View File

@ -100,6 +100,7 @@ export class FinancialInfoComponent implements OnInit {
name:'Others' name:'Others'
}, },
] ]
fk_pd_type: any;
constructor(notifier: NotifierService, constructor(notifier: NotifierService,
private fb: FormBuilder, private fb: FormBuilder,
@ -121,6 +122,7 @@ export class FinancialInfoComponent implements OnInit {
this.product_abbr = this.pd_all_details.pdmaster_details.product_abbr; this.product_abbr = this.pd_all_details.pdmaster_details.product_abbr;
this.prod_catagory = this.pd_all_details.pdmaster_details.prod_catagory; this.prod_catagory = this.pd_all_details.pdmaster_details.prod_catagory;
this.subproduct_abbr = this.pd_all_details.pdmaster_details.subproduct_abbr; 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; this.customer_segment_abbr = this.pd_all_details.pdmaster_details.customer_segment_abbr;
let x = this.customer_segment_abbr.split("-"); let x = this.customer_segment_abbr.split("-");
this.CustSegAbbr = x[1]; this.CustSegAbbr = x[1];

View File

@ -29,12 +29,12 @@
<mat-card *ngFor="let neighbourhood of _neighbourhoodForm.controls.neighbourhood_list['controls']; let n = index; let last = last" <mat-card *ngFor="let neighbourhood of _neighbourhoodForm.controls.neighbourhood_list['controls']; let n = index; let last = last"
[formGroupName]="n"> [formGroupName]="n">
<mat-card-content> <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 <input matInput autocomplete="off" placeholder="Neighbour Name" formControlName="neighbourhood_name" appCustomTitleCase
[value]="neighbourhood.get('neighbourhood_name').value" type="text"> [value]="neighbourhood.get('neighbourhood_name').value" type="text">
</mat-form-field> </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 --> <!-- Do You Know the Applicant -->
<mat-select placeholder=" Do you know about the applicants or their business?" <mat-select placeholder=" Do you know about the applicants or their business?"
formControlName="do_know"> formControlName="do_know">
@ -44,8 +44,8 @@
</mat-select> </mat-select>
</mat-form-field> </mat-form-field>
<div fxLayout="row wrap" *ngIf="neighbourhood.controls.do_know.value!=''"> <div fxLayout="row wrap" *ngIf="neighbourhood.controls.do_know.value!='' && fk_pd_type != '3'">
<div fxFlex="80"> <div fxFlex="80" *ngIf="fk_pd_type != '3'">
<label>As per you how long has this business been in operation?</label> <label>As per you how long has this business been in operation?</label>
<mat-form-field *ngIf="!this.isDisplay[n]"> <mat-form-field *ngIf="!this.isDisplay[n]">
<mat-label>Year</mat-label> <mat-label>Year</mat-label>
@ -58,7 +58,7 @@
OnlyNumber type="text" (change)="ConvertMonthintoYear(neighbourhood,$event.target.value,1)"> OnlyNumber type="text" (change)="ConvertMonthintoYear(neighbourhood,$event.target.value,1)">
</mat-form-field> </mat-form-field>
</div> </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> <label>Do not know</label>
<div> <div>
<mat-checkbox color="primary" formControlName="did_not_know_the_business_operation" <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 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-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?" <mat-select multiple placeholder="Who is the owner of the organisation?"
formControlName="organisation_owner" [compareWith]="compareObjects" formControlName="organisation_owner" [compareWith]="compareObjects"

View File

@ -41,6 +41,7 @@ export class NeighbourHoodComponent implements OnInit {
mergeCompanyApplicant: any=[]; mergeCompanyApplicant: any=[];
isOrganisationOwner: any=[]; isOrganisationOwner: any=[];
image_doc_params: { pdid: string; form_id: number; company_id: string; }; image_doc_params: { pdid: string; form_id: number; company_id: string; };
fk_pd_type: any;
// amtInwords : any = []; // amtInwords : any = [];
// isOtherApplicant: any = []; // isOtherApplicant: any = [];
@ -50,6 +51,7 @@ export class NeighbourHoodComponent implements OnInit {
this.notifier = notifier; this.notifier = notifier;
this.form_id = 19; this.form_id = 19;
this.main_applicant = this.data.pdmaster_details.main_applicant; 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.lender_applicant_id = this.data.pdmaster_details.lender_applicant_id;
this.subproduct_abbr = this.data.pdmaster_details.subproduct_abbr; this.subproduct_abbr = this.data.pdmaster_details.subproduct_abbr;
this.customer_segment_abbr = this.data.pdmaster_details.customer_segment_abbr; this.customer_segment_abbr = this.data.pdmaster_details.customer_segment_abbr;

View File

@ -60,7 +60,8 @@
<mat-card *ngIf="docs_array_value.length !=0 "> <mat-card *ngIf="docs_array_value.length !=0 ">
<mat-card-header> <mat-card-header>
<mat-card-title> <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-title>
</mat-card-header> </mat-card-header>
<mat-card style="margin-left: 15px;"> <mat-card style="margin-left: 15px;">

View File

@ -30,6 +30,7 @@ export class QueriesDocsComponent implements OnInit {
docsCollectedForm:FormGroup docsCollectedForm:FormGroup
loadComponent:boolean=false loadComponent:boolean=false
disableAfterSubmit: boolean; disableAfterSubmit: boolean;
fk_pd_type: any;
constructor(notifier: NotifierService, constructor(notifier: NotifierService,
private _ngZone: NgZone, private _ngZone: NgZone,
@ -52,6 +53,7 @@ export class QueriesDocsComponent implements OnInit {
this.subproduct_abbr = this.pd_all_details.pdmaster_details.subproduct_abbr; 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.customer_segment_abbr = this.pd_all_details.pdmaster_details.customer_segment_abbr;
this.lenderShortName = this.pd_all_details.pdmaster_details.lender_short_name; 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; @ViewChild('autosize') autosize: CdkTextareaAutosize;

View File

@ -40,7 +40,8 @@
(selectionChange)="checkComments($event.value,1,a);" required> (selectionChange)="checkComments($event.value,1,a);" required>
<mat-option>Select</mat-option> <mat-option>Select</mat-option>
<mat-option value="yes">Add Stock Details</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-option value="stock not required to be maintained">Stock not required to be maintained</mat-option> -->
</mat-select> </mat-select>
<mat-error *ngIf="mrm.controls['stock_observed'].hasError('required')">Stock Required</mat-error> <mat-error *ngIf="mrm.controls['stock_observed'].hasError('required')">Stock Required</mat-error>
@ -136,7 +137,8 @@
(selectionChange)="checkComments($event.value,2,b);" required> (selectionChange)="checkComments($event.value,2,b);" required>
<mat-option>Select</mat-option> <mat-option>Select</mat-option>
<mat-option value="yes">Add Stock Details</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-option value="stock not required to be maintained">Stock not required to be maintained</mat-option> -->
</mat-select> </mat-select>
</mat-form-field> </mat-form-field>
@ -222,7 +224,8 @@
(selectionChange)="checkComments($event.value,3,e)" required> (selectionChange)="checkComments($event.value,3,e)" required>
<mat-option>Select</mat-option> <mat-option>Select</mat-option>
<mat-option value="yes">Add Stock Details</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-option value="stock not required to be maintained">Stock not required to be maintained</mat-option> -->
</mat-select> </mat-select>
</mat-form-field> </mat-form-field>
@ -311,7 +314,8 @@
(selectionChange)="checkComments($event.value,4,g)" required> (selectionChange)="checkComments($event.value,4,g)" required>
<mat-option>Select</mat-option> <mat-option>Select</mat-option>
<mat-option value="yes">Add Stock Details</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-option value="stock not required to be maintained">Stock not required to be maintained</mat-option> -->
</mat-select> </mat-select>
</mat-form-field> </mat-form-field>
@ -425,7 +429,8 @@
(selectionChange)="checkComments($event.value,5,g)" required> (selectionChange)="checkComments($event.value,5,g)" required>
<mat-option>Select</mat-option> <mat-option>Select</mat-option>
<mat-option value="yes">Add Stock Details</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-option value="stock not required to be maintained">Stock not required to be maintained</mat-option> -->
</mat-select> </mat-select>
</mat-form-field> </mat-form-field>

View File

@ -61,6 +61,7 @@ export class StockComponent implements OnInit {
image_doc_params: { pdid: number; form_id: number; company_id: string; }; image_doc_params: { pdid: number; form_id: number; company_id: string; };
product_abbr: any; product_abbr: any;
prod_catagory: any; prod_catagory: any;
fk_pd_type: any;
/** Constructor */ /** Constructor */
constructor(notifier: NotifierService, 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.lender_applicant_id = this.pd_all_details.pdmaster_details.lender_applicant_id;
this.subproduct_abbr = this.pd_all_details.pdmaster_details.subproduct_abbr; 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.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} this.image_doc_params={pdid:this.pdid,form_id:this.form_id,company_id:this.company_id}
} }
pdf(fileURL){ pdf(fileURL){

View File

@ -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 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 fxLayout="row">
<div fxFlex="100" align="right"> <div fxFlex="100" align="right">
<button mat-raised-button class="mr-1 mb-1" color="primary" style="cursor: not-allowed !important;"> <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> <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>
<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> <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> <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> </span>

View File

@ -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")
}
})
}
} }