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 + "元");//本月合计金额 } },