This commit is contained in:
Taric Xin
2022-02-22 15:38:16 +08:00
parent c3d673380b
commit 6285aa085c
4 changed files with 5 additions and 5 deletions

View File

@ -54,7 +54,7 @@ export class WithdrawalsRecordComponent implements OnInit {
switch (e.type) {
case 'checkbox':
this.selectedRows = e.checkbox!;
this.totalCallNo = this.selectedRows.reduce((total, cv) => total + cv.amount, 0);
this.totalCallNo = (this.selectedRows.reduce((total, cv) => total + cv.amount, 0)).toFixed(2);;
break;
}
}

View File

@ -60,7 +60,7 @@ export class InvoiceRequestedDetailComponent implements OnInit {
switch (e.type) {
case 'checkbox':
this.selectedRows = e.checkbox!;
this.totalCallNo = this.selectedRows.reduce((total, cv) => total + cv.billkpmoney, 0);
this.totalCallNo = (this.selectedRows.reduce((total, cv) => total + cv.billkpmoney, 0)).toFixed(2);;
break;
case 'filter':
this.st.load();

View File

@ -62,7 +62,7 @@ export class InvoiceRequestedComponent implements OnInit {
switch (e.type) {
case 'checkbox':
this.selectedRows = e.checkbox!;
this.totalCallNo = this.selectedRows.reduce((total, cv) => total + cv.applyAmount, 0);
this.totalCallNo = this.selectedRows.reduce((total, cv) => total + cv.applyAmount, 0).toFixed(2);
break;
}
}
@ -430,7 +430,7 @@ export class InvoiceRequestedComponent implements OnInit {
this.initST();
setTimeout(() => {
console.log(this.resourceStatus);
this.st.load();
}, 500);
}

View File

@ -51,7 +51,7 @@ export class InvoicedListComponent implements OnInit {
switch (e.type) {
case 'checkbox':
this.selectedRows = e.checkbox!;
this.totalCallNo = this.selectedRows.reduce((total, cv) => total + cv.vatnotax, 0);
this.totalCallNo = (this.selectedRows.reduce((total, cv) => total + cv.vatnotax, 0)).toFixed(2);;
break;
}
}