mis report changes,menu changes,credit manger queries changes
This commit is contained in:
parent
dfb3ce4c0b
commit
eeae750ec3
@ -6,7 +6,7 @@
|
||||
|
||||
<!-- <button class="btn_export" mat-raised-button color="primary" (click)="exp.exportTable('xlsx',{fileName:'SMC Credit PD MIS Report'})" [disabled]="dataLength == 0 ? true : false || dataLength == -1 ? true : false" >Excel Export</button> -->
|
||||
|
||||
<button class="btn_export" mat-raised-button color="primary" [appExcelExport]="exportExcelTableData" fileName="customers" [disabled]="dataLength == 0 ? true : false || dataLength == -1 ? true : false" >Excel Export</button>
|
||||
<button class="btn_export" mat-raised-button color="primary" [appExcelExport]="exportExcelTableData" fileName="MW Credit PD Reports" [disabled]="dataLength == 0 ? true : false || dataLength == -1 ? true : false" >Excel Export</button>
|
||||
|
||||
<!-- (click)="ExportTOExcel()" -->
|
||||
</mat-card-title>
|
||||
@ -145,6 +145,11 @@
|
||||
</ng-container>
|
||||
<ng-container matColumnDef="remarks">
|
||||
<th mat-header-cell *matHeaderCellDef mat-sort-header>Remarks</th>
|
||||
<td mat-cell *matCellDef="let row">
|
||||
<span *ngIf="row.updatedon" mat-line> {{row.mis_report_remarks}}</span> </td>
|
||||
</ng-container>
|
||||
<ng-container matColumnDef="add">
|
||||
<th mat-header-cell *matHeaderCellDef mat-sort-header>Action</th>
|
||||
<td mat-cell *matCellDef="let row">
|
||||
<span *ngIf="row.updatedon" mat-line>
|
||||
<span ><button mat-fab (click)="addRemark(row.pd_id)" class="mr-1 mb-1 hover-icon" color="primary" matTooltip="Add Remarks" matTooltipPosition="above" >
|
||||
|
||||
@ -47,11 +47,12 @@ export class SmcCreditComponent implements OnInit {
|
||||
'status',
|
||||
'createdon',
|
||||
'remarks',
|
||||
'add'
|
||||
// 'mail_status'
|
||||
];
|
||||
expandStatus: boolean=true;
|
||||
|
||||
customers: any = [];
|
||||
|
||||
exportExcelTableData: any;
|
||||
excelExportData: any = [];
|
||||
|
||||
@ -158,7 +159,7 @@ export class SmcCreditComponent implements OnInit {
|
||||
if(res['dataStatus'] == true){
|
||||
|
||||
this.dataSource.data=res['records'];
|
||||
this.dataLength=res['records'].length;
|
||||
this.dataLength=res['records'].length;
|
||||
|
||||
this.excelExportData = res['records']
|
||||
console.log(this.excelExportData)
|
||||
@ -166,13 +167,14 @@ export class SmcCreditComponent implements OnInit {
|
||||
this.exportExcelTableData = this.excelExportData.map(val=>{
|
||||
console.log('excelExport',val)
|
||||
return {
|
||||
pd_sno:val.pd_sno,
|
||||
applicant_name:val.applicant_name,
|
||||
type_name:val.type_name,
|
||||
abbr:val.abbr,
|
||||
officer_name:val.officer_name,
|
||||
pd_status:val.pd_status,
|
||||
updatedon:val.updatedon
|
||||
'Reference Number':val.pd_sno,
|
||||
'Main Loan Applicant':val.applicant_name,
|
||||
'Credit PD Type':val.type_name,
|
||||
'Product Type':val.abbr,
|
||||
'Credit Person':val.officer_name,
|
||||
'Status':val.pd_status,
|
||||
'Date':val.updatedon,
|
||||
'Remarks':val.mis_report_remarks
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user