contract_end.html 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  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. <style>
  10. .col-sm-2 {
  11. width: 14.666667%
  12. }
  13. .width-180 {
  14. width: 180px;
  15. }
  16. .width-80 {
  17. width: 100%
  18. }
  19. .width-25 {
  20. width: 25px
  21. }
  22. label.error{
  23. position: initial!important;
  24. display: block;!important;
  25. }
  26. .line{display: block;
  27. text-align: left;
  28. text-align: left;
  29. background-color: #fff;
  30. color: #333;
  31. border-bottom: 1px solid #0a6999;
  32. border-color: #fff;
  33. border-bottom: 1px solid #0a6999;
  34. margin-top: 10px;
  35. vertical-align: middle;
  36. padding: 4px 12px;
  37. height: 31px;
  38. line-height: 31px;
  39. font-size: 14px;
  40. font-weight: bold;
  41. }
  42. </style>
  43. <article class="page-container">
  44. <form class="form form-horizontal" id="form-contract-end">
  45. <input type="hidden" th:id="id" th:name="id" th:value="${contract.id}"/>
  46. <input type="hidden" id="contract_no" th:name="contract_no" th:value="${contract.contract_no}"/>
  47. <input type="hidden" id="company_name" th:name="company_name" th:value="${contract.company_name}"/>
  48. <input type="hidden" id="company_id" th:name="company_id" th:value="${contract.company_id}"/>
  49. <div class="line">基本信息</div>
  50. <div class="row cl">
  51. <label class="form-label col-xs-4 col-sm-2">合同编号:</label>
  52. <div class="formControls col-xs-8 col-sm-4">
  53. [[${contract.contract_no}]]
  54. </div>
  55. </div>
  56. <div class="row cl">
  57. <label class="form-label col-xs-4 col-sm-2">企业名称:</label>
  58. <div class="formControls col-xs-8 col-sm-4">
  59. [[${contract.company_name}]]
  60. </div>
  61. </div>
  62. <div class="row cl">
  63. <label class="form-label col-xs-4 col-sm-2">已收押金(元):</label>
  64. <div class="formControls col-xs-8 col-sm-4">
  65. [[${contract.deposit_fee}]]<span></span>
  66. </div>
  67. </div>
  68. <div class="row cl">
  69. <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>退还押金(元):</label>
  70. <div class="formControls col-xs-8 col-sm-4">
  71. <input type="text" class="input-text" required maxlength="20" number="true" min="0" th:name="returned_deposit_fee"/>
  72. </div>
  73. </div>
  74. <div class="row cl">
  75. <label class="form-label col-xs-4 col-sm-2">其他费用(元):</label>
  76. <div class="formControls col-xs-8 col-sm-4">
  77. <input type="text" class="input-text" maxlength="20" number="true" th:name="final_fee"/>
  78. </div>
  79. </div>
  80. <div class="row cl">
  81. <label class="form-label col-xs-4 col-sm-2">备注:</label>
  82. <div class="formControls col-xs-8 col-sm-9">
  83. <textarea name="" cols="" rows="" th:name="final_remark" class="textarea" placeholder="说点什么..."
  84. dragonfly="true" onKeyUp="$.Huitextarealength(this,200)" ></textarea>
  85. </div>
  86. </div>
  87. <div id="fee">
  88. <div id="waterfee" th:if="${waters}">
  89. <div class="line">水费信息</div>
  90. <div class="row cl">
  91. <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>抄表日:</label>
  92. <div class="formControls col-xs-8 col-sm-4">
  93. <input type="text" class="input-text width-180 " id="meter_write_water" required name="meter_write_water" onChange="setMeterWriteWater(this)"/>
  94. </div>
  95. </div>
  96. <div class="row cl">
  97. <div class="formControls col-xs-8 col-sm-12">
  98. <div class="btn">抄表信息</div>
  99. <table id="waterReadTb" class="table table-border table-bordered table-bg table-hover">
  100. <thead>
  101. <tr class="text-c">
  102. <th>水表名称</th>
  103. <th>上期抄表日</th>
  104. <th>上期吨数</th>
  105. <th>本期抄表日</th>
  106. <th>本期吨数</th>
  107. </tr>
  108. </thead>
  109. <tbody>
  110. </tbody>
  111. </table>
  112. </div>
  113. </div>
  114. <div class="row cl">
  115. <div class="formControls col-xs-8 col-sm-12">
  116. <div class="btn ">费用明细</div>
  117. <table id="waterFeeTb" class="table table-border table-bordered table-bg table-hover">
  118. <thead class="text-c">
  119. <tr class="text-c">
  120. <th>水表名称</th>
  121. <th>吨数</th>
  122. <th>单价(元)</th>
  123. <th>备注</th>
  124. <th>小计金额(元)</th>
  125. </tr>
  126. </thead>
  127. <tbody>
  128. </tbody>
  129. </table>
  130. </div>
  131. </div>
  132. </div>
  133. <div id="electricfee" th:if="${electrics}">
  134. <div class="line">电费信息</div>
  135. <div class="row cl">
  136. <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>抄表日:</label>
  137. <div class="formControls col-xs-8 col-sm-4">
  138. <input type="text" class="input-text width-180 " required id="meter_write_electric" name="meter_write_electric" />
  139. </div>
  140. </div>
  141. <div class="row cl">
  142. <div class="formControls col-xs-8 col-sm-12">
  143. <div class="btn ">抄表信息</div>
  144. <table id="electricReadTb" class="table table-border table-bordered table-bg table-hover">
  145. <thead class="text-c">
  146. <tr class="text-c">
  147. <th>电表名称</th>
  148. <th>上期抄表日</th>
  149. <th>上期通用读数</th>
  150. <th>上期峰值(度)</th>
  151. <th>上期谷值(度)</th>
  152. <th>本期抄表日</th>
  153. <th>本期通用读数</th>
  154. <th>本期峰值(度)</th>
  155. <th>本期谷值(度)</th>
  156. </tr>
  157. </thead>
  158. <tbody>
  159. </tbody>
  160. </table>
  161. </div>
  162. </div>
  163. <div class="row cl">
  164. <div class="formControls col-xs-8 col-sm-12">
  165. <div class="btn ">费用明细</div>
  166. <table id="electricFeeTb" class="table table-border table-bordered table-bg table-hover">
  167. <thead>
  168. <tr class="text-c">
  169. <th width="50">电表名称</th>
  170. <th width="50">通用度数</th>
  171. <th width="90">通用单价(元)</th>
  172. <th>峰值度数</th>
  173. <th>峰值单价(元)</th>
  174. <th>谷值度数</th>
  175. <th>谷值单价(元)</th>
  176. <!-- <th>备注</th> -->
  177. <th>小计金额(元)</th>
  178. </tr>
  179. </thead>
  180. <tbody>
  181. </tbody>
  182. </table>
  183. </div>
  184. </div>
  185. </div>
  186. </div>
  187. <div class="row cl">
  188. <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
  189. <button class="btn btn-primary radius" type="submit"><i class="Hui-iconfont">&#xe632;</i>提交
  190. </button>
  191. <button onClick="removeIframe();" class="btn btn-default radius" type="button">&nbsp;&nbsp;取消&nbsp;&nbsp;</button>
  192. </div>
  193. </div>
  194. </form>
  195. <div id="map" style="display: none"></div>
  196. </article>
  197. <script type="text/javascript" th:src="@{/js/build/contract/contract_stop.js}"></script>
  198. <script type="text/javascript" th:src="@{/js/build/electricWater/electricWater_add.js}"></script>
  199. <script th:inline="javascript">
  200. $(function(){
  201. laydate.render({
  202. elem: '#meter_write_water',
  203. done: function(value, date){
  204. setMeterWriteWater(this,value);
  205. },
  206. max:0
  207. });
  208. laydate.render({
  209. elem: '#meter_write_electric',
  210. done: function(value, date){
  211. setMeterWriteElectric(this,value);
  212. },
  213. max:0
  214. });
  215. addWaterLine([[${waters}]]);
  216. addElectricLine([[${electrics}]]);
  217. });
  218. /**
  219. * 取消
  220. */
  221. function removeIframe() {
  222. var index = parent.layer.getFrameIndex(window.name);
  223. parent.layer.close(index);
  224. }
  225. </script>
  226. </body>
  227. </html>