pd trigger : ps
This commit is contained in:
parent
9875e35642
commit
3a17d249fe
@ -281,13 +281,13 @@
|
|||||||
|
|
||||||
<mat-card>
|
<mat-card>
|
||||||
<mat-card-header>
|
<mat-card-header>
|
||||||
<mat-card-title>Additional Requirements</mat-card-title>
|
<mat-card-title>Credit Manager’s Specific Queries</mat-card-title>
|
||||||
</mat-card-header>
|
</mat-card-header>
|
||||||
<mat-card-content formArrayName="addtional_requirements" *ngFor="let requirements of pdRequirements.controls; let i = index;">
|
<mat-card-content formArrayName="addtional_requirements" *ngFor="let requirements of pdRequirements.controls; let i = index;">
|
||||||
<mat-card>
|
<mat-card>
|
||||||
<mat-card-content [formGroupName]="i">
|
<mat-card-content [formGroupName]="i">
|
||||||
<mat-form-field style="width: 90%;">
|
<mat-form-field style="width: 90%;">
|
||||||
<input matInput autocomplete="off" placeholder="Requirement" formControlName="add_requirement">
|
<input matInput autocomplete="off" placeholder="Queries" formControlName="add_requirement">
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<button mat-raised-button mat-icon-button matTooltip="Delete" matTooltipPosition="above" (click)="removeRequirements(i)" type="button"><mat-icon>delete</mat-icon></button>
|
<button mat-raised-button mat-icon-button matTooltip="Delete" matTooltipPosition="above" (click)="removeRequirements(i)" type="button"><mat-icon>delete</mat-icon></button>
|
||||||
@ -297,11 +297,35 @@
|
|||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
<mat-card-actions align="end">
|
<mat-card-actions align="end">
|
||||||
<button type="button" mat-raised-button mat-icon-button (click)="addRequiremnts()"
|
<button type="button" mat-raised-button mat-icon-button (click)="addRequiremnts()"
|
||||||
matTooltip="Add More Additional Requirements" matTooltipPosition="above" class="mr-1 mb-1 hover-icon" color="primary" type="button">
|
matTooltip="Add More Credit Manager’s Specific Queries" matTooltipPosition="above" class="mr-1 mb-1 hover-icon" color="primary" type="button">
|
||||||
<mat-icon>add</mat-icon>
|
<mat-icon>add</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
</mat-card-actions>
|
</mat-card-actions>
|
||||||
</mat-card>
|
</mat-card>
|
||||||
|
|
||||||
|
<mat-card>
|
||||||
|
<mat-card-header>
|
||||||
|
<mat-card-title>Documents to be collected</mat-card-title>
|
||||||
|
</mat-card-header>
|
||||||
|
<mat-card-content formArrayName="docs_to_be_collected" *ngFor="let Documentstobecollected of pdDocumentstobecollected.controls; let i = index;">
|
||||||
|
<mat-card>
|
||||||
|
<mat-card-content [formGroupName]="i">
|
||||||
|
<mat-form-field style="width: 90%;">
|
||||||
|
<input matInput autocomplete="off" placeholder="Documents to be collected" formControlName="doc_name">
|
||||||
|
</mat-form-field>
|
||||||
|
|
||||||
|
<button mat-raised-button mat-icon-button matTooltip="Delete" matTooltipPosition="above" (click)="removeDocumentstobecollected(i)" type="button"><mat-icon>delete</mat-icon></button>
|
||||||
|
</mat-card-content>
|
||||||
|
|
||||||
|
</mat-card>
|
||||||
|
</mat-card-content>
|
||||||
|
<mat-card-actions align="end">
|
||||||
|
<button type="button" mat-raised-button mat-icon-button (click)="addDocumentstobecollected()"
|
||||||
|
matTooltip="Add More Documents to be collected" matTooltipPosition="above" class="mr-1 mb-1 hover-icon" color="primary" type="button">
|
||||||
|
<mat-icon>add</mat-icon>
|
||||||
|
</button>
|
||||||
|
</mat-card-actions>
|
||||||
|
</mat-card>
|
||||||
|
|
||||||
<mat-card formArrayName="documents">
|
<mat-card formArrayName="documents">
|
||||||
<mat-card-header>
|
<mat-card-header>
|
||||||
|
|||||||
@ -29,6 +29,7 @@ export class AddPdComponent implements OnInit, OnDestroy {
|
|||||||
addresses: FormArray;
|
addresses: FormArray;
|
||||||
coapplicants: FormArray;
|
coapplicants: FormArray;
|
||||||
addtional_requirements: FormArray;
|
addtional_requirements: FormArray;
|
||||||
|
docs_to_be_collected: FormArray;
|
||||||
|
|
||||||
productList: any = [];
|
productList: any = [];
|
||||||
subProductList: any;
|
subProductList: any;
|
||||||
@ -106,7 +107,8 @@ export class AddPdComponent implements OnInit, OnDestroy {
|
|||||||
coapplicants: this._fb.array([]),
|
coapplicants: this._fb.array([]),
|
||||||
addresses: this._fb.array([this.createAddresses()]),
|
addresses: this._fb.array([this.createAddresses()]),
|
||||||
documents: this._fb.array([]),
|
documents: this._fb.array([]),
|
||||||
addtional_requirements: this._fb.array([this.createRequiremnt()])
|
addtional_requirements: this._fb.array([this.createRequiremnt()]),
|
||||||
|
docs_to_be_collected: this._fb.array([this.createDocumentstobecollected()])
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -383,6 +385,25 @@ export class AddPdComponent implements OnInit, OnDestroy {
|
|||||||
requirement_control.removeAt(index);
|
requirement_control.removeAt(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get pdDocumentstobecollected() { return this._PDtriggerForm.get('docs_to_be_collected') as FormArray; }
|
||||||
|
createDocumentstobecollected(): FormGroup {
|
||||||
|
return this._fb.group({
|
||||||
|
pd_doc_to_be_collect_id: [null],
|
||||||
|
doc_name: [null],
|
||||||
|
isactive: [1],
|
||||||
|
});
|
||||||
|
};
|
||||||
|
addDocumentstobecollected() {
|
||||||
|
this.docs_to_be_collected = this._PDtriggerForm.get('docs_to_be_collected') as FormArray;
|
||||||
|
this.docs_to_be_collected.push(this.createDocumentstobecollected());
|
||||||
|
}
|
||||||
|
|
||||||
|
removeDocumentstobecollected(index: number) {
|
||||||
|
const documentstobecollected_control = <FormArray>this._PDtriggerForm.controls['docs_to_be_collected'];
|
||||||
|
documentstobecollected_control.removeAt(index);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public fileSelectionEvent(fileInput: any, oldIndex: number) {
|
public fileSelectionEvent(fileInput: any, oldIndex: number) {
|
||||||
|
|
||||||
|
|
||||||
@ -686,6 +707,10 @@ export class AddPdComponent implements OnInit, OnDestroy {
|
|||||||
pd_form.append("addtional_requirements", JSON.stringify(formValue.addtional_requirements))
|
pd_form.append("addtional_requirements", JSON.stringify(formValue.addtional_requirements))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (formValue.docs_to_be_collected.length > 0) {
|
||||||
|
pd_form.append("docs_to_be_collected", JSON.stringify(formValue.docs_to_be_collected))
|
||||||
|
}
|
||||||
|
|
||||||
this._pd.addPdDetails(pd_form).subscribe(result => {
|
this._pd.addPdDetails(pd_form).subscribe(result => {
|
||||||
if (result.status == 200) {
|
if (result.status == 200) {
|
||||||
this.disableAfterSubmit = false;
|
this.disableAfterSubmit = false;
|
||||||
|
|||||||
@ -0,0 +1,38 @@
|
|||||||
|
<form [formGroup]="_EditPDCollectedDocsForm" novalidate>
|
||||||
|
|
||||||
|
<h2 mat-dialog-title class="paragraph_change">
|
||||||
|
<div fxFlex="70" align="left" style="padding: 10px !important;">
|
||||||
|
{{pageTitle}}
|
||||||
|
</div>
|
||||||
|
<div fxFlex="30" align="end" style="padding: 10px !important;">
|
||||||
|
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Close" matTooltipPosition="right" mat-dialog-close><mat-icon>close</mat-icon></button>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</h2>
|
||||||
|
|
||||||
|
<mat-dialog-content>
|
||||||
|
|
||||||
|
<mat-card formArrayName="docs_to_be_collected" *ngFor="let collecteddocs of pdCollectedDocs.controls; let i = index;">
|
||||||
|
<mat-card-content [formGroupName]="i">
|
||||||
|
<mat-form-field style="width: 90%;">
|
||||||
|
<input matInput placeholder="Documents to be collected" formControlName="doc_name">
|
||||||
|
</mat-form-field>
|
||||||
|
|
||||||
|
<!-- <button mat-raised-button mat-icon-button color="primary" matTooltip="Delete" matTooltipPosition="above" (click)="removeRequirements(i)" type="button"><mat-icon>delete</mat-icon></button> -->
|
||||||
|
</mat-card-content>
|
||||||
|
|
||||||
|
</mat-card>
|
||||||
|
|
||||||
|
|
||||||
|
</mat-dialog-content>
|
||||||
|
<mat-dialog-actions align="end">
|
||||||
|
|
||||||
|
<button type="button" mat-raised-button mat-icon-button (click)="addPDCollectedDocs(const_collected_docs)" matTooltip="Add More Additional Requirements" matTooltipPosition="above" class="mr-1 mb-1 hover-icon" color="primary" type="button"> <mat-icon>add</mat-icon> </button>
|
||||||
|
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Save" matTooltipPosition="above" (click)="updatePDCollectedDocs(_EditPDCollectedDocsForm.value)"><mat-icon>save</mat-icon></button>
|
||||||
|
</mat-dialog-actions>
|
||||||
|
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<!-- <notifier-container></notifier-container> -->
|
||||||
|
|
||||||
|
|
||||||
@ -0,0 +1,7 @@
|
|||||||
|
mat-form-field {
|
||||||
|
margin: 0 2%;
|
||||||
|
}
|
||||||
|
.paragraph_change {
|
||||||
|
color: #fff !important;
|
||||||
|
background-color: #e00201 !important;
|
||||||
|
}
|
||||||
@ -0,0 +1,25 @@
|
|||||||
|
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
|
import { PdCollectedDocsComponent } from './pd-collected-docs.component';
|
||||||
|
|
||||||
|
describe('PdCollectedDocsComponent', () => {
|
||||||
|
let component: PdCollectedDocsComponent;
|
||||||
|
let fixture: ComponentFixture<PdCollectedDocsComponent>;
|
||||||
|
|
||||||
|
beforeEach(async(() => {
|
||||||
|
TestBed.configureTestingModule({
|
||||||
|
declarations: [ PdCollectedDocsComponent ]
|
||||||
|
})
|
||||||
|
.compileComponents();
|
||||||
|
}));
|
||||||
|
|
||||||
|
beforeEach(() => {
|
||||||
|
fixture = TestBed.createComponent(PdCollectedDocsComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
||||||
@ -0,0 +1,110 @@
|
|||||||
|
import { Component, OnInit,ViewEncapsulation, Inject } from '@angular/core';
|
||||||
|
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material';
|
||||||
|
import { FormBuilder, FormGroup, Validators, FormControl, FormArray } from '@angular/forms';
|
||||||
|
import { CustomValidators } from 'ng2-validation';
|
||||||
|
import { NotifierService } from 'angular-notifier';
|
||||||
|
import { PdTrigerService } from '../../../pd-service/pd-triger.service';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-pd-collected-docs',
|
||||||
|
templateUrl: './pd-collected-docs.component.html',
|
||||||
|
styleUrls: ['./pd-collected-docs.component.scss']
|
||||||
|
})
|
||||||
|
|
||||||
|
export class PdCollectedDocsComponent implements OnInit {
|
||||||
|
public pageTitle: string = "Documents to be Collected";
|
||||||
|
public _EditPDCollectedDocsForm:FormGroup;
|
||||||
|
public notifier: NotifierService;
|
||||||
|
docs_to_be_collected: FormArray;
|
||||||
|
public const_collected_docs : any = {
|
||||||
|
"pd_doc_to_be_collect_id": '',
|
||||||
|
"doc_name":'',
|
||||||
|
"isactive": 1,
|
||||||
|
};
|
||||||
|
constructor(private _fb: FormBuilder,
|
||||||
|
private _pd: PdTrigerService, notifier: NotifierService,private dialogRef: MatDialogRef<PdCollectedDocsComponent>,
|
||||||
|
@Inject(MAT_DIALOG_DATA) public data: any) {
|
||||||
|
this.notifier=notifier
|
||||||
|
}
|
||||||
|
|
||||||
|
ngOnInit() {
|
||||||
|
this.loadForm();
|
||||||
|
|
||||||
|
}
|
||||||
|
loadForm() {
|
||||||
|
this._EditPDCollectedDocsForm = this._fb.group({
|
||||||
|
pdid: [this.data.pdID],
|
||||||
|
docs_to_be_collected: this._fb.array([])
|
||||||
|
});
|
||||||
|
// bind dynamic co applicant data
|
||||||
|
if(this.data.records.length > 0){
|
||||||
|
this.data.records.forEach((itemElement, itemIndex) => {
|
||||||
|
this.addPDCollectedDocs(itemElement)
|
||||||
|
});
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
this.addPDCollectedDocs(this.const_collected_docs)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
get pdCollectedDocs() { return this._EditPDCollectedDocsForm.get('docs_to_be_collected') as FormArray; }
|
||||||
|
createPDCollectedDocs(receive:any): FormGroup {
|
||||||
|
return this._fb.group({
|
||||||
|
pd_doc_to_be_collect_id:[receive.pd_doc_to_be_collect_id],
|
||||||
|
doc_name: [receive.doc_name, Validators.compose([Validators.required])],
|
||||||
|
isactive: [receive.isactive],
|
||||||
|
});
|
||||||
|
};
|
||||||
|
addPDCollectedDocs(getData:any) {
|
||||||
|
if(this._EditPDCollectedDocsForm.valid){
|
||||||
|
this.docs_to_be_collected = this._EditPDCollectedDocsForm.get('docs_to_be_collected') as FormArray;
|
||||||
|
this.docs_to_be_collected.push(this.createPDCollectedDocs(getData));
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
this.validateAllFormFields(this._EditPDCollectedDocsForm);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// removeRequirements(index: number) {
|
||||||
|
// const requirement_control = <FormArray>this._EditPDRequirementForm.controls['additional_requirements'];
|
||||||
|
// requirement_control.removeAt(index);
|
||||||
|
// }
|
||||||
|
|
||||||
|
updatePDCollectedDocs(formValue: any) {
|
||||||
|
if(this._EditPDCollectedDocsForm.invalid) {
|
||||||
|
this.validateAllFormFields(this._EditPDCollectedDocsForm)
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
let records:any=formValue;
|
||||||
|
|
||||||
|
this._pd.saveAdditionalRequirements(records,"savePDDocsToBeCollected").subscribe(result => {
|
||||||
|
if (result.status == 200) {
|
||||||
|
this.notifier.notify('success', 'Documents to be Collected Updated.');
|
||||||
|
this.dialogRef.close();
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
this.notifier.notify('warning', 'Something Went Wrong Try Again.!');
|
||||||
|
}
|
||||||
|
}, error => {
|
||||||
|
this.notifier.notify('error', 'Something Went Wrong Try Again.! \t\"' + (error.error_type == 2 ? error.error_status + ' ( ' + error.error_text + ' ) ' : ' ( ' + error.error_text + ' ) ') +'\" Error Occur.!');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// validate all form group and form array fields
|
||||||
|
validateAllFormFields(formGroup: any) {
|
||||||
|
Object.keys(formGroup.controls).forEach(field => {
|
||||||
|
const control = formGroup.get(field);
|
||||||
|
|
||||||
|
if (control instanceof FormControl) {
|
||||||
|
control.markAsTouched({ onlySelf: true });
|
||||||
|
} else if (control instanceof FormGroup) {
|
||||||
|
this.validateAllFormFields(control);
|
||||||
|
} else if (control instanceof FormArray) {
|
||||||
|
this.validateAllFormFields(control);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -15,7 +15,7 @@
|
|||||||
<mat-card formArrayName="addtional_requirements" *ngFor="let requirements of pdRequirements.controls; let i = index;">
|
<mat-card formArrayName="addtional_requirements" *ngFor="let requirements of pdRequirements.controls; let i = index;">
|
||||||
<mat-card-content [formGroupName]="i">
|
<mat-card-content [formGroupName]="i">
|
||||||
<mat-form-field style="width: 90%;">
|
<mat-form-field style="width: 90%;">
|
||||||
<input matInput placeholder="Requirement" formControlName="add_requirement">
|
<input matInput placeholder="Queries" formControlName="add_requirement">
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<!-- <button mat-raised-button mat-icon-button color="primary" matTooltip="Delete" matTooltipPosition="above" (click)="removeRequirements(i)" type="button"><mat-icon>delete</mat-icon></button> -->
|
<!-- <button mat-raised-button mat-icon-button color="primary" matTooltip="Delete" matTooltipPosition="above" (click)="removeRequirements(i)" type="button"><mat-icon>delete</mat-icon></button> -->
|
||||||
|
|||||||
@ -79,7 +79,7 @@ export class PdRequirementComponent implements OnInit {
|
|||||||
else {
|
else {
|
||||||
let records:any=formValue;
|
let records:any=formValue;
|
||||||
|
|
||||||
this._pd.saveAdditionalRequirements(records).subscribe(result => {
|
this._pd.saveAdditionalRequirements(records,"savePDAdditionalRequiremets").subscribe(result => {
|
||||||
if (result.status == 200) {
|
if (result.status == 200) {
|
||||||
this.notifier.notify('success', 'Additional Requirements Updated.');
|
this.notifier.notify('success', 'Additional Requirements Updated.');
|
||||||
this.dialogRef.close();
|
this.dialogRef.close();
|
||||||
|
|||||||
@ -26,12 +26,25 @@
|
|||||||
<div style="width:100%">
|
<div style="width:100%">
|
||||||
<mat-form-field style="width:35%">
|
<mat-form-field style="width:35%">
|
||||||
<mat-select placeholder="Financial Statements Available ?" formControlName="is_financial_statements"
|
<mat-select placeholder="Financial Statements Available ?" formControlName="is_financial_statements"
|
||||||
(selectionChange)="selectedStatement($event.value)">
|
(selectionChange)="selectedStatement1($event.value)">
|
||||||
|
|
||||||
<mat-option value="yes">Yes</mat-option>
|
<mat-option value="yes">Yes</mat-option>
|
||||||
<mat-option value="no">No</mat-option>
|
<mat-option value="no">No</mat-option>
|
||||||
</mat-select>
|
</mat-select>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
|
<div *ngIf="isDisplay1">
|
||||||
|
<div style="width:100%">
|
||||||
|
<mat-form-field style="width:35%">
|
||||||
|
<mat-select placeholder="Latest year’s financials as per applicant met ?" formControlName="latest_year_financials_as_per_applicant_met"
|
||||||
|
(selectionChange)="selectedStatement($event.value)">
|
||||||
|
<mat-option value="yes">Yes</mat-option>
|
||||||
|
<mat-option value="no">No</mat-option>
|
||||||
|
</mat-select>
|
||||||
|
</mat-form-field>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div *ngIf="isDisplay">
|
<div *ngIf="isDisplay">
|
||||||
<mat-form-field style="width:37%">
|
<mat-form-field style="width:37%">
|
||||||
<mat-label>Enter year from which financials provided</mat-label>
|
<mat-label>Enter year from which financials provided</mat-label>
|
||||||
@ -243,6 +256,7 @@
|
|||||||
<mat-option value="no">No</mat-option>
|
<mat-option value="no">No</mat-option>
|
||||||
</mat-select>
|
</mat-select>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<div formArrayName="estimated_value">
|
<div formArrayName="estimated_value">
|
||||||
<div *ngFor="let details of financialForm.controls.estimated_value['controls']; let i=index"
|
<div *ngFor="let details of financialForm.controls.estimated_value['controls']; let i=index"
|
||||||
[formGroupName]="i">
|
[formGroupName]="i">
|
||||||
|
|||||||
@ -64,7 +64,9 @@ export class FinancialInfoComponent implements OnInit {
|
|||||||
//isreadonly for edit(no of year Fields and Starting Years )
|
//isreadonly for edit(no of year Fields and Starting Years )
|
||||||
isReadOnly : boolean = false;
|
isReadOnly : boolean = false;
|
||||||
EditAble: boolean = true;
|
EditAble: boolean = true;
|
||||||
|
isDisplay1: boolean ;
|
||||||
isDisplay : boolean ;
|
isDisplay : boolean ;
|
||||||
|
|
||||||
|
|
||||||
// AV_netProfitAmtFrmInwords: any = [];
|
// AV_netProfitAmtFrmInwords: any = [];
|
||||||
// AV_netProfitAmtToInwords: any = [];
|
// AV_netProfitAmtToInwords: any = [];
|
||||||
@ -340,6 +342,7 @@ export class FinancialInfoComponent implements OnInit {
|
|||||||
fk_createdby: this.pdid,
|
fk_createdby: this.pdid,
|
||||||
financial_remarks: [''],
|
financial_remarks: [''],
|
||||||
is_financial_statements:[''],
|
is_financial_statements:[''],
|
||||||
|
latest_year_financials_as_per_applicant_met:[''],
|
||||||
is_financial_customer:[''],
|
is_financial_customer:[''],
|
||||||
financial_starting_year : ['',Validators.compose([Validators.minLength(4),Validators.maxLength(4)])],
|
financial_starting_year : ['',Validators.compose([Validators.minLength(4),Validators.maxLength(4)])],
|
||||||
financial_no_of_year : [''],
|
financial_no_of_year : [''],
|
||||||
@ -629,16 +632,47 @@ export class FinancialInfoComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
selectedStatement(e :any):void{
|
selectedStatement1(e :any):void{
|
||||||
|
|
||||||
if(e == 'yes'){
|
if(e == 'yes'){
|
||||||
|
|
||||||
this.isDisplay = true;
|
this.isDisplay1 = true;
|
||||||
this.financialForm.controls['is_financial_customer'].setValue('');
|
this.financialForm.controls['is_financial_customer'].setValue('');
|
||||||
|
|
||||||
}
|
}
|
||||||
else if(e == 'no'){
|
else if(e == 'no'){
|
||||||
|
|
||||||
|
this.isDisplay1 = false;
|
||||||
|
this.isDisplay = false;
|
||||||
|
this.selectedFinancialCustomer('no');
|
||||||
|
this.financialForm.controls['is_financial_customer'].setValue('no');
|
||||||
|
|
||||||
|
const statementControl = <FormArray>this.financialForm.controls['date_per_financial'];
|
||||||
|
|
||||||
|
while (statementControl.length !== 0) {
|
||||||
|
statementControl.removeAt(0);
|
||||||
|
}
|
||||||
|
this.financialForm.controls['latest_year_financials_as_per_applicant_met'].setValue('');
|
||||||
|
this.financialForm.controls['financial_starting_year'].setValue('');
|
||||||
|
this.financialForm.controls['financial_no_of_year'].setValue('');
|
||||||
|
|
||||||
|
// alert((new Date()).getFullYear());
|
||||||
|
// let year1 = (new Date()).getFullYear();
|
||||||
|
// let year2 = ((new Date()).getFullYear() + 1);
|
||||||
|
// let Year = year1 +'-'+ year2;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
selectedStatement(e :any):void{
|
||||||
|
|
||||||
|
if(e == 'no'){
|
||||||
|
this.isDisplay = true;
|
||||||
|
this.financialForm.controls['is_financial_customer'].setValue('');
|
||||||
|
}
|
||||||
|
else if(e == 'yes'){
|
||||||
|
|
||||||
this.isDisplay = false;
|
this.isDisplay = false;
|
||||||
this.selectedFinancialCustomer('no');
|
this.selectedFinancialCustomer('no');
|
||||||
this.financialForm.controls['is_financial_customer'].setValue('no');
|
this.financialForm.controls['is_financial_customer'].setValue('no');
|
||||||
|
|||||||
@ -297,7 +297,7 @@
|
|||||||
</ng-template>
|
</ng-template>
|
||||||
</mat-tab>
|
</mat-tab>
|
||||||
<mat-tab>
|
<mat-tab>
|
||||||
<ng-template mat-tab-label>Additional Requirements</ng-template>
|
<ng-template mat-tab-label>Queries</ng-template>
|
||||||
<!-- <div class="cardEdit" *ngIf="currentPDStatus==pdStatusCheck.DRAFT || currentPDStatus==pdStatusCheck.TRIGGERED || currentPDStatus==pdStatusCheck.ALLOCATED || currentPDStatus==pdStatusCheck.SCHEDULED">
|
<!-- <div class="cardEdit" *ngIf="currentPDStatus==pdStatusCheck.DRAFT || currentPDStatus==pdStatusCheck.TRIGGERED || currentPDStatus==pdStatusCheck.ALLOCATED || currentPDStatus==pdStatusCheck.SCHEDULED">
|
||||||
<button mat-raised-button mat-button-sm mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="editAdditionalRequirement(pdAdditionalReqData)"><mat-icon>edit</mat-icon></button>
|
<button mat-raised-button mat-button-sm mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="editAdditionalRequirement(pdAdditionalReqData)"><mat-icon>edit</mat-icon></button>
|
||||||
</div> -->
|
</div> -->
|
||||||
@ -306,7 +306,7 @@
|
|||||||
</mat-card-header> -->
|
</mat-card-header> -->
|
||||||
<mat-card-header>
|
<mat-card-header>
|
||||||
<div fxFlex="70" align="left" style="padding: 10px !important;">
|
<div fxFlex="70" align="left" style="padding: 10px !important;">
|
||||||
<mat-card-title>Additional Requirements</mat-card-title>
|
<mat-card-title>Credit Manager’s Specific Queries</mat-card-title>
|
||||||
</div>
|
</div>
|
||||||
<div fxFlex="30" align="end" style="padding: 10px !important;" *ngIf="roleAccessDetails.trigger && currentPDStatus==pdStatusCheck.DRAFT || currentPDStatus==pdStatusCheck.TRIGGERED || currentPDStatus==pdStatusCheck.ALLOCATED || currentPDStatus==pdStatusCheck.SCHEDULED">
|
<div fxFlex="30" align="end" style="padding: 10px !important;" *ngIf="roleAccessDetails.trigger && currentPDStatus==pdStatusCheck.DRAFT || currentPDStatus==pdStatusCheck.TRIGGERED || currentPDStatus==pdStatusCheck.ALLOCATED || currentPDStatus==pdStatusCheck.SCHEDULED">
|
||||||
<span *ngIf="userRoleID == 10 || userRoleID == 3"><button mat-raised-button mat-button-sm mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="editAdditionalRequirement(pdAdditionalReqData)"><mat-icon>edit</mat-icon></button></span>
|
<span *ngIf="userRoleID == 10 || userRoleID == 3"><button mat-raised-button mat-button-sm mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="editAdditionalRequirement(pdAdditionalReqData)"><mat-icon>edit</mat-icon></button></span>
|
||||||
@ -321,10 +321,33 @@
|
|||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
<ng-template #noRequirement>
|
<ng-template #noRequirement>
|
||||||
<mat-card-content>
|
<mat-card-content>
|
||||||
<p>No Additional Requirements</p>
|
<p>No Queries</p>
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
</mat-tab>
|
</mat-tab>
|
||||||
|
<mat-tab>
|
||||||
|
<ng-template mat-tab-label>Collected Documents</ng-template>
|
||||||
|
<mat-card-header>
|
||||||
|
<div fxFlex="70" align="left" style="padding: 10px !important;">
|
||||||
|
<mat-card-title>Documents to be collected</mat-card-title>
|
||||||
|
</div>
|
||||||
|
<div fxFlex="30" align="end" style="padding: 10px !important;" *ngIf="roleAccessDetails.trigger && currentPDStatus==pdStatusCheck.DRAFT || currentPDStatus==pdStatusCheck.TRIGGERED || currentPDStatus==pdStatusCheck.ALLOCATED || currentPDStatus==pdStatusCheck.SCHEDULED">
|
||||||
|
<span *ngIf="userRoleID == 10 || userRoleID == 3"><button mat-raised-button mat-button-sm mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="editCollectedDocument(pdCollectedDocument)"><mat-icon>edit</mat-icon></button></span>
|
||||||
|
</div>
|
||||||
|
</mat-card-header>
|
||||||
|
<mat-card-content *ngIf="pdCollectedDocument.length>0; else noCollectedDocument">
|
||||||
|
<mat-list *ngFor="let data of pdCollectedDocument">
|
||||||
|
<mat-list-item>
|
||||||
|
<p>{{data.doc_name}}</p>
|
||||||
|
</mat-list-item>
|
||||||
|
</mat-list>
|
||||||
|
</mat-card-content>
|
||||||
|
<ng-template #noCollectedDocument>
|
||||||
|
<mat-card-content>
|
||||||
|
<p>No Documents to be Collected</p>
|
||||||
|
</mat-card-content>
|
||||||
|
</ng-template>
|
||||||
|
</mat-tab>
|
||||||
<mat-tab>
|
<mat-tab>
|
||||||
<ng-template mat-tab-label>Documents</ng-template>
|
<ng-template mat-tab-label>Documents</ng-template>
|
||||||
<div *ngIf="pdDocumentsData.length>0; else nodocument">
|
<div *ngIf="pdDocumentsData.length>0; else nodocument">
|
||||||
|
|||||||
@ -13,6 +13,7 @@ import { SchedulePdComponent } from '../schedule-pd/schedule-pd.component';
|
|||||||
import { EditPdApplicantComponent } from '../edit-pd-applicant/edit-pd-applicant.component';
|
import { EditPdApplicantComponent } from '../edit-pd-applicant/edit-pd-applicant.component';
|
||||||
import { EditPdMasterComponent } from '../edit-pd-master/edit-pd-master.component';
|
import { EditPdMasterComponent } from '../edit-pd-master/edit-pd-master.component';
|
||||||
import { PdRequirementComponent } from '../pd-requirement/pd-requirement.component';
|
import { PdRequirementComponent } from '../pd-requirement/pd-requirement.component';
|
||||||
|
import { PdCollectedDocsComponent } from '../pd-collected-docs/pd-collected-docs.component';
|
||||||
import { PdStatusChangeDialogueComponent } from './../pd-status-change-dialogue/pd-status-change-dialogue.component';
|
import { PdStatusChangeDialogueComponent } from './../pd-status-change-dialogue/pd-status-change-dialogue.component';
|
||||||
import { InitiateAdditionalPdComponent } from './../initiate-additional-pd/initiate-additional-pd.component';
|
import { InitiateAdditionalPdComponent } from './../initiate-additional-pd/initiate-additional-pd.component';
|
||||||
|
|
||||||
@ -37,6 +38,7 @@ export class ViewPdComponent implements OnInit, OnDestroy {
|
|||||||
masterPdLogsData: any = [];
|
masterPdLogsData: any = [];
|
||||||
applicantPDLogsData: any = [];
|
applicantPDLogsData: any = [];
|
||||||
pdAdditionalReqData: any = [];
|
pdAdditionalReqData: any = [];
|
||||||
|
pdCollectedDocument: any = [];
|
||||||
FilteredFieldNames: any = [];
|
FilteredFieldNames: any = [];
|
||||||
localcount: any;
|
localcount: any;
|
||||||
localstring: any;
|
localstring: any;
|
||||||
@ -137,6 +139,8 @@ export class ViewPdComponent implements OnInit, OnDestroy {
|
|||||||
|
|
||||||
this.currentPDStatus = data.records.pd_master_details[0].pd_status;
|
this.currentPDStatus = data.records.pd_master_details[0].pd_status;
|
||||||
this.pdAdditionalReqData = data.records.pd_additional_requirements;
|
this.pdAdditionalReqData = data.records.pd_additional_requirements;
|
||||||
|
this.pdCollectedDocument = data.records.docs_to_be_collected;
|
||||||
|
|
||||||
// enable pd start time
|
// enable pd start time
|
||||||
if (data.records.pd_master_details[0].scheduled_on_for_validation) {
|
if (data.records.pd_master_details[0].scheduled_on_for_validation) {
|
||||||
let courrentDateTime: string = this.pipe.transform(new Date(), 'yyyy-MM-dd HH:mm');
|
let courrentDateTime: string = this.pipe.transform(new Date(), 'yyyy-MM-dd HH:mm');
|
||||||
@ -289,6 +293,24 @@ export class ViewPdComponent implements OnInit, OnDestroy {
|
|||||||
this.viewPdDetails(this.viewID,this.masterRandomString)
|
this.viewPdDetails(this.viewID,this.masterRandomString)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
// edit pd addtional requirements
|
||||||
|
editCollectedDocument(Data: any) {
|
||||||
|
let setPdDetails = {
|
||||||
|
"pdID": this.viewID,
|
||||||
|
"records": Data
|
||||||
|
}
|
||||||
|
const dialogRequirement = this.dialog.open(PdCollectedDocsComponent, {
|
||||||
|
data: setPdDetails,
|
||||||
|
position: { right: '0' },
|
||||||
|
width: '60%',
|
||||||
|
disableClose: true
|
||||||
|
});
|
||||||
|
dialogRequirement.afterClosed()
|
||||||
|
.subscribe(dataresult => {
|
||||||
|
// this.notifier.notify('success', 'Successfully allocated.!');
|
||||||
|
this.viewPdDetails(this.viewID,this.masterRandomString)
|
||||||
|
});
|
||||||
|
}
|
||||||
// pd allocation to
|
// pd allocation to
|
||||||
pdAllocationTo(pdData: any,childData: any) {
|
pdAllocationTo(pdData: any,childData: any) {
|
||||||
pdData.pd_id = childData.assigned_pd;
|
pdData.pd_id = childData.assigned_pd;
|
||||||
|
|||||||
@ -75,6 +75,7 @@ import { PdReportComponent, DialogChangeCurrentVenrsion } from './list-pd/pd-rep
|
|||||||
|
|
||||||
import { AllocationViewMoreComponent } from './list-pd/allocation-view-more/allocation-view-more.component';
|
import { AllocationViewMoreComponent } from './list-pd/allocation-view-more/allocation-view-more.component';
|
||||||
import { PdRequirementComponent } from './list-pd/pd-requirement/pd-requirement.component';
|
import { PdRequirementComponent } from './list-pd/pd-requirement/pd-requirement.component';
|
||||||
|
import { PdCollectedDocsComponent } from './list-pd/pd-collected-docs/pd-collected-docs.component';
|
||||||
import { GeneralInfoComponent } from './list-pd/start-pd/forms/general-info/general-info.component';
|
import { GeneralInfoComponent } from './list-pd/start-pd/forms/general-info/general-info.component';
|
||||||
import { ModelEditPdReportComponent } from './list-pd/pd-report/model-edit-pd-report/model-edit-pd-report.component';
|
import { ModelEditPdReportComponent } from './list-pd/pd-report/model-edit-pd-report/model-edit-pd-report.component';
|
||||||
import { OtherApplicantDetailsComponent } from './list-pd/start-pd/forms/dialogue/other-applicant-details/other-applicant-details.component';
|
import { OtherApplicantDetailsComponent } from './list-pd/start-pd/forms/dialogue/other-applicant-details/other-applicant-details.component';
|
||||||
@ -169,7 +170,7 @@ const pdCustomNotifierOptions: NotifierOptions = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [TelePdAllocationComponent, FinancialInfoComponent, BusinessInfoComponent, EmploymentInfoComponent, StockComponent, BankingDetailsComponent, ListPdComponent, FamilyDetailsComponent, AddressComponent, ManagePdComponent, MapPdViewComponent, AddPdComponent, ViewPdComponent, PdAllocationComponent, SmartPdAllocationComponent, SchedulePdComponent, EditPdApplicantComponent, EditPdMasterComponent, StartPdComponent, InprogressPdComponent, AllPdComponent, ScheduledPdComponent, CompletedPdComponent, QcCompletedPdComponent, ClientInfoComponent, CurrentLoanComponent, AssetsInfoComponent, LoanDetailsComponent, OtherIncomeComponent, SupplierInfoComponent, PersonalInfoComponent, LenderRepresentativeComponent, PdReportComponent, AssessedIncomeComponent, AllocationViewMoreComponent, PdRequirementComponent, GeneralInfoComponent, ModelEditPdReportComponent, OtherApplicantDetailsComponent, NeighbourHoodComponent, DialogChangeCurrentVenrsion, FinalRemarksComponent, BusinessOtherFamilyMemberComponent, QcReviewComponent, BusinessInfoGroupComponent, SearchRelationPipe, RupeeCurrencyFormatPipe, NumberToWordsPipe, DeleteRecordsCountPipe, BusinessAssetsInfoComponent, BusinessBankingDetailsComponent, SalesDetailsComponent, DailySalesDetailsComponent, SalesCalculationComponent, ManageSalesComponent, PurchaseDetailsComponent, BusinessExpenseDetailsComponent, HouseHoldDetailsComponent, OtherBusinessIncomeDetailsComponent, ManagePurchaseComponent, ManageBusinesExpenseComponent, ManageHouseHoldComponent, ManageOtherBusinessIncomeComponent, GrossProfitCalculationComponent, ManageDailySalesComponent, PdStatusChangeDialogueComponent, PdLocatedMapViewDirective, ViewLocationComponent, GetAnswerableFormsPipe, ConfirmAiDetailsComponent, RentalVerificationComponent, InitiateAdditionalPdComponent ,ManageDailyPurchaseComponent, DailyPurchaseDetailsComponent, ManageRentalVerificationComponent, FuturePlansAndBusinessEnvironmentComponent, ImageCropComponent,PurchaseCalculationComponent],
|
declarations: [TelePdAllocationComponent, FinancialInfoComponent, BusinessInfoComponent, EmploymentInfoComponent, StockComponent, BankingDetailsComponent, ListPdComponent, FamilyDetailsComponent, AddressComponent, ManagePdComponent, MapPdViewComponent, AddPdComponent, ViewPdComponent, PdAllocationComponent, SmartPdAllocationComponent, SchedulePdComponent, EditPdApplicantComponent, EditPdMasterComponent, StartPdComponent, InprogressPdComponent, AllPdComponent, ScheduledPdComponent, CompletedPdComponent, QcCompletedPdComponent, ClientInfoComponent, CurrentLoanComponent, AssetsInfoComponent, LoanDetailsComponent, OtherIncomeComponent, SupplierInfoComponent, PersonalInfoComponent, LenderRepresentativeComponent, PdReportComponent, AssessedIncomeComponent, AllocationViewMoreComponent, PdRequirementComponent,PdCollectedDocsComponent, GeneralInfoComponent, ModelEditPdReportComponent, OtherApplicantDetailsComponent, NeighbourHoodComponent, DialogChangeCurrentVenrsion, FinalRemarksComponent, BusinessOtherFamilyMemberComponent, QcReviewComponent, BusinessInfoGroupComponent, SearchRelationPipe, RupeeCurrencyFormatPipe, NumberToWordsPipe, DeleteRecordsCountPipe, BusinessAssetsInfoComponent, BusinessBankingDetailsComponent, SalesDetailsComponent, DailySalesDetailsComponent, SalesCalculationComponent, ManageSalesComponent, PurchaseDetailsComponent, BusinessExpenseDetailsComponent, HouseHoldDetailsComponent, OtherBusinessIncomeDetailsComponent, ManagePurchaseComponent, ManageBusinesExpenseComponent, ManageHouseHoldComponent, ManageOtherBusinessIncomeComponent, GrossProfitCalculationComponent, ManageDailySalesComponent, PdStatusChangeDialogueComponent, PdLocatedMapViewDirective, ViewLocationComponent, GetAnswerableFormsPipe, ConfirmAiDetailsComponent, RentalVerificationComponent, InitiateAdditionalPdComponent ,ManageDailyPurchaseComponent, DailyPurchaseDetailsComponent, ManageRentalVerificationComponent, FuturePlansAndBusinessEnvironmentComponent, ImageCropComponent,PurchaseCalculationComponent],
|
||||||
imports: [
|
imports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
ManagePdRoutingModule,
|
ManagePdRoutingModule,
|
||||||
@ -202,13 +203,13 @@ const pdCustomNotifierOptions: NotifierOptions = {
|
|||||||
AgmCoreModule.forRoot({apiKey: 'AIzaSyCXsHTus6hyIB8jYvt9ZEIbZve-2vWeQRg'}),OwlDateTimeModule,
|
AgmCoreModule.forRoot({apiKey: 'AIzaSyCXsHTus6hyIB8jYvt9ZEIbZve-2vWeQRg'}),OwlDateTimeModule,
|
||||||
OwlNativeDateTimeModule,
|
OwlNativeDateTimeModule,
|
||||||
],
|
],
|
||||||
exports: [PdLocatedMapViewDirective, PdAllocationComponent, SmartPdAllocationComponent, TelePdAllocationComponent, SchedulePdComponent, EditPdApplicantComponent, EditPdMasterComponent, StartPdComponent, CompletedPdComponent, QcCompletedPdComponent, ClientInfoComponent, SupplierInfoComponent, PersonalInfoComponent, CurrentLoanComponent, LoanDetailsComponent, OtherIncomeComponent, AssetsInfoComponent, AddressComponent, FamilyDetailsComponent, BankingDetailsComponent, StockComponent, EmploymentInfoComponent, BusinessInfoComponent, FinancialInfoComponent, LenderRepresentativeComponent, AssessedIncomeComponent, AllocationViewMoreComponent, GeneralInfoComponent, PdRequirementComponent, OtherApplicantDetailsComponent, NeighbourHoodComponent, BusinessOtherFamilyMemberComponent, BusinessInfoGroupComponent,DailySalesDetailsComponent, SalesCalculationComponent, PurchaseDetailsComponent, BusinessExpenseDetailsComponent, HouseHoldDetailsComponent, OtherBusinessIncomeDetailsComponent, ManageSalesComponent, ManagePurchaseComponent, ManageBusinesExpenseComponent, ManageHouseHoldComponent, ManageOtherBusinessIncomeComponent, GrossProfitCalculationComponent, ManageDailySalesComponent, PdStatusChangeDialogueComponent, ViewLocationComponent, ConfirmAiDetailsComponent, RentalVerificationComponent, InitiateAdditionalPdComponent, DailyPurchaseDetailsComponent, ManageDailyPurchaseComponent,ManageRentalVerificationComponent,ImageCropComponent,PurchaseCalculationComponent],
|
exports: [PdLocatedMapViewDirective, PdAllocationComponent, SmartPdAllocationComponent, TelePdAllocationComponent, SchedulePdComponent, EditPdApplicantComponent, EditPdMasterComponent, StartPdComponent, CompletedPdComponent, QcCompletedPdComponent, ClientInfoComponent, SupplierInfoComponent, PersonalInfoComponent, CurrentLoanComponent, LoanDetailsComponent, OtherIncomeComponent, AssetsInfoComponent, AddressComponent, FamilyDetailsComponent, BankingDetailsComponent, StockComponent, EmploymentInfoComponent, BusinessInfoComponent, FinancialInfoComponent, LenderRepresentativeComponent, AssessedIncomeComponent, AllocationViewMoreComponent, GeneralInfoComponent, PdRequirementComponent,PdCollectedDocsComponent, OtherApplicantDetailsComponent, NeighbourHoodComponent, BusinessOtherFamilyMemberComponent, BusinessInfoGroupComponent,DailySalesDetailsComponent, SalesCalculationComponent, PurchaseDetailsComponent, BusinessExpenseDetailsComponent, HouseHoldDetailsComponent, OtherBusinessIncomeDetailsComponent, ManageSalesComponent, ManagePurchaseComponent, ManageBusinesExpenseComponent, ManageHouseHoldComponent, ManageOtherBusinessIncomeComponent, GrossProfitCalculationComponent, ManageDailySalesComponent, PdStatusChangeDialogueComponent, ViewLocationComponent, ConfirmAiDetailsComponent, RentalVerificationComponent, InitiateAdditionalPdComponent, DailyPurchaseDetailsComponent, ManageDailyPurchaseComponent,ManageRentalVerificationComponent,ImageCropComponent,PurchaseCalculationComponent],
|
||||||
providers: [PdTrigerService, GetGeometricLocationService,{provide: MAT_DATE_LOCALE, useValue: 'en-GB'},
|
providers: [PdTrigerService, GetGeometricLocationService,{provide: MAT_DATE_LOCALE, useValue: 'en-GB'},
|
||||||
{provide: DateAdapter, useClass: MomentDateAdapter, deps: [MAT_DATE_LOCALE]},
|
{provide: DateAdapter, useClass: MomentDateAdapter, deps: [MAT_DATE_LOCALE]},
|
||||||
{provide: MAT_DATE_FORMATS, useValue: MAT_MOMENT_DATE_FORMATS}, PdLocatedMapViewDirective],
|
{provide: MAT_DATE_FORMATS, useValue: MAT_MOMENT_DATE_FORMATS}, PdLocatedMapViewDirective],
|
||||||
|
|
||||||
entryComponents: [PdAllocationComponent, SmartPdAllocationComponent, SchedulePdComponent, EditPdApplicantComponent, EditPdMasterComponent, TelePdAllocationComponent, AllocationViewMoreComponent, PersonalInfoComponent,BusinessAssetsInfoComponent,
|
entryComponents: [PdAllocationComponent, SmartPdAllocationComponent, SchedulePdComponent, EditPdApplicantComponent, EditPdMasterComponent, TelePdAllocationComponent, AllocationViewMoreComponent, PersonalInfoComponent,BusinessAssetsInfoComponent,
|
||||||
ClientInfoComponent, SupplierInfoComponent, CurrentLoanComponent, LoanDetailsComponent, OtherIncomeComponent, AssetsInfoComponent, AddressComponent, FamilyDetailsComponent, BankingDetailsComponent, StockComponent, EmploymentInfoComponent, BusinessInfoComponent, FinancialInfoComponent, LenderRepresentativeComponent, AssessedIncomeComponent, GeneralInfoComponent, PdRequirementComponent, ModelEditPdReportComponent, OtherApplicantDetailsComponent, NeighbourHoodComponent, DialogChangeCurrentVenrsion, FinalRemarksComponent, BusinessOtherFamilyMemberComponent, QcReviewComponent, BusinessInfoGroupComponent,BusinessBankingDetailsComponent, ManageSalesComponent, ManagePurchaseComponent, ManageBusinesExpenseComponent, ManageHouseHoldComponent, ManageOtherBusinessIncomeComponent, ManageDailySalesComponent,PdStatusChangeDialogueComponent, ViewLocationComponent, ConfirmAiDetailsComponent, RentalVerificationComponent, InitiateAdditionalPdComponent, ManageDailyPurchaseComponent,ManageRentalVerificationComponent,FuturePlansAndBusinessEnvironmentComponent,ImageCropComponent],
|
ClientInfoComponent, SupplierInfoComponent, CurrentLoanComponent, LoanDetailsComponent, OtherIncomeComponent, AssetsInfoComponent, AddressComponent, FamilyDetailsComponent, BankingDetailsComponent, StockComponent, EmploymentInfoComponent, BusinessInfoComponent, FinancialInfoComponent, LenderRepresentativeComponent, AssessedIncomeComponent, GeneralInfoComponent, PdRequirementComponent,PdCollectedDocsComponent, ModelEditPdReportComponent, OtherApplicantDetailsComponent, NeighbourHoodComponent, DialogChangeCurrentVenrsion, FinalRemarksComponent, BusinessOtherFamilyMemberComponent, QcReviewComponent, BusinessInfoGroupComponent,BusinessBankingDetailsComponent, ManageSalesComponent, ManagePurchaseComponent, ManageBusinesExpenseComponent, ManageHouseHoldComponent, ManageOtherBusinessIncomeComponent, ManageDailySalesComponent,PdStatusChangeDialogueComponent, ViewLocationComponent, ConfirmAiDetailsComponent, RentalVerificationComponent, InitiateAdditionalPdComponent, ManageDailyPurchaseComponent,ManageRentalVerificationComponent,FuturePlansAndBusinessEnvironmentComponent,ImageCropComponent],
|
||||||
})
|
})
|
||||||
export class ManagePdModule {
|
export class ManagePdModule {
|
||||||
}
|
}
|
||||||
@ -185,6 +185,8 @@ export class PdTrigerService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// get edit row pd details
|
// get edit row pd details
|
||||||
|
// This function also called in Final Remarks Form
|
||||||
|
// Make sure FinalRemarksForm does not effect. whenever you done any changes onit means
|
||||||
editPdDetails(editId: string,randomString): Observable<any> {
|
editPdDetails(editId: string,randomString): Observable<any> {
|
||||||
// { pdid:100, randon_string:'aTeWbidm451' }
|
// { pdid:100, randon_string:'aTeWbidm451' }
|
||||||
let httpParams = new HttpParams().set('pdid', editId);
|
let httpParams = new HttpParams().set('pdid', editId);
|
||||||
@ -526,11 +528,11 @@ export class PdTrigerService {
|
|||||||
// return words_string;
|
// return words_string;
|
||||||
// }
|
// }
|
||||||
|
|
||||||
// save additional requirements
|
// save additional requirements and Docs to be collected
|
||||||
saveAdditionalRequirements(saveData: any): Observable<any> {
|
saveAdditionalRequirements(saveData: any,apiName : any): Observable<any> {
|
||||||
saveData.createdby = this._aws.getlocale();
|
saveData.createdby = this._aws.getlocale();
|
||||||
|
|
||||||
return this._http.post<any>(this.apiUrl + "savePDAdditionalRequiremets", { "records": saveData })
|
return this._http.post<any>(this.apiUrl + apiName, { "records": saveData })
|
||||||
.pipe(
|
.pipe(
|
||||||
catchError(this.handleError('operation', []))
|
catchError(this.handleError('operation', []))
|
||||||
)
|
)
|
||||||
|
|||||||
@ -286,7 +286,7 @@
|
|||||||
</ng-template>
|
</ng-template>
|
||||||
</mat-tab>
|
</mat-tab>
|
||||||
<mat-tab>
|
<mat-tab>
|
||||||
<ng-template mat-tab-label>Additional Requirements</ng-template>
|
<ng-template mat-tab-label>Queries</ng-template>
|
||||||
<!-- <div class="cardEdit" *ngIf="currentPDStatus==pdStatusCheck.DRAFT || currentPDStatus==pdStatusCheck.TRIGGERED || currentPDStatus==pdStatusCheck.ALLOCATED || currentPDStatus==pdStatusCheck.SCHEDULED">
|
<!-- <div class="cardEdit" *ngIf="currentPDStatus==pdStatusCheck.DRAFT || currentPDStatus==pdStatusCheck.TRIGGERED || currentPDStatus==pdStatusCheck.ALLOCATED || currentPDStatus==pdStatusCheck.SCHEDULED">
|
||||||
<button mat-raised-button mat-button-sm mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="editAdditionalRequirement(pdAdditionalReqData)"><mat-icon>edit</mat-icon></button>
|
<button mat-raised-button mat-button-sm mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="editAdditionalRequirement(pdAdditionalReqData)"><mat-icon>edit</mat-icon></button>
|
||||||
</div> -->
|
</div> -->
|
||||||
@ -295,7 +295,7 @@
|
|||||||
</mat-card-header> -->
|
</mat-card-header> -->
|
||||||
<mat-card-header>
|
<mat-card-header>
|
||||||
<div fxFlex="70" align="left" style="padding: 10px !important;">
|
<div fxFlex="70" align="left" style="padding: 10px !important;">
|
||||||
<mat-card-title>Additional Requirements</mat-card-title>
|
<mat-card-title>Credit Manager’s Specific Queries</mat-card-title>
|
||||||
</div>
|
</div>
|
||||||
<div fxFlex="30" align="end" style="padding: 10px !important;" *ngIf="currentPDStatus==pdStatusCheck.DRAFT || currentPDStatus==pdStatusCheck.TRIGGERED || currentPDStatus==pdStatusCheck.ALLOCATED || currentPDStatus==pdStatusCheck.SCHEDULED || currentPDStatus==pdStatusCheck.COMPLETED">
|
<div fxFlex="30" align="end" style="padding: 10px !important;" *ngIf="currentPDStatus==pdStatusCheck.DRAFT || currentPDStatus==pdStatusCheck.TRIGGERED || currentPDStatus==pdStatusCheck.ALLOCATED || currentPDStatus==pdStatusCheck.SCHEDULED || currentPDStatus==pdStatusCheck.COMPLETED">
|
||||||
<span *ngIf="userRoleID == 10 || userRoleID == 3"><button mat-raised-button mat-button-sm mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="editAdditionalRequirement(pdAdditionalReqData)"><mat-icon>edit</mat-icon></button></span>
|
<span *ngIf="userRoleID == 10 || userRoleID == 3"><button mat-raised-button mat-button-sm mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="editAdditionalRequirement(pdAdditionalReqData)"><mat-icon>edit</mat-icon></button></span>
|
||||||
@ -310,7 +310,30 @@
|
|||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
<ng-template #noRequirement>
|
<ng-template #noRequirement>
|
||||||
<mat-card-content>
|
<mat-card-content>
|
||||||
<p>No Additional Requirements</p>
|
<p>No Queries</p>
|
||||||
|
</mat-card-content>
|
||||||
|
</ng-template>
|
||||||
|
</mat-tab>
|
||||||
|
<mat-tab>
|
||||||
|
<ng-template mat-tab-label>Collected Documents</ng-template>
|
||||||
|
<mat-card-header>
|
||||||
|
<div fxFlex="70" align="left" style="padding: 10px !important;">
|
||||||
|
<mat-card-title>Documents to be collected</mat-card-title>
|
||||||
|
</div>
|
||||||
|
<div fxFlex="30" align="end" style="padding: 10px !important;" *ngIf="currentPDStatus==pdStatusCheck.DRAFT || currentPDStatus==pdStatusCheck.TRIGGERED || currentPDStatus==pdStatusCheck.ALLOCATED || currentPDStatus==pdStatusCheck.SCHEDULED || currentPDStatus==pdStatusCheck.COMPLETED">
|
||||||
|
<span *ngIf="userRoleID == 10 || userRoleID == 3"><button mat-raised-button mat-button-sm mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="editCollectedDocument(pdCollectedDocument)"><mat-icon>edit</mat-icon></button></span>
|
||||||
|
</div>
|
||||||
|
</mat-card-header>
|
||||||
|
<mat-card-content *ngIf="pdCollectedDocument.length>0; else noCollectedDocument">
|
||||||
|
<mat-list *ngFor="let data of pdCollectedDocument">
|
||||||
|
<mat-list-item>
|
||||||
|
<p>{{data.doc_name}}</p>
|
||||||
|
</mat-list-item>
|
||||||
|
</mat-list>
|
||||||
|
</mat-card-content>
|
||||||
|
<ng-template #noCollectedDocument>
|
||||||
|
<mat-card-content>
|
||||||
|
<p>No Documents to be Collected</p>
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
</mat-tab>
|
</mat-tab>
|
||||||
|
|||||||
@ -12,6 +12,7 @@ import { SchedulePdComponent } from './../../../personal-discussion/manage-pd/li
|
|||||||
import { EditPdApplicantComponent } from './../../../personal-discussion/manage-pd/list-pd/edit-pd-applicant/edit-pd-applicant.component';
|
import { EditPdApplicantComponent } from './../../../personal-discussion/manage-pd/list-pd/edit-pd-applicant/edit-pd-applicant.component';
|
||||||
import { EditPdMasterComponent } from './../../../personal-discussion/manage-pd/list-pd/edit-pd-master/edit-pd-master.component';
|
import { EditPdMasterComponent } from './../../../personal-discussion/manage-pd/list-pd/edit-pd-master/edit-pd-master.component';
|
||||||
import { PdRequirementComponent } from './../../../personal-discussion/manage-pd/list-pd/pd-requirement/pd-requirement.component';
|
import { PdRequirementComponent } from './../../../personal-discussion/manage-pd/list-pd/pd-requirement/pd-requirement.component';
|
||||||
|
import { PdCollectedDocsComponent } from './../../../personal-discussion/manage-pd/list-pd/pd-collected-docs/pd-collected-docs.component';
|
||||||
import { InitiateAdditionalPdComponent } from './../../../personal-discussion/manage-pd/list-pd/initiate-additional-pd/initiate-additional-pd.component';
|
import { InitiateAdditionalPdComponent } from './../../../personal-discussion/manage-pd/list-pd/initiate-additional-pd/initiate-additional-pd.component';
|
||||||
import {QcStartComponent} from '../qc-start/qc-start.component'
|
import {QcStartComponent} from '../qc-start/qc-start.component'
|
||||||
|
|
||||||
@ -148,6 +149,24 @@ export class QcViewComponent implements OnInit, OnDestroy {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
// edit pd addtional requirements
|
// edit pd addtional requirements
|
||||||
|
editCollectedDocument(Data: any) {
|
||||||
|
let setPdDetails = {
|
||||||
|
"pdID": this.viewID,
|
||||||
|
"records": Data
|
||||||
|
}
|
||||||
|
const dialogRequirement = this.dialog.open(PdCollectedDocsComponent, {
|
||||||
|
data: setPdDetails,
|
||||||
|
position: { right: '0' },
|
||||||
|
width: '60%',
|
||||||
|
disableClose: true
|
||||||
|
});
|
||||||
|
dialogRequirement.afterClosed()
|
||||||
|
.subscribe(dataresult => {
|
||||||
|
// this.notifier.notify('success', 'Successfully allocated.!');
|
||||||
|
this.viewPdDetails(this.viewID,this.masterRandomString)
|
||||||
|
});
|
||||||
|
}
|
||||||
|
// edit pd addtional requirements
|
||||||
editAdditionalRequirement(requirementData:any){
|
editAdditionalRequirement(requirementData:any){
|
||||||
let setPdDetails = {
|
let setPdDetails = {
|
||||||
"pdID":this.viewID,
|
"pdID":this.viewID,
|
||||||
@ -165,6 +184,7 @@ export class QcViewComponent implements OnInit, OnDestroy {
|
|||||||
this.viewPdDetails(this.viewID,this.masterRandomString)
|
this.viewPdDetails(this.viewID,this.masterRandomString)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// pd allocation to
|
// pd allocation to
|
||||||
pdAllocationTo(pdData:any,childData: any) {
|
pdAllocationTo(pdData:any,childData: any) {
|
||||||
pdData.pd_id = childData.assigned_pd;
|
pdData.pd_id = childData.assigned_pd;
|
||||||
|
|||||||
@ -100,6 +100,7 @@ import { QcCompletedPdComponent } from 'app/personal-discussion/manage-pd/list-p
|
|||||||
import { PersonalInfoComponent } from 'app/personal-discussion/manage-pd/list-pd/start-pd/forms/personal-info/personal-info.component';
|
import { PersonalInfoComponent } from 'app/personal-discussion/manage-pd/list-pd/start-pd/forms/personal-info/personal-info.component';
|
||||||
import { AllocationViewMoreComponent } from 'app/personal-discussion/manage-pd/list-pd/allocation-view-more/allocation-view-more.component';
|
import { AllocationViewMoreComponent } from 'app/personal-discussion/manage-pd/list-pd/allocation-view-more/allocation-view-more.component';
|
||||||
import { PdRequirementComponent } from 'app/personal-discussion/manage-pd/list-pd/pd-requirement/pd-requirement.component';
|
import { PdRequirementComponent } from 'app/personal-discussion/manage-pd/list-pd/pd-requirement/pd-requirement.component';
|
||||||
|
import { PdCollectedDocsComponent } from 'app/personal-discussion/manage-pd/list-pd/pd-collected-docs/pd-collected-docs.component';
|
||||||
import { FuturePlansAndBusinessEnvironmentComponent } from 'app/personal-discussion/manage-pd/list-pd/start-pd/forms/future-plans-and-business-environment/future-plans-and-business-environment.component';
|
import { FuturePlansAndBusinessEnvironmentComponent } from 'app/personal-discussion/manage-pd/list-pd/start-pd/forms/future-plans-and-business-environment/future-plans-and-business-environment.component';
|
||||||
import { QcNewComponent } from './qc-list/qc-pd-report/qc-new/qc-new.component';
|
import { QcNewComponent } from './qc-list/qc-pd-report/qc-new/qc-new.component';
|
||||||
|
|
||||||
@ -219,6 +220,6 @@ const customNotifierOptions: NotifierOptions = {
|
|||||||
providers : [QcService,{provide: MAT_DATE_LOCALE, useValue: 'en-GB'},
|
providers : [QcService,{provide: MAT_DATE_LOCALE, useValue: 'en-GB'},
|
||||||
{provide: DateAdapter, useClass: MomentDateAdapter, deps: [MAT_DATE_LOCALE]},
|
{provide: DateAdapter, useClass: MomentDateAdapter, deps: [MAT_DATE_LOCALE]},
|
||||||
{provide: MAT_DATE_FORMATS, useValue: MAT_MOMENT_DATE_FORMATS},PdLocatedMapViewDirective],
|
{provide: MAT_DATE_FORMATS, useValue: MAT_MOMENT_DATE_FORMATS},PdLocatedMapViewDirective],
|
||||||
exports: [PdLocatedMapViewDirective, PdAllocationComponent, SmartPdAllocationComponent, TelePdAllocationComponent, SchedulePdComponent, EditPdApplicantComponent, EditPdMasterComponent, StartPdComponent, CompletedPdComponent, QcCompletedPdComponent, ClientInfoComponent, SupplierInfoComponent, PersonalInfoComponent, CurrentLoanComponent, LoanDetailsComponent, OtherIncomeComponent, AssetsInfoComponent, AddressComponent, FamilyDetailsComponent, BankingDetailsComponent, StockComponent, EmploymentInfoComponent, BusinessInfoComponent, FinancialInfoComponent, LenderRepresentativeComponent, AssessedIncomeComponent, AllocationViewMoreComponent, GeneralInfoComponent, PdRequirementComponent, OtherApplicantDetailsComponent, NeighbourHoodComponent, BusinessOtherFamilyMemberComponent, BusinessInfoGroupComponent,DailySalesDetailsComponent, SalesCalculationComponent, PurchaseDetailsComponent, BusinessExpenseDetailsComponent, HouseHoldDetailsComponent, OtherBusinessIncomeDetailsComponent, ManageSalesComponent, ManagePurchaseComponent, ManageBusinesExpenseComponent, ManageHouseHoldComponent, ManageOtherBusinessIncomeComponent, GrossProfitCalculationComponent, ManageDailySalesComponent, PdStatusChangeDialogueComponent, ViewLocationComponent, ConfirmAiDetailsComponent, RentalVerificationComponent, InitiateAdditionalPdComponent, DailyPurchaseDetailsComponent, ManageDailyPurchaseComponent,ManageRentalVerificationComponent],
|
exports: [PdLocatedMapViewDirective, PdAllocationComponent, SmartPdAllocationComponent, TelePdAllocationComponent, SchedulePdComponent, EditPdApplicantComponent, EditPdMasterComponent, StartPdComponent, CompletedPdComponent, QcCompletedPdComponent, ClientInfoComponent, SupplierInfoComponent, PersonalInfoComponent, CurrentLoanComponent, LoanDetailsComponent, OtherIncomeComponent, AssetsInfoComponent, AddressComponent, FamilyDetailsComponent, BankingDetailsComponent, StockComponent, EmploymentInfoComponent, BusinessInfoComponent, FinancialInfoComponent, LenderRepresentativeComponent, AssessedIncomeComponent, AllocationViewMoreComponent, GeneralInfoComponent, PdRequirementComponent,PdCollectedDocsComponent, OtherApplicantDetailsComponent, NeighbourHoodComponent, BusinessOtherFamilyMemberComponent, BusinessInfoGroupComponent,DailySalesDetailsComponent, SalesCalculationComponent, PurchaseDetailsComponent, BusinessExpenseDetailsComponent, HouseHoldDetailsComponent, OtherBusinessIncomeDetailsComponent, ManageSalesComponent, ManagePurchaseComponent, ManageBusinesExpenseComponent, ManageHouseHoldComponent, ManageOtherBusinessIncomeComponent, GrossProfitCalculationComponent, ManageDailySalesComponent, PdStatusChangeDialogueComponent, ViewLocationComponent, ConfirmAiDetailsComponent, RentalVerificationComponent, InitiateAdditionalPdComponent, DailyPurchaseDetailsComponent, ManageDailyPurchaseComponent,ManageRentalVerificationComponent],
|
||||||
})
|
})
|
||||||
export class QualityCheckModule { }
|
export class QualityCheckModule { }
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user