water_detail_list.html 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. <style>
  8. .child-style td:first-child{
  9. border-left:none;
  10. }
  11. .child-style tr:last-child td {
  12. border-bottom: none;
  13. }
  14. </style>
  15. </head>
  16. <body layout:fragment="content">
  17. <article class="page-container">
  18. <form class="form form-horizontal" id="form-water-record-add">
  19. <div class="row cl">
  20. <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>水表名:</label>
  21. <div class="formControls col-xs-8 col-sm-9">
  22. [[*{water.name}]]
  23. </div>
  24. </div>
  25. <div class="row cl">
  26. <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>初始读数:</label>
  27. <div class="formControls col-xs-8 col-sm-9">
  28. <span th:unless="${#lists.isEmpty(waterReads)}">[[*{waterReads[0].water_before_read}]]</span>
  29. </div>
  30. </div>
  31. <div class="row cl">
  32. <div class="formControls col-xs-8 col-sm-12">
  33. <table class="table table-border table-bordered table-bg table-hover">
  34. <thead>
  35. <tr class="text-c">
  36. <th>抄表日</th>
  37. <th>读数</th>
  38. <th>总吨数</th>
  39. <th>客户名称</th>
  40. <th width="100">分配吨数</th>
  41. </tr>
  42. </thead>
  43. <tbody>
  44. <tr class="text-c"
  45. th:each="waterRead,iterStat:${waterReads}" th:object="${waterRead}">
  46. <td>
  47. [[*{meter_write}]]
  48. </td>
  49. <td>
  50. [[*{water_current_read}]]
  51. </td>
  52. <td>
  53. [[*{use_water}]]
  54. </td>
  55. <td colspan="2" style="padding: 0;">
  56. <table class="child-style">
  57. <tr th:each="company,index:*{waterReadCompanies}" th:object="${company}">
  58. <td><span class="float_left mt_5">[[*{company_name}]]</span></td>
  59. <td width="100"><span class="float_left mt_5">[[*{use_water}]]</span></td>
  60. </tr>
  61. </table>
  62. </td>
  63. </tr>
  64. </tbody>
  65. </table>
  66. </div>
  67. </div>
  68. <div class="row cl" id="manageRow">
  69. <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
  70. </div>
  71. </div>
  72. </form>
  73. </article>
  74. <script type="text/javascript" th:src="@{/js/build/water/water_company_list.js}"></script>
  75. <script th:inline="javascript">
  76. /**
  77. * 取消
  78. */
  79. function removeIframe() {
  80. var index = parent.layer.getFrameIndex(window.name);
  81. parent.layer.close(index);
  82. }
  83. </script>
  84. </body>
  85. </html>