report.html 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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.agentDepName}
  38. </div>
  39. <div class="col-xs-6">
  40. 经办人: {$info.agentUserName}
  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. {if $info['items']}
  55. {foreach $info['items'] as $k=>$v}
  56. <tr>
  57. <td>{$k+1}</td>
  58. <td>{$v.sn}</td>
  59. <td>{$v.title}</td>
  60. <td>{$v.spec}</td>
  61. <td>{$v.unitName}</td>
  62. <td>{$v.price}</td>
  63. <td>{$v.userName}</td>
  64. <td>{$v.depName}</td>
  65. </tr>
  66. {/foreach}
  67. {/if}
  68. <tr style="text-align: center">
  69. <td colspan="8">合计: {$info.total}</td>
  70. </tr>
  71. <tr>
  72. <td colspan="3" style="text-align: center;">处置原因</td>
  73. <td colspan="5"><div style="height: 80px;">{$info.reason}</div></td>
  74. </tr>
  75. <tr>
  76. <td colspan="3" style="text-align: center;">处置备注</td>
  77. <td colspan="5" ><div style="height: 80px;">{$info['remark']}</div></td>
  78. </tr>
  79. </table>
  80. </div>
  81. <br>
  82. <div class="form-group" style="text-align: center">
  83. <a href="javascript:;" class="btn btn-sm btn-primary" onclick="print()"><i class="glyphicon glyphicon-print"> 打印</i></a>
  84. </div>
  85. </div>
  86. </div>
  87. </div>
  88. </div>
  89. {/block}
  90. {block name="script"}
  91. <script src="/static/bootstrap-multiselect/docs/js/jquery-2.1.3.min.js"></script>
  92. <script src="/static/browser.js"></script>
  93. <script src="/static/jquery.jqprint-0.3.js"></script>
  94. <script>
  95. function print(){
  96. $("#printer").jqprint();
  97. }
  98. </script>
  99. {/block}