chenhaozhe
2025-05-21 e50265de5ae4e5e4c8b8852e777216adab7c4ce4
WebTM/views/ÁìÁÏ·¢»õ/ÏúÊÛ³ö¿â/Kf_SellOutBillList_BarCodeNote.html
@@ -20,6 +20,7 @@
                    <div style="padding: 2px; ">
                        <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="Cancel" id="Cancel">退出</button>
                        <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="btn-Print" id="btn-Print">打印码单</button>
                        <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="btn-PrintByCusDefine" id="btn-PrintByCusDefine">打印码单(客户物料)</button>
                    </div>
                    <div class="layui-tab" lay-filter="tab-POStockInBill">
@@ -127,6 +128,21 @@
        })
        //#endregion
        //#region æ‰“印码单(客户自定义)
        form.on('submit(btn-PrintByCusDefine)', function () {
            layer.open({
                type: 2
                , area: ['50%', '50%']
                , title: '打印模版选择'
                , shade: 0.6 //遮罩透明度
                , maxmin: false //允许全屏最小化
                , anim: 0 //0-6的动画形式,-1不开启
                , content: ['../../BaseSet/SRM_OpenTmpList.html?linterid=' + linterid + '&MyMsg=' + linterid + '&Type=Kf_SellOutBillList_BarCodeNote_ByCusDefine', 'yes']
                , resize: false
            })
        })
        //#endregion
        //#region å­è¡¨0:头工具栏事件
        table.on('toolbar(mainTable0)', function (obj) {
            switch (obj.event) {
@@ -193,7 +209,8 @@
                , height: 550
                //, page: true
                , cellMinWidth: 90
                //, limit: 50
                , limit: 5000
                , totalRow: true
                //, limits: [50, 500, 5000, 20000]
            };
@@ -204,7 +221,8 @@
                , height: 550
                //, page: true
                , cellMinWidth: 90
                //, limit: 50
                , limit: 5000
                , totalRow: true
                //, limits: [50, 500, 5000, 20000]
            };
@@ -215,7 +233,8 @@
                , height: 550
                //, page: true
                , cellMinWidth: 90
                //, limit: 50
                , limit: 5000
                , totalRow: true
                //, limits: [50, 500, 5000, 20000]
            };
        }
@@ -284,7 +303,7 @@
                if ($.inArray(data[i].name, titleData0) > -1) {
                    col.push({ field: data[i].id, title: data[i].name, align: 'center', hide: true }); //隐藏id列
                }
                else if ($.inArray(data[i].name, totalArray) > -1) {
                else if ($.inArray(data[i].name, totalArray) > -1 || (data[i].Type == "Decimal" || data[i].Type == "Int32")) { //计算列
                    col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, totalRow: true, width: 120 });
                } else {
                    switch (data[i].Type) {
@@ -311,7 +330,7 @@
        //#region æ¸²æŸ“表1
        function setInit_mainTable1(data1) {
            //需要设置合计行的列
            var totalArray = [];
            var totalArray = ["本色合计"];
            //整理子表的列
            var data = [];
@@ -327,7 +346,7 @@
                if ($.inArray(data[i].name, titleData1) > -1) {
                    col.push({ field: data[i].id, title: data[i].name, align: 'center', hide: true }); //隐藏id列
                }
                else if ($.inArray(data[i].name, totalArray) > -1) {
                else if ($.inArray(data[i].name, totalArray) > -1 || (data[i].Type == "Decimal" || data[i].Type == "Int32")) { //计算列
                    col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, totalRow: true, width: 120 });
                } else {
                    switch (data[i].Type) {
@@ -370,7 +389,7 @@
                if ($.inArray(data[i].name, titleData2) > -1) {
                    col.push({ field: data[i].id, title: data[i].name, align: 'center', hide: true }); //隐藏id列
                }
                else if ($.inArray(data[i].name, totalArray) > -1) {
                else if ($.inArray(data[i].name, totalArray) > -1 || (data[i].Type == "Decimal" || data[i].Type == "Int32")) { //计算列
                    col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, totalRow: true, width: 120 });
                } else {
                    switch (data[i].Type) {