tenancy_edit.html 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  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. .line{display: block;
  9. text-align: left;
  10. background-color: #fff;
  11. color: #333;
  12. border-bottom: 1px solid #0a6999;
  13. border-color: #fff;
  14. border-bottom: 1px solid #0a6999;
  15. margin-top: 10px;
  16. vertical-align: middle;
  17. padding: 4px 12px;
  18. height: 31px;
  19. line-height: 31px;
  20. font-size: 14px;
  21. font-weight: bold;
  22. }
  23. </style>
  24. </head>
  25. <body layout:fragment="content">
  26. <article class="page-container">
  27. <form class="form form-horizontal" id="form-electricWater-edit">
  28. <div class="line">基本信息</div>
  29. <div class="row cl">
  30. <label class="form-label col-xs-4 col-sm-2">客户名称:</label>
  31. <div class="formControls col-xs-8 col-sm-9">
  32. <span th:text="${contract.company_name}"></span>
  33. </div>
  34. </div>
  35. <div class="row cl">
  36. <label class="form-label col-xs-4 col-sm-2">合同编号:</label>
  37. <div class="formControls col-xs-8 col-sm-4">
  38. <span th:text="${contract.contract_no}"></span>
  39. </div>
  40. <label class="form-label col-xs-4 col-sm-2">收款周期:</label>
  41. <div class="formControls col-xs-8 col-sm-4">
  42. <span th:text="${contract.tenancy_payment_cycle}"></span><span> 个月</span>
  43. <input type="hidden" id="tenancy_payment_cycle" th:value="${contract.tenancy_payment_cycle}"/>
  44. </div>
  45. </div>
  46. <div class="row cl">
  47. <label class="form-label col-xs-4 col-sm-2">合同生效日:</label>
  48. <div class="formControls col-xs-8 col-sm-4">
  49. <span th:text="${contract.contract_start_date}"></span>
  50. </div>
  51. <label class="form-label col-xs-4 col-sm-2">合同到期日:</label>
  52. <div class="formControls col-xs-8 col-sm-4">
  53. <span th:text="${contract.contract_end_date}"></span>
  54. </div>
  55. </div>
  56. <div class="row cl">
  57. <div class="formControls col-xs-8 col-sm-12">
  58. <table class="table table-border table-bordered table-bg table-hover">
  59. <thead>
  60. <tr class="text-c">
  61. <th>楼栋</th>
  62. <th>层数</th>
  63. <th>面积(平方米)</th>
  64. <th>单价(元/月/平方米)</th>
  65. </tr>
  66. </thead>
  67. <tbody >
  68. <tr class="text-c " th:each="buildLive,iterStat : ${buildLives}" th:object="${buildLive}">
  69. <td th:text="*{build_number}"></td>
  70. <td th:text="*{floor}"></td>
  71. <td th:text="*{use_area}"></td>
  72. <td th:text="*{pay}"></td>
  73. </tr>
  74. </tbody>
  75. </table>
  76. </div>
  77. </div>
  78. <div class="row cl">
  79. <div class="formControls col-xs-8 col-sm-12">
  80. <div class="line">缴费信息</div>
  81. <div>
  82. <!-- <div ><i class="Hui-iconfont" onclick="addTenancyLine()">&#xe600;</i></div> -->
  83. <table id="tenancyTb" style="margin-top: 15px" class="table table-border table-bordered table-bg table-hover">
  84. <thead>
  85. <tr class="text-c">
  86. <th>缴费期数</th>
  87. <th>开始日期</th>
  88. <th>结束日期</th>
  89. <th>应缴房租(元)</th>
  90. <th>已缴房租(元)</th>
  91. <th>应缴费日期</th>
  92. <th>缴费状态</th>
  93. <th>备注</th>
  94. <th>操作</th>
  95. </tr>
  96. </thead>
  97. <tbody class="pre_tenancy_line" id="pre_tenancy_line">
  98. <tr th:each="tenancy:${tenancyList}" th:object="${tenancy}">
  99. <td>
  100. <span th:if="*{period}=='-1'">末 期</span>
  101. <span th:unless="*{period}=='-1'">第 <span th:text="*{period}"></span> 期</span>
  102. <input type="hidden"/>
  103. </td>
  104. <td th:text="*{period_start_date}"></td>
  105. <td th:text="*{period_end_date}"></td>
  106. <td th:text="*{house_fee}"></td>
  107. <td th:text="*{paid_house_fee}"></td>
  108. <td class="pay_time" th:text="*{pay_time}"></td>
  109. <td class="td-status">
  110. <span class="label radius" th:if="*{status}==0">未缴款</span>
  111. <span class="label radius label-success" th:if="*{status}==2">已缴款</span>
  112. <span class="label radius" th:if="*{status}==1">部分缴款</span>
  113. </td>
  114. <td th:text="*{remark}" style="max-width: 200px;"></td>
  115. <td>
  116. <a title="" href="javascript:;" th:onclick="'javascript:tenancy_dialog( \'费用编辑\',\'/build/tenancy/edit_detail/'+*{id}+'\',\'800\',\'450\');'" class="ml-5" style="text-decoration:none;color:#06c;">编辑</a>
  117. </td>
  118. </tr>
  119. </tbody>
  120. <!-- <tbody class="add_tenancy_line" style="display:none;">
  121. <tr>
  122. <td>第 <input type="text" class="input-text period" required maxlength="20" number="true" min="0" readonly="readonly" th:name="tenancysAdd[0].period" onchange=""/> 期</td>
  123. <td><input type="text" class="input-text period_start_date" required maxlength="20" readonly="readonly" th:name="tenancysAdd[0].period_start_date"/></td>
  124. <td><input type="text" class="input-text period_end_date" required maxlength="20" readonly="readonly" th:name="tenancysAdd[0].period_end_date"/></td>
  125. <td><input type="text" class="input-text house_fee" required maxlength="20" number="true" min="0" readonly="readonly" th:name="tenancysAdd[0].paid_house_fee" th:value="${tenancy.period_pay}"/></td>
  126. <td><input type="text" class="input-text paid_house_fee" required maxlength="20" number="true" min="0" th:name="tenancysAdd[0].paid_house_fee"/></td>
  127. <td><input type="text" class="input-text pay_time" required maxlength="20" readonly="readonly" th:name="tenancysAdd[0].pay_time"/></td>
  128. <td>
  129. <select class="select status" th:name="tenancysAdd[0].status" >
  130. <option value="0" >未缴费</option>
  131. <option value="1" >已缴费</option>
  132. <option value="2" >部分缴费</option>
  133. </select>
  134. </td>
  135. <td><input type="text" class="input-text remark" required maxlength="20" number="true" min="0" th:name="tenancysAdd[0].remark"/></td>
  136. <td class="icon_font"></td>
  137. </tr>
  138. </tbody> -->
  139. </table>
  140. </div>
  141. </div>
  142. </div>
  143. <div class="row cl" id="manageRow">
  144. <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
  145. <!-- <button class="btn btn-primary radius" type="submit"><i class="Hui-iconfont">&#xe632;</i>保存</button>
  146. <button onClick="article_save();" class="btn btn-secondary radius" type="button"><i class="Hui-iconfont">&#xe632;</i> 保存草稿</button>
  147. -->
  148. <!--<button onClick="removeIframe();" class="btn btn-default radius" type="button">&nbsp;&nbsp;取消&nbsp;&nbsp;</button>-->
  149. </div>
  150. </div>
  151. </form>
  152. </article>
  153. <script type="text/javascript" th:src="@{/js/build/tenancy/tenancy_edit.js}"></script>
  154. <script type="text/javascript" th:src="@{/h-ui/lib/webuploader/0.1.5/webuploader.min.js}"></script>
  155. <script th:inline="javascript">
  156. /**
  157. * 取消
  158. */
  159. function removeIframe() {
  160. var index = parent.layer.getFrameIndex(window.name);
  161. parent.layer.close(index);
  162. }
  163. function removeLine(obj) {
  164. $(obj).parent().parent().remove();
  165. }
  166. </script>
  167. </body>
  168. </html>