Fairoj : Tele PD issue fixed

This commit is contained in:
venbatechnologies@gmail.com 2020-05-15 14:50:30 +05:30
parent 3fc3d19e72
commit 2710a54251
7 changed files with 26 additions and 10 deletions

View File

@ -1210,8 +1210,10 @@ export class BusinessAssetsInfoComponent implements OnInit {
if (flag == 1) { if (flag == 1) {
if (value == 'yes') { if (value == 'yes') {
item.controls.business_years.setValidators([Validators.required]); item.controls.business_years.setValidators([Validators.required]);
if(this.fk_pd_type != '3') {
item.controls.business_is_pd_visited.setValidators([Validators.required]); item.controls.business_is_pd_visited.setValidators([Validators.required]);
item.controls.business_pd_visited_remark.setValidators([Validators.required]); item.controls.business_pd_visited_remark.setValidators([Validators.required]);
}
item.controls.business_ownership_type.setValidators([Validators.required]); item.controls.business_ownership_type.setValidators([Validators.required]);
} }
else { else {

View File

@ -41,7 +41,7 @@
</mat-select> </mat-select>
<mat-error *ngIf="_finalRemarkForm.controls['is_service_provided'].hasError('required')">Service Provided Required</mat-error> <mat-error *ngIf="_finalRemarkForm.controls['is_service_provided'].hasError('required')">Service Provided Required</mat-error>
</mat-form-field> </mat-form-field>
<mat-form-field style="width: 100%"> <mat-form-field style="width: 90%">
<input matInput placeholder="Personal feedback or market intelligence on the case (if any)" formControlName="market_intelligence"> <input matInput placeholder="Personal feedback or market intelligence on the case (if any)" formControlName="market_intelligence">
</mat-form-field> </mat-form-field>
</mat-card-content> </mat-card-content>
@ -156,7 +156,7 @@
<mat-error *ngIf="_finalRemarkForm.controls['mode_of_transport_during_visit'].hasError('required')">Specify the Mode of Transport Used to Visit the PD address Required</mat-error> <mat-error *ngIf="_finalRemarkForm.controls['mode_of_transport_during_visit'].hasError('required')">Specify the Mode of Transport Used to Visit the PD address Required</mat-error>
</mat-form-field> </mat-form-field>
<mat-card *ngIf="lender_short_name == 'CLIX' || lender_short_name == 'MWISE' || prod_catagory == 'LAEP'"> <mat-card *ngIf="(lender_short_name == 'CLIX' || lender_short_name == 'MWISE' || prod_catagory == 'LAEP') && fk_pd_type != '3'">
<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>

View File

@ -256,7 +256,7 @@ export class FinalRemarksComponent implements OnInit {
this._finalRemarkForm.controls.market_intelligence.setValue(data.records.market_intelligence || ''); this._finalRemarkForm.controls.market_intelligence.setValue(data.records.market_intelligence || '');
if(this.lender_short_name == 'CLIX' || this.lender_short_name == 'MWISE' || this.prod_catagory == 'LAEP'){ if(this.fk_pd_type != '3' && (this.lender_short_name == 'CLIX' || this.lender_short_name == 'MWISE' || this.prod_catagory == 'LAEP')){
if(this.prod_catagory == 'LAEP') {this._finalRemarkForm.controls.outlet_location.setValue(this.prod_catagory == 'LAEP' ? data.records.outlet_location : ''); } if(this.prod_catagory == 'LAEP') {this._finalRemarkForm.controls.outlet_location.setValue(this.prod_catagory == 'LAEP' ? data.records.outlet_location : ''); }
this._finalRemarkForm.controls.is_competition.setValue(data.records.is_competition); this._finalRemarkForm.controls.is_competition.setValue(data.records.is_competition);

View File

@ -9,8 +9,8 @@ import { MatDialog, MatDialogRef, MAT_DIALOG_DATA } from '@angular/material';
/** Service */ /** Service */
import { PdTrigerService } from '../../../../../pd-service/pd-triger.service'; import { PdTrigerService } from '../../../../../pd-service/pd-triger.service';
import { ActivatedRoute, Router } from '@angular/router'; import { ActivatedRoute, Router } from '@angular/router';
import { analyzeAndValidateNgModules } from '@angular/compiler'; // import { analyzeAndValidateNgModules } from '@angular/compiler';
import { ImageCropComponent } from '../dialogue/image-crop/image-crop.component'; // import { ImageCropComponent } from '../dialogue/image-crop/image-crop.component';
@Component({ @Component({
// changeDetection: ChangeDetectionStrategy.OnPush, // changeDetection: ChangeDetectionStrategy.OnPush,
@ -89,7 +89,9 @@ export class StockComponent implements OnInit {
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; this.fk_pd_type = this.pd_all_details.pdmaster_details.fk_pd_type;
if(this.fk_pd_type == '3'){ if(this.fk_pd_type == '3'){
this.SPsufficientList.push({value:"not able to assess",isdisplayvalue:"Not able to assess",isdisabled:false}) this.SPsufficientList.push({value:"not able to access",isdisplayvalue:"Not able to access",isdisabled:false})
this.TGsufficientList.push({value:"not able to access",isdisplayvalue:"Not able to access",isdisabled:false})
this.RMsufficientList.push({value:"not able to access",isdisplayvalue:"Not able to access",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}
} }

View File

@ -24,6 +24,15 @@
} }
} }
} }
@media(max-width:580px) {
.fab-container {
> div {
flex-direction: column !important;
right: 0px;
top: 53px;
}
}
}
.fab-toggler { .fab-toggler {
float: right; float: right;

View File

@ -125,8 +125,11 @@
</mat-card> </mat-card>
</div> </div>
<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" fxLayoutAlign="flex-end" fxLayoutGap="68px" fxLayoutGap.xs="8px">
<div fxFlex="100" align="right"> <div fxLayout="column">
<app-speed-dial-fab fxFlex="30" class="fab-group" *ngIf="master.fk_pd_type == '3'" [options]="FabOptions" (fabClick)="copyCusURL($event)"></app-speed-dial-fab>
</div>
<div 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> -->
@ -135,13 +138,13 @@
matTooltip="Copy Customer Link" matTooltipPosition="above"> matTooltip="Copy Customer Link" matTooltipPosition="above">
<mat-icon>link</mat-icon> <mat-icon>link</mat-icon>
</button></span> --> </button></span> -->
<!-- <app-speed-dial-fab class="fab-group" *ngIf="master.fk_pd_type == '3'" [options]="FabOptions" (fabClick)="copyCusURL($event)"></app-speed-dial-fab> -->
<span> <button *ngIf="master.fk_pd_type == '3'" <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)" 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"> matTooltip="Send Link Via SMS" matTooltipPosition="above">
<mat-icon>sms</mat-icon> <mat-icon>sms</mat-icon>
</button>&nbsp;&nbsp;</span> </button>&nbsp;&nbsp;</span>
<!-- <div class="fab-group" *ngIf="master.fk_pd_type == '3'"> --> <!-- <div class="fab-group" *ngIf="master.fk_pd_type == '3'"> -->
<app-speed-dial-fab class="fab-group" *ngIf="master.fk_pd_type == '3'" [options]="FabOptions" (fabClick)="copyCusURL($event)"></app-speed-dial-fab>
<!-- </div> --> <!-- </div> -->
<button *ngIf="master.fk_pd_type == '3'" mat-button mat-raised-button class="mr-1 mb-1" color="primary" (click)="openVideoChat()"> <button *ngIf="master.fk_pd_type == '3'" mat-button mat-raised-button class="mr-1 mb-1" color="primary" (click)="openVideoChat()">
<mat-icon>videocam</mat-icon> <mat-icon>videocam</mat-icon>

View File

@ -83,7 +83,7 @@
// app-speed-dial-fab { // app-speed-dial-fab {
position: absolute; position: absolute;
@media(min-width:500px) { @media(min-width:500px) {
right: 415px; // right: 415px;
} }
// } // }
} }