zzr99
2022-08-08 75a6bc306d469b4e262e7a600e3fa52df289ceca
WebTM/views/É豸¹ÜÀí/É豸¹æ³Ìµ¥/Sb_EquipDotCheckRuleList.html
@@ -138,8 +138,11 @@
            form.on('submit(btnSearch)', function (data) {
                get_FastQuery();
            });
            //重置按钮
            form.on('submit(btnReSearch)', function (data) {
                get_Refresh();
            });
            //#endregion
@@ -160,15 +163,14 @@
                    , toolbar: '#toolbarDemo'
                    , height: 'full-50'
                    , page: true
                    , limits: [50,200,500,1000,5000,10000]
                    , limits: [50, 500, 5000, 20000]
                    , limit: 50 //每页默认显示的数量
                    , cellMinWidth: 200
                    , limit: 50
                    , limits: [50, 200, 500, 1000, 5000, 10000]
                    , cols: [[
                        { type: 'checkbox', fixed: 'left' }
                        , { field: 'hmainid', title: 'hmainid', sort: true, hide: true }
                        , { field: '日期', title: '日期', templet: "<div>{{d.日期 ==null ?'':layui.util.toDateString(d.日期, 'yyyy-MM-dd')}}</div>"}
                        , { field: '单据号', title: '单据号' }
                        , { field: '点检周期', title: '点检周期' }
                        , { field: '周期单位', title: '周期单位' }
                        , { field: '计划开始日期', title: '计划开始日期', templet: "<div>{{d.日期 ==null ?'':layui.util.toDateString(d.日期, 'yyyy-MM-dd')}}</div>"}
@@ -199,20 +201,22 @@
            //查询
            function get_Display(sWhere) {
                var index = layer.load(0, { shade: false });
                var index = layer.load();
                //进入页面显示的缓存列表
                $.ajax({
                    url: GetWEBURL() + '/Sb_EquipDotCheckRuleBill/GetEquipDotCheckRuleList',
                    type: "GET",
                    data: { "sWhere": sWhere},
                    data: { "sWhere": sWhere, "user": sessionStorage["HUserName"]},
                    success: function (data1) {
                        if (data1.count == 1) {
                            option.data = data1.data;
                            table.render(option);
                            layer.close(index);
                        } else {
                            option.data = data1.data;
                            table.render(option);
                            layer.close(index);
                            layer.alert(data1.code + data1.Message, { icon: 5 });
                            layer.alert("暂无记录", { icon: 5 });
                        }
                    }, error: function () {
                        layer.close(index);
@@ -280,7 +284,7 @@
                        , shade: 0.6 //遮罩透明度
                        , maxmin: true //允许全屏最小化
                        , anim: 0 //0-6的动画形式,-1不开启
                        , content: '../设备档案/Sb_EquipDotCheckRuleEdit.html?OperationType=3&linterid=' + linterid + '&HSouceBillType='
                        , content: '../设备规程单/Sb_EquipDotCheckRuleEdit.html?OperationType=3&linterid=' + linterid + '&HSouceBillType='
                        , resize: false,
                        end: function () {
                            //刷新页面,
@@ -308,7 +312,7 @@
                        $.ajax({
                            type: "GET",
                            url: GetWEBURL() + '/Sb_EquipDotCheckRuleBill/DeleteEquipDotCheckRuleBillList',
                            data: { "HInterID": HInterID},
                            data: { "HInterID": HInterID, "user": sessionStorage["HUserName"]},
                            success: function (result) {
                                if (result.count == 1) {
                                    layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () {
@@ -417,9 +421,12 @@
            //刷新
            function get_Refresh() {
                $("#HNumber").val("");
                $("#HName").val("");
                $("#btnSearch").click();
                 $("#HBillNo").val("");//单据号
                 $("#HCreateBy").val("");//制单人
                $("#BenginHCreateDate").val("");//开始制单时间
                $("#EndHCreateDate").val("");//结束制单时间
                sWhere = "";
                get_Display(sWhere);
            }
            //以上是layui模块