From 24e373bc8bbb0c73bd42027d33b8600bb883a636 Mon Sep 17 00:00:00 2001 From: "venbatechnologies@gmail.com" Date: Thu, 4 Feb 2021 15:55:34 +0530 Subject: [PATCH] Fairoj : smc credit pd flow changes --- .../manage-pd/list-pd/all-pd/all-pd.component.html | 5 +++-- .../list-pd/completed-pd/completed-pd.component.html | 4 ++-- .../edit-pd-applicant/edit-pd-applicant.component.html | 2 +- .../edit-pd-applicant/edit-pd-applicant.component.ts | 3 +++ .../list-pd/inprogress-pd/inprogress-pd.component.html | 4 ++-- .../manage-pd/list-pd/list-pd.component.html | 2 +- .../manage-pd/list-pd/list-pd.component.ts | 3 ++- .../list-pd/pd-allocation/pd-allocation.component.ts | 4 ++-- .../pd-status-change-dialogue.component.ts | 4 ++-- .../manage-pd/list-pd/view-pd/view-pd.component.html | 8 ++++---- .../manage-pd/list-pd/view-pd/view-pd.component.ts | 7 +++++-- .../personal-discussion/pd-service/pd-triger.service.ts | 2 +- 12 files changed, 28 insertions(+), 20 deletions(-) diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/all-pd/all-pd.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/all-pd/all-pd.component.html index 7948c23..06dab71 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/all-pd/all-pd.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/all-pd/all-pd.component.html @@ -74,7 +74,7 @@

Showing data for last {{common}}. To see older records, please use advanced filter


-
+
@@ -165,7 +165,8 @@
{{details.fk_pd_allocated_to == user_id ? 'Self' : details.pd_allocated_to }}
-
+ +
-
+
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/list-pd.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/list-pd.component.ts index 89c30bc..6a720f8 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/list-pd.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/list-pd.component.ts @@ -59,12 +59,13 @@ export class ListPdComponent implements OnInit, OnDestroy { this.user_role_name=role_name }) if(localStorage.getItem('LocalSetEntity')) { + console.log("Sudden") this.getUserFromLocal() } else{ // for Listening the local storage LocalSetEntity this.userService.messageSubject.subscribe(rr=>{ - console.log(rr) + console.log("late",rr) this.getUserFromLocal() // let entity_id = localStorage.getItem('LocalSetEntity') // if(entity_id) { diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-allocation/pd-allocation.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-allocation/pd-allocation.component.ts index ea12af1..a87eaa5 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-allocation/pd-allocation.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-allocation/pd-allocation.component.ts @@ -14,7 +14,7 @@ import { PdTrigerService } from '../../../pd-service/pd-triger.service'; }) export class PdAllocationComponent implements OnInit { - public pageTitle: string = "Allocation To PD Officer"; + public pageTitle: string = "Allocation To Credit Manager"; public _pdAllocationForm: FormGroup; public pdOfficerList: any = []; errorMessage: any; @@ -71,7 +71,7 @@ export class PdAllocationComponent implements OnInit { result => { if (result.status == 200) { this.notifier.notify('success', 'PD Allocated.!'); - this.dialogRef.close(); + this.dialogRef.close(true); } else { this.notifier.notify('warning', 'Something Went Wrong Try Again.!'); diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-status-change-dialogue/pd-status-change-dialogue.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-status-change-dialogue/pd-status-change-dialogue.component.ts index 39d8377..e2f5919 100644 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-status-change-dialogue/pd-status-change-dialogue.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-status-change-dialogue/pd-status-change-dialogue.component.ts @@ -25,8 +25,8 @@ export class PdStatusChangeDialogueComponent implements OnInit { constructor(notifier: NotifierService , private pd: PdTrigerService,private dialogRef: MatDialogRef,@Inject(MAT_DIALOG_DATA) public data: any) { this.notifier = notifier; - this.dialoge_title_content = this.data.pd_status=='INPROGRESS' ? 'Start Discussion' : this.data.pd_status=='COMPLETED' ? 'Complete Discussion' : this.data.pd_status=='ALLOCATED' ? 'Allocate to CPA' : this.data.pd_status=='BOUNCED' ? 'PD Reject' : 'Change Discussion'; - this.dialoge_content = this.data.pd_status=='INPROGRESS' ? 'Are you starting the Discussion ?' : this.data.pd_status=='COMPLETED' ? 'Please confirm you are completing the Discussion and forwarding for Quality Check ?' : this.data.pd_status=='ALLOCATED' ? 'Do you want to allocate the PD to CPA ?' : this.data.pd_status=='BOUNCED' ? 'Do you want to reject this PD' : 'Change Discussion'; + this.dialoge_title_content = this.data.pd_status=='INPROGRESS' ? 'Start Discussion' : this.data.pd_status=='COMPLETED' ? 'Complete Discussion' : this.data.pd_status=='ALLOCATED' ? 'Send Back to CPA' : this.data.pd_status=='BOUNCED' ? 'PD Reject' : 'Change Discussion'; + this.dialoge_content = this.data.pd_status=='INPROGRESS' ? 'Are you starting the Discussion ?' : this.data.pd_status=='COMPLETED' ? 'Please confirm you are completing the Discussion' : this.data.pd_status=='ALLOCATED' ? 'Do you want to Send back the PD to CPA ?' : this.data.pd_status=='BOUNCED' ? 'Do you want to reject this PD' : 'Change Discussion'; this.enableAddonPD = false; this.CompletenessCheck = this.data.pd_status=='INPROGRESS' ? true : this.data.pd_status=='COMPLETED' ? false : true; this.Loading = this.data.pd_status=='INPROGRESS' ? false : this.data.pd_status=='COMPLETED' ? true : false; diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.html index 079e76b..40b11d4 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.html @@ -28,7 +28,7 @@ - + @@ -197,8 +197,8 @@
- - + +
@@ -322,7 +322,7 @@
Applicants
-
+
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 b4f3041..b8e8a30 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 @@ -508,12 +508,15 @@ else { /** To update pd officer*/ selfAllocation(city_id) { const dialogRef1 = this.dialog.open(PdAllocationComponent, { - data: { pdid:this.viewID, pd_status: this.pdStatusCheck.ALLOCATED,random_string:this.pdMasterData[0].random_string,dialogType:'actionOnly',city_id:city_id }, + data: { pd_id:this.viewID, pd_status: this.pdStatusCheck.ALLOCATED,random_string:this.pdMasterData[0].random_string,dialogType:'actionOnly',city_id:city_id }, disableClose: true, minWidth: '30%', }) dialogRef1.afterClosed().subscribe(rr=>{ - this.notifier.notify("success","Allocated Successfully") + if(rr) { + this.viewPdDetails(this.viewID) + } + // this.notifier.notify("success","Allocated Successfully") }) // return; // const dialogRef = this.dialog.open(PdStatusChangeDialogueComponent, { diff --git a/ng6-seed/src/app/personal-discussion/pd-service/pd-triger.service.ts b/ng6-seed/src/app/personal-discussion/pd-service/pd-triger.service.ts index 2cc2c3a..5b181a4 100755 --- a/ng6-seed/src/app/personal-discussion/pd-service/pd-triger.service.ts +++ b/ng6-seed/src/app/personal-discussion/pd-service/pd-triger.service.ts @@ -176,7 +176,7 @@ export class PdTrigerService { { params: new HttpParams().set('lenderid', entity_id) } : { }; // if(LenderRoleID == '25') { - Lender.params = Lender.params.set('createdby',userid) + Lender.params = Lender && Lender.params ? Lender.params.set('createdby',userid) : {} // } return this._http.get(this.apiUrl + "listLessPDDetails/get",Lender) .pipe(