From fa38233a61d2333f4b8e1bf7150aa72c531c1bdb Mon Sep 17 00:00:00 2001 From: "venbatechnologies@gmail.com" Date: Sat, 3 Oct 2020 20:50:03 +0530 Subject: [PATCH] Fairoj : Feeback version 4 changes and vendor form fetch complete check removal --- .../list-pd/add-pd/add-pd.component.ts | 2 ++ .../forms/address/address.component.ts | 2 +- .../business-assets-info.component.ts | 2 +- .../business-info/business-info.component.ts | 2 +- .../employment-info.component.html | 28 ++++++++-------- .../employment-info.component.ts | 33 ++++++++++++------- .../family-details.component.html | 7 +++- .../family-details.component.ts | 30 +++++++++++++++-- .../final-remarks.component.html | 2 +- .../final-remarks/final-remarks.component.ts | 2 +- .../general-info/general-info.component.ts | 2 +- .../loan-details/loan-details.component.ts | 3 +- .../neighbour-hood.component.ts | 2 +- .../queries-docs/queries-docs.component.html | 14 ++++++-- .../queries-docs/queries-docs.component.ts | 3 +- .../start-pd/forms/stock/stock.component.ts | 2 +- .../list-pd/view-pd/view-pd.component.ts | 2 +- .../video-player/video-player.component.html | 2 +- .../video-player/video-player.component.scss | 1 + 19 files changed, 97 insertions(+), 44 deletions(-) diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.ts index 7ec722773..7d2337882 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.ts @@ -851,7 +851,9 @@ export class AddPdComponent implements OnInit, OnDestroy { if (result.status == 200) { this.disableAfterSubmit = false; this.notifier.notify('success', 'PD Saved.'); + setTimeout(()=>{ this.loadPdListCompoent(true); + },1000) } else { this.disableAfterSubmit = false; diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/address/address.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/address/address.component.ts index 26947ee8e..03f652498 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/address/address.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/address/address.component.ts @@ -924,7 +924,7 @@ export class AddressComponent implements OnInit { // else { // control.push(this.createAddresses(null)); // } - if(this.pd_all_details.pdmaster_details.fk_pd_type == '2' && this.pd_all_details.pdmaster_details.hasOwnProperty('vendor_status') && this.pd_all_details.pdmaster_details.vendor_status == 'COMPLETED' && this.pd_all_details.pdmaster_details.curr_vendor_ans_fetch_status == '0') { + if(this.pd_all_details.pdmaster_details.fk_pd_type == '2' && this.pd_all_details.pdmaster_details.curr_vendor_ans_fetch_status == '0') { console.log(this.pd_all_details.pdmaster_details.vendor_status); this.getDataFromVendor() } diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-assets-info/business-assets-info.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-assets-info/business-assets-info.component.ts index ff2ef38b5..7e5fdfbf0 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-assets-info/business-assets-info.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-assets-info/business-assets-info.component.ts @@ -220,7 +220,7 @@ export class BusinessAssetsInfoComponent implements OnInit { } else { // this.noRecordFound = true; } - if(this.pd_all_details.pdmaster_details.fk_pd_type == '2' && this.pd_all_details.pdmaster_details.hasOwnProperty('vendor_status') && this.pd_all_details.pdmaster_details.vendor_status == 'COMPLETED' && this.pd_all_details.pdmaster_details.curr_vendor_ans_fetch_status == '0') { + if(this.pd_all_details.pdmaster_details.fk_pd_type == '2' && this.pd_all_details.pdmaster_details.curr_vendor_ans_fetch_status == '0') { console.log(this.pd_all_details.pdmaster_details.vendor_status); setTimeout(()=>{ this.getDataFromVendor() diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-info/business-info.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-info/business-info.component.ts index 0e0123df3..c5bbbd338 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-info/business-info.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-info/business-info.component.ts @@ -666,7 +666,7 @@ export class BusinessInfoComponent implements OnInit { }); } } - if(this.pd_all_details.pdmaster_details.fk_pd_type == '2' && this.pd_all_details.pdmaster_details.hasOwnProperty('vendor_status') && this.pd_all_details.pdmaster_details.vendor_status == 'COMPLETED' && this.pd_all_details.pdmaster_details.curr_vendor_ans_fetch_status == '0') { + if(this.pd_all_details.pdmaster_details.fk_pd_type == '2' && this.pd_all_details.pdmaster_details.curr_vendor_ans_fetch_status == '0') { console.log(this.pd_all_details.pdmaster_details.vendor_status); this.getDataFromVendor() } diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/employment-info/employment-info.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/employment-info/employment-info.component.html index a7362bbf7..949520cb4 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/employment-info/employment-info.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/employment-info/employment-info.component.html @@ -67,7 +67,7 @@ - + Select Yes No @@ -77,7 +77,7 @@
+ autocomplete="off" > - + Select {{deslist.name}} @@ -102,7 +102,7 @@ + autocomplete="off" > Required @@ -131,7 +131,7 @@
+ > Select Yes No @@ -146,7 +146,7 @@ -
+
@@ -160,7 +160,7 @@
+ > Select Yes No @@ -169,7 +169,7 @@ + > Select Yes No @@ -180,7 +180,7 @@
+ > Select Yes No @@ -189,7 +189,7 @@ + > Select Yes No @@ -198,7 +198,7 @@ + > Select Yes No @@ -239,7 +239,7 @@
+ > Select Bank Transfer Paid in Cash @@ -320,14 +320,14 @@
+ OnlyNumber type="text" autocomplete="off" (change)="setValidationForNetSal($event.target.value)"> {{"₹"}} {{employmentForm.controls['gross_monthly_salary'].value | numberToWords}} Only Gross Monthly Salary Required + OnlyNumber type="text" autocomplete="off" > {{"₹"}} {{employmentForm.controls['net_monthly_salary'].value | numberToWords}} Only Net Monthly Salary Required Net Month Salary is greater than Gross monthly Salary diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/employment-info/employment-info.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/employment-info/employment-info.component.ts index fa5df03b3..9397fc849 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/employment-info/employment-info.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/employment-info/employment-info.component.ts @@ -236,7 +236,7 @@ export class EmploymentInfoComponent implements OnInit { } console.log(this.employmentForm.value) // && this.pd_all_details.pdmaster_details.curr_vendor_ans_fetch_status == '0' - if(this.pd_all_details.pdmaster_details.fk_pd_type == '2' && this.pd_all_details.pdmaster_details.hasOwnProperty('vendor_status') && this.pd_all_details.pdmaster_details.vendor_status == 'COMPLETED' && this.pd_all_details.pdmaster_details.curr_vendor_ans_fetch_status == '0') { + if(this.pd_all_details.pdmaster_details.fk_pd_type == '2' && this.pd_all_details.pdmaster_details.curr_vendor_ans_fetch_status == '0') { console.log(this.pd_all_details.pdmaster_details.vendor_status); this.getDataFromVendor() } @@ -286,19 +286,19 @@ export class EmploymentInfoComponent implements OnInit { how_long_month: ['',Validators.compose([Validators.max(12)])], total_business_experience: [''], total_business_previous_experience: [''], - was_met: [this.pd_cus_segment == 'SAL-CHQ' ? 'no' : '', Validators.compose([Validators.required])], - name_person_met: [''], - designation_person_met: [''], + was_met: [this.pd_cus_segment == 'SAL-CHQ' ? 'no' : '', this.fk_pd_type != '2' && this.fk_pd_type != '3' ? Validators.compose([Validators.required]) : ''], + name_person_met: ['',this.fk_pd_type != '2' && this.fk_pd_type != '3' ? Validators.compose([Validators.required]) : ''], + designation_person_met: ['',this.fk_pd_type != '2' && this.fk_pd_type != '3' ? Validators.compose([Validators.required]) : ''], others_person_met: [''], - confirm_salary: [this.pd_cus_segment == 'SAL-CHQ' ? 'no' : '', Validators.compose([Validators.required])], + confirm_salary: [this.pd_cus_segment == 'SAL-CHQ' ? 'no' : '', this.fk_pd_type != '2' && this.fk_pd_type != '3' ? Validators.compose([Validators.required]) : ''], sal_amount_was_not_confirmed: [''], confirm_salary_amount: [''], - attendance_seen: [this.pd_cus_segment == 'SAL-CHQ' ? 'no' : '', Validators.compose([Validators.required])], - sal_reg_seen: [this.pd_cus_segment == 'SAL-CHQ' ? 'no' : '', Validators.compose([Validators.required])], - from_date_the_salary_is_rcv: ['',Validators.compose([Validators.max(31), Validators.min(0)])], - to_date_the_salary_is_rcv: ['',Validators.compose([Validators.max(31), Validators.min(0)])], - gross_monthly_salary: ['', Validators.compose([Validators.required])], - net_monthly_salary: ['', Validators.compose([Validators.required])], + attendance_seen: [this.pd_cus_segment == 'SAL-CHQ' ? 'no' : '', this.fk_pd_type != '2' && this.fk_pd_type != '3' ? Validators.compose([Validators.required]) : ''], + sal_reg_seen: [this.pd_cus_segment == 'SAL-CHQ' ? 'no' : '',this.fk_pd_type != '2' && this.fk_pd_type != '3' ? Validators.compose([Validators.required]) : ''], + from_date_the_salary_is_rcv: ['',this.fk_pd_type != '2' && this.fk_pd_type != '3' ? Validators.compose([Validators.max(31), Validators.min(0)]) : ''], + to_date_the_salary_is_rcv: ['',this.fk_pd_type != '2' && this.fk_pd_type != '3' ? Validators.compose([Validators.max(31), Validators.min(0)]): ''], + gross_monthly_salary: ['', ,this.fk_pd_type != '2' && this.fk_pd_type != '3' ? Validators.compose([Validators.required]) : ''], + net_monthly_salary: ['', ,this.fk_pd_type != '2' && this.fk_pd_type != '3' ? Validators.compose([Validators.required]) : ''], amount_paid_in_cash: [''], amount_paid_through_bank: [''], mode_of_getting_salary:[''], @@ -359,6 +359,15 @@ export class EmploymentInfoComponent implements OnInit { } else{ this.employmentForm.controls['was_met'].setValue('yes') + if(records.employer_details.hasOwnProperty('sal_amount_was_not_confirmed')&& records.employer_details.sal_amount_was_not_confirmed.length > 0) { + console.log("others check",records.employer_details.sal_amount_was_not_confirmed.filter(v=>v.includes('Others')).length > 0) + if(records.employer_details.sal_amount_was_not_confirmed.filter(v=>v.includes('Others')).length > 0 && records.employer_details.hasOwnProperty('sal_amount_was_not_confirmed_others')&& records.employer_details.sal_amount_was_not_confirmed_others) { + let otherIndex = records.employer_details.sal_amount_was_not_confirmed.findIndex(v=>v.includes('Others')) + if(otherIndex != -1) { + records.employer_details.sal_amount_was_not_confirmed[otherIndex] = records.employer_details.sal_amount_was_not_confirmed_others + } + } + } } let all_fetch = {...records.docs_sighted, ...records.employer_details} console.log(records,all_fetch); @@ -513,7 +522,7 @@ export class EmploymentInfoComponent implements OnInit { } } - else if(this.pd_cus_segment == 'SAL-CHQ'){ + else if(this.fk_pd_type == '2'){ this.employmentForm.controls.was_met.clearValidators(); this.employmentForm.controls.was_met.updateValueAndValidity(); diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/family-details/family-details.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/family-details/family-details.component.html index aac3b1ac1..65394f2ec 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/family-details/family-details.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/family-details/family-details.component.html @@ -163,9 +163,14 @@ + + + Select + *ngFor="let relation of filteredRelationShipList | async"> {{relation.name}} diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/family-details/family-details.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/family-details/family-details.component.ts index e8902ae60..a22f60f95 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/family-details/family-details.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/family-details/family-details.component.ts @@ -12,7 +12,7 @@ import { ActivatedRoute, Router } from "@angular/router"; import { PdTrigerService } from '../../../../../pd-service/pd-triger.service'; import { ImageCropComponent } from '../dialogue/image-crop/image-crop.component'; import { takeUntil } from 'rxjs/operators'; -import { Subject } from 'rxjs'; +import { Subject, ReplaySubject } from 'rxjs'; @Component({ @@ -71,6 +71,8 @@ export class FamilyDetailsComponent implements OnInit { addressList: any = []; prod_catagory: any; + public relationFilterCtrl: FormControl = new FormControl(); + public filteredRelationShipList: ReplaySubject = new ReplaySubject(1); /** constructor Of the class */ constructor(notifier: NotifierService, private fb: FormBuilder, private route: ActivatedRoute, private router: Router, @@ -185,6 +187,7 @@ export class FamilyDetailsComponent implements OnInit { }); //this.retriveFile(); + this.filterList(); } pdf(fileURL){ window.open(fileURL); @@ -536,6 +539,7 @@ export class FamilyDetailsComponent implements OnInit { if (data.status == 200) { if (type == 1) { this.relationData = data.records.filter(item => item.isactive == 1); + this.filteredRelationShipList.next(this.relationData.slice()) } else if (type == 2) { this.occupationData = data.records.filter(item => item.isactive == 1); @@ -866,6 +870,28 @@ export class FamilyDetailsComponent implements OnInit { } }) } - + filterList() { + + this.relationFilterCtrl.valueChanges.pipe().subscribe(()=>{ + this.applyFilter(this.relationFilterCtrl.value,this.filteredRelationShipList,this.relationData,'name') + }) + } + applyFilter(filtered_text,filter_list,raw_list,obj_name) { + if (!raw_list) { + return; + } + // get the search keyword + let search = filtered_text; + if (!search) { + filter_list.next(raw_list.slice()); + return; + } else { + search = search.toLowerCase(); + } + // filter the banks + filter_list.next( + raw_list.filter(bank => bank[obj_name].toLowerCase().indexOf(search) > -1) + ); + } } \ No newline at end of file diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/final-remarks/final-remarks.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/final-remarks/final-remarks.component.html index b29bb24b3..ec5f257ef 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/final-remarks/final-remarks.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/final-remarks/final-remarks.component.html @@ -137,7 +137,7 @@
-
+
Any additional visit (Godown /multiple rental properties)  
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/final-remarks/final-remarks.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/final-remarks/final-remarks.component.ts index 58e775de5..42274b528 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/final-remarks/final-remarks.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/final-remarks/final-remarks.component.ts @@ -298,7 +298,7 @@ export class FinalRemarksComponent implements OnInit { this.noRecordsFound = true; } - if(this.pd_all_details.pdmaster_details.fk_pd_type == '2' && this.pd_all_details.pdmaster_details.hasOwnProperty('vendor_status') && this.pd_all_details.pdmaster_details.vendor_status == 'COMPLETED' && this.pd_all_details.pdmaster_details.curr_vendor_ans_fetch_status == '0') { + if(this.pd_all_details.pdmaster_details.fk_pd_type == '2' && this.pd_all_details.pdmaster_details.curr_vendor_ans_fetch_status == '0') { if((this.lender_short_name == 'CLIX' || this.lender_short_name == 'MWISE' || this.prod_catagory == 'LAEP')) { console.log(this.pd_all_details.pdmaster_details.vendor_status); this.getDataFromVendor() diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/general-info/general-info.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/general-info/general-info.component.ts index c8ff81e58..f1d8bc5a1 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/general-info/general-info.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/general-info/general-info.component.ts @@ -415,7 +415,7 @@ export class GeneralInfoComponent implements OnInit { } } - if(this.pd_all_details.pdmaster_details.fk_pd_type == '2' && this.pd_all_details.pdmaster_details.hasOwnProperty('vendor_status') && this.pd_all_details.pdmaster_details.vendor_status == 'COMPLETED' && this.pd_all_details.pdmaster_details.curr_vendor_ans_fetch_status == '0') { + if(this.pd_all_details.pdmaster_details.fk_pd_type == '2' && this.pd_all_details.pdmaster_details.curr_vendor_ans_fetch_status == '0') { console.log(this.pd_all_details.pdmaster_details.vendor_status); this.getDataFromVendor() } diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/loan-details/loan-details.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/loan-details/loan-details.component.ts index b283cfa79..4072b5011 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/loan-details/loan-details.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/loan-details/loan-details.component.ts @@ -900,10 +900,11 @@ export class LoanDetailsComponent implements OnInit { // get end user final group data let dataEnd_user_data = []; - + if(this.loanDetailsForm.controls['end_use'].value.length > 0) { this.loanDetailsForm.controls['end_use'].value.forEach(element => { dataEnd_user_data.push({ end_use: element }) }); + } records.end_use_group = dataEnd_user_data; diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/neighbour-hood/neighbour-hood.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/neighbour-hood/neighbour-hood.component.ts index 76b708c5c..52d7b09f2 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/neighbour-hood/neighbour-hood.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/neighbour-hood/neighbour-hood.component.ts @@ -181,7 +181,7 @@ pdf(fileURL){ neighbourhoodControl.push(this.createNeighbourhood(this.default_neighbourhood_details)); referencecheckControl.push(this.createReerenceCheck(this.default_reference_details)); } - if(this.data.pdmaster_details.fk_pd_type == '2' && this.data.pdmaster_details.hasOwnProperty('vendor_status') && this.data.pdmaster_details.vendor_status == 'COMPLETED' && this.data.pdmaster_details.curr_vendor_ans_fetch_status == '0') { + if(this.data.pdmaster_details.fk_pd_type == '2' && this.data.pdmaster_details.curr_vendor_ans_fetch_status == '0') { console.log(this.data.pdmaster_details.vendor_status); this.getDataFromVendor() } diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/queries-docs/queries-docs.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/queries-docs/queries-docs.component.html index ee040aa05..2364668d2 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/queries-docs/queries-docs.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/queries-docs/queries-docs.component.html @@ -10,11 +10,12 @@
+
-
+
@@ -123,12 +124,19 @@ - -
+ +
+ + Remarks + + +
+
+ \ No newline at end of file diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/queries-docs/queries-docs.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/queries-docs/queries-docs.component.ts index 17f5499e9..7ec203a2a 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/queries-docs/queries-docs.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/queries-docs/queries-docs.component.ts @@ -87,6 +87,7 @@ export class QueriesDocsComponent implements OnInit { pdid:[this.pdid], fk_createdby:[this.awsService.getlocale()], link:[''], + common_remarks:[''], addtional_requirements:this.fb.array([this.createview()]) }) this.getFullPD(); @@ -199,7 +200,7 @@ export class QueriesDocsComponent implements OnInit { this.docsCollectedForm.patchValue(retrieved_data) } - if(this.pd_all_details.pdmaster_details.fk_pd_type == '2' && this.pd_all_details.pdmaster_details.hasOwnProperty('vendor_status') && this.pd_all_details.pdmaster_details.vendor_status == 'COMPLETED' && this.pd_all_details.pdmaster_details.curr_vendor_ans_fetch_status == '0') { + if(this.pd_all_details.pdmaster_details.fk_pd_type == '2' && this.pd_all_details.pdmaster_details.curr_vendor_ans_fetch_status == '0') { console.log(this.pd_all_details.pdmaster_details.vendor_status); setTimeout(()=>{ this.getDataFromVendor() diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/stock/stock.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/stock/stock.component.ts index 9925dbd43..fc78a3443 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/stock/stock.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/stock/stock.component.ts @@ -352,7 +352,7 @@ export class StockComponent implements OnInit { this.noRecordsFound = true; } } - if(this.pd_all_details.pdmaster_details.fk_pd_type == '2' && this.pd_all_details.pdmaster_details.hasOwnProperty('vendor_status') && this.pd_all_details.pdmaster_details.vendor_status == 'COMPLETED' && this.pd_all_details.pdmaster_details.curr_vendor_ans_fetch_status == '0') { + if(this.pd_all_details.pdmaster_details.fk_pd_type == '2' && this.pd_all_details.pdmaster_details.curr_vendor_ans_fetch_status == '0') { console.log(this.pd_all_details.pdmaster_details.vendor_status); this.getDataFromVendor() } diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.ts index 82571a7f6..a5992384e 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.ts @@ -204,7 +204,7 @@ export class ViewPdComponent implements OnInit, OnDestroy { this.enableStartPD = false; } this.existPDs=data.records.exist_pd_details - if(this.pdMasterData[0].fk_pd_type == '2') { + if(this.pdMasterData[0].fk_pd_type == '2' || this.pdMasterData[0].fk_pd_type == '3') { if(data.records.vendor_form_status && data.records.vendor_form_status.length > 0) { this.vendor_form_status_arr = JSON.stringify(data.records.vendor_form_status) localStorage.setItem("vendorFormStatus_arr",this.vendor_form_status_arr) diff --git a/ng6-seed/src/app/video-chat/video-player/video-player.component.html b/ng6-seed/src/app/video-chat/video-player/video-player.component.html index 8189046a0..25678da26 100755 --- a/ng6-seed/src/app/video-chat/video-player/video-player.component.html +++ b/ng6-seed/src/app/video-chat/video-player/video-player.component.html @@ -27,7 +27,7 @@
-
+

{{item.video_name}}

{{item.date}}

diff --git a/ng6-seed/src/app/video-chat/video-player/video-player.component.scss b/ng6-seed/src/app/video-chat/video-player/video-player.component.scss index d72f8f297..896a27691 100755 --- a/ng6-seed/src/app/video-chat/video-player/video-player.component.scss +++ b/ng6-seed/src/app/video-chat/video-player/video-player.component.scss @@ -1,6 +1,7 @@ ::ng-deep { .video-player > mat-dialog-container { background: black; padding: 0; + overflow-y: scroll !important; } } .mat-raised-button{