print.html 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. {extend name="common/common2" /}
  2. {block name="main"}
  3. <div class="panel panel-default">
  4. <div class="panel-heading clearfix">
  5. 打印缴费单
  6. <div class="btn-group pull-right">
  7. <a href="javascript:history.go(-1);">返回</a>
  8. </div>
  9. </div>
  10. <div class="panel-body" id="printer">
  11. <style>
  12. td,th{
  13. font-size: 16px;
  14. }
  15. table tr td, table tr th{
  16. border: 2px solid #000!important;
  17. padding: 0 5px!important;
  18. }
  19. </style>
  20. <div class="table-all" style="width: 90%;height: 100px;margin: 0 auto;">
  21. <div class="table-title" style="width: 100%;text-align: center;font-size: 38px;padding-bottom: 20px;overflow: hidden;">{$info['xq_title']}</div>
  22. <div class="title-bottom" style=" width: 100%;padding-bottom: 10px;">
  23. <text class="pjh" style=" text-align: right;float: right;margin-right: 0px;">票据号:{$info['sn']}</text>
  24. <text class="dp-time" style="text-align: right;float: right;margin-right: 20px;">打票时间:{$curDate}</text>
  25. </div>
  26. </div>
  27. <table border="1" style="width: 90%;margin: 0 auto;">
  28. <tr>
  29. <td style="text-align: left" colspan="3">今日收到 {$info['full_name']} ({$info['titles']}) ————交到下列款项</td>
  30. </tr>
  31. <tr class="text-center">
  32. <td>项目</td>
  33. <td>摘要</td>
  34. <td>金额</td>
  35. </tr>
  36. {foreach $info['logs'] as $key => $value}
  37. <tr class="text-center">
  38. <td>
  39. {$value['fee_title']}
  40. </td>
  41. <td>
  42. {if $value['start']}
  43. {$value['start']} 至 {$value['end']}
  44. {/if}
  45. </td>
  46. <td>{$value['money']}</td>
  47. </tr>
  48. {/foreach}
  49. <tr class="text-center">
  50. <td>预付款</td>
  51. <td>预付款余额:{$info['last_pre_money']}</td>
  52. <td>{$info['pre_money']}</td>
  53. </tr>
  54. <tr class="text-center">
  55. <td>合计</td>
  56. <td>人民币(大写) {$info['dx_money']}</td>
  57. <td>小写: {$info['true_money']}</td>
  58. </tr>
  59. <tr class="text-center">
  60. <td>收费方式</td>
  61. <td colspan="2">
  62. {if $info['pay_type'] == 1}现金:{$info['true_money']}{/if}
  63. {if $info['pay_type'] == 3}支付宝:{$info['true_money']}{/if}
  64. {if $info['pay_type'] == 4}银行托收:{$info['true_money']}{/if}
  65. {if $info['pay_type'] == 5}微信:{$info['true_money']}{/if}
  66. {if $info['pay_type'] == 6}
  67. 组合付款(
  68. {foreach $info['pay_data'] as $key => $value}
  69. {if $key == 1}现金:{$value} {/if}
  70. {if $key == 3}支付宝:{$value} {/if}
  71. {if $key == 4}银行托收:{$value} {/if}
  72. {if $key == 5}微信:{$value} {/if}
  73. {/foreach}
  74. )
  75. {/if}
  76. </td>
  77. </tr>
  78. <tr class="text-center">
  79. <td colspan="3">
  80. {if !empty($info['remark'])}
  81. ({$info['remark']})请您妥善保存收款凭据,如果押金类或代收费项目,票据遗失恕不退付
  82. {else}
  83. 请您妥善保存收款凭据,如果押金类或代收费项目,票据遗失恕不退付
  84. {/if}
  85. </td>
  86. </tr>
  87. </table>
  88. <div class="user_all" style="width: 90%;height: 40px;line-height: 40px;margin: 0 auto;">
  89. <text class="there" style="float: left;">收款人:{$info['payee']}</text>
  90. <text class="there" style="float: right;margin-right: 60px;">交款人:</text>
  91. </div>
  92. </div>
  93. </div>
  94. <div class="text-center">
  95. <br>
  96. <a href="javascript:;" class="btn btn-sm btn-primary" onclick="print()"><i class="glyphicon glyphicon-print">打印</i></a>
  97. </div>
  98. {/block}
  99. {block name="script"}
  100. <script src="/static/jquery.jqprint-0.3.js"></script>
  101. <script src="/static/browser.js"></script>
  102. <script>
  103. function print(){
  104. $("#printer").jqprint();
  105. }
  106. </script>
  107. {/block}