1
duhe
2026-01-08 deaa392c6292c96b90bf59cf1e7dfbb7363538c4
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();
            }
            //初始化表格
@@ -327,12 +330,12 @@
            }
            //加载网格
            function get_Display(txtHOrderProcNo, txtHMaterNumber, check, txtHDeptName, sWhere) {
            function get_Display(HDate1,HDate2,txtHOrderProcNo, txtHMaterNumber, check, txtHDeptName, sWhere) {
                var wait = layer.load();//遮罩
                $.ajax({
                    url: GetWEBURL() + '/Mes_OrderProcFlowAllReport/OrderProcFlowAllReportList_Tk',
                    type: "GET",
                    data: {"txtHOrderProcNo": txtHOrderProcNo, "txtHMaterNumber": txtHMaterNumber, "check": check, "txtHDeptName": txtHDeptName, "sWhere": sWhere },
                    data: { "HDate1": HDate1, "HDate2": HDate2,"txtHOrderProcNo": txtHOrderProcNo, "txtHMaterNumber": txtHMaterNumber, "check": check, "txtHDeptName": txtHDeptName, "sWhere": sWhere },
                    success: function (data1) {
                        var col = [];
                        if (data1.count == 1) {
@@ -385,7 +388,8 @@
            function get_FastQuery() {
                var HDate1 = $("#HDate1").val();
                var HDate2 = $("#HDate2").val();
                sWhere = "and å·¥åºå®Œå·¥æ—¥æœŸ1 >='" + HDate1 + "' and å·¥åºå®Œå·¥æ—¥æœŸ1<='" + HDate2 + "'";
                sWhere = "";
                //sWhere = "and å·¥åºå®Œå·¥æ—¥æœŸ1 >='" + HDate1 + "' and å·¥åºå®Œå·¥æ—¥æœŸ1<='" + HDate2 + "'";
                var txtHOrderProcNo = $("#txtHOrderProcNo").val();//订单跟踪号
                var txtHMaterNumber = $("#txtHMaterNumber").val(); //物料
                var txtHDeptName = $("#txtHDeptName").val(); //物料
@@ -469,7 +473,7 @@
                    sWhere += " and " + ColName2 + " " + com2;
                }
                get_Display(txtHOrderProcNo, txtHMaterNumber, check, txtHDeptName, sWhere);
                get_Display(HDate1,HDate2,txtHOrderProcNo, txtHMaterNumber, check, txtHDeptName, sWhere);
                //sWhere = "'" + HDate1 + "','" + HDate2 + "','" + txtHOrderProcNo + "','" + txtHMaterNumber + "','" + check + "'" + ",'" + txtHDeptName + "'";
                //调用接口后清空sWhere缓存
                sWhere = "";
@@ -515,7 +519,7 @@
                $("#HInitTimeCycle").append(HInitTimeCycle_ArrayList);
                form.render('select');
                $("#HInitTimeCycle").val("1");
                //$("#HInitTimeCycle").val("-1");
            }
            //#endregion