{extend name="common/common2" /} {block name="main"} <style> .header-title{ text-align: center; } .line-box{ width: 100%; height: 1px; background-color: #333333; margin: 0 auto; margin-top: 20px; } #printer .row{ margin-top: 20px; } #printer .col-xs-6{ font-size: 14px; margin: 5px 0px; } </style> <div class="row"> <div class="col-sm-12"> <div class="ibox float-e-margins"> <div class="ibox-content" > <div id="printer"> <h3 class="header-title">资产盘点报表</h3> <div class="line-box"></div> <div class="row"> <div class="col-xs-12" style="text-align: center"> 盘点人: {$info.userName} 应盘数量: {$info.totalNums} 实盘数量: {$info.totalCheckNums} 数量差异: {$info.totalDiffNums} </div> </div> <table class="table table-bordered" style="margin-top: 10px"> <tr> <th>资产编号</th> <th>资产名称</th> <th>使用人员</th> <th>使用部门</th> <th>原值</th> <th>状态</th> <th>应盘数量</th> <th>实盘数量</th> <th>数量差异</th> </tr> <tbody> {if $list} {foreach $list as $k=>$v} <tr> <td>{$v.sn}</td> <td>{$v.title}</td> <td>{$v.userName}</td> <td>{$v.depName}</td> <td>{$v.price}</td> <td> {if $v['status'] == 0} 盘亏 {elseif($v['status'] == 2)} 已盘 {elseif($v['status'] == 2)} 盘盈 {/if} </td> <td>{$v.nums}</td> <td>{$v.check_nums}</td> <td>{$v.diffNums}</td> </tr> {/foreach} {/if} </tbody> </table> </div> <br> <div class="form-group" style="text-align: center"> <a href="javascript:;" class="btn btn-sm btn-primary" onclick="print()"><i class="glyphicon glyphicon-print"> 打印</i></a> </div> </div> </div> </div> </div> {/block} {block name="script"} <script src="/static/bootstrap-multiselect/docs/js/jquery-2.1.3.min.js"></script> <script src="/static/browser.js"></script> <script src="/static/jquery.jqprint-0.3.js"></script> <script> function print(){ $("#printer").jqprint(); } </script> {/block}