Fairoj : Ui changes and question added
This commit is contained in:
parent
49bc10f2f4
commit
85f6f20885
@ -5,7 +5,9 @@
|
||||
<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 *ngIf="fk_pd_type == '2'" class="smartPd" style="color: #fff !important;">(Vendor Answer)</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;">
|
||||
@ -20,11 +22,11 @@
|
||||
<mat-tab-group>
|
||||
<mat-tab label="Questions">
|
||||
<ng-template matTabContent>
|
||||
<mat-card style="min-height: 550px;">
|
||||
<mat-card style="min-height: 550px;background-color: #b9e9f1 !important">
|
||||
<mat-card-title>
|
||||
<p>Address Details</p>
|
||||
</mat-card-title>
|
||||
<mat-card-content>
|
||||
<mat-card-content style="background-color: #b9e9f1 !important">
|
||||
<div fxLayout="row wrap">
|
||||
<div fxFlex="100">
|
||||
<div formArrayName="addresses">
|
||||
|
||||
@ -31,7 +31,7 @@
|
||||
<mat-card>
|
||||
<mat-card-content>
|
||||
<mat-card-subtitle>Location</mat-card-subtitle>
|
||||
<mat-form-field style="width:94%;" *ngIf="fk_pd_type != '3' && fk_pd_type != '2'">
|
||||
<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" >
|
||||
<mat-option>Select</mat-option>
|
||||
|
||||
@ -108,7 +108,7 @@ export class FinalRemarksComponent implements OnInit {
|
||||
final_form_remarks: ['']
|
||||
});
|
||||
|
||||
if(this.fk_pd_type == '3' || this.fk_pd_type == '2'){
|
||||
if(this.fk_pd_type == '3'){
|
||||
this._finalRemarkForm.controls['is_service_provided'].clearValidators();
|
||||
this._finalRemarkForm.controls['is_service_provided'].updateValueAndValidity();
|
||||
|
||||
@ -116,6 +116,11 @@ export class FinalRemarksComponent implements OnInit {
|
||||
this._finalRemarkForm.controls['mode_of_transport_during_visit'].updateValueAndValidity();
|
||||
}
|
||||
|
||||
if(this.fk_pd_type == "2") {
|
||||
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(''));
|
||||
|
||||
@ -5,7 +5,9 @@
|
||||
<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 *ngIf="fk_pd_type == '2'" class="smartPd" style="color: #fff !important;">(Vendor Answer)</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>
|
||||
|
||||
@ -28,7 +30,7 @@
|
||||
<div formArrayName="neighbourhood_list">
|
||||
<mat-card *ngFor="let neighbourhood of _neighbourhoodForm.controls.neighbourhood_list['controls']; let n = index; let last = last"
|
||||
[formGroupName]="n">
|
||||
<mat-card-content>
|
||||
<mat-card-content style="background-color: #b9e9f1 !important">
|
||||
<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">
|
||||
@ -108,7 +110,8 @@
|
||||
</mat-card-actions>
|
||||
</mat-card>
|
||||
</div>
|
||||
<mat-form-field style="width: 40%">
|
||||
<mat-card-content style="background-color: #b9e9f1 !important">
|
||||
<mat-form-field style="width: 40%;background-color: #b9e9f1 !important">
|
||||
<mat-select placeholder="Status of the check as per PD officer?" formControlName="neighbourhood_status">
|
||||
<mat-option>Select</mat-option>
|
||||
<mat-option value="Positive">Positive</mat-option>
|
||||
@ -117,6 +120,7 @@
|
||||
</mat-select>
|
||||
<mat-error *ngIf="_neighbourhoodForm.controls['neighbourhood_status'].hasError('required')">Status Required</mat-error>
|
||||
</mat-form-field>
|
||||
</mat-card-content>
|
||||
</div>
|
||||
<div *ngIf="types.id==1">
|
||||
<mat-card-content formArrayName="referencecheck_list">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user