1
duhe
2024-09-11 28711a084415ac3a74c719e9a3b4fffc21a02ee1
WebTM/views/ÖÊÁ¿¹ÜÀí/ÖÊÁ¿±¨±í/QC_EquipMentCollectionTechParam.html
@@ -67,9 +67,15 @@
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-label">日期</label>
                                        <label class="layui-form-label">开始日期</label>
                                        <div class="layui-input-block">
                                            <input type="date" class="layui-input ForFilteringSchemes" id="HDate" style="width:190px;">
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-label">结束日期</label>
                                        <div class="layui-input-block">
                                            <input type="date" class="layui-input ForFilteringSchemes" id="HDate1" style="width:190px;">
                                        </div>
                                    </div>
                                    <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch" style="padding: 0 10px;margin-left: 20px;">
@@ -273,6 +279,7 @@
            // åˆå§‹åŒ–界面
            function set_ClearBill() {
                $("#HDate").val(Format(new Date, "yyyy-MM-dd"));
                $("#HDate1").val(Format(new Date, "yyyy-MM-dd"));
                set_InitGrid(); //初始化表格
                get_FastQuery();
                ////加载折线图
@@ -293,14 +300,10 @@
                    , limits: [50, 500, 5000, 20000]
                    , cols: [[
                        { type: 'checkbox', totalRowText: '合计行' }
                        , { field: '日期', title: '日期', sort: true }
                        , { field: '设备编码', title: '设备编码', sort: true }
                        , { field: '采集日期', title: '采集日期', sort: true }
                        , { field: '工艺参数', title: '工艺参数', sort: true }
                        , { field: '单位 ', title: '单位 ',sort: true }
                        , { field: '上限值', title: '上限值', sort: true }
                        , { field: '标准值', title: '标准值', sort: true }
                        , { field: '下限值', title: '下限值', sort: true }
                        , { field: '实际值', title: '实际值', sort: true }
                        , { field: '数采值', title: '数采值', sort: true }
                    ]]
                };
@@ -313,7 +316,7 @@
                var ajaxLoad = layer.load();
                //进入页面显示的缓存列表
                $.ajax({
                    url: GetWEBURL() + '/QC_CustomerAppealReport/SB_EquipICMOTechParamList',
                    url: GetWEBURL() + '/QC_CustomerAppealReport/Get_QC_EquipMentCollectionTechParamList',
                    type: "GET",
                    async:false,
                    data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] },
@@ -384,7 +387,8 @@
                var HEquipName = $("#HEquipName").val();
                var HProcName = $("#HProcName").val();
                var HTechParamName = $("#HTechParamName").val();
                var HDate = $("#HDate").val();
                var HDate = $("#HDate").val(); //开始日期
                var HDate1 = $("#HDate1").val();//结束日期
                var ColName = $("#ColName").val();//复选框
                var Comparator = $("#Comparator").val()
@@ -461,17 +465,24 @@
                    sWhere += " and " + ColName2 + " " + com2;
                }
                if (HEquipNumber != "" && HEquipName != "" && HProcName != "" && HTechParamName != "") {
                    sWhere = {
                        HEquipNumber: HEquipNumber
                        , HEquipName: HEquipName
                        , HProcName: HProcName
                        , HTechParamName: HTechParamName
                        , HDate: HDate
                    }
                    get_Display(JSON.stringify(sWhere));
                if (HEquipNumber) {
                    sWhere += " and è®¾å¤‡ç¼–码 = '" + HEquipNumber + "'";
                }
                if (HTechParamName) {
                    sWhere += " and å·¥è‰ºäº§æ•° = '" + HTechParamName + "'";
                }
                if (HDate) {
                    sWhere += " and CONVERT(date, é‡‡é›†æ—¥æœŸ) >= '" + HDate + "'";
                }
                if (HDate1) {
                    sWhere += " and CONVERT(date, é‡‡é›†æ—¥æœŸ) <= '" + HDate1 + "'";
                }
                if (HEquipNumber != "" || HTechParamName!="") {
                    get_Display(sWhere);
                    sWhere = "";//调用接口后清空sWhere缓存
                }
            }
            //重置快速查询
            function set_ClearQuery() {
@@ -520,6 +531,11 @@
                        HVaule.push(option.data[i].数采值);
                    }
                }
                var minValue = Math.min(...HVaule) - 10; //折线的最大值
                var maxValue = Math.max(...HVaule) + 10; //折线的最小值
                var interval = Math.floor((maxValue - minValue) / 10); //显示折线的间隔
                option_ZZT = {
                    title: {
                        text: HTitle,
@@ -555,7 +571,10 @@
                    ],
                    yAxis: [
                        {
                            type: 'value'
                            type: 'value',
                            min: minValue,
                            max: maxValue,
                            interval: interval
                        }
                    ],
                    series: [
@@ -603,7 +622,7 @@
            }
            //#endregion
            //工序流转卡弹窗
            //设备弹窗
            form.on('submit(btnHEquip)', function () {
                //页面层-自定义
                layer.open({
@@ -627,7 +646,6 @@
                        $("#HEquipNumber").val(checkStatus.data[0].设备编码);
                        $("#HEquipName").val(checkStatus.data[0].设备名称);
                        layer.close(layer.index); //它获取的始终是最新弹出的某个层,值是由layer内部动态递增计算的
                        get_EquipList();
                    }
                    , btn2: function (index, layero) {
                        //按钮【按钮二】的回调