diff --git a/erp_web/home.html b/erp_web/home.html index 00878f77..d1dff68f 100644 --- a/erp_web/home.html +++ b/erp_web/home.html @@ -25,7 +25,7 @@
今日累计销售 - 0元 +
@@ -34,7 +34,7 @@
本月累计销售 - 0元 +
@@ -44,16 +44,16 @@
本月累计进货 - 0元 +
- +
- 用户数量 - 0 + 本月利润(含财务部分) +
@@ -130,9 +130,9 @@ success: function (res) { if(res && res.code === 200) { if(res.data) { - $("#todaySale").text(res.data.todaySale); - $("#thisMonthSale").text(res.data.thisMonthSale); - $("#thisMonthBuy").text(res.data.thisMonthBuy); + $("#todaySale").text((res.data.todaySale).toFixed(2)); + $("#thisMonthSale").text((res.data.thisMonthSale).toFixed(2)); + $("#thisMonthBuy").text((res.data.thisMonthBuy).toFixed(2)); } } }, @@ -145,20 +145,12 @@ $(function () { $.ajax({ type: "get", - url: "/user/list", + url: "/account/getStatistics", dataType: "json", - data: ({ - search: JSON.stringify({ - userName: "", - loginName: "" - }), - currentPage: 1, - pageSize: 10 - }), success: function (res) { - if(res && res.code === 200) { - if(res.data && res.data.page) { - $("#thisUserSum").text(res.data.page.total); + if (res && res.code === 200) { + if(res.data) { + $("#thisMonthAmount").text((res.data.allMonthAmount-0).toFixed(2)); } } }, diff --git a/erp_web/pages/reports/account_report.html b/erp_web/pages/reports/account_report.html index 4aea21d2..739c66fd 100644 --- a/erp_web/pages/reports/account_report.html +++ b/erp_web/pages/reports/account_report.html @@ -1,7 +1,7 @@ - 结算账户查询 + 账户统计 @@ -22,7 +22,7 @@ -
+