From ad44bdd34e27e8218d207c46cd97062dbafa2857 Mon Sep 17 00:00:00 2001 From: double <768903061@qq.com> Date: Mon, 29 Apr 2019 14:16:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=A5=E8=A1=A8-=E3=80=8B=E7=BB=93=E7=AE=97?= =?UTF-8?q?=E8=B4=A6=E6=88=B7=E6=B7=BB=E5=8A=A0=E5=BD=93=E5=89=8D=E6=80=BB?= =?UTF-8?q?=E4=BD=99=E9=A2=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- erp_web/pages/reports/account_report.html | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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 +