diff --git a/erp_web/pages/reports/account_report.html b/erp_web/pages/reports/account_report.html index bb1d0736..481d8692 100644 --- a/erp_web/pages/reports/account_report.html +++ b/erp_web/pages/reports/account_report.html @@ -39,6 +39,10 @@    打印 +   + + 当前总余额:0   + @@ -182,6 +186,13 @@ if(res && res.code === 200){ if(res.data && res.data.page) { $("#tableData").datagrid('loadData', res.data.page); + var total = 0; + res.data.page.rows.forEach(function(value, index, array){ + //执行某些操作 + total += value.currentamount; + }) + + $(".first-total").text(total); //当前总余额 } } }, @@ -316,4 +327,4 @@ } - \ No newline at end of file +