沈泽
2021-11-08 a40a84641d79836c4205accf068e9e2fe2ce741f
WebTM/views/Ä£Öξ߹ÜÀí/Ä£Öξ߹ÜÀí/Sc_MouldOtherInBill.html
@@ -453,17 +453,41 @@
            //打印Printing
            form.on("submit(view)", function (data) {
                layer.alert("我是打印按钮!单据主ID是:" + hID);
                //window.open("../生产工序管理/工序汇报单/HBarPlanPrint.html?linterid=" + linterid + "&Type=HDepartMent" + "&OpenTmp=b");
                window.open("../../基础资料/公用基础资料/HBarPlanPrint.html?linterid=" + hID + "&Type=HMouldOtherInBill&OpenTmp=器具其他入库单");
                if (linterid != "" || linterid != null) {
                    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.toString() + '&MyMsg=' + linterid.toString() + '&Type=HMouldOtherInBill', 'yes']
                        , resize: false
                    })
                }
                else {
                    layer.msg('当前单据ID为空!');
                }
            });
            //打印Printing
            form.on("submit(print)", function (data) {
                layer.alert("我是打印按钮!单据主ID是:" + hID);
                //window.open("../生产工序管理/工序汇报单/HBarPlanPrint.html?linterid=" + linterid + "&Type=HDepartMent" + "&OpenTmp=b");
                window.open("../../基础资料/公用基础资料/HBarPlanPrint.html?linterid=" + hID + "&Type=HMouldOtherInBill&OpenTmp=器具其他入库单");
                if (linterid != "" || linterid != null) {
                    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.toString() + '&MyMsg=' + linterid.toString() + '&Type=HMouldOtherInBill', 'yes']
                        , resize: false
                    })
                }
                else {
                    layer.msg('当前单据ID为空!');
                }
            });