WebTM/views/»ù´¡×ÊÁÏ/¹«Óûù´¡×ÊÁÏ/Gy_MouldType.html
@@ -13,6 +13,7 @@
    <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script>
    <script src="../../../layuiadmin/Scripts/webConfig.js"></script>
    <script src="../../../layuiadmin/PubCustom.js"></script>
    <script src="../../../layuiadmin/soulTable.slim.js"></script>
</head>
<body>
@@ -71,7 +72,7 @@
            base: '../../../layuiadmin/' //静态资源所在路径
        }).extend({
            index: 'lib/index', //主入口模块
        }).use(['tree', 'index', 'form', 'table', 'element', 'laypage', 'laydate'], function () {
        }).use(['tree', 'index', 'form', 'table', 'element', 'laypage', 'laydate','soulTable'], function () {
            //#region å…¬å…±å˜é‡
            var $ = layui.$
                , admin = layui.admin
@@ -83,6 +84,7 @@
                , laydate = layui.laydate
                , util = layui.util
                , tree = layui.tree
                , soulTable = layui.soulTable
            //查询条件
            var sWhere = "";
            var option = [];
@@ -139,6 +141,17 @@
                get_FastQuery();
            });
            //#endregion
            //#region åŒå‡»è¿”回数据
            table.on('rowDouble(mainTable)', function (obj) {
                var data = [];
                data.push(obj.data);
                parent.GetMouldTypeValue(data);
                var index = parent.layer.getFrameIndex(window.name);
                parent.layer.close(index);
            });
            //#endregion
            //初始化表格
            function set_ClearBill() {
@@ -154,22 +167,26 @@
                option = {
                    elem: '#mainTable'
                    , toolbar: '#toolbarDemo'
                    , totalRow: true
                    , height: 'full-50'
                    , page: true
                    , limits: [50, 500, 5000, 50000]
                    , limit: 50
                    , cellMinWidth: 90
                    , done: function (res, curr, count) {
                        soulTable.render(this);
                    }
                    , cols: [[
                        { type: 'checkbox', fixed: 'left' }
                        , { field: 'HItemID', title: 'HItemID', sort: true, hide: true }
                        , { field: 'HParentID', title: 'HParentID', sort: true, hide: true }
                        , { field: 'HNumber', title: '代码', width: 200 }
                        , { field: 'HName', title: '名称', width: 200 }
                        , { field: 'HLevel', title: '等级', width: 200 }
                        , { field: 'HEndFlag', title: '明细标记', width: 200 }
                        , { field: 'HStopFlag', title: '禁用标记', width: 200 }
                        , { field: 'HRemark', title: '备注', width: 200 }
                        , { field: 'HUseFlag', title: '使用标记', width: 200 }
                        { type: 'checkbox', fixed: 'left', totalRowText: '合计行' }
                        , { field: 'HItemID', title: 'HItemID', sort: true, hide: true ,sort:true}
                        , { field: 'HParentID', title: 'HParentID', sort: true, hide: true, sort: true}
                        , { field: 'HNumber', title: '代码', width: 200, sort: true}
                        , { field: 'HName', title: '名称', width: 200, sort: true}
                        , { field: 'HLevel', title: '等级', width: 200, sort: true}
                        , { field: 'HEndFlag', title: '明细标记', width: 200, sort: true}
                        , { field: 'HStopFlag', title: '禁用标记', width: 200, sort: true}
                        , { field: 'HRemark', title: '备注', width: 200, sort: true}
                        , { field: 'HUseFlag', title: '使用标记', width: 200, sort: true}
                    ]]
                };
            }