electric_fee_check.html 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <!DOCTYPE HTML>
  2. <html xmlns:th="http://www.thymeleaf.org"
  3. xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
  4. layout:decorate="~{admin/common/common}">
  5. <head>
  6. <title>电费查看</title>
  7. </head>
  8. <body layout:fragment="content">
  9. <article class="page-container">
  10. <form class="form form-horizontal" id="form-electricWater-edit">
  11. <div class="line">基本信息</div>
  12. <div class="row cl">
  13. <label class="form-label col-xs-4 col-sm-2">客户名称:</label>
  14. <div class="formControls col-xs-8 col-sm-9">
  15. <span th:text="${companyName}"></span>
  16. </div>
  17. </div>
  18. <div class="row cl">
  19. <label class="form-label col-xs-4 col-sm-2">合同编号:</label>
  20. <div class="formControls col-xs-8 col-sm-9">
  21. <span th:each="contractNo,iterStat:${contractNoes}">
  22. [[*{contractNo}]] <span th:if="${iterStat.last}"></span><span th:unless="${iterStat.last}">,</span>
  23. </span>
  24. </div>
  25. </div>
  26. <div id="electricFee" >
  27. <div class="line">电费信息</div>
  28. <input type="hidden" class="fee_type" value="2">
  29. <input type="hidden" th:value="${electricFee.id}" th:name="id">
  30. <div class="row cl">
  31. <div class="formControls col-xs-8 col-sm-12">
  32. <div class="btn ">抄表信息</div>
  33. <table id="electricReadTb" class="table table-border table-bordered table-bg table-hover">
  34. <thead class="text-c">
  35. <tr class="text-c">
  36. <th>电表名称</th>
  37. <th>上期抄表日</th>
  38. <th>本期抄表日</th>
  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. <th>小计金额(元)</th>
  49. </tr>
  50. </thead>
  51. <tbody>
  52. <tr class="text-c electric_read_company" th:each="electric,iterStat:${electricReadCompanies}"
  53. th:object="${electric}">
  54. <td th:text="*{electric_name}"></td>
  55. <td th:text="*{meter_write_before}"></td>
  56. <td th:text="*{meter_write}"></td>
  57. <td class="ratio" th:attr="is_peak=*{is_peak}" th:text="*{ratio}"></td>
  58. <td><span class="electric_count" th:unless="*{is_peak}" th:text="*{electric_count}"></span></td>
  59. <td><span class="electric_peak_count" th:if="*{is_peak}" th:text="*{electric_peak_count}"></span></td>
  60. <td><span class="electric_flat_count" th:if="*{is_peak}" th:text="*{electric_flat_count}"></span></td>
  61. <td><span class="electric_valley_count" th:if="*{is_peak}" th:text="*{electric_valley_count}"></span></td>
  62. <td>
  63. <span th:unless="*{is_peak}" th:text="*{electric_price}"></span></td>
  64. <td>
  65. <span th:if="*{is_peak}" th:text="*{electric_peak_price}"></span>
  66. </td>
  67. <td>
  68. <span th:if="*{is_peak}" th:text="*{electric_flat_price}"></span>
  69. </td>
  70. <td>
  71. <span th:if="*{is_peak}" th:text="*{electric_valley_price}"></span>
  72. </td>
  73. <td th:text="*{total_fee}" ></td>
  74. </tr>
  75. <tr class="text-c">
  76. <td scope="col" colspan="9">线损费用(元)</td>
  77. <td colspan="3">
  78. 线损率: [[${electricFee.wire_loss}]]%
  79. </td>
  80. <td th:text="${electricFee.total_wire_loss}"></td>
  81. </tr>
  82. <tr class="text-c">
  83. <td scope="col" colspan="12">基本电费(元)</td>
  84. <td th:text="${electricFee.base_electric}"></td>
  85. </tr>
  86. <tr class="text-c">
  87. <td scope="col" colspan="12">电力设备租金(元)</td>
  88. <td th:text="${electricFee.electric_rent}">
  89. </td>
  90. </tr>
  91. <tr class="text-c">
  92. <td scope="col" colspan="12">其他费用(元)</td>
  93. <td th:text="${electricFee.other_fee}">
  94. </td>
  95. </tr>
  96. <tr class="text-c">
  97. <td scope="col" colspan="9">合计</td>
  98. <td colspan="3">用电量 <span th:text="${electricFee.use_electric}"></span></td>
  99. <td th:text="${electricFee.electric_fee}" >
  100. </td>
  101. </tr>
  102. </tbody>
  103. </table>
  104. </div>
  105. </div>
  106. </div>
  107. <div class="row cl" id="manageRow">
  108. <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
  109. <button onClick="removeIframe();" class="btn btn-default radius" type="button">&nbsp;&nbsp;取消&nbsp;&nbsp;</button>
  110. </div>
  111. </div>
  112. </form>
  113. </article>
  114. <script th:inline="javascript">
  115. /**
  116. * 取消
  117. */
  118. function removeIframe() {
  119. var index = parent.layer.getFrameIndex(window.name);
  120. parent.layer.close(index);
  121. }
  122. </script>
  123. </body>
  124. </html>