From 263f21afd1da36724fa07e9ca551cb9a539bf3ff Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期一, 16 六月 2025 08:39:48 +0800
Subject: [PATCH] 1

---
 WebTM/views/PublicPage/ProductionOrder.html |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/WebTM/views/PublicPage/ProductionOrder.html b/WebTM/views/PublicPage/ProductionOrder.html
index b699b13..8f9919e 100644
--- a/WebTM/views/PublicPage/ProductionOrder.html
+++ b/WebTM/views/PublicPage/ProductionOrder.html
@@ -134,11 +134,16 @@
             //鏌ヨ鏉′欢
             var sWhere = "";
 
+            $("#HDate").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * 30), "yyyy-MM-dd"));
+            $("#HDate1").val(Format(new Date(), "yyyy-MM-dd"));
+            sWhere += " and CONVERT(varchar(100),鏃ユ湡, 23) >= '" + $("#HDate").val() + "'";
+            sWhere += " and CONVERT(varchar(100),鏃ユ湡, 23) <= '" + $("#HDate1").val() + "'";
+
             var index = layer.load(0);
             table.render({
                 elem: '#mainTable'
                 , url: GetWEBURL() + '/Sc_ProductionOrder/GetProductionOrderBill'
-                , where: { sWhere: "" } //鎵╁睍鍙傛暟,鍙互浼犳暟鎹埌鍚庡彴
+                , where: { sWhere: sWhere  } //鎵╁睍鍙傛暟,鍙互浼犳暟鎹埌鍚庡彴
                 , page: true   //寮�鍚垎椤�
                 , limit: 20     //涓�椤佃兘澶熸樉绀虹殑鏈�澶ф暟鐩�
                 ,limits: [20, 40,60,80,100] //鎺у埗澶氬皯琛屼竴椤碉紙榛樿浜旀潯涓�椤碉級

--
Gitblit v1.9.1