1
wangyi
2026-02-06 2ccacf7efd77c650c8a73193a8e07ac16b1023ab
WebTM/views/³µ¼ä¹ÜÀí/¹¤ÐòÁ÷ת¿¨/Sc_ProcessExchangeArrangement_PG.html
@@ -9,11 +9,14 @@
    <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all">
    <script src="../../../layuiadmin/layui/layui.js"></script>
    <script src="../../../layuiadmin/layui/layui.js"></script>
    <script src="../../../layuiadmin/layui/layui1.js"></script>
    <script src="../../../layuiadmin/Scripts/json2.js"></script>
    <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script>
    <script src="../../../layuiadmin/Scripts/webConfig.js"></script>
    <script src="../../../layuiadmin/layui/layui1.js"></script>
    <script src="../../../layuiadmin/PubCustom.js"></script>
    <script src="../../../layuiadmin/zgqCustom/zgqCustom.js"></script>
    <script src="../../../layuiadmin/PageTitle.js"></script>
    <script src="../../../layuiadmin/grwebapp.js"></script>
    <style>
        /*树状图点击高亮变色*/
        .layui-tree-set-active > .layui-tree-entry .layui-tree-main {
@@ -172,10 +175,10 @@
                            </div>
                        </div>
                        <div class="layui-row" style="padding:10px 0">
                            <div class="layui-col-xs3 layui-inline" style="border: solid 1.5px #e0d6d64d;">
                            <div class="layui-col-xs2 layui-inline" style="border: solid 1.5px #e0d6d64d;">
                                <div id="TreeTable" class="demo-tree demo-tree-box" style="height: 400px; overflow: scroll;"></div>
                            </div>
                            <div class="layui-col-xs8 layui-inline" style="padding-left: 10px; width: 73%">
                            <div class="layui-col-xs10 layui-inline" style="padding-left: 10px; width: 83%">
                                <div>
                                    <table class="" id="mainTable" lay-filter="mainTable"></table>
                                </div>
@@ -232,6 +235,7 @@
            var option2 = [];
            var Organization = sessionStorage["Organization"];
            var HModName = "Sc_ProcessExchangeArrangement_PG";
            var HModName1 = "Sc_ProcessExchangeArrangement_PGMain";
            //不需要显示的字段 å¯æ‰©å±•
            var titleData = [];
            //#endregion
@@ -307,7 +311,7 @@
                    }
                });
                option2.data = layui.table.cache["mainTable2"];
                table.render(option);
                table.render(option2);
            });
            //#endregion
@@ -551,11 +555,7 @@
                            //刷新表格数据
                            DisPlay_HideColumn();
                            layer.close(ajaxLoad);
                            //if ($("#Comparator").val() == 0 && $("#ColContent").val() == "") {
                            //    ColFilter();
                            //}
                            //layer.alert("查询成功", { icon: 1 });
                            layer.close(ajaxLoad);
                        } else {
                            layer.close(ajaxLoad);
                            layer.alert(data1.code + data1.Message, { icon: 5 });
@@ -737,20 +737,25 @@
            function get_print() {
                var checkStatus = table.checkStatus('mainTable')
                    , data = checkStatus.data;
                if (checkStatus.data.length == 1) {
                    var linterid = data[0].hmainid.toString();
                    if (sessionStorage["Organization"] == "宁波市华舟包装有限公司") {
                        layer.open({
                            type: 2
                            , area: ['40%', '80%']
                            , title: '打印模版选择'
                            , shade: 0.6 //遮罩透明度
                            , maxmin: false //允许全屏最小化
                            , anim: 0 //0-6的动画形式,-1不开启
                            , content: ['../../BaseSet/SRM_OpenTmpList.html?linterid=' + linterid.toString() + "|" + 3 + '&MyMsg=' + linterid.toString() + '&Type=HProcessExchange', 'yes']
                            , resize: false
                        })
                if (sessionStorage["Organization"] == "宁波市华舟包装有限公司") {
                    if (checkStatus.data.length > 0) {
                        if (checkStatus.data.length > 1) {
                            layer.confirm("确认要批量打印吗?", { title: "确认" }, function (index) {
                                time = setInterval(function () {
                                    dy_ZD(data);
                                }, 2500);
                                //关闭当前frame
                                layer.close(index);
                            })
                        } else {
                            dy_ZD(data);
                        }
                    } else {
                        layer.msg('请选着要打印的工单!');
                    }
                } else {
                    if (checkStatus.data.length == 1) {
                        var linterid = data[0].hmainid.toString();
                        layer.open({
                            type: 2
                            , area: ['40%', '80%']
@@ -761,11 +766,13 @@
                            , content: ['../../BaseSet/SRM_OpenTmpList.html?linterid=' + linterid.toString() + "|" + QJQD + '&MyMsg=' + linterid.toString() + '&Type=HProcessExchange', 'yes']
                            , resize: false
                        })
                    }
                    else {
                        layer.msg('请选择一行数据打印!');
                    }
                }
                else {
                    layer.msg('请选择一行数据打印!');
                }
            }
            //#region å¿«é€Ÿè¿‡æ»¤
@@ -825,6 +832,7 @@
                    sWhere += " and ç”Ÿäº§è®¢å• like '%" + HICMBillNO + "%'";
                }
                get_Display2(sWhere);
                get_Display(sWhere);
                sWhere = "";//调用接口后清空sWhere缓存
            }
            //#endregion
@@ -834,48 +842,70 @@
            function set_Arrangement() {
                var checkStatus = table.checkStatus('mainTable2')
                    , data = checkStatus.data;
                if (checkStatus.data.length > 0) {
                    if (DataSourceID == "" || DataSourceID == "100") {
                       return layer.msg("请选择需要派工的生产资源!");
                if (checkStatus.data.length ==1 ) {
                    //宁波市华舟包装有限公司
                    if (sessionStorage["Organization"] == "宁波市华舟包装有限公司") {
                        layer.open({
                            type: 2//弹窗类型
                            , skin: 'layui-layer-rim' //加上边框
                            , area: ['90%', '90%']//大小
                            , title: '批量派工列表'//标题
                            , shift: 2//弹出动画
                            , content: ['../../车间管理/工序流转卡/Sc_ProcessExchangeArrangement_PGPL.html?openType=2&HInterID=' + data[0].hmainid + '', 'yes']
                            , btn: ['确定', '取消']
                            , btn1: function (index, layero) {//按钮【按钮一】的回调
                                layer.close(index); //它获取的始终是最新弹出的某个层,值是由layer内部动态递增计算的
                            }
                            , btn2: function (index, layero) { }
                            , end: function () {
                                get_Display(sWhere);
                            }
                        })
                    }
                    else {
                        if (DataSourceID == "" || DataSourceID == "100") {
                            return layer.msg("请选择需要派工的生产资源!");
                        }
                    var HInterID_S = [];
                    for (var i = 0; i < checkStatus.data.length; i++) {
                        HInterID_S.push(data[i].hmainid + "|" + data[i].hsubid);
                    }
                        var HInterID_S = [];
                        for (var i = 0; i < checkStatus.data.length; i++) {
                            HInterID_S.push(data[i].hmainid + "|" + data[i].hsubid);
                        }
                    var wait = layer.load();
                    //逻辑方法
                    $.ajax({
                        url: GetWEBURL() + '/LEMS/ProcessExchangeArrangement_Add_PG',
                        type: "GET",
                        data: { "HInterID_S": HInterID_S.toString(), "HSourceID": DataSourceID, "HOrgID": sessionStorage["OrganizationID"], "user": sessionStorage["HUserName"] },
                        success: function (result) {
                            console.log('gouba' + result);
                            if (result.count == 1) {
                                layer.msg(result.Message, { icon: 1 }, function () {
                                    // å¾—到frame索引
                                    var index = layer.getFrameIndex(window.name);
                                    //关闭当前frame
                        var wait = layer.load();
                        //逻辑方法
                        $.ajax({
                            url: GetWEBURL() + '/LEMS/ProcessExchangeArrangement_Add_PG',
                            type: "GET",
                            data: { "HInterID_S": HInterID_S.toString(), "HSourceID": DataSourceID, "HOrgID": sessionStorage["OrganizationID"], "user": sessionStorage["HUserName"] },
                            success: function (result) {
                                console.log('gouba' + result);
                                if (result.count == 1) {
                                    layer.msg(result.Message, { icon: 1 }, function () {
                                        // å¾—到frame索引
                                        var index = layer.getFrameIndex(window.name);
                                        //关闭当前frame
                                        layer.close(wait);
                                        get_Display("  and HSourceID=" + DataSourceID);
                                        //修改为功后刷新界面
                                        get_FastQuery();
                                    });
                                } else {
                                    layer.alert(result.code + result.Message, { icon: 5 });
                                    layer.close(wait);
                                    get_Display("  and HSourceID=" + DataSourceID);
                                    //修改为功后刷新界面
                                    get_FastQuery();
                                });
                            } else {
                                layer.alert(result.code + result.Message, { icon: 5 });
                                }
                            }, error: function () {
                                layer.alert("接口请求失败!", { icon: 5 });
                                layer.close(wait);
                            }
                        }, error: function () {
                            layer.alert("接口请求失败!", { icon: 5 });
                            layer.close(wait);
                        }
                    });
                        });
                    }
                }
                else {
                    layer.msg('请选择数据!');
                    layer.msg('请选择一行数据进行派工!');
                }
            }
            //取消排缸
@@ -883,46 +913,137 @@
                var checkStatus = table.checkStatus('mainTable')
                    , data = checkStatus.data;
                if (checkStatus.data.length > 0) {
                    if (DataSourceID == "" || DataSourceID == "100") {
                        return layer.msg("请选择需要派工的生产资源!");
                    }
                    var HInterID_S = [];
                    for (var i = 0; i < checkStatus.data.length; i++) {
                        HInterID_S.push(data[i].hmainid + "|" + data[i].hsubid);
                    }
                    var wait = layer.load();
                    //逻辑方法
                    $.ajax({
                        url: GetWEBURL() + '/LEMS/ProcessExchangeArrangementDel_PG',
                        type: "GET",
                        data: { "HInterID_S": HInterID_S.toString(), "HSourceID": DataSourceID, "user": sessionStorage["HUserName"] },
                        success: function (result) {
                            console.log('gouba' + result);
                            if (result.count == 1) {
                                layer.msg(result.Message, { icon: 1 }, function () {
                                    // å¾—到frame索引
                                    var index = layer.getFrameIndex(window.name);
                                    //关闭当前frame
                    if (sessionStorage["Organization"] == "宁波市华舟包装有限公司") {
                        var HInterID_S = [];
                        for (var i = 0; i < checkStatus.data.length; i++) {
                            HInterID_S.push(data[i].hmainid + "|" + data[i].hsubid + "|" + data[i].HSourceID);
                        }
                        //逻辑方法
                        $.ajax({
                            url: GetWEBURL() + '/LEMS/ProcessExchangeArrangementDel_PGHZ',
                            type: "GET",
                            data: { "HInterID_S": HInterID_S.toString(), "user": sessionStorage["HUserName"] },
                            success: function (result) {
                                console.log('gouba' + result);
                                if (result.count == 1) {
                                    layer.msg(result.Message, { icon: 1 }, function () {
                                        // å¾—到frame索引
                                        var index = layer.getFrameIndex(window.name);
                                        //关闭当前frame
                                        layer.close(wait);
                                        //修改为功后刷新界面
                                        get_FastQuery();
                                    });
                                } else {
                                    layer.alert(result.code + result.Message, { icon: 5 });
                                    layer.close(wait);
                                    get_Display("  and HSourceID=" + DataSourceID);
                                    //修改为功后刷新界面
                                    get_FastQuery();
                                });
                            } else {
                                layer.alert(result.code + result.Message, { icon: 5 });
                                }
                            }, error: function () {
                                layer.alert("接口请求失败!", { icon: 5 });
                                layer.close(wait);
                            }
                        }, error: function () {
                            layer.alert("接口请求失败!", { icon: 5 });
                            layer.close(wait);
                        });
                    } else {
                        if (DataSourceID == "" || DataSourceID == "100") {
                            return layer.msg("请选择需要派工的生产资源!");
                        }
                    });
                        var HInterID_S = [];
                        for (var i = 0; i < checkStatus.data.length; i++) {
                            HInterID_S.push(data[i].hmainid + "|" + data[i].hsubid);
                        }
                        //逻辑方法
                        $.ajax({
                            url: GetWEBURL() + '/LEMS/ProcessExchangeArrangementDel_PG',
                            type: "GET",
                            data: { "HInterID_S": HInterID_S.toString(), "HSourceID": DataSourceID, "user": sessionStorage["HUserName"] },
                            success: function (result) {
                                console.log('gouba' + result);
                                if (result.count == 1) {
                                    layer.msg(result.Message, { icon: 1 }, function () {
                                        // å¾—到frame索引
                                        var index = layer.getFrameIndex(window.name);
                                        //关闭当前frame
                                        layer.close(wait);
                                        get_Display("  and HSourceID=" + DataSourceID);
                                        //修改为功后刷新界面
                                        get_FastQuery();
                                    });
                                } else {
                                    layer.alert(result.code + result.Message, { icon: 5 });
                                    layer.close(wait);
                                }
                            }, error: function () {
                                layer.alert("接口请求失败!", { icon: 5 });
                                layer.close(wait);
                            }
                        });
                    }
                }
                else {
                    layer.msg('请选择数据!');
                }
            }
            var time;
            var num = 0;
            //自动打印
            function dy_ZD(rest) {
                var HInterID = rest[num].hmainid.toString();
                var HMouldID = rest[num].HMouldID.toString();
                var sWhere = "exec h_p_Sc_ProcessExchangeBill_Print_HZPL   " + HInterID + "," + HMouldID + ""
                $.ajax({
                    type: "GET",
                    url: GetWEBURL() + "/Gy_SOPBillList/WindowPrintList", //方法所在页面和方法名
                    async: false,
                    data: { "sWhere": sWhere },
                    success: function (data) {
                        if (data.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                            if (data.data.length != 0) {
                                var dataPrint = [];
                                for (var i = 0; i < data.data.length; i++) {
                                    dataPrint.push(data.data[i])
                                }
                                var Customer = {
                                    "Table": dataPrint
                                }
                                var args = {
                                    type: "print",
                                    showOptionDlg: false, //如果不显示打印对话框而直接打印,将此行注释去掉即可
                                    report: urlAddRandomNo("../../grf/生产跟踪单JSON.grf"),
                                    data: Customer
                                };
                                console.log(data.data[0].单据号);
                                webapp_ws_ajax_run(args);
                                if (rest.length <= num + 1) {
                                    num = 0;
                                    clearInterval(time);
                                } else {
                                    num++;
                                }
                            } else {
                                layer.msg("查无数据!");
                            }
                        }
                        else {
                            layer.msg(data.Message, { icon: 5 });
                        }
                        layer.closeAll("loading");
                    },
                    error: function (err) {
                        layer.msg("错误:" + err, { icon: 5 });
                    }
                })
            }
            // æ ‘状图查询
@@ -1086,7 +1207,7 @@
                }
                colName = encodeURI(colName.substring(0, colName.length - 1));//对 URI è¿›è¡Œç¼–码
                contentUrl += '基础资料/隐藏列设置/Gy_GridView_Hide.html?HModName=' + HModName+"Main" + '&colName=' + colName;
                contentUrl += '基础资料/隐藏列设置/Gy_GridView_Hide.html?HModName=' + HModName1 + '&colName=' + colName;
                layer.open({
                    type: 2
@@ -1113,67 +1234,85 @@
                $.ajax({
                    url: GetWEBURL() + '/Xt_grdAlignment_WMES/grdAlignmentWMESList',
                    type: "GET",
                    async: false,
                    data: { "HModName": HModName, "user": sessionStorage["HUserName"] },
                    success: function (data1) {
                        if (data1.data.length != 0) {
                            var dataCol = [];//数据库查询出的列数据
                            var newCols = [[]];//对应数据库列顺序col
                            newCols[0].push(option.cols[0][0]);//放入第一个checkbox
                            dataCol = data1.data[0].HGridString.split(',');
                            for (var i = 0; i < option.cols[0].length - 1; i++) {
                                if (dataCol[i]) {
                                    var dataCols = dataCol[i].split('|');
                                }
                                //隐藏列
                                if (dataCols[1] == 1) {
                                    option.cols[0][i + 1]["hide"] = true;
                                }
                                //设置列宽
                                if (dataCols[3] > 0) {
                                    option.cols[0][i + 1]["width"] = dataCols[3];
                                }
                                //设置内容字体大小
                                if (data1.data[0].HFontSize != 0) {
                                    option.cols[0][i + 1]["style"] = "font-size:" + data1.data[0].HFontSize + "px;";
                                } else {
                                    option.cols[0][i + 1]["style"] = "font-size:100%";
                                }
                                //显示列
                                if (dataCols[1] == 0 && $.inArray(option.cols[0][i + 1]["title"], titleData) == -1) {
                                    option.cols[0][i + 1]["hide"] = false;
                                }
                                //字体所在位置(å·¦ å±…中 å³)
                                switch (dataCols[2]) {
                                    case "L":
                                        option.cols[0][i + 1]["align"] = "left";
                                        break;
                                    case "M":
                                        option.cols[0][i + 1]["align"] = "center";
                                        break;
                                    case "R":
                                        option.cols[0][i + 1]["align"] = "right";
                                        break;
                                }
                            }
                            //取消冻结列
                            for (var i = 1; i < option.cols[0].length - 1; i++) {
                                if (option.cols[0][i]["fixed"] != null) {
                                    option.cols[0][i]["fixed"] = null;
                                }
                                else {
                                    break;
                                }
                            }
                            //冻结列
                            if (data1.data[0].HFixCols != 0) {
                                for (var i = 0; i < data1.data[0].HFixCols; i++) {
                                    if ($.inArray(option.cols[0][i + 1]["title"], titleData) != -1) {
                                        data1.data[0].HFixCols += 1;
                            //列设置列数与页面列数是否一致
                            if (dataCol.length == option.cols[0].length - 1) {
                                //遍历寻找列设置对应列按顺序插入
                                for (var j = 0; j < option.cols[0].length - 1; j++) {
                                    for (var i = 0; i < option.cols[0].length - 1; i++) {
                                        var dataCols = dataCol[j].split('|');
                                        //选择与datacols相应列进行修改
                                        if (option.cols[0][i + 1]["field"] == dataCols[5]) {
                                            //隐藏列
                                            if (dataCols[1] == 1) {
                                                option.cols[0][i + 1]["hide"] = true;
                                            }
                                            //设置列宽
                                            if (dataCols[3] > 0) {
                                                option.cols[0][i + 1]["width"] = dataCols[3];
                                            }
                                            //设置内容字体大小
                                            if (data1.data[0].HFontSize != 0) {
                                                option.cols[0][i + 1]["style"] = "font-size:" + data1.data[0].HFontSize + "px;";
                                            } else {
                                                option.cols[0][i + 1]["style"] = "font-size:100%";
                                            }
                                            //显示列
                                            if (dataCols[1] == 0 && $.inArray(option.cols[0][i + 1]["title"], titleData) == -1) {
                                                option.cols[0][i + 1]["hide"] = false;
                                            }
                                            //统计列
                                            if (dataCols[6] == 1) {
                                                option.cols[0][i + 1]["totalRow"] = true;
                                            }
                                            //字体所在位置(å·¦ å±…中 å³)
                                            switch (dataCols[2]) {
                                                case "L":
                                                    option.cols[0][i + 1]["align"] = "left";
                                                    break;
                                                case "M":
                                                    option.cols[0][i + 1]["align"] = "center";
                                                    break;
                                                case "R":
                                                    option.cols[0][i + 1]["align"] = "right";
                                                    break;
                                            }
                                            //设置表格title属性显示别名
                                            if (dataCols[4] != null && dataCols[4] != "") {
                                                option.cols[0][i + 1]["title"] = dataCols[4];
                                            }
                                            newCols[0].push(option.cols[0][i + 1]);
                                        }
                                    }
                                    option.cols[0][i + 1]["fixed"] = "left";
                                }
                                //遍历循环后判断对应列数是否一致
                                if (dataCol.length == newCols[0].length - 1) {
                                    option.cols = newCols;
                                    //取消冻结列
                                    for (var i = 1; i < option.cols[0].length - 1; i++) {
                                        if (option.cols[0][i]["fixed"] != null) {
                                            option.cols[0][i]["fixed"] = null;
                                        }
                                        else {
                                            break;
                                        }
                                    }
                                    //冻结列
                                    if (data1.data[0].HFixCols != 0) {
                                        for (var i = 0; i < data1.data[0].HFixCols; i++) {
                                            if ($.inArray(option.cols[0][i + 1]["title"], titleData) != -1) {
                                                data1.data[0].HFixCols += 1;
                                            }
                                            option.cols[0][i + 1]["fixed"] = "left";
                                        }
                                    }
                                }
                            }
                            table.render(option);
@@ -1181,7 +1320,7 @@
                            table.render(option);
                        }
                    }, error: function () {
                        layer.alert("接口请求失败!", { icon: 5 });
                        layer.alert(get_MessageError("[0000-1-002]接口请求失败!", sessionStorage["HTranSlate"]), { icon: 5 });
                    }
                })
            }
@@ -1192,75 +1331,93 @@
                $.ajax({
                    url: GetWEBURL() + '/Xt_grdAlignment_WMES/grdAlignmentWMESList',
                    type: "GET",
                    data: { "HModName": HModName+"Main", "user": sessionStorage["HUserName"] },
                    async: false,
                    data: { "HModName": HModName1, "user": sessionStorage["HUserName"] },
                    success: function (data1) {
                        if (data1.data.length != 0) {
                            var dataCol = [];//数据库查询出的列数据
                            var newCols = [[]];//对应数据库列顺序col
                            newCols[0].push(option2.cols[0][0]);//放入第一个checkbox
                            dataCol = data1.data[0].HGridString.split(',');
                            for (var i = 0; i < option2.cols[0].length - 1; i++) {
                                if (dataCol[i]) {
                                    var dataCols = dataCol[i].split('|');
                                }
                                //隐藏列
                                if (dataCols[1] == 1) {
                                    option2.cols[0][i + 1]["hide"] = true;
                                }
                                //设置列宽
                                if (dataCols[3] > 0) {
                                    option2.cols[0][i + 1]["width"] = dataCols[3];
                                }
                                //设置内容字体大小
                                if (data1.data[0].HFontSize != 0) {
                                    option2.cols[0][i + 1]["style"] = "font-size:" + data1.data[0].HFontSize + "px;";
                                } else {
                                    option2.cols[0][i + 1]["style"] = "font-size:100%";
                                }
                                //显示列
                                if (dataCols[1] == 0 && $.inArray(option2.cols[0][i + 1]["title"], titleData) == -1) {
                                    option2.cols[0][i + 1]["hide"] = false;
                                }
                                //字体所在位置(å·¦ å±…中 å³)
                                switch (dataCols[2]) {
                                    case "L":
                                        option2.cols[0][i + 1]["align"] = "left";
                                        break;
                                    case "M":
                                        option2.cols[0][i + 1]["align"] = "center";
                                        break;
                                    case "R":
                                        option2.cols[0][i + 1]["align"] = "right";
                                        break;
                                }
                            }
                            //取消冻结列
                            for (var i = 1; i < option2.cols[0].length - 1; i++) {
                                if (option2.cols[0][i]["fixed"] != null) {
                                    option2.cols[0][i]["fixed"] = null;
                                }
                                else {
                                    break;
                                }
                            }
                            //冻结列
                            if (data1.data[0].HFixCols != 0) {
                                for (var i = 0; i < data1.data[0].HFixCols; i++) {
                                    if ($.inArray(option2.cols[0][i + 1]["title"], titleData) != -1) {
                                        data1.data[0].HFixCols += 1;
                            //列设置列数与页面列数是否一致
                            if (dataCol.length == option2.cols[0].length - 1) {
                                //遍历寻找列设置对应列按顺序插入
                                for (var j = 0; j < option2.cols[0].length - 1; j++) {
                                    for (var i = 0; i < option2.cols[0].length - 1; i++) {
                                        var dataCols = dataCol[j].split('|');
                                        //选择与datacols相应列进行修改
                                        if (option2.cols[0][i + 1]["field"] == dataCols[5]) {
                                            //隐藏列
                                            if (dataCols[1] == 1) {
                                                option2.cols[0][i + 1]["hide"] = true;
                                            }
                                            //设置列宽
                                            if (dataCols[3] > 0) {
                                                option2.cols[0][i + 1]["width"] = dataCols[3];
                                            }
                                            //设置内容字体大小
                                            if (data1.data[0].HFontSize != 0) {
                                                option2.cols[0][i + 1]["style"] = "font-size:" + data1.data[0].HFontSize + "px;";
                                            } else {
                                                option2.cols[0][i + 1]["style"] = "font-size:100%";
                                            }
                                            //显示列
                                            if (dataCols[1] == 0 && $.inArray(option2.cols[0][i + 1]["title"], titleData) == -1) {
                                                option2.cols[0][i + 1]["hide"] = false;
                                            }
                                            //统计列
                                            if (dataCols[6] == 1) {
                                                option2.cols[0][i + 1]["totalRow"] = true;
                                            }
                                            //字体所在位置(å·¦ å±…中 å³)
                                            switch (dataCols[2]) {
                                                case "L":
                                                    option2.cols[0][i + 1]["align"] = "left";
                                                    break;
                                                case "M":
                                                    option2.cols[0][i + 1]["align"] = "center";
                                                    break;
                                                case "R":
                                                    option2.cols[0][i + 1]["align"] = "right";
                                                    break;
                                            }
                                            //设置表格title属性显示别名
                                            if (dataCols[4] != null && dataCols[4] != "") {
                                                option2.cols[0][i + 1]["title"] = dataCols[4];
                                            }
                                            newCols[0].push(option2.cols[0][i + 1]);
                                        }
                                    }
                                    option2.cols[0][i + 1]["fixed"] = "left";
                                }
                                //遍历循环后判断对应列数是否一致
                                if (dataCol.length == newCols[0].length - 1) {
                                    option2.cols = newCols;
                                    //取消冻结列
                                    for (var i = 1; i < option2.cols[0].length - 1; i++) {
                                        if (option2.cols[0][i]["fixed"] != null) {
                                            option2.cols[0][i]["fixed"] = null;
                                        }
                                        else {
                                            break;
                                        }
                                    }
                                    //冻结列
                                    if (data1.data[0].HFixCols != 0) {
                                        for (var i = 0; i < data1.data[0].HFixCols; i++) {
                                            if ($.inArray(option2.cols[0][i + 1]["title"], titleData) != -1) {
                                                data1.data[0].HFixCols += 1;
                                            }
                                            option2.cols[0][i + 1]["fixed"] = "left";
                                        }
                                    }
                                }
                            }
                            table.render(option2);
                        } else {
                            table.render(option2);
                        }
                        }
                    }, error: function () {
                        layer.alert("接口请求失败!", { icon: 5 });
                        layer.alert(get_MessageError("[0000-1-002]接口请求失败!", sessionStorage["HTranSlate"]), { icon: 5 });
                    }
                })
            }