Vendor Question Highlighted

This commit is contained in:
sriram-at-840620226347 2020-07-27 19:46:50 +05:30
parent 40ab825f3b
commit d55ffeac61
8 changed files with 28 additions and 25 deletions

View File

@ -5,7 +5,7 @@
<div fxFlex="70" align="left" style="padding: 10px !important;">
<span>{{main_applicant}} {{lender_applicant_id ? '('+lender_applicant_id+')' : ''}}, {{customer_segment_abbr}} <span
*ngIf="subproduct_abbr">-
{{subproduct_abbr}} </span></span><br>
{{subproduct_abbr}} </span><span *ngIf="fk_pd_type == '2'" class="smartPd" style="color: #fff !important;">(Vendor Answer)</span></span><br>
{{pageTitle}}
</div>
<div fxFlex="30" align="end" style="padding: 10px !important;">
@ -281,7 +281,7 @@
</div>
<div fxFlex="100">
<mat-form-field style="width: 46%;" *ngIf="fk_pd_type != '3'" [ngClass]="{'smartPd':fk_pd_type == '2'}">
<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>
@ -294,7 +294,7 @@
Approach to PD Location Required</mat-error>
</mat-form-field>
<mat-form-field style="width: 46%;" *ngIf="fk_pd_type != '3'" [ngClass]="{'smartPd':fk_pd_type == '2'}">
<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>

View File

@ -1603,14 +1603,14 @@
</mat-form-field>
</mat-card-content>
</mat-card>
<mat-card>
<mat-card [ngClass]="{'smartPd':fk_pd_type == '2'}">
<mat-card-header>
<mat-card-title *ngIf="fk_pd_type != '3' && fk_pd_type != '2'">No of Employees Sighted By PD Officer During His Visit </mat-card-title>
<mat-card-title *ngIf="fk_pd_type == '3' || fk_pd_type == '2'">Company Name Board </mat-card-title>
<mat-card-title *ngIf="fk_pd_type != '3' || fk_pd_type == '2'">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 *ngIf="fk_pd_type != '3'" [ngClass]="{'smartPd':fk_pd_type == '2'}">
<input matInput placeholder="Total" formControlName="officer_total" required>
<mat-form-field *ngIf="fk_pd_type != '3'">
<input matInput placeholder="Total" formControlName="officer_total">
<mat-error *ngIf="businessForm.controls['officer_total'].hasError('required')">Total Required</mat-error>
</mat-form-field>
<!-- <mat-form-field>
@ -1623,7 +1623,7 @@
</mat-form-field> -->
<mat-form-field>
<mat-select [placeholder]=" (fk_pd_type == '3' || fk_pd_type == '2' ) ? '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>
<!-- <mat-option value="not applicable">Not Applicable</mat-option> -->
@ -1853,10 +1853,10 @@
</span>
</span>
</div>
<div [ngClass]="{'smartPd':fk_pd_type == '2'}">
<mat-form-field>
<mat-select placeholder="Do You Want to Add Other Documents?" formControlName="other_documents"
required>
>
<mat-option value="yes">Yes</mat-option>
<mat-option value="no">No</mat-option>
<!-- <mat-option value="not applicable">Not Applicable</mat-option> -->
@ -1893,7 +1893,7 @@
</div>
</div>
</div>
</div>
</mat-card-content>
</mat-card>
</div>

View File

@ -43,9 +43,9 @@
color: #fff !important;
background-color: #e00201 !important;
}
.mat-card-content {
background-color: white;
}
// .mat-card-content {
// background-color: white;
// }
.mat-card-actions {
background-color: white;
}

View File

@ -781,6 +781,9 @@ export class BusinessInfoComponent implements OnInit {
this.businessForm.controls['officer_total'].clearValidators();
this.businessForm.controls['officer_total'].updateValueAndValidity();
this.businessForm.controls['other_documents'].clearValidators();
this.businessForm.controls['other_documents'].updateValueAndValidity();
this.businessForm.controls['was_the_company_name_board_sighted'].clearValidators();
this.businessForm.controls['was_the_company_name_board_sighted'].updateValueAndValidity();
}

View File

@ -136,11 +136,12 @@
</div>
</div>
</span>
<div class="toggle" fxLayout="row nowrap" *ngIf="fk_pd_type != '3'" [ngClass]="{'smartPd':fk_pd_type == '2'}">
<div [ngClass]="{'smartPd':fk_pd_type == '2'}">
<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-slide-toggle formControlName="was_the_pd_address_ogl" color="primary"></mat-slide-toggle>
</div>
<mat-form-field style="width:50%;" *ngIf="fk_pd_type != '3'" [ngClass]="{'smartPd':fk_pd_type == '2'}">
<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-option>Select</mat-option>
@ -155,6 +156,7 @@
<input matInput autocomplete="off" placeholder="Specify the Mode of Transport Used to Visit the PD address" formControlName="others_transport" required>
<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>
</div>
<mat-card *ngIf="(lender_short_name == 'CLIX' || lender_short_name == 'MWISE' || prod_catagory == 'LAEP') && fk_pd_type != '3'" [ngClass]="{'smartPd':fk_pd_type == '2'}">
<mat-card-content>

View File

@ -17,7 +17,7 @@
<ng-template matTabContent>
<div fxLayout="row wrap">
<div fxFlex="100">
<mat-card *ngIf="fk_pd_type != '3'" [ngClass]="{'smartPd':fk_pd_type == '2'}">
<mat-card *ngIf="fk_pd_type != '3'">
<mat-card-header>
<mat-card-title>
<p>Data as Per Financial Statements</p>
@ -507,7 +507,7 @@
<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' && (fk_pd_type != '3')" [ngClass]="{'smartPd':fk_pd_type == '2'}">
<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

View File

@ -5,7 +5,7 @@
<div fxLayout="row wrap">
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="100" fxFlex.lg="100" fxFlex.xl="100">
<span>{{main_applicant}} {{lender_applicant_id ? '('+lender_applicant_id+')' : ''}}, {{customer_segment_abbr}} <span *ngIf="subproduct_abbr">-
{{subproduct_abbr}} </span></span><br>
{{subproduct_abbr}} </span><span *ngIf="fk_pd_type == '2'" class="smartPd" style="color: #fff !important;">(Vendor Answer)</span></span><br>
{{pageTitle}}
</div>
@ -27,7 +27,7 @@
<div *ngIf="types.id==0">
<div formArrayName="neighbourhood_list">
<mat-card *ngFor="let neighbourhood of _neighbourhoodForm.controls.neighbourhood_list['controls']; let n = index; let last = last"
[formGroupName]="n" [ngClass]="{'smartPd':fk_pd_type == '2'}">
[formGroupName]="n">
<mat-card-content>
<mat-form-field style="width: 42%" *ngIf="fk_pd_type != '3'">
<input matInput autocomplete="off" placeholder="Neighbour Name" formControlName="neighbourhood_name" appCustomTitleCase

View File

@ -61,14 +61,13 @@
</mat-card>
</mat-card>
<mat-card *ngIf="docs_array_value.length !=0 ">
<mat-card-header>
<mat-card-header [ngClass]="{'smartPd':fk_pd_type == '2'}">
<mat-card-title>
<h5 *ngIf="fk_pd_type != '3' && fk_pd_type != '2'">Documents to be collected</h5>
<h5 *ngIf="fk_pd_type == '3' || fk_pd_type == '2'">Docuements to be uploaded</h5>
</mat-card-title>
</mat-card-header>
<mat-card style="margin-left: 15px;">
<mat-card-content formArrayName="docs_to_be_sighted">
<mat-card-content formArrayName="docs_to_be_sighted" [ngClass]="{'smartPd':fk_pd_type == '2'}">
<div *ngFor="let item of docsCollectedForm.controls.docs_to_be_sighted['controls'];let i=index" [formGroupName]="i">
<div fxLayout="row wrap">
<div fxFlex="60">
@ -104,7 +103,6 @@
</div>
</mat-card-content>
</mat-card>
</mat-card>
</div>
<mat-card *ngIf="questions_JSON.questions.length > 0">
<mat-card-header>