1
wangyi
2025-12-11 eddde663cbe07194ce9345bd1f434a7989dae7d3
WebTM/views/³µ¼ä¹ÜÀí/±¨±í·ÖÎö/Mes_OrderProcFlowAllReport_TK.html
@@ -275,7 +275,8 @@
                    $('#HDate1').prop('disabled', true);
                    $('#HDate2').prop('disabled', true);
                    $("#HDate1").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * HInitTimeCycle), "yyyy-MM-dd"));
/*                    $("#HDate1").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * HInitTimeCycle), "yyyy-MM-dd"));*/
                    $("#HDate1").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * 30), "yyyy-MM-dd"));
                    $("#HDate2").val(Format(new Date(), "yyyy-MM-dd"));
                    //执行查询方法
@@ -290,28 +291,30 @@
            //#region æ­¤é¡µé¢æ‰€æœ‰çš„æ–¹æ³•
            //初始化界面
            // åˆå§‹åŒ–界面
            function set_ClearBill() {
                //初始化表格
                // åˆå§‹åŒ–表格
                set_InitGrid();
                //初始化日期间隔、开始日期、结束日期
                setSelect_HInitTimeCycle();
                //若日期间隔不为 ä»»æ„é—´éš”,则禁用开始日期与结束日期的选择
                var HInitTimeCycle = $("#HInitTimeCycle").val() * 1;
                if (HInitTimeCycle != -1) {
                    $('#HDate1').prop('disabled', true);
                    $('#HDate2').prop('disabled', true);
                } else {
                    $('#HDate1').prop('disabled', false);
                    $('#HDate2').prop('disabled', false);
                }
                $("#HDate1").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * HInitTimeCycle), "yyyy-MM-dd"));
                $("#HDate2").val(Format(new Date(), "yyyy-MM-dd"));
                //加载数据到网格
                $("#HInitTimeCycle").val("-1");
                form.render('select');
                $('#HDate1').prop('disabled', false);
                $('#HDate2').prop('disabled', false);
                var today = new Date();
                var twoDaysAgo = new Date();
                twoDaysAgo.setDate(today.getDate() - 2);
                $("#HDate1").val(Format(twoDaysAgo, "yyyy-MM-dd"));
                $("#HDate2").val(Format(today, "yyyy-MM-dd"));
                // åŠ è½½æ•°æ®åˆ°ç½‘æ ¼
                get_FastQuery();
            }
            //初始化表格
@@ -516,7 +519,7 @@
                $("#HInitTimeCycle").append(HInitTimeCycle_ArrayList);
                form.render('select');
                $("#HInitTimeCycle").val("1");
                //$("#HInitTimeCycle").val("-1");
            }
            //#endregion