王 垚
2022-09-02 f34865d3b3e859e5df9be237d91ee72dc119b907
WebTM/views/É豸¹ÜÀí/Sb_EquipMaintainBillEdit.html
@@ -265,13 +265,14 @@
            //行内事件
            table.on('tool(mainTable)', function (obj) {
                set_GridDelete(obj);   //行内删除
                set_GridCellCheck(obj); //行内快捷键筛选
                set_GridCellCheckMain(obj); //行内快捷键筛选
            });
            //行内事件
            table.on('tool(mainTable1)', function (obj) {
                set_GridDelete1(obj);   //行内删除
                set_GridCellCheck1(obj); //行内快捷键筛选
            });
            //表头信息设备弹窗
            form.on('submit(ProductModulList)', function () {
                //页面层-自定义
@@ -323,7 +324,8 @@
                                option1.data = [{ "HMaterID": 0, "HMaterNumber": "", "HMaterName": "", "HUnitID": 0, "HUnitNumber": "", "HUnitName": "", "HManagerID": "0 ", "HManagerNumber": " ", "HManagerName": " ", "HQty": "0", "HRemark": "" }];
                                table.render(option);
                                table.render(option1);
                                $("#HEquipMaintainRuleInterID").val(BYData[0].HInterID);
                                $("#HEquipMaintainRuleInterNo").val(BYData[0].HBillNo)
                                if (BYData.length != 0)  //表体数据为空时
                                {
                                    buttonArr = [];//清空数组
@@ -503,9 +505,7 @@
            //新增
            form.on('submit(set_AddNew)', function (data) {
                $("#component-form-group")[0].reset();
                layui.form.render();
                set_AddFNew();
                location.reload();
            });
            //保存
            form.on('submit(Saver)', function (data) {
@@ -514,7 +514,7 @@
                var sMainStr = JSON.stringify(data.field);
                var sSubStr = JSON.stringify(table.cache['mainTable']);
                var sSubStr1 = JSON.stringify(table.cache['mainTable1']);
                var sMainSub = sMainStr + ';' + sSubStr + ';' + sSubStr1;
                var sMainSub = sMainStr + ';' + sSubStr + ';' + sSubStr1 + ";" + sessionStorage["HUserName"];
                if (!AllowLoadData(sSubStr))//数据验证
                {
                    return false;
@@ -614,8 +614,8 @@
                    { type: 'checkbox', fixed: 'left' }
                    , { templet: '#xuhao', title: '序号', sort: true, fixed: 'left', event: "qwe" }
                    , { field: 'HMaintainItemID', title: '保养项目ID', edit: 'text', hide: true }
                    , { field: 'HMaintainItemNumber', title: '保养项目代码', edit: 'text', event: 'HMaintainItemNumber' }
                    , { field: 'HMaintainItem', title: '保养项目', edit: 'text' }
                    , { field: 'HMaintainItemNumber', title: '保养项目代码', hide: true ,edit: 'text' }
                    , { field: 'HMaintainItem', title: '保养项目', edit: 'text', event: 'HMaintainItemNumber' }
                    , { field: 'HMaintainPart', title: '保养部位', edit: 'text' }
                    , { field: 'HClaim', title: '具体要求', edit: 'text' }
                    , { field: 'HManagerID', title: '负责人ID', edit: 'text', hide: true }
@@ -880,7 +880,7 @@
                }
            }
            //表格行内事件快捷键筛选
            function set_GridCellCheck(obj) {
            function set_GridCellCheckMain(obj) {
                $(document).off('keydown', ".layui-table-edit").on('keydown', '.layui-table-edit', function (e) {
                    if (event.key == "F7") {
                        if (obj.event === 'HMaintainItemNumber')  //保养项目信息