Lender Admin changes : ps
This commit is contained in:
parent
0781cb9bd5
commit
33b70ce766
@ -1,4 +1,4 @@
|
|||||||
<div *ngIf="data.lender_role_id != '27'">
|
<div *ngIf="data.lender_role_id != '27' || (data.lender_role_id != '30' && this.data.lender_admin_flag == 0)">
|
||||||
<h2 mat-dialog-title class="paragraph_change">
|
<h2 mat-dialog-title class="paragraph_change">
|
||||||
<div fxFlex="70" style="padding: 10px !important;">
|
<div fxFlex="70" style="padding: 10px !important;">
|
||||||
<!--{{pageTitle}}-->
|
<!--{{pageTitle}}-->
|
||||||
@ -7,15 +7,11 @@
|
|||||||
<div fxFlex="30" align="end" style="padding: 10px !important;">
|
<div fxFlex="30" align="end" style="padding: 10px !important;">
|
||||||
<!-- <button *ngIf="data.fk_pd_type == 2" mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Allocate Vendor" matTooltipPosition="above" (click)="viewVendorOfficer()"><mat-icon>verified_user</mat-icon></button> -->
|
<!-- <button *ngIf="data.fk_pd_type == 2" mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Allocate Vendor" matTooltipPosition="above" (click)="viewVendorOfficer()"><mat-icon>verified_user</mat-icon></button> -->
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="closeAllocationComponent()" matTooltip="Close" matTooltipPosition="below"><mat-icon>close</mat-icon></button>
|
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="closeAllocationComponent()" matTooltip="Close" matTooltipPosition="below"><mat-icon>close</mat-icon></button>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</h2>
|
</h2>
|
||||||
<mat-dialog-content class="mat-typography">
|
<mat-dialog-content class="mat-typography">
|
||||||
<!-- <form [formGroup]="_pdAllocationForm" (submit)="onSubmit()"> -->
|
<!-- <form [formGroup]="_pdAllocationForm" (submit)="onSubmit()"> -->
|
||||||
|
|
||||||
<mat-list role="list" *ngIf="vendorOfficerList.length > 0">
|
<mat-list role="list" *ngIf="vendorOfficerList.length > 0">
|
||||||
|
|
||||||
<mat-list-item role="listitem" *ngFor="let v_officer of vendorOfficerList; let i = index">
|
<mat-list-item role="listitem" *ngFor="let v_officer of vendorOfficerList; let i = index">
|
||||||
<div fxFlex="100">
|
<div fxFlex="100">
|
||||||
<div fxLayout="row wrap">
|
<div fxLayout="row wrap">
|
||||||
@ -32,11 +28,8 @@
|
|||||||
|
|
||||||
</div> -->
|
</div> -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</mat-list-item>
|
</mat-list-item>
|
||||||
|
|
||||||
</mat-list>
|
</mat-list>
|
||||||
<mat-list *ngIf="vendorOfficerList.length == 0">
|
<mat-list *ngIf="vendorOfficerList.length == 0">
|
||||||
<mat-list-item>
|
<mat-list-item>
|
||||||
@ -44,7 +37,6 @@
|
|||||||
</mat-list-item>
|
</mat-list-item>
|
||||||
</mat-list>
|
</mat-list>
|
||||||
|
|
||||||
|
|
||||||
<!-- </form> -->
|
<!-- </form> -->
|
||||||
</mat-dialog-content>
|
</mat-dialog-content>
|
||||||
|
|
||||||
@ -60,27 +52,20 @@
|
|||||||
<!-- <button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="closeAllocationComponent()" matTooltip="Close" matTooltipPosition="below"><mat-icon>close</mat-icon></button> -->
|
<!-- <button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="closeAllocationComponent()" matTooltip="Close" matTooltipPosition="below"><mat-icon>close</mat-icon></button> -->
|
||||||
<button mat-raised-button mat-icon-button (click)="updateagency(selectedItem)" class="mr-1 mb-1 hover-icon" type="button" matTooltip="Allocate11" matTooltipPosition="below"><mat-icon>save</mat-icon></button>
|
<button mat-raised-button mat-icon-button (click)="updateagency(selectedItem)" class="mr-1 mb-1 hover-icon" type="button" matTooltip="Allocate11" matTooltipPosition="below"><mat-icon>save</mat-icon></button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</mat-dialog-actions>
|
</mat-dialog-actions>
|
||||||
|
|
||||||
|
|
||||||
<notifier-container></notifier-container>
|
<notifier-container></notifier-container>
|
||||||
</div>
|
</div><!-- div @1 closed here -->
|
||||||
<div *ngIf="data.lender_role_id == '27'">
|
<div *ngIf="data.lender_role_id == '27' || (this.data.lender_role_id == '30' && data.lender_admin_flag == 1)">
|
||||||
<h2 mat-dialog-title class="paragraph_change">
|
<h2 mat-dialog-title class="paragraph_change">
|
||||||
<div fxFlex="70" style="padding: 10px !important;">
|
<div fxFlex="70" style="padding: 10px !important;">
|
||||||
Allocation
|
Allocation
|
||||||
</div>
|
</div>
|
||||||
<div fxFlex="40" align="end" style="padding: 10px !important;">
|
<div fxFlex="40" align="end" style="padding: 10px !important;">
|
||||||
|
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="closeAllocationComponent()" matTooltip="Close" matTooltipPosition="below"><mat-icon>close</mat-icon></button>
|
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="closeAllocationComponent()" matTooltip="Close" matTooltipPosition="below"><mat-icon>close</mat-icon></button>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<mat-card>
|
<mat-card>
|
||||||
<mat-tab-group>
|
<mat-tab-group>
|
||||||
<mat-tab>
|
<mat-tab>
|
||||||
@ -90,7 +75,6 @@
|
|||||||
<!-- <form [formGroup]="_pdAllocationForm" (submit)="onSubmit()"> -->
|
<!-- <form [formGroup]="_pdAllocationForm" (submit)="onSubmit()"> -->
|
||||||
|
|
||||||
<mat-list role="list" *ngIf="pdOfficerList.length > 0">
|
<mat-list role="list" *ngIf="pdOfficerList.length > 0">
|
||||||
|
|
||||||
<mat-list-item role="listitem" *ngFor="let officer of pdOfficerList; let i = index">
|
<mat-list-item role="listitem" *ngFor="let officer of pdOfficerList; let i = index">
|
||||||
<div fxFlex="100">
|
<div fxFlex="100">
|
||||||
<div fxLayout="row wrap">
|
<div fxLayout="row wrap">
|
||||||
@ -107,11 +91,8 @@
|
|||||||
|
|
||||||
</div> -->
|
</div> -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</mat-list-item>
|
</mat-list-item>
|
||||||
|
|
||||||
</mat-list>
|
</mat-list>
|
||||||
<mat-list *ngIf="pdOfficerList.length == 0">
|
<mat-list *ngIf="pdOfficerList.length == 0">
|
||||||
<mat-list-item>
|
<mat-list-item>
|
||||||
@ -119,7 +100,6 @@
|
|||||||
</mat-list-item>
|
</mat-list-item>
|
||||||
</mat-list>
|
</mat-list>
|
||||||
|
|
||||||
|
|
||||||
<!-- </form> -->
|
<!-- </form> -->
|
||||||
</mat-dialog-content>
|
</mat-dialog-content>
|
||||||
|
|
||||||
@ -131,7 +111,6 @@
|
|||||||
<!-- <button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="closeAllocationComponent()" matTooltip="Close" matTooltipPosition="below"><mat-icon>close</mat-icon></button> -->
|
<!-- <button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="closeAllocationComponent()" matTooltip="Close" matTooltipPosition="below"><mat-icon>close</mat-icon></button> -->
|
||||||
<button mat-raised-button mat-icon-button (click)="updatePdOfficer(selectedItem)" class="mr-1 mb-1 hover-icon" type="button" matTooltip="Allocate" matTooltipPosition="below"><mat-icon>save</mat-icon></button>
|
<button mat-raised-button mat-icon-button (click)="updatePdOfficer(selectedItem)" class="mr-1 mb-1 hover-icon" type="button" matTooltip="Allocate" matTooltipPosition="below"><mat-icon>save</mat-icon></button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</mat-dialog-actions>
|
</mat-dialog-actions>
|
||||||
</mat-tab>
|
</mat-tab>
|
||||||
<mat-tab>
|
<mat-tab>
|
||||||
@ -141,7 +120,6 @@
|
|||||||
<!-- <form [formGroup]="_pdAllocationForm" (submit)="onSubmit()"> -->
|
<!-- <form [formGroup]="_pdAllocationForm" (submit)="onSubmit()"> -->
|
||||||
|
|
||||||
<mat-list role="list" *ngIf="vendorOfficerList.length > 0">
|
<mat-list role="list" *ngIf="vendorOfficerList.length > 0">
|
||||||
|
|
||||||
<mat-list-item role="listitem" *ngFor="let v_officer of vendorOfficerList; let i = index">
|
<mat-list-item role="listitem" *ngFor="let v_officer of vendorOfficerList; let i = index">
|
||||||
<div fxFlex="100">
|
<div fxFlex="100">
|
||||||
<div fxLayout="row wrap">
|
<div fxLayout="row wrap">
|
||||||
@ -158,11 +136,8 @@
|
|||||||
|
|
||||||
</div> -->
|
</div> -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</mat-list-item>
|
</mat-list-item>
|
||||||
|
|
||||||
</mat-list>
|
</mat-list>
|
||||||
<mat-list *ngIf="vendorOfficerList.length == 0">
|
<mat-list *ngIf="vendorOfficerList.length == 0">
|
||||||
<mat-list-item>
|
<mat-list-item>
|
||||||
@ -170,7 +145,6 @@
|
|||||||
</mat-list-item>
|
</mat-list-item>
|
||||||
</mat-list>
|
</mat-list>
|
||||||
|
|
||||||
|
|
||||||
<!-- </form> -->
|
<!-- </form> -->
|
||||||
</mat-dialog-content>
|
</mat-dialog-content>
|
||||||
|
|
||||||
@ -182,18 +156,11 @@
|
|||||||
<!-- <button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="closeAllocationComponent()" matTooltip="Close" matTooltipPosition="below"><mat-icon>close</mat-icon></button> -->
|
<!-- <button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="closeAllocationComponent()" matTooltip="Close" matTooltipPosition="below"><mat-icon>close</mat-icon></button> -->
|
||||||
<button mat-raised-button mat-icon-button (click)="updateagency(selectedItem)" class="mr-1 mb-1 hover-icon" type="button" matTooltip="Allocate" matTooltipPosition="below"><mat-icon>save</mat-icon></button>
|
<button mat-raised-button mat-icon-button (click)="updateagency(selectedItem)" class="mr-1 mb-1 hover-icon" type="button" matTooltip="Allocate" matTooltipPosition="below"><mat-icon>save</mat-icon></button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</mat-dialog-actions>
|
</mat-dialog-actions>
|
||||||
</mat-tab>
|
</mat-tab>
|
||||||
|
|
||||||
</mat-tab-group>
|
</mat-tab-group>
|
||||||
</mat-card>
|
</mat-card>
|
||||||
|
|
||||||
<notifier-container></notifier-container>
|
<notifier-container></notifier-container>
|
||||||
|
</div><!-- div @60 closed here -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
@ -53,6 +53,9 @@ export class PdAllocationComponent implements OnInit {
|
|||||||
{
|
{
|
||||||
this.getSmcVendorPdOfficerList();
|
this.getSmcVendorPdOfficerList();
|
||||||
}
|
}
|
||||||
|
// else if(this.data.lender_role_id=='30' && this.data.lender_admin_flag == 0){
|
||||||
|
// this.getSmcVendorPdOfficerList();
|
||||||
|
// }
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
this.getPDOfficerList(this.data.pd_id);
|
this.getPDOfficerList(this.data.pd_id);
|
||||||
@ -71,10 +74,10 @@ export class PdAllocationComponent implements OnInit {
|
|||||||
getPDOfficerList(pdID:string){
|
getPDOfficerList(pdID:string){
|
||||||
|
|
||||||
let user_type
|
let user_type
|
||||||
if(this.data.lender_role_id == '25' || this.data.lender_role_id == '30') {
|
if(this.data.lender_role_id == '25' ) {
|
||||||
user_type = "RCM"
|
user_type = "RCM"
|
||||||
}
|
}
|
||||||
else if(this.data.lender_role_id == '27') {
|
else if(this.data.lender_role_id == '27' || this.data.lender_role_id == '30') {
|
||||||
user_type = "CM"
|
user_type = "CM"
|
||||||
}
|
}
|
||||||
this._pd.getCMUsers(this.data.state_id,user_type).subscribe(
|
this._pd.getCMUsers(this.data.state_id,user_type).subscribe(
|
||||||
|
|||||||
@ -230,16 +230,37 @@
|
|||||||
<span *ngIf="is_agency_logged_in == true && master.lender_short_name == 'MWISE' && LenderRoleID != '25' && (LenderRoleID != '29' || userId == master.fk_pd_allocated_to && currentVendorStatus!='QC COMPLETED')"><button *ngIf="roleAccessDetails.discussions && addresses.assigned_pd && addresses.addtional_pd_data[0].pd_type_name && addresses.addtional_pd_data[0].vendor_status!=pdStatusCheck.DRAFT && currentVendorStatus!=pdStatusCheck.BOUNCED && currentVendorStatus!='QC COMPLETED'&& (LenderRoleID == '27' || LenderRoleID == '28'||currentVendorStatus!=pdStatusCheck.TRIGGERED)|| currentPDStatus!=pdStatusCheck.CANCELLED || LenderRoleID == '29'" mat-raised-button mat-button-md mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Discussion" matTooltipPosition="above" (click)="getPDStart(addresses,addresses.addtional_pd_data[0].vendor_status)"><mat-icon>question_answer</mat-icon></button></span>
|
<span *ngIf="is_agency_logged_in == true && master.lender_short_name == 'MWISE' && LenderRoleID != '25' && (LenderRoleID != '29' || userId == master.fk_pd_allocated_to && currentVendorStatus!='QC COMPLETED')"><button *ngIf="roleAccessDetails.discussions && addresses.assigned_pd && addresses.addtional_pd_data[0].pd_type_name && addresses.addtional_pd_data[0].vendor_status!=pdStatusCheck.DRAFT && currentVendorStatus!=pdStatusCheck.BOUNCED && currentVendorStatus!='QC COMPLETED'&& (LenderRoleID == '27' || LenderRoleID == '28'||currentVendorStatus!=pdStatusCheck.TRIGGERED)|| currentPDStatus!=pdStatusCheck.CANCELLED || LenderRoleID == '29'" mat-raised-button mat-button-md mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Discussion" matTooltipPosition="above" (click)="getPDStart(addresses,addresses.addtional_pd_data[0].vendor_status)"><mat-icon>question_answer</mat-icon></button></span>
|
||||||
<span *ngIf="((currentPDStatus!=pdStatusCheck.CANCELLED) && (currentVendorStatus != pdStatusCheck.CANCELLED)) && (userRoleID == '28' || userRoleID == '26' || userRoleID == '27') "><button mat-raised-button mat-button-md mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Cancel PD" matTooltipPosition="above" (click)="cancelPD(addresses)"><mat-icon>cancel_presentation</mat-icon></button></span>
|
<span *ngIf="((currentPDStatus!=pdStatusCheck.CANCELLED) && (currentVendorStatus != pdStatusCheck.CANCELLED)) && (userRoleID == '28' || userRoleID == '26' || userRoleID == '27') "><button mat-raised-button mat-button-md mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Cancel PD" matTooltipPosition="above" (click)="cancelPD(addresses)"><mat-icon>cancel_presentation</mat-icon></button></span>
|
||||||
</div>
|
</div>
|
||||||
<ng-template #prompt>
|
<ng-template #prompt><!-- Lender ADMIN Section C.S. - {{currentPDStatus}} C.V.S - {{currentVendorStatus}} -->
|
||||||
<span *ngIf="master.lender_short_name == 'MWISE'">
|
<span *ngIf="master.lender_short_name == 'MWISE' && addresses.assigned_pd && addresses.addtional_pd_data[0].pd_type_name">
|
||||||
<span><button *ngIf="roleAccessDetails.allocate && addresses.assigned_pd && master.pd_type_name && addresses.addtional_pd_data[0].pd_status == pdStatusCheck.ALLOCATED || currentPDStatus!=pdStatusCheck.CANCELLED && ((currentVendorStatus !=pdStatusCheck.COMPLETED || currentVendorStatus !=pdStatusCheck.QC_COMPLETED))" mat-raised-button mat-button-md mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Reject" matTooltipPosition="above" (click)="rejectPD()"><mat-icon>settings_backup_restore</mat-icon></button></span>
|
<!--1 .Reject - Allocate,Inprogress Status only both normal and vendor -->
|
||||||
<span *ngIf="currentVendorStatus != 'QC COMPLETED'">
|
<span *ngIf="roleAccessDetails.allocate">
|
||||||
<button *ngIf="roleAccessDetails.allocate && addresses.assigned_pd && addresses.addtional_pd_data[0].pd_type_name && (currentPDStatus == pdStatusCheck.ALLOCATED_TO_FIA||currentVendorStatus == pdStatusCheck.INPROGRESS ||currentVendorStatus == pdStatusCheck.ALLOCATED|| (currentVendorStatus == pdStatusCheck.ALLOCATED && userId == master.fk_pd_allocated_to)|| (currentVendorStatus == pdStatusCheck.BOUNCED && userId == master.fk_pd_allocated_to) || currentPDStatus!=pdStatusCheck.CANCELLED) " mat-raised-button mat-button-md mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Allocate" matTooltipPosition="above" (click)="selfAllocation(addresses.fk_state)"><mat-icon>verified_user</mat-icon></button></span>
|
<button *ngIf="(currentPDStatus==pdStatusCheck.ALLOCATED || currentPDStatus==pdStatusCheck.INPROGRESS) || (currentVendorStatus==pdStatusCheck.ALLOCATED || currentVendorStatus==pdStatusCheck.INPROGRESS) " mat-raised-button mat-button-md mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Reject" matTooltipPosition="above" (click)="rejectPD()"><mat-icon>settings_backup_restore</mat-icon></button></span>
|
||||||
<!-- <span><button *ngIf="roleAccessDetails.allocate && addresses.assigned_pd && addresses.addtional_pd_data[0].pd_type_name && (currentPDStatus == pdStatusCheck.TRIGGERED || currentPDStatus==pdStatusCheck.CANCELLED || currentPDStatus == pdStatusCheck.ALLOCATED) " mat-raised-button mat-button-md mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Allocate to Self" matTooltipPosition="above" (click)="selfAllocation(addresses.fk_state)"><mat-icon>verified_user</mat-icon></button></span> -->
|
|
||||||
<span><button *ngIf="roleAccessDetails.allocate && addresses.assigned_pd && addresses.addtional_pd_data[0].pd_type_name && (currentPDStatus == pdStatusCheck.TRIGGERED || currentPDStatus == pdStatusCheck.ALLOCATED)" mat-raised-button mat-button-md mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Allocate to Vendor" matTooltipPosition="above" (click)="Allocationtovendor(addresses.fk_state)"><mat-icon>assignment_ind</mat-icon></button></span>
|
<!--2 . Allocate User - Draft,Trigger,Schedule,Allocated status only both normal and vendor-->
|
||||||
<span><button *ngIf="addresses.assigned_pd && addresses.addtional_pd_data[0].pd_type_name && (currentPDStatus == pdStatusCheck.ALLOCATED || currentPDStatus == pdStatusCheck.INPROGRESS)" mat-raised-button mat-button-md mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Send back to CPA" matTooltipPosition="above" (click)="allocateToCpa()"><mat-icon>swap_vert</mat-icon></button></span>
|
<span *ngIf="roleAccessDetails.allocate">
|
||||||
<span><button *ngIf="roleAccessDetails.discussions && addresses.assigned_pd && addresses.addtional_pd_data[0].pd_type_name && addresses.addtional_pd_data[0].pd_status && addresses.addtional_pd_data[0].pd_status!=pdStatusCheck.DRAFT && currentPDStatus!=pdStatusCheck.BOUNCED && currentPDStatus!=pdStatusCheck.CANCELLED && (currentPDStatus!=pdStatusCheck.TRIGGERED)" mat-raised-button mat-button-md mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Discussion" matTooltipPosition="above" (click)="getPDStart(addresses,addresses.addtional_pd_data[0].pd_status)"><mat-icon>question_answer</mat-icon></button></span>
|
<button *ngIf="currentPDStatus==pdStatusCheck.DRAFT || currentPDStatus==pdStatusCheck.TRIGGERED || currentPDStatus==pdStatusCheck.ALLOCATED || currentPDStatus==pdStatusCheck.SCHEDULED || currentPDStatus==pdStatusCheck.CANCELLED ||
|
||||||
<span><button *ngIf="roleAccessDetails.discussions && addresses.assigned_pd && addresses.addtional_pd_data[0].pd_type_name && addresses.addtional_pd_data[0].vendor_status && currentVendorStatus!=pdStatusCheck.QC_COMPLETED && currentPDStatus!=pdStatusCheck.CANCELLED" mat-raised-button mat-button-md mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Discussion" matTooltipPosition="above" (click)="getPDStart(addresses,addresses.addtional_pd_data[0].vendor_status)"><mat-icon>question_answer</mat-icon></button></span>
|
(currentPDStatus == pdStatusCheck.ALLOCATED_TO_FIA && (currentVendorStatus==pdStatusCheck.ALLOCATED||currentVendorStatus==pdStatusCheck.SCHEDULED || currentVendorStatus==pdStatusCheck.CANCELLED ))" mat-raised-button mat-button-md mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Allocate" matTooltipPosition="above" (click)="selfAllocation(addresses.fk_state)"><mat-icon>verified_user</mat-icon></button></span>
|
||||||
|
|
||||||
|
<!--3 . Allocate Self - no need for Admin Role both normal and vendor
|
||||||
|
<span><button *ngIf="roleAccessDetails.allocate && addresses.assigned_pd && addresses.addtional_pd_data[0].pd_type_name && (currentPDStatus == pdStatusCheck.TRIGGERED || currentPDStatus==pdStatusCheck.CANCELLED || currentPDStatus == pdStatusCheck.ALLOCATED) " mat-raised-button mat-button-md mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Allocate to Self" matTooltipPosition="above" (click)="selfAllocation(addresses.fk_state)"><mat-icon>verified_user</mat-icon></button></span> -->
|
||||||
|
|
||||||
|
<!--4 . Allocate Vendor - Draft,Trigger,Schedule,Allocated status only - both mail and venor-->
|
||||||
|
<!-- <span><button *ngIf="currentPDStatus==pdStatusCheck.DRAFT || currentPDStatus==pdStatusCheck.TRIGGERED || currentPDStatus==pdStatusCheck.ALLOCATED || currentPDStatus==pdStatusCheck.SCHEDULED || currentPDStatus==pdStatusCheck.CANCELLED || (currentPDStatus == pdStatusCheck.ALLOCATED_TO_FIA && (currentVendorStatus==pdStatusCheck.ALLOCATED||currentVendorStatus==pdStatusCheck.SCHEDULED))" mat-raised-button mat-button-md mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Allocate to Vendor" matTooltipPosition="above" (click)="Allocationtovendor(addresses.fk_state)"><mat-icon>assignment_ind</mat-icon></button></span> -->
|
||||||
|
|
||||||
|
<!--5 . Send Back To CPA - for all status -->
|
||||||
|
<span><button mat-raised-button mat-button-md mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Send back to CPA" matTooltipPosition="above" (click)="allocateToCpa()"><mat-icon>swap_vert</mat-icon></button></span>
|
||||||
|
|
||||||
|
<!--6 . Discussion - Inprogress,Completed,QC-Completed status only - admin role normal -->
|
||||||
|
<span *ngIf="roleAccessDetails.discussions && addresses.addtional_pd_data[0].pd_status">
|
||||||
|
<button *ngIf="currentPDStatus==pdStatusCheck.INPROGRESS || currentPDStatus==pdStatusCheck.COMPLETED || currentPDStatus==pdStatusCheck.QC_COMPLETED" mat-raised-button mat-button-md mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Discussion" matTooltipPosition="above" (click)="getPDStart(addresses,addresses.addtional_pd_data[0].pd_status)"><mat-icon>question_answer</mat-icon></button></span>
|
||||||
|
|
||||||
|
<!--7 . Vendor Discussion - Allocated,Inprogress,Completed,QC-Completed status only - admin role vendor-->
|
||||||
|
<span *ngIf="roleAccessDetails.discussions && addresses.addtional_pd_data[0].pd_status && addresses.addtional_pd_data[0].vendor_status">
|
||||||
|
<button *ngIf="currentVendorStatus==pdStatusCheck.INPROGRESS || currentVendorStatus==pdStatusCheck.COMPLETED || currentVendorStatus==pdStatusCheck.QC_COMPLETED" mat-raised-button mat-button-md mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Discussion." matTooltipPosition="above" (click)="getPDStart(addresses,addresses.addtional_pd_data[0].vendor_status)"><mat-icon>question_answer</mat-icon></button></span>
|
||||||
|
|
||||||
|
<!--8 . Cancellation - Cancellation not need remaining all status -both normal and vendor -->
|
||||||
|
<span><button *ngIf="(currentPDStatus!==pdStatusCheck.CANCELLED) || (currentPDStatus === pdStatusCheck.ALLOCATED_TO_FIA && (currentVendorStatus!==pdStatusCheck.CANCELLED))" mat-raised-button mat-button-md mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Cancel PD" matTooltipPosition="above" (click)="cancelPD(addresses)"><mat-icon>cancel_presentation</mat-icon></button></span>
|
||||||
|
|
||||||
</span>
|
</span>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -609,12 +609,14 @@ dialogRef1.afterClosed().subscribe(rr=>{
|
|||||||
}
|
}
|
||||||
/** To update pd officer*/
|
/** To update pd officer*/
|
||||||
selfAllocation(state_id) {
|
selfAllocation(state_id) {
|
||||||
// console.log('selfAllocation city = ',this.pdMasterData[0].fk_city);
|
|
||||||
// console.log(this.pdMasterData[0]);
|
// console.log(this.pdMasterData[0]);
|
||||||
// return
|
// return
|
||||||
|
let flag : any = null;//admin role means introduce the flag.
|
||||||
if((this.LenderRoleID == '27') || (this.LenderRoleID == '25') || (this.LenderRoleID == '28') || (this.LenderRoleID == '30')){
|
if((this.LenderRoleID == '27') || (this.LenderRoleID == '25') || (this.LenderRoleID == '28') || (this.LenderRoleID == '30')){
|
||||||
|
flag = this.LenderRoleID=='30'&&localStorage.getItem('smc_agency_id')?0:1;//agency id and admin role means 1 else 0 means introduce the flag.
|
||||||
const dialogRef1 = this.dialog.open(PdAllocationComponent, {
|
const dialogRef1 = this.dialog.open(PdAllocationComponent, {
|
||||||
data: { pd_id:this.viewID, pd_status: this.pdStatusCheck.ALLOCATED,random_string:this.pdMasterData[0].random_string,city_id:this.pdMasterData[0].fk_city,dialogType:'actionOnly',state_id:state_id, lender_role_id:this.LenderRoleID },
|
data: { pd_id:this.viewID, pd_status: this.pdStatusCheck.ALLOCATED,random_string:this.pdMasterData[0].random_string,city_id:this.pdMasterData[0].fk_city,dialogType:'actionOnly',state_id:state_id, lender_role_id:this.LenderRoleID,lender_admin_flag:flag },
|
||||||
disableClose: true,
|
disableClose: true,
|
||||||
minWidth: '30%',
|
minWidth: '30%',
|
||||||
})
|
})
|
||||||
|
|||||||
@ -35,6 +35,7 @@ export class PdTrigerService {
|
|||||||
MAP_API_URL: string;
|
MAP_API_URL: string;
|
||||||
// private apiUrl = "http://ssa.sineedge.com/sparqapi/api/";
|
// private apiUrl = "http://ssa.sineedge.com/sparqapi/api/";
|
||||||
private apiUrl = environment.apiEndpoint;
|
private apiUrl = environment.apiEndpoint;
|
||||||
|
// private apiUrl2 = environment.devApiEndpoint;
|
||||||
usertype: string;
|
usertype: string;
|
||||||
LenderRoleID: string;
|
LenderRoleID: string;
|
||||||
entity_id: string;
|
entity_id: string;
|
||||||
@ -1035,7 +1036,7 @@ loadTemplate(form_id) {
|
|||||||
getSMCVendorPDOfficersList(roleid)
|
getSMCVendorPDOfficersList(roleid)
|
||||||
{
|
{
|
||||||
//let agencyid=localStorage.getItem('user_role')=='28'|| localStorage.getItem('user_role')=='29'?localStorage.getItem('smc_agency_id'):localStorage.getItem('user_role')
|
//let agencyid=localStorage.getItem('user_role')=='28'|| localStorage.getItem('user_role')=='29'?localStorage.getItem('smc_agency_id'):localStorage.getItem('user_role')
|
||||||
let agencyid=this.pdagencyid = localStorage.getItem('smc_agency_id');
|
let agencyid = +localStorage.getItem('smc_agency_id');
|
||||||
return this._http.get(this.apiUrl+'getSMCVendorPDOfficersList?agency_id='+agencyid)
|
return this._http.get(this.apiUrl+'getSMCVendorPDOfficersList?agency_id='+agencyid)
|
||||||
.pipe(
|
.pipe(
|
||||||
catchError(this.handleError('operation', []))
|
catchError(this.handleError('operation', []))
|
||||||
|
|||||||
@ -8,7 +8,7 @@ export const environment = {
|
|||||||
|
|
||||||
environmentName: 'Development Environment',//Localhost Environment.
|
environmentName: 'Development Environment',//Localhost Environment.
|
||||||
|
|
||||||
// apiEndpoint: 'https://apitest.pdgenie.com/sparqtest/api/',
|
devApiEndpoint: 'http://localhost/AWSEC2/sparqapi/api/',
|
||||||
apiEndpoint: ' https://apitest.pdgenie.com/sparqtest/api/',
|
apiEndpoint: ' https://apitest.pdgenie.com/sparqtest/api/',
|
||||||
|
|
||||||
authorization: 'sparqvenba2018',
|
authorization: 'sparqvenba2018',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user