diff --git a/erp_web/js/pages/financial/financial_base.js b/erp_web/js/pages/financial/financial_base.js index aaffb378..874e4ccd 100644 --- a/erp_web/js/pages/financial/financial_base.js +++ b/erp_web/js/pages/financial/financial_base.js @@ -874,6 +874,14 @@ }); } }); + + //打印单据 + $("#printAccountHeadShow").off("click").on("click",function(){ + var tableString = $("#accountHeadDlgShow").html(); + localStorage.setItem("tableString",tableString); + window.open("../../js/print/print_form.html","location:No;status:No;help:No;dialogWidth:800px;dialogHeight:600px;scroll:auto;"); + }); + //初始化键盘enter事件 $(document).keydown(function(event) { diff --git a/erp_web/js/pages/materials/in_out.js b/erp_web/js/pages/materials/in_out.js index d724634f..cf9395e3 100644 --- a/erp_web/js/pages/materials/in_out.js +++ b/erp_web/js/pages/materials/in_out.js @@ -2132,6 +2132,13 @@ } }); + //打印单据 + $("#printDepotHeadShow").off("click").on("click",function(){ + var tableString = $("#depotHeadDlgShow").html(); + localStorage.setItem("tableString",tableString); + window.open("../../js/print/print_form.html","location:No;status:No;help:No;dialogWidth:800px;dialogHeight:600px;scroll:auto;"); + }); + //初始化键盘enter事件 $(document).keydown(function(event){ //兼容 IE和firefox 事件 diff --git a/erp_web/js/print/print.html b/erp_web/js/print/print.html index ee802e46..7fa8c511 100644 --- a/erp_web/js/print/print.html +++ b/erp_web/js/print/print.html @@ -3,12 +3,12 @@
| 付款会员: | @@ -146,5 +146,10 @@