mis report changes,menu changes,credit manger queries changes

This commit is contained in:
Your Name 2021-08-02 18:20:34 +05:30
parent dfb3ce4c0b
commit eeae750ec3
2 changed files with 17 additions and 10 deletions

View File

@ -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" (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()" --> <!-- (click)="ExportTOExcel()" -->
</mat-card-title> </mat-card-title>
@ -145,6 +145,11 @@
</ng-container> </ng-container>
<ng-container matColumnDef="remarks"> <ng-container matColumnDef="remarks">
<th mat-header-cell *matHeaderCellDef mat-sort-header>Remarks</th> <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"> <td mat-cell *matCellDef="let row">
<span *ngIf="row.updatedon" mat-line> <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" > <span ><button mat-fab (click)="addRemark(row.pd_id)" class="mr-1 mb-1 hover-icon" color="primary" matTooltip="Add Remarks" matTooltipPosition="above" >

View File

@ -47,11 +47,12 @@ export class SmcCreditComponent implements OnInit {
'status', 'status',
'createdon', 'createdon',
'remarks', 'remarks',
'add'
// 'mail_status' // 'mail_status'
]; ];
expandStatus: boolean=true; expandStatus: boolean=true;
customers: any = [];
exportExcelTableData: any; exportExcelTableData: any;
excelExportData: any = []; excelExportData: any = [];
@ -158,7 +159,7 @@ export class SmcCreditComponent implements OnInit {
if(res['dataStatus'] == true){ if(res['dataStatus'] == true){
this.dataSource.data=res['records']; this.dataSource.data=res['records'];
this.dataLength=res['records'].length; this.dataLength=res['records'].length;
this.excelExportData = res['records'] this.excelExportData = res['records']
console.log(this.excelExportData) console.log(this.excelExportData)
@ -166,13 +167,14 @@ export class SmcCreditComponent implements OnInit {
this.exportExcelTableData = this.excelExportData.map(val=>{ this.exportExcelTableData = this.excelExportData.map(val=>{
console.log('excelExport',val) console.log('excelExport',val)
return { return {
pd_sno:val.pd_sno, 'Reference Number':val.pd_sno,
applicant_name:val.applicant_name, 'Main Loan Applicant':val.applicant_name,
type_name:val.type_name, 'Credit PD Type':val.type_name,
abbr:val.abbr, 'Product Type':val.abbr,
officer_name:val.officer_name, 'Credit Person':val.officer_name,
pd_status:val.pd_status, 'Status':val.pd_status,
updatedon:val.updatedon 'Date':val.updatedon,
'Remarks':val.mis_report_remarks
} }
}) })