提交 4615498c authored 作者: 李思鑫's avatar 李思鑫

change:经销商订单打印

上级 4e026fad
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
$('.btn-print').click(function(){ $('.btn-print').click(function(){
$("#print-area").print({ $("#print-area").print({
globalStyles: false, globalStyles: true,
mediaPrint: true, mediaPrint: true,
stylesheet: null, stylesheet: null,
noPrintSelector: ".no-print", noPrintSelector: ".no-print",
...@@ -58,18 +58,23 @@ ...@@ -58,18 +58,23 @@
</script> </script>
<div class="btn-print" style="width: 100px;line-height: 40px; text-align: center; float: right; background-color: blue;border-radius: 20px;color: white; cursor: pointer;">打印</div>
<div id='print-area'> <div id='print-area'>
{% for t in orders %} {% for t in orders %}
<div class='div-tb'> <div class='div-tb'>
<div> <div style='font-size:20px;margin-right:20px;text-align: center;'>蒙古王出库单</div>
<img src="data:image/jpg;base64,{{t.img}}" style="width:100px" /> <div class="" style="display: flex;flex-direction: row; justify-content: space-between;align-items: center;">
<div style="display: flex; flex-direction: row;align-items: center;">
<img src="data:image/jpg;base64,{{t.img}}" style="width: 130px;"/>
<span class='tt' style='font-size:20px;'>{{t.order_code}}</span> <span class='tt' style='font-size:20px;'>{{t.order_code}}</span>
<span class='tt' style='font-size:20px;margin-right:20px;'>蒙古王出库单</span> </div>
<span class='tt'>打印时间:{{t.tm_print}}</span> <div class="" style="vertical-align: middle;">
<span class='pull-right'>出库方:{{t.vendor_name}}</span> <p class='tt'>打印时间:{{t.tm_print}}</p>
<p class=''>出库方:{{t.vendor_name}}</p>
</div>
</div> </div>
<div> <div>
<span>客户名称:{{t.agent_name}} <span>客户名称:{{t.agent_name}}{{t.gent_code}}
</span> </span>
<span class='pull-right' style='min-width:200px;'> <span class='pull-right' style='min-width:200px;'>
客户电话:{{t.agent_telephone}} 客户电话:{{t.agent_telephone}}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论