diff --git a/ng6-seed/src/app/quality-check/qc-list/qc-start/qc-start.component.html b/ng6-seed/src/app/quality-check/qc-list/qc-start/qc-start.component.html index d4e61dc9e..19f8b985d 100755 --- a/ng6-seed/src/app/quality-check/qc-list/qc-start/qc-start.component.html +++ b/ng6-seed/src/app/quality-check/qc-list/qc-start/qc-start.component.html @@ -13,7 +13,7 @@ {{pdMasterList.lender_full_name}}/{{pdMasterList.lender_applicant_id}} - +
@@ -27,6 +27,18 @@
--> + + + {{actualQuestions+1}} +
+ {{ photoButton.form_name }} +
+ + +
+
diff --git a/ng6-seed/src/app/quality-check/qc-list/qc-start/qc-start.component.ts b/ng6-seed/src/app/quality-check/qc-list/qc-start/qc-start.component.ts index 7172415b3..80cbbe1ff 100755 --- a/ng6-seed/src/app/quality-check/qc-list/qc-start/qc-start.component.ts +++ b/ng6-seed/src/app/quality-check/qc-list/qc-start/qc-start.component.ts @@ -1,10 +1,10 @@ import {Component, ViewChild, OnInit, ViewEncapsulation, OnDestroy} from '@angular/core'; import {FormBuilder, FormGroup, Validators, FormControl, FormArray, AbstractControl} from '@angular/forms'; import {ActivatedRoute, Router} from '@angular/router'; -import {MatDialog } from '@angular/material'; +import {MatDialog } from '@angular/material'; import {NotifierService} from 'angular-notifier'; import { QcListComponent } from './../qc-list.component'; -import {QcService} from './../../qc-service/qc.service'; +import {QcService} from './../../qc-service/qc.service'; import {PersonalInfoComponent} from './../../../personal-discussion/manage-pd/list-pd/start-pd/forms/personal-info/personal-info.component'; import {AddressComponent } from './../../../personal-discussion/manage-pd/list-pd/start-pd/forms/address/address.component'; @@ -71,6 +71,7 @@ export class QcStartComponent implements OnInit, OnDestroy { private notifier: NotifierService; prod_catagory: any; vendor_status_arr: any = []; + photographButtons: any[]; constructor(notifier: NotifierService, private dialog: MatDialog, private fb: FormBuilder, private route: ActivatedRoute, private router: Router, @@ -119,7 +120,9 @@ export class QcStartComponent implements OnInit, OnDestroy { let filterApplicantName= data.records.pdapplicants_detials.filter(item => item.applicant_type == 1); this.mainApplicantName = filterApplicantName[0].applicant_name; this.currentPDStatus = data.records.pdmaster_details.pd_status=='INPROGRESS' ? false : data.records.pdmaster_details.pd_status=='false' ? true :data.records.pdmaster_details.pd_status=='ALLOCATED' ? false : data.records.pdmaster_details.pd_status=='COMPLETED' ? true : false; - this.categoryFormButtons = Object.keys(data.records.template_forms).map((item)=>data.records.template_forms[item]).filter(item=>item.isAnswerable===true); + let categoryFormButtons1 = Object.keys(data.records.template_forms).map((item)=>data.records.template_forms[item]).filter(item=>item.isAnswerable===true); + this.categoryFormButtons=categoryFormButtons1.filter(item=>item.form_id!=26); + this.photographButtons=categoryFormButtons1.filter(item=>item.form_id==26); this.lender_short_name = data.records.pdmaster_details.lender_short_name; this.product_abbr = data.records.pdmaster_details.product_abbr; this.prod_catagory = data.records.pdmaster_details.prod_catagory;