12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- {extend name="common/common2" /}
- {block name="main"}
- <div class="panel panel-default">
- <div class="panel-heading clearfix">
- 打印扎帐明细
- <div class="btn-group pull-right">
- <a href="javascript:history.go(-1);">返回</a>
- </div>
- </div>
- <div class="panel-body" id="printer">
- <style>
- td,th{
- font-size: 16px;
- }
- table tr td, table tr th{
- border: 2px solid #000!important;
- padding: 0 5px!important;
- }
- </style>
- <table border="1" style="width: 90%;margin: 0 auto;">
- <tr class="text-center">
- <th>单据号</th>
- <th>业主</th>
- <th>小区</th>
- <th>资源名称</th>
- <th>资源属性</th>
- <th>类型</th>
- <th>收费科目</th>
- <th>金额</th>
- <th>起止日期</th>
- <th>收款日期</th>
- <th>收款人</th>
- </tr>
- {foreach $data['logs'] as $key => $v}
- <tr class="text-center">
- <td>{$v['sn']}</td>
- <td>{$v['name']}</td>
- <td>{$v['area_title']}</td>
- <td>{$v['title']}</td>
- <td>
- {if $v['cate'] == 1}住房{/if}
- {if $v['cate'] == 2}商铺{/if}
- {if $v['cate'] == 3}营业房{/if}
- {if $v['cate'] == 4}储藏室{/if}
- {if $v['cate'] == 5}停车位{/if}
- </td>
- <td>{$v['c_type_name']}</td>
- <td>{$v['fee_title']}</td>
- <td>{$v['money']}</td>
- <td>
- {if $v['start']}
- {$v['start']} ~ {$v['end']}
- {/if}
- </td>
- <td>{$v['pay_time']}</td>
- <td>{$v['payee']}</td>
- </tr>
- {/foreach}
- <tr class="text-center">
- <td>总计共({$data['count_logs']}条)</td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- <td>{$data['data']['money']+$data['data']['pre_money']}</td>
- <td></td>
- <td></td>
- <td></td>
- </tr>
- </table>
- </div>
- </div>
- <div class="text-center">
- <br>
- <a href="javascript:;" class="btn btn-sm btn-primary" onclick="print()"><i class="glyphicon glyphicon-print">打印</i></a>
- </div>
- {/block}
- {block name="script"}
- <script src="/static/jquery.jqprint-0.3.js"></script>
- <script src="/static/browser.js"></script>
- <script>
- function print(){
- $("#printer").jqprint();
- }
- </script>
- {/block}
|