From ef1530e8b11e40967a51efa177aac462015f47dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A3=E5=9C=A3=E5=8D=8E?= <752718920@qq.com> Date: Fri, 30 Jun 2017 00:07:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E6=8A=A5=E8=A1=A8=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=EF=BC=8C=E5=88=9D=E5=A7=8B=E5=8C=96=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/webapp/js/common/common.js | 14 ++++++++ src/main/webapp/pages/materials/person.jsp | 4 +-- .../webapp/pages/reports/buy_in_report.jsp | 33 +++++++++++-------- .../pages/reports/in_out_stock_report.jsp | 28 +++++++++------- .../webapp/pages/reports/sale_out_report.jsp | 29 +++++++++------- 5 files changed, 69 insertions(+), 39 deletions(-) diff --git a/src/main/webapp/js/common/common.js b/src/main/webapp/js/common/common.js index 606ea249..3e32f56f 100644 --- a/src/main/webapp/js/common/common.js +++ b/src/main/webapp/js/common/common.js @@ -105,6 +105,20 @@ function getNowFormatDateTime() { return currentdate; } +/** + * js获取当前时间, 格式“yyyy-MM” + */ +function getNowFormatMonth() { + var date = new Date(); + var seperator1 = "-"; + var month = date.getMonth() + 1; + if (month >= 1 && month <= 9) { + month = "0" + month; + } + var currentdate = date.getFullYear() + seperator1 + month; + return currentdate; +} + /** * js获取当前时间, 格式“yyyy-MM-dd” */ diff --git a/src/main/webapp/pages/materials/person.jsp b/src/main/webapp/pages/materials/person.jsp index 956c0b00..8939e462 100644 --- a/src/main/webapp/pages/materials/person.jsp +++ b/src/main/webapp/pages/materials/person.jsp @@ -28,11 +28,11 @@