edit.html 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. {extend name="common/base"/}
  2. {block name="style"}
  3. <style>
  4. .footer{
  5. display: none;
  6. }
  7. .form-title {
  8. background-color: rgb(241, 241, 241);
  9. color: rgb(95, 95, 95);
  10. border-color: rgb(241, 241, 241);
  11. font-weight: 600;
  12. }
  13. #tabniubi {
  14. width: 100%;
  15. margin: 10px 0;
  16. background-color: #fff;
  17. color: #5f5f5f;
  18. }
  19. #tabniubi th {
  20. padding: 9px 15px;
  21. min-height: 20px;
  22. height: 40px;
  23. line-height: 40px;
  24. text-align: center;
  25. /* font-size: 14px; */
  26. border-width: 1px;
  27. border-style: solid;
  28. border-color: #e2e2e2;
  29. font: 14px Helvetica Neue, Helvetica, PingFang SC, Tahoma, Arial, sans-serif;
  30. }
  31. #tabniubi tr:first-child {
  32. padding: 0;
  33. min-height: 0;
  34. line-height: 0;
  35. border-width: 0;
  36. border-style: none;
  37. border-color: #fff;
  38. font-size: 0;
  39. }
  40. #tabniubi tr:first-child th {
  41. padding: 0;
  42. min-height: 0;
  43. line-height: 0;
  44. border-width: 0;
  45. border-style: none;
  46. border-color: #fff;
  47. font-size: 0;
  48. }
  49. </style>
  50. {/block}
  51. <!-- 主体 -->
  52. {block name="body"}
  53. <form class="layui-form p-4">
  54. <div class="layui-form-bar">
  55. <h3 class="pb-3">编辑信息</h3>
  56. </div>
  57. <table id="tabniubi" cellpadding="1" cellspacing="1">
  58. <tr>
  59. <th style="width: 10%;height: 0;"></th>
  60. <th style="width: 10%;height: 0;"></th>
  61. <th style="width: 10%;height: 0;"></th>
  62. <th style="width: 10%;height: 0;"></th>
  63. <th style="width: 10%;height: 0;"></th>
  64. <th style="width: 10%;height: 0;"></th>
  65. <th style="width: 10%;height: 0;"></th>
  66. <th style="width: 10%;height: 0;"></th>
  67. <th style="width: 10%;height: 0;"></th>
  68. </tr>
  69. <tr border="1">
  70. <th class="form-title">投资项目统一代码 </th>
  71. <th colspan="2">
  72. <input type="hidden" name="id" value="{$project.id}">
  73. <input type="text" name="project_code" lay-verify="" autocomplete="off" placeholder="请输入投资项目统一代码" lay-reqText="请输入投资项目统一代码" class="layui-input" value="{$project.project_code}">
  74. </th>
  75. <th class="form-title">项目名称</th>
  76. <th colspan="2">
  77. <input type="text" disabled name="project_name" lay-verify="" autocomplete="off" placeholder="" lay-reqText="" autocomplete="off" class="layui-input" value="{$project.project_name}">
  78. </th>
  79. <th class="form-title">工程类型</th>
  80. <th colspan="2">
  81. <input type="text" disabled name="engineering_category" lay-verify="" autocomplete="off" placeholder="" lay-reqText="" class="layui-input" value="{$project.engineering_category}">
  82. </th>
  83. </tr>
  84. <tr>
  85. <th class="form-title">评审类型</th>
  86. <th colspan="2">
  87. <input type="text" disabled name="engineering_type" lay-verify="" autocomplete="off" placeholder="" lay-reqText="" autocomplete="off" class="layui-input" value="{$project.engineering_type}">
  88. </th>
  89. <th class="form-title">送审时间 </th>
  90. <th id="date" colspan="2">
  91. <div class="layui-input-inline" style="width: 100%;">
  92. <input type="text" name="sent_review_time" lay-verify="" id="sent_review_time"
  93. placeholder="请选择日期"
  94. class="layui-input"
  95. value="{$project.sent_review_time}">
  96. </div>
  97. </th>
  98. <th class="form-title">送审造价(元)</th>
  99. <th colspan="2">
  100. <input type="text" disabled name="sent_review_amount" lay-verify="" autocomplete="off" placeholder="" lay-reqText="" class="layui-input" value="{$project.sent_review_amount}">
  101. </th>
  102. </tr>
  103. <tr>
  104. <th class="form-title">审定造价(元)</th>
  105. <th colspan="2">
  106. <input type="text" disabled name="authorize_amount" lay-verify="" autocomplete="off" placeholder="" lay-reqText="" class="layui-input" value="{$project.authorize_amount}">
  107. </th>
  108. <th class="form-title">评审员</th>
  109. <th colspan="2">
  110. <input type="text" disabled name="judge" lay-verify="" autocomplete="off" placeholder="" lay-reqText="" class="layui-input" value="{$project.judge}">
  111. </th>
  112. <th class="form-title">稽核员</th>
  113. <th colspan="2">
  114. <input type="text" disabled name="examiner" lay-verify="" autocomplete="off" placeholder="" lay-reqText="" class="layui-input" value="{$project.examiner}">
  115. </th>
  116. </tr>
  117. <tr>
  118. <th class="form-title">项目单位</th>
  119. <th colspan="2">
  120. <input type="text" disabled name="review_unit_name" lay-verify="" autocomplete="off" placeholder="" lay-reqText="" class="layui-input" value="{$project.review_unit_name}">
  121. </th>
  122. <th class="form-title">施工单位</th>
  123. <th colspan="2">
  124. <input type="text" disabled name="construction_unit" lay-verify="" autocomplete="off" placeholder="" lay-reqText="" class="layui-input" value="{$project.construction_unit}">
  125. </th>
  126. <th class="form-title">送审人</th>
  127. <th colspan="2">
  128. <input type="text" disabled name="sent_review_head_name" lay-verify="" autocomplete="off" placeholder="" lay-reqText="" class="layui-input" value="{$project.sent_review_head_name}">
  129. </th>
  130. </tr>
  131. <tr>
  132. <th class="form-title">科室 </th>
  133. <th colspan="2">
  134. <input type="text" name="division" lay-verify="" autocomplete="off" placeholder="请输入科室" lay-reqText="请输入科室" class="layui-input" value="{$project.division}">
  135. </th>
  136. <th class="form-title">合同外送审金额(元)</th>
  137. <th colspan="2">
  138. <input type="text" name="contract_out_sent_review_amount" lay-verify="" autocomplete="off" placeholder="请输入合同外送审金额(元)" lay-reqText="请输入合同外送审金额(元)" class="layui-input" value="{$project.contract_out_sent_review_amount}">
  139. </th>
  140. <th class="form-title">合同外审定金额(元)</th>
  141. <th colspan="2">
  142. <input type="text" name="contract_out_authorize_amount" lay-verify="" autocomplete="off" placeholder="请输入合同外审定金额(元)" lay-reqText="请输入合同外审定金额(元)" class="layui-input" value="{$project.contract_out_authorize_amount}">
  143. </th>
  144. </tr>
  145. <tr>
  146. <th class="form-title" colspan="2">合同内送审金额(元)</th>
  147. <th colspan="2">
  148. <input type="text" disabled name="sent_review_amount" lay-verify="" autocomplete="off" placeholder="" lay-reqText="" class="layui-input" value="{$project.sent_review_amount}">
  149. </th>
  150. <th class="form-title" colspan="2">合同内审定金额(元)</th>
  151. <th colspan="3">
  152. <input type="text" disabled name="authorize_amount" lay-verify="" autocomplete="off" placeholder="" lay-reqText="" class="layui-input" value="{$project.authorize_amount}">
  153. </th>
  154. </tr>
  155. <tr>
  156. <th class="form-title" colspan="2">合同金额(元)</th>
  157. <th colspan="2">
  158. <input type="text" name="contract_amount" lay-verify="" autocomplete="off" placeholder="请输入合同金额(元)" lay-reqText="请输入合同金额(元)" class="layui-input" value="{$project.contract_amount}">
  159. </th>
  160. <th class="form-title" colspan="2">基本预备费(元)</th>
  161. <th colspan="3">
  162. <input type="text" name="basic_reserve_funds" lay-verify="" autocomplete="off" placeholder="请输入基本预备费(元)" lay-reqText="请输入基本预备费(元)" class="layui-input" value="{$project.basic_reserve_funds}">
  163. </th>
  164. </tr>
  165. </table>
  166. <div class="py-3">
  167. <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="webform">立即提交</button>
  168. <button type="reset" class="layui-btn layui-btn-primary">重置</button>
  169. </div>
  170. </form>
  171. {/block}
  172. <!-- /主体 -->
  173. <!-- 脚本 -->
  174. {block name="script"}
  175. <script>
  176. const moduleInit = ['tool'];
  177. function gouguInit() {
  178. var form = layui.form, tool=layui.tool, oaTool = layui.oaTool;
  179. //日期选择
  180. layui.laydate.render({
  181. elem: '#sent_review_time',
  182. // range: ['#sent_review_time'],
  183. // rangeLinked: false,
  184. });
  185. let a = 1;
  186. //监听提交
  187. form.on('submit(webform)', function (data) {
  188. if(a){
  189. let callback = function (e) {
  190. layer.msg(e.msg);
  191. if (e.code == 0) {
  192. parent.layui.tool.close(1000);
  193. a = 1
  194. }
  195. }
  196. tool.post("/admin/datastat.datastat/edit", data.field, callback);
  197. }
  198. a = 0
  199. return false;
  200. });
  201. }
  202. </script>
  203. {/block}
  204. <!-- /脚本 -->