Commit ad44bdd3 authored by double's avatar double
Browse files

报表-》结算账户添加当前总余额

parent 3e74e733
...@@ -39,6 +39,10 @@ ...@@ -39,6 +39,10 @@
     
<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-print" id="printBtn">打印</a> <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-print" id="printBtn">打印</a>
</td> </td>
<td>&nbsp;</td>
<td>
当前总余额:<span class="first-total">0</span>&nbsp;&nbsp;
</td>
</tr> </tr>
</table> </table>
</div> </div>
...@@ -182,6 +186,13 @@ ...@@ -182,6 +186,13 @@
if(res && res.code === 200){ if(res && res.code === 200){
if(res.data && res.data.page) { if(res.data && res.data.page) {
$("#tableData").datagrid('loadData', 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 @@ ...@@ -316,4 +327,4 @@
} }
</script> </script>
</body> </body>
</html> </html>
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment