detail2print.html 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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. <table border="1" style="width: 90%;margin: 0 auto;">
  21. <tr class="text-center">
  22. <th>单据号</th>
  23. <th>业主</th>
  24. <th>小区</th>
  25. <th>资源名称</th>
  26. <th>资源属性</th>
  27. <th>类型</th>
  28. <th>收费科目</th>
  29. <th>金额</th>
  30. <th>起止日期</th>
  31. <th>收款日期</th>
  32. <th>收款人</th>
  33. </tr>
  34. {foreach $data['logs'] as $key => $v}
  35. <tr class="text-center">
  36. <td>{$v['sn']}</td>
  37. <td>{$v['name']}</td>
  38. <td>{$v['area_title']}</td>
  39. <td>{$v['title']}</td>
  40. <td>
  41. {if $v['cate'] == 1}住房{/if}
  42. {if $v['cate'] == 2}商铺{/if}
  43. {if $v['cate'] == 3}营业房{/if}
  44. {if $v['cate'] == 4}储藏室{/if}
  45. {if $v['cate'] == 5}停车位{/if}
  46. </td>
  47. <td>{$v['c_type_name']}</td>
  48. <td>{$v['fee_title']}</td>
  49. <td>{$v['money']}</td>
  50. <td>
  51. {if $v['start']}
  52. {$v['start']} ~ {$v['end']}
  53. {/if}
  54. </td>
  55. <td>{$v['pay_time']}</td>
  56. <td>{$v['payee']}</td>
  57. </tr>
  58. {/foreach}
  59. <tr class="text-center">
  60. <td>总计共({$data['count_logs']}条)</td>
  61. <td></td>
  62. <td></td>
  63. <td></td>
  64. <td></td>
  65. <td></td>
  66. <td></td>
  67. <td>{$data['data']['money']+$data['data']['pre_money']}</td>
  68. <td></td>
  69. <td></td>
  70. <td></td>
  71. </tr>
  72. </table>
  73. </div>
  74. </div>
  75. <div class="text-center">
  76. <br>
  77. <a href="javascript:;" class="btn btn-sm btn-primary" onclick="print()"><i class="glyphicon glyphicon-print">打印</i></a>
  78. </div>
  79. {/block}
  80. {block name="script"}
  81. <script src="/static/jquery.jqprint-0.3.js"></script>
  82. <script src="/static/browser.js"></script>
  83. <script>
  84. function print(){
  85. $("#printer").jqprint();
  86. }
  87. </script>
  88. {/block}