From 966c9c12589c9ff01415a63b3a7bdafdfdebf78d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A3=E5=9C=A3=E5=8D=8E?= <752718920@qq.com> Date: Sun, 13 Aug 2017 10:30:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=BF=9B=E9=94=80=E5=AD=98?= =?UTF-8?q?=E6=8A=A5=E8=A1=A8=E7=9A=84=E7=BB=9F=E8=AE=A1bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/webapp/pages/reports/in_out_stock_report.jsp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/webapp/pages/reports/in_out_stock_report.jsp b/src/main/webapp/pages/reports/in_out_stock_report.jsp index 416c8675..3c9d503a 100644 --- a/src/main/webapp/pages/reports/in_out_stock_report.jsp +++ b/src/main/webapp/pages/reports/in_out_stock_report.jsp @@ -364,7 +364,9 @@ { if(data && data.totalCount) { var count = data.totalCount.toString(); - count = count.substring(0,count.lastIndexOf('.')+3); + if(count.lastIndexOf('.')>-1) { + count = count.substring(0, count.lastIndexOf('.') + 3); + } $("#searchPanel .total-count").text("本月合计金额:" + count + "元");//本月合计金额 } },