report.html 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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. </tr>
  53. <tbody>
  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.userName}</td>
  63. <td>{$v.depName}</td>
  64. </tr>
  65. {/foreach}
  66. {/if}
  67. <tr style="text-align: center">
  68. <td colspan="8">合计: {$info.total}</td>
  69. </tr>
  70. <tr>
  71. <td colspan="3" style="text-align: center;">领用备注</td>
  72. <td colspan="5"><div style="height: 100px;">{$info.remark}</div></td>
  73. </tr>
  74. </tbody>
  75. </table>
  76. <div class="row">
  77. <div class="col-xs-6" style="text-align: center">
  78. 接收人签字:
  79. </div>
  80. <div class="col-xs-6" style="text-align: center">
  81. 退库人签字:
  82. </div>
  83. <div class="col-xs-6" style="text-align: center">
  84. 接收方领导签字:
  85. </div>
  86. <div class="col-xs-6" style="text-align: center">
  87. 退库方领导签字:
  88. </div>
  89. </div>
  90. </div>
  91. <br>
  92. <div class="form-group" style="text-align: center">
  93. <a href="javascript:;" class="btn btn-sm btn-primary" onclick="print()"><i class="glyphicon glyphicon-print"> 打印</i></a>
  94. </div>
  95. </div>
  96. </div>
  97. </div>
  98. </div>
  99. {/block}
  100. {block name="script"}
  101. <script src="/static/bootstrap-multiselect/docs/js/jquery-2.1.3.min.js"></script>
  102. <script src="/static/browser.js"></script>
  103. <script src="/static/jquery.jqprint-0.3.js"></script>
  104. <script>
  105. function print(){
  106. $("#printer").jqprint();
  107. }
  108. </script>
  109. {/block}