face compare api param key added
This commit is contained in:
parent
d1ebf31ee6
commit
f806a73da9
@ -138,7 +138,86 @@
|
||||
{{validation.message}}</mat-error>
|
||||
</ng-container>
|
||||
</mat-form-field>
|
||||
|
||||
<div *ngIf="parent_ques.type == '6'">
|
||||
<!-- <ion-grid > -->
|
||||
<div fxLayout="row">
|
||||
<div fxLayout ="column" style="padding:none;align-self:center;text-align:center">
|
||||
<div >
|
||||
<div class="top">
|
||||
<!-- Thumbnail-->
|
||||
<div class="thumbnail">
|
||||
<div class="date" style="margin-bottom: -35px; text-align: end;" *ngIf="role_id == '20'">
|
||||
<!-- <button mat-raised-button mat-icon-button mat-mini-fab
|
||||
class="date mr-1 mb-1 hover-icon" type="button"
|
||||
matTooltip="edit" (click)="imageCrop(doc)"
|
||||
matTooltipPosition="right" >
|
||||
<mat-icon>edit</mat-icon>
|
||||
</button> -->
|
||||
<button mat-raised-button mat-icon-button mat-mini-fab [ngStyle.xs]="{'font-size':'16px','font-weight':'bold'}" [ngStyle]="{'background-color':role_id == '20' ? '#0d93a9' :'#f44336'}" style=" width: 21px;
|
||||
height: 20px;"
|
||||
type="button"
|
||||
matTooltip="Edit" (click)="imageCrop(parent_ques.get('answer_value').value,parent_ques)"
|
||||
matTooltipPosition="right">
|
||||
<mat-icon style="font-size: 14px; line-height: 0px;">edit</mat-icon>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<img *ngIf="parent_ques.answers != ''" [src]="parent_ques.answers" imageViewer class="doc-image-bucket">
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div><br/>
|
||||
<p *ngIf="parent_ques.answers == ''">Image is not captured.</p>
|
||||
<label ><strong>{{parent_ques.question}}</strong>
|
||||
<!-- <button mat-raised-button mat-icon-button mat-mini-fab
|
||||
class="date1 mr-1 mb-1 hover-icon" type="button"
|
||||
matTooltip="edit" (click)="imageCrop(parent_ques.get('answer_value').value)"
|
||||
matTooltipPosition="right">
|
||||
<mat-icon>edit</mat-icon>
|
||||
</button> -->
|
||||
</label>
|
||||
<!-- <input *ngIf="image.Name =='' && image.option != 'dummy'" width="20px" ion-input type="text" placeholder="Document Name" (blur)="changeName($event.target.value,i,image.image)"> -->
|
||||
<!-- <button *ngIf="image.option != 'dummy'" ion-button clear color="optblue" (click)="removeImg(i)"><mat-icon style="font-size:22px" name="md-trash"></mat-icon></button> -->
|
||||
</div>
|
||||
<div fxLayout="row" style="justify-content: center">
|
||||
<div fxLayout="column">
|
||||
<span>
|
||||
<!-- <app-single-capture-btn class="file-btn" (singleDataEmitter)="captureImg($event,p_i,parent_ques)"></app-single-capture-btn> -->
|
||||
</span>
|
||||
<!-- <button mat-raised clear color="optblue" [disabled]="sales_pd_type == '2'" (click)="captureImg(p_i,parent_ques)"><mat-icon style="font-size: 30px" name="md-camera"></mat-icon></button> -->
|
||||
</div>
|
||||
<!-- IMAGE STATUS ICON FOR INPROGRESS, COMPLETED AND FAILED -->
|
||||
<!-- <ion-col col-4 *ngIf="parent_ques.get('is_image_status').value == true">
|
||||
<ion-spinner name="crescent" style="width: 20px;
|
||||
height: 20px;" (click)="cancelLoader(parent_ques)"
|
||||
*ngIf="parent_ques.get('is_loader').value == true"></ion-spinner>
|
||||
<mat-icon style="color: #008828;float: right;
|
||||
margin-right: 30%;" *ngIf="parent_ques.get('is_saved').value == true" name="checkmark-circle-outline"></mat-icon>
|
||||
<span style="margin:0px;" *ngIf="(parent_ques.get('is_saved').value == false &&
|
||||
parent_ques.get('is_loader').value == false) && (parent_ques.value.hasOwnProperty('is_saved') &&
|
||||
parent_ques.value.hasOwnProperty('is_loader'))" (click)="imageReupload(parent_ques)">
|
||||
<ion-row style="margin-top: -17px;padding:0px;"><button ion-button clear><mat-icon style="color:lightcoral;" name="refresh-circle"></mat-icon></button></ion-row>
|
||||
<ion-row style="margin-top: -20px;padding:0px;"><p style="font-size: 10px">Click to ReUpload</p></ion-row>
|
||||
</span>
|
||||
</ion-col> -->
|
||||
</div>
|
||||
<!-- <ng-container ngProjectAs="mat-hint">
|
||||
<mat-error >Please capture the image</mat-error>
|
||||
</ng-container> -->
|
||||
</div>
|
||||
<hr/>
|
||||
</div>
|
||||
<!-- </ion-grid> -->
|
||||
<ng-container *ngFor="let validation of parent_ques.validations;" ngProjectAs="mat-error">
|
||||
<mat-error align="end" *ngIf="parent_ques.answers.hasError(validation.name.toLowerCase())">{{validation.message}}</mat-error>
|
||||
</ng-container>
|
||||
<!-- <ng-container ngProjectAs="mat-hint">
|
||||
<mat-error align="end">Please capture the image</mat-error>
|
||||
</ng-container>-->
|
||||
</div>
|
||||
<!-- <div *ngIf="parent_ques.type == '6'">
|
||||
<ion-grid>
|
||||
<ion-row>
|
||||
|
||||
@ -87,7 +87,7 @@ export class DynamicQuestionTemplateComponent implements OnInit {
|
||||
|
||||
}
|
||||
ngOnChanges() {
|
||||
//alert('ans');
|
||||
// alert('ans');
|
||||
this.parent_ques = this.currFormArrayObj
|
||||
|
||||
this.json_answers1=[{
|
||||
@ -161,7 +161,9 @@ export class DynamicQuestionTemplateComponent implements OnInit {
|
||||
company_name: 1}
|
||||
|
||||
]
|
||||
|
||||
if(this.json_answers==null ){
|
||||
this.formGroupN.get('avail_loan_moratorium_facility').patchValue(('No' || ''))
|
||||
}
|
||||
if(this.json_answers!=null && this.json_answers != undefined && this.json_answers) {
|
||||
|
||||
// setTimeout(()=>{
|
||||
|
||||
@ -1168,9 +1168,9 @@ export class QuesFormService {
|
||||
|
||||
// FOR IMAGE STATUS
|
||||
if(data.type == '6'){
|
||||
curr_control.controls[curr_index].addControl('is_loader',new FormControl(''))
|
||||
curr_control.controls[curr_index].addControl('is_saved',new FormControl(''))
|
||||
curr_control.controls[curr_index].addControl('is_image_status',new FormControl(false))
|
||||
// curr_control.controls[curr_index].addControl('is_loader',new FormControl(''))
|
||||
// curr_control.controls[curr_index].addControl('is_saved',new FormControl(''))
|
||||
// curr_control.controls[curr_index].addControl('is_image_status',new FormControl(false))
|
||||
}
|
||||
if (data.api_properties != null) {
|
||||
if(data.api_properties.hasOwnProperty('purpose') && data.api_properties.purpose == 'answer_options_local') {
|
||||
|
||||
@ -2033,6 +2033,23 @@
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
<div fxLayout="row" *ngIf="businessForm.controls['bills_or_invoices']">
|
||||
<mat-form-field>
|
||||
<mat-select placeholder="Bills/Invoices" formControlName="bills_or_invoices" >
|
||||
<mat-option value="yes">Yes</mat-option>
|
||||
<mat-option value="no">No</mat-option>
|
||||
<mat-option value="not applicable">Not Applicable</mat-option>
|
||||
</mat-select>
|
||||
<mat-error *ngIf="businessForm.controls['bills_or_invoices'].hasError('required')">"Bills/Invoices Required</mat-error>
|
||||
</mat-form-field>
|
||||
<!-- <span *ngIf="businessForm.controls['rent_agreement'].value == 'yes'">
|
||||
<span class="carbon-wrap" *ngIf="businessForm.controls['rent_agreement_pic'] && businessForm.controls['rent_agreement_pic'].value != ''" >
|
||||
<img src="{{businessForm.controls['rent_agreement_pic'].value}}" alt="" border="0" height="100" width="130" style="max-width: 130px;" ngxViewer >
|
||||
|
||||
<p class="carbon-text" > Rent Agreement Image </p>
|
||||
</span>
|
||||
</span> -->
|
||||
</div>
|
||||
<div fxLayout="row" *ngIf="businessForm.controls['rent_agreement']">
|
||||
<mat-form-field>
|
||||
<mat-select placeholder="Rent Agreement" formControlName="rent_agreement" (selectionChange)="radioChange($event,10)">
|
||||
|
||||
@ -826,6 +826,7 @@ export class BusinessInfoComponent implements OnInit {
|
||||
//factory_cert: ['', Validators.compose([Validators.required])],
|
||||
// practice_cert: ['', Validators.compose([Validators.required])],
|
||||
pf_regn: ['', Validators.compose([Validators.required])],
|
||||
bills_or_invoices: ['', Validators.compose([Validators.required])],
|
||||
esic_regn: ['', Validators.compose([Validators.required])],
|
||||
other_documents: ['', Validators.compose([Validators.required])],
|
||||
documents: this.fb.array([]),
|
||||
|
||||
@ -103,6 +103,8 @@ export class FacialRecognitionModalComponent implements OnInit {
|
||||
let params= {
|
||||
"pdid": this.pd_id,
|
||||
"dest": this.aplicantDetails.is_person_met_pic,
|
||||
"applicant_id" :this.aplicantDetails.pd_co_applicant_id,
|
||||
|
||||
"src": this.aplicantDetails.is_person_met_id_proof,
|
||||
// "dest":'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSvr4h42PFICLIeZYJNbpom1JyVQhZyhmAKqQ&usqp=CAU',
|
||||
// "src": 'https://media.istockphoto.com/photos/portrait-of-multi-ethnic-business-couple-picture-id1207862144?k=20&m=1207862144&s=612x612&w=0&h=fckYWdy8jqnq6rOXPgJ5ocKvhErnunAxkGaoG_OunD8=',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user