增加单据打印的功能

This commit is contained in:
季圣华
2019-03-03 23:50:54 +08:00
parent 8ec87f061b
commit 5892199127
23 changed files with 161 additions and 25 deletions

View File

@@ -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)
{

View File

@@ -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 事件

View File

@@ -3,12 +3,12 @@
<head>
<title>数据打印</title>
<style type="text/css">
body{background:white;margin:0px;padding:0px;font-size:13px;text-align:left;}
.div-title{font-size: 16pt;}
.div-time{font-size: 11pt;}
.pb{font-size:13px;border-collapse:collapse;}
.pb th{font-weight:bold;text-align:center;border:1px solid #333333;padding:2px;}
.pb td{border:1px solid #333333;padding:2px;}
body{background:white;margin:0px;padding:0px;font-size:13px;text-align:left;}
.div-title{font-size: 16pt;}
.div-time{font-size: 11pt;}
.pb{font-size:13px;border-collapse:collapse;}
.pb th{font-weight:bold;text-align:center;border:1px solid #333333;padding:2px;}
.pb td{border:1px solid #333333;padding:2px;}
  </style>
</head>
<body>

View File

@@ -0,0 +1,26 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>数据打印</title>
<link rel="stylesheet" type="text/css" href="/js/easyui-1.3.5/themes/default/easyui.css"/>
<link rel="stylesheet" type="text/css" href="/js/easyui-1.3.5/themes/icon.css"/>
<script src="/js/jquery-1.8.0.min.js"></script>
<script src="/js/easyui-1.3.5/jquery.easyui.min.js"></script>
<script src="/js/easyui-1.3.5/locale/easyui-lang-zh_CN.js"></script>
<style type="text/css">
body{background:white;margin:0px;padding:0px;font-size:13px;text-align:left;}
.pb th{font-weight:bold;text-align:center;border:1px solid #333333;padding:2px;}
.pb td{border:1px solid #333333;padding:2px;}
#dlg-buttons-show {
visibility: hidden;
}
  </style>
</head>
<body>
<script type="text/javascript">
var tableString = localStorage.getItem("tableString");
document.write(tableString);
window.print();
</script>
</body>
</html>