report.html 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. {extend name="common/common2" /}
  2. {block name="main"}
  3. <style>
  4. .header-title{
  5. text-align: center;
  6. }
  7. .line-box{
  8. width: 100%;
  9. height: 1px;
  10. background-color: #333333;
  11. margin: 0 auto;
  12. margin-top: 20px;
  13. }
  14. #printer .row{
  15. margin-top: 20px;
  16. }
  17. #printer .col-xs-6{
  18. font-size: 14px;
  19. margin: 5px 0px;
  20. }
  21. </style>
  22. <div class="row">
  23. <div class="col-sm-12">
  24. <div class="ibox float-e-margins">
  25. <div class="ibox-content" >
  26. <div id="printer">
  27. <h3 class="header-title">资产盘点报表</h3>
  28. <div class="line-box"></div>
  29. <div class="row">
  30. <div class="col-xs-12" style="text-align: center">
  31. 盘点人: {$info.userName} &nbsp;&nbsp;&nbsp;&nbsp;
  32. 应盘数量: {$info.totalNums} &nbsp;&nbsp;&nbsp;&nbsp;
  33. 实盘数量: {$info.totalCheckNums} &nbsp;&nbsp;&nbsp;&nbsp;
  34. 数量差异: {$info.totalDiffNums}
  35. </div>
  36. </div>
  37. <table class="table table-bordered" style="margin-top: 10px">
  38. <tr>
  39. <th>资产编号</th>
  40. <th>资产名称</th>
  41. <th>使用人员</th>
  42. <th>使用部门</th>
  43. <th>原值</th>
  44. <th>状态</th>
  45. <th>应盘数量</th>
  46. <th>实盘数量</th>
  47. <th>数量差异</th>
  48. </tr>
  49. <tbody>
  50. {if $list}
  51. {foreach $list as $k=>$v}
  52. <tr>
  53. <td>{$v.sn}</td>
  54. <td>{$v.title}</td>
  55. <td>{$v.userName}</td>
  56. <td>{$v.depName}</td>
  57. <td>{$v.price}</td>
  58. <td>
  59. {if $v['status'] == 0}
  60. 盘亏
  61. {elseif($v['status'] == 2)}
  62. 已盘
  63. {elseif($v['status'] == 2)}
  64. 盘盈
  65. {/if}
  66. </td>
  67. <td>{$v.nums}</td>
  68. <td>{$v.check_nums}</td>
  69. <td>{$v.diffNums}</td>
  70. </tr>
  71. {/foreach}
  72. {/if}
  73. </tbody>
  74. </table>
  75. </div>
  76. <br>
  77. <div class="form-group" style="text-align: center">
  78. <a href="javascript:;" class="btn btn-sm btn-primary" onclick="print()"><i class="glyphicon glyphicon-print"> 打印</i></a>
  79. </div>
  80. </div>
  81. </div>
  82. </div>
  83. </div>
  84. {/block}
  85. {block name="script"}
  86. <script src="/static/bootstrap-multiselect/docs/js/jquery-2.1.3.min.js"></script>
  87. <script src="/static/browser.js"></script>
  88. <script src="/static/jquery.jqprint-0.3.js"></script>
  89. <script>
  90. function print(){
  91. $("#printer").jqprint();
  92. }
  93. </script>
  94. {/block}