1
wtt
2026-04-08 b7237a51c665ec1150bef9ab6c9bcfc7847755aa
WebTM/views/Ä£Öξ߹ÜÀí/Ä£Öξ߹ÜÀí/Gy_BarCodeBillList.html
@@ -870,7 +870,68 @@
                });
            }
            //#endregion
            //#region  æ ˆæ¿ç æ‰“印
            function PrintZB() {
                var checkStatus = table.checkStatus('mainTable')
                    , data = checkStatus.data;
                var ModRightName = 'Gy_BarCodeBillList_Print';
                $.ajax({
                    url: GetWEBURL() + '/Gy_BarCodeBillList/GetBarCodeBillPermission',
                    type: "GET",
                    async: false,
                    data: { "user": sessionStorage["HUserName"] },
                    success: function (res) {
                        if (res.data == 1) {
                            if (checkStatus.data.length == 1) {
                                var rows = '';
                                for (var i = 0; i < data.length; i++) {
                                    rows += data[i].中箱码.toString() + ',';
                                }
                                rows = rows.substring(rows.length - 1, 0);
                                var sql = "select top 1 HBarCode_Pack from Sc_PackUnionBillsub with(nolock) where HBarCode = '" + rows + "'"
                                $.ajax({
                                    type: "GET",
                                    url: GetWEBURL() + "/Gy_SOPBillList/WindowPrintList", //方法所在页面和方法名
                                    async: false,
                                    data: { "sWhere": sql },
                                    success: function (data) {
                                        if (data.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                                            rows = data.data[0].rows;
                                        }
                                        else {
                                            layer.msg(data.Message, { icon: 5 });
                                        }
                                        layer.closeAll("loading");
                                    },
                                    error: function (err) {
                                        layer.msg("错误:" + err, { icon: 5 });
                                    }
                                })
                                layer.open({
                                    type: 2
                                    , area: ['40%', '80%']
                                    , title: '打印模版选择'
                                    , shade: 0.6 //遮罩透明度
                                    , maxmin: false //允许全屏最小化
                                    , anim: 0 //0-6的动画形式,-1不开启
                                    , content: ['../../BaseSet/SRM_OpenTmpList.html?linterid=' + rows + '&MyMsg=' + rows + '&Type=HGy_BarCodeBill_ZB', 'yes']
                                    , resize: false
                                })
                            }
                            else {
                                layer.msg(get_MessageError('[0000-1-016]请选择一条数据打印!', sessionStorage["HTranSlate"]));
                            }
                        }
                        else {
                            layer.alert(get_MessageError("无打印权限!", sessionStorage["HTranSlate"]), { icon: 5 });
                        }
                    }
                });
            }
            //#endregion
            //#region  å‡ºç«™å•生成的箱码打印
            function PrintX() {