yangle
2024-06-11 865eb3bcd1a25d5f9233f85c2549c6fe3da3ceb0
WebTM/views/»ù´¡×ÊÁÏ/»ù´¡×ÊÁÏ/InventoryAnalysis.html
@@ -203,7 +203,7 @@
            var option6 = [];
            var option7 = [];
            var col = [
                { type: 'checkbox', fixed: 'left' }
                { type: 'checkbox', fixed: 'left', totalRowText: '合计行' }
                , { field: 'HItemID', title: 'HItemID', width: 200, hide: true, sort: true}
                , { field: 'HBarCode', title: '器具条码', width: 200, sort: true}
                , { field: 'HMouldNo', title: '器具编号', width: 200, sort: true}
@@ -545,6 +545,7 @@
                    , toolbar: '#toolbarDemo1'
                    , height: '550'
                    , page: true
                    , totalRow: true
                    , cellMinWidth: 90
                    , limit: 50
                    , limits: [50, 500, 5000, 20000]
@@ -566,6 +567,7 @@
                    , toolbar: '#toolbarDemo2'
                    , height: '550'
                    , page: true
                    , totalRow: true
                    , cellMinWidth: 90
                    , limit: 50
                    , limits: [50, 500, 5000, 20000]
@@ -584,6 +586,7 @@
                    , toolbar: '#toolbarDemo3'
                    , height: '550'
                    , page: true
                    , totalRow: true
                    , cellMinWidth: 90
                    , limit: 50
                    , limits: [50, 500, 5000, 20000]
@@ -602,6 +605,7 @@
                    , toolbar: '#toolbarDemo4'
                    , height: '550'
                    , page: true
                    , totalRow: true
                    , cellMinWidth: 90
                    , limit: 50
                    , limits: [50, 500, 5000, 20000]
@@ -620,6 +624,7 @@
                    , toolbar: '#toolbarDemo5'
                    , height: '550'
                    , page: true
                    , totalRow: true
                    , cellMinWidth: 90
                    , limit: 50
                    , limits: [50, 500, 5000, 20000]
@@ -638,6 +643,7 @@
                    , toolbar: '#toolbarDemo6'
                    , height: '550'
                    , page: true
                    , totalRow: true
                    , cellMinWidth: 90
                    , limit: 50
                    , limits: [50, 500, 5000, 20000]
@@ -656,6 +662,7 @@
                    , toolbar: '#toolbarDemo7'
                    , height: '550'
                    , page: true
                    , totalRow: true
                    , cellMinWidth: 90
                    , limit: 50
                    , limits: [50, 500, 5000, 20000]
@@ -821,6 +828,28 @@
            }
            //#endregion
            //#region ç‚¹å‡»è¡Œé€‰ä¸­é«˜äº®
            table.on('row(mainTable)', function (obj) {
                //选中行改变颜色
                var flag = !obj.tr.find(':checkbox:first').prop('checked');
                obj.tr.find(':checkbox').prop('checked', flag);
                if (flag) {
                    obj.tr.find('.layui-form-checkbox').addClass('layui-form-checked');  //设置复选框选中样式
                    $(obj.tr.selector).attr({ "style": "background:#ceedfa;color:black" });//改变当前tr背景颜色和字体颜色
                } else {
                    obj.tr.find('.layui-form-checkbox').removeClass('layui-form-checked');//取消复选框选中样式
                    $(obj.tr.selector).attr({ "style": "background:" });//取消当前tr颜色
                }
                //mainTable ä¸ºè¡¨æ ¼ID   æ³¨æ„æ­¤å¤„如果ID不正确将导致你在监听复选框时获取不到你选择的数据,前面的只是添加或删除选中未选中样式以及设置背景色,字体颜色
                layui.each(table.cache.mainTable, function (i, l) {
                    if (obj.tr.index() == l.LAY_TABLE_INDEX) {
                        l.LAY_CHECKED = flag;
                    }
                });
            })
            //#endregion
            //#region å®¡æ ¸
            //审核 è°ƒæ‹¨
            function set_CheckBill2() {