This commit is contained in:
Taric Xin
2022-03-30 09:44:33 +08:00
parent d1c0f7a05f
commit 26e3893f3a
2 changed files with 4 additions and 2 deletions

View File

@ -50,6 +50,8 @@ export class InvoiceRequestedDetailComponent implements OnInit {
}
beforeReq = (requestOptions: STRequestOptions) => {
this.totalCallNo = '0';
this.selectedRows = [];
Object.assign(requestOptions.body, { vatappHId: this.id });
if (this.sf) {
Object.assign(requestOptions.body, { ...this.sf.value });
@ -58,7 +60,7 @@ export class InvoiceRequestedDetailComponent implements OnInit {
};
afterRes = (data: any[], rawData?: any) => {
this.totalCallNo = data.reduce((total, cv) => total + cv.billkpmoney, 0).toFixed(2);
// this.totalCallNo = data.reduce((total, cv) => total + cv.billkpmoney, 0).toFixed(2);
return data.map(item => ({
...item
}));