Map Pd Card
This commit is contained in:
parent
4eac988954
commit
647fb7f25d
@ -12,6 +12,7 @@
|
|||||||
<div style="text-align:right;position:absolute;z-index:2;right:1px">
|
<div style="text-align:right;position:absolute;z-index:2;right:1px">
|
||||||
<button mat-fab color="primary" matTooltip="Close" matTooltipPosition="above" (click)="goList()"><mat-icon>close</mat-icon></button>
|
<button mat-fab color="primary" matTooltip="Close" matTooltipPosition="above" (click)="goList()"><mat-icon>close</mat-icon></button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="25" fxFlex.lg="25" fxFlex.xl="25" style="position:absolute;z-index:1">
|
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="25" fxFlex.lg="25" fxFlex.xl="25" style="position:absolute;z-index:1">
|
||||||
|
|
||||||
<div [style.overflow]="'auto'" [style.height.px]="'500'" *ngIf="pdList.length > 0">
|
<div [style.overflow]="'auto'" [style.height.px]="'500'" *ngIf="pdList.length > 0">
|
||||||
@ -23,13 +24,16 @@
|
|||||||
<input style="border-bottom: 1px solid #dcd9d9;padding-top: 5%;" matInput (keyup)="applyFilter($event.target.value)" placeholder="Search">
|
<input style="border-bottom: 1px solid #dcd9d9;padding-top: 5%;" matInput (keyup)="applyFilter($event.target.value)" placeholder="Search">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<mat-card *ngFor="let details of dataSource.connect() | async">
|
<div *ngFor="let details of dataSource.connect() | async">
|
||||||
|
<div *ngIf="(details.pd_status=='TRIGGERED' || details.pd_status=='ALLOCATED') && details.fk_pd_type !='3' ">
|
||||||
|
|
||||||
|
<mat-card [ngStyle]="{'border-left':'5px solid','border-left-color': getColor(details.fk_pd_type)}">
|
||||||
|
|
||||||
<mat-card-title *ngIf="details.applicat_details" style="margin-bottom: 0px;">
|
<mat-card-title *ngIf="details.applicat_details" style="margin-bottom: 0px;">
|
||||||
<div fxLayout="row" fxFlex="100">
|
<div fxLayout="row" fxFlex="100">
|
||||||
<div fxFlex="55">
|
<div fxFlex="55">
|
||||||
<span style="font-weight:700">{{details.applicat_details[0].applicant_name}}</span> <br>
|
<span style="font-weight:700">{{details.applicat_details[0].applicant_name}}</span><span style="font-size: 13px;"> ({{details.customer_segment_abbr}})</span> <br>
|
||||||
<span style="font-size: 13px;" >{{details.lender_full_name}}({{details.lender_applicant_id}})</span><br>
|
<span style="font-size: 13px;" >{{details.lender_full_name}} ({{details.lender_applicant_id}})</span><br>
|
||||||
</div>
|
</div>
|
||||||
<div fxFlex="45" style="text-align:right;" *ngIf="details.pd_status!=pdStatusCheck.DRAFT">
|
<div fxFlex="45" style="text-align:right;" *ngIf="details.pd_status!=pdStatusCheck.DRAFT">
|
||||||
<button mat-raised-button mat-button-sm mat-icon-button class="mr-1 hover-icon" type="button" matTooltip="PD Allocation" matTooltipPosition="above" (click)="pdAllocationTo(details)"><mat-icon>verified_user</mat-icon></button>
|
<button mat-raised-button mat-button-sm mat-icon-button class="mr-1 hover-icon" type="button" matTooltip="PD Allocation" matTooltipPosition="above" (click)="pdAllocationTo(details)"><mat-icon>verified_user</mat-icon></button>
|
||||||
@ -41,12 +45,16 @@
|
|||||||
|
|
||||||
<span style="font-size: 13px;" class="hover-icon"><i *ngIf="details.city_name" class="fa-1x fa fa-map-marker"> </i>{{details.city_name}}/{{details.state_name}}-{{details.pincode}}</span> <br>
|
<span style="font-size: 13px;" class="hover-icon"><i *ngIf="details.city_name" class="fa-1x fa fa-map-marker"> </i>{{details.city_name}}/{{details.state_name}}-{{details.pincode}}</span> <br>
|
||||||
<span style="font-size: 13px;" *ngIf="details.product_abbr">{{details.product_abbr}}/{{details.subproduct_abbr}}</span><br>
|
<span style="font-size: 13px;" *ngIf="details.product_abbr">{{details.product_abbr}}/{{details.subproduct_abbr}}</span><br>
|
||||||
<span style="font-size: 13px;"> {{details.customer_segment_abbr}}<span *ngIf="details.loan_amount" style="padding-left: 48%;"><i class="fa-1x fa fa-rupee"> </i>{{details.loan_amount}}</span></span><br>
|
<!----<span style="font-size: 13px;"> {{details.customer_segment_abbr}}<span *ngIf="details.loan_amount" style="padding-left: 48%;"><i class="fa-1x fa fa-rupee"> </i>{{details.loan_amount}}</span></span><br>-->
|
||||||
<span style="font-size: 13px;">{{details.pd_date_of_initiation}}</span><br>
|
<span style="font-size: 13px;">{{details.pd_date_of_initiation}}</span> -
|
||||||
<span style="font-size: 13px;">{{details.pd_status}} - {{ (details.updatedon)? (details.updatedon | slice:0:10):(details.updatedon) }}</span>
|
<span style="font-size: 13px;">{{details.pd_status}} <!--- {{ (details.updatedon)? (details.updatedon | slice:0:10):(details.updatedon) }}--></span>
|
||||||
|
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
</mat-card>
|
</mat-card>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
<mat-list *ngIf="recordStatus">
|
<mat-list *ngIf="recordStatus">
|
||||||
<mat-list-item>
|
<mat-list-item>
|
||||||
<p mat-line>No Record Found ...</p>
|
<p mat-line>No Record Found ...</p>
|
||||||
@ -70,6 +78,9 @@
|
|||||||
</agm-map>
|
</agm-map>
|
||||||
</mat-card>
|
</mat-card>
|
||||||
</div>
|
</div>
|
||||||
|
<div style="text-align:right;position:absolute;z-index:2;bottom: 0;right: 0;">
|
||||||
|
<span style="width: 30px; height: 10px; background:#009688;color:#009688">II</span> Full <span style="width: 30px; height: 10px; background:#673ab7;color:#673ab7">II</span> Smart
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -46,6 +46,10 @@ pdList:any[] = [];
|
|||||||
"COMPLETED" :'COMPLETED',
|
"COMPLETED" :'COMPLETED',
|
||||||
"QC_COMPLETED" :'QC_COMPLETED',
|
"QC_COMPLETED" :'QC_COMPLETED',
|
||||||
};
|
};
|
||||||
|
public getColor(type: number): string{
|
||||||
|
|
||||||
|
return type == 1 ? "#009688" : "#673ab7" ;
|
||||||
|
}
|
||||||
|
|
||||||
constructor(notifier:NotifierService,private route: ActivatedRoute,
|
constructor(notifier:NotifierService,private route: ActivatedRoute,
|
||||||
private router: Router,private _pd: PdTrigerService,private dialog: MatDialog,private _geolocation: GetGeometricLocationService, private ListPdComponent : ListPdComponent) {
|
private router: Router,private _pd: PdTrigerService,private dialog: MatDialog,private _geolocation: GetGeometricLocationService, private ListPdComponent : ListPdComponent) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user