report.html 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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-6" style="padding-left: 90px">
  31. 单据编号: {$info.sn}
  32. </div>
  33. <div class="col-xs-6">
  34. 登记时间: {$info.create_time}
  35. </div>
  36. <div class="col-xs-6" style="padding-left: 90px">
  37. 领用部门: {$info.depName}
  38. </div>
  39. <div class="col-xs-6">
  40. 领用人员: {$info.userName}
  41. </div>
  42. </div>
  43. <table class="table table-bordered" style="margin-top: 10px">
  44. <tr>
  45. <th>序号</th>
  46. <th>资产编号</th>
  47. <th>资产名称</th>
  48. <th>规格型号</th>
  49. <th>单位</th>
  50. <th>数量</th>
  51. <th>原值</th>
  52. <th>购置日期</th>
  53. </tr>
  54. <tbody>
  55. {if $info['items']}
  56. {foreach $info['items'] as $k=>$v}
  57. <tr>
  58. <td>{$k+1}</td>
  59. <td>{$v.sn}</td>
  60. <td>{$v.title}</td>
  61. <td>{$v.spec}</td>
  62. <td>{$v.unitName}</td>
  63. <td>{$v.nums}</td>
  64. <td>{$v.price}</td>
  65. <td>{$v.buy_time}</td>
  66. </tr>
  67. {/foreach}
  68. {/if}
  69. <tr style="text-align: center">
  70. <td colspan="8">数量合计: {$info.countNums} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 原值合计: {$info.total}</td>
  71. </tr>
  72. <tr>
  73. <td colspan="3" rowspan="4" style="text-align: center;">领用备注</td>
  74. <td colspan="5" rowspan="4"><div style="height: 100px;">{$info.remark}</div></td>
  75. </tr>
  76. </tbody>
  77. </table>
  78. <div class="row">
  79. <div class="col-xs-6" style="text-align: center">
  80. 领用方领导签字:
  81. </div>
  82. <div class="col-xs-6" style="text-align: center">
  83. 领用人员签字:
  84. </div>
  85. </div>
  86. </div>
  87. <br>
  88. <div class="form-group" style="text-align: center">
  89. <a href="javascript:;" class="btn btn-sm btn-primary" onclick="print()"><i class="glyphicon glyphicon-print"> 打印</i></a>
  90. </div>
  91. </div>
  92. </div>
  93. </div>
  94. </div>
  95. {/block}
  96. {block name="script"}
  97. <script src="/static/bootstrap-multiselect/docs/js/jquery-2.1.3.min.js"></script>
  98. <script src="/static/browser.js"></script>
  99. <script src="/static/jquery.jqprint-0.3.js"></script>
  100. <script>
  101. function print(){
  102. $("#printer").jqprint();
  103. }
  104. </script>
  105. {/block}