0
0

report.html 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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 class="col-xs-6" style="padding-left: 90px">
  43. 维修费用:{$info.money}
  44. </div>
  45. <div class="col-xs-6">
  46. 送修单位:{$info.company}
  47. </div>
  48. </div>
  49. <table class="table table-bordered" style="margin-top: 10px">
  50. <tr>
  51. <th>序号</th>
  52. <th>资产编号</th>
  53. <th>资产名称</th>
  54. <th>规格型号</th>
  55. <th>单位</th>
  56. <th>原值</th>
  57. <th>使用人员</th>
  58. <th>使用部门</th>
  59. </tr>
  60. <tbody>
  61. {if $info['items']}
  62. {foreach $info['items'] as $k=>$v}
  63. <tr>
  64. <td>{$k+1}</td>
  65. <td>{$v.sn}</td>
  66. <td>{$v.title}</td>
  67. <td>{$v.spec}</td>
  68. <td>{$v.unitName}</td>
  69. <td>{$v.price}</td>
  70. <td>{$v.userName}</td>
  71. <td>{$v.depName}</td>
  72. </tr>
  73. {/foreach}
  74. {/if}
  75. <tr style="text-align: center">
  76. <td colspan="8">合计: {$info.total}</td>
  77. </tr>
  78. <tr>
  79. <td colspan="3" style="text-align: center;">维修备注</td>
  80. <td colspan="5"><div style="height: 100px;">{$info.remark}</div></td>
  81. </tr>
  82. </tbody>
  83. </table>
  84. <div class="row">
  85. <div class="col-xs-6" style="text-align: center">
  86. 保修人签字:
  87. </div>
  88. <div class="col-xs-6" style="text-align: center">
  89. 报修方领导签字:
  90. </div>
  91. <div class="col-xs-6" style="text-align: center">
  92. 登记人签字:
  93. </div>
  94. <div class="col-xs-6" style="text-align: center">
  95. 财务领导签字:
  96. </div>
  97. </div>
  98. </div>
  99. <br>
  100. <div class="form-group" style="text-align: center">
  101. <a href="javascript:;" class="btn btn-sm btn-primary" onclick="print()"><i class="glyphicon glyphicon-print"> 打印</i></a>
  102. </div>
  103. </div>
  104. </div>
  105. </div>
  106. </div>
  107. {/block}
  108. {block name="script"}
  109. <script src="/static/bootstrap-multiselect/docs/js/jquery-2.1.3.min.js"></script>
  110. <script src="/static/browser.js"></script>
  111. <script src="/static/jquery.jqprint-0.3.js"></script>
  112. <script>
  113. function print(){
  114. $("#printer").jqprint();
  115. }
  116. </script>
  117. {/block}