process_feedback_edit.html 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  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-land-feedback">
  11. <input type="hidden" th:id="id" th:name="id" th:value="${feedback.id}"/>
  12. <input type="hidden" th:id="apply_id" th:name="apply_id" th:value="${landApply.id}"/>
  13. <div class="row cl">
  14. <label class="form-label col-xs-4 col-sm-2"> 申请单编号:</label>
  15. <div class="formControls col-xs-8 col-sm-9">
  16. [[${landApply.apply_no}]]
  17. </div>
  18. </div>
  19. <div class="row cl">
  20. <label class="form-label col-xs-4 col-sm-2"> 申请类型:</label>
  21. <div class="formControls col-xs-8 col-sm-9">
  22. [[${landApply.apply_type_str}]]
  23. </div>
  24. </div>
  25. <div class="row cl">
  26. <label class="form-label col-xs-4 col-sm-2"> 企业名称:</label>
  27. <div class="formControls col-xs-8 col-sm-9">
  28. [[${landApply.company_name}]]
  29. </div>
  30. </div>
  31. <div class="row cl">
  32. <label class="form-label col-xs-4 col-sm-2"><span class="c-red"></span>线下办理状态:</label>
  33. <div th:if="${feedback.isLastFeedback==1}" class="formControls col-xs-8 col-sm-9">
  34. <span class="select-box">
  35. <select class="select" th:name="process_status" >
  36. <option th:each="item : ${processStatusList}" th:value="${item.value}"
  37. th:text="${item.name}" th:selected="${item.value==landApply.process_status}">
  38. </option>
  39. </select>
  40. </span>
  41. </div>
  42. <div th:unless="${feedback.isLastFeedback==1}" class="formControls col-xs-8 col-sm-9">
  43. <span class="select-box">
  44. <select class="select" disabled>
  45. <option th:each="item : ${processStatusList}" th:value="${item.value}"
  46. th:text="${item.name}" th:selected="${item.value==feedback.process_status}">
  47. </option>
  48. </select>
  49. </span>
  50. <input type="hidden" th:value="${feedback.process_status}" th:name="process_status" />
  51. </div>
  52. </div>
  53. <div class="row cl">
  54. <label class="form-label col-xs-4 col-sm-2"> 办理内容:</label>
  55. <div class="formControls col-xs-8 col-sm-9">
  56. <textarea class="textarea" id="process_content" th:name="process_content" placeholder="请输入办理内容">
  57. [[${feedback.process_content}]]
  58. </textarea>
  59. </div>
  60. </div>
  61. <div class="row cl">
  62. <label class="form-label col-xs-4 col-sm-2"> 办理结果:</label>
  63. <div class="formControls col-xs-8 col-sm-9">
  64. <textarea class="textarea" id="process_result" th:name="process_result" placeholder="请输入办理结果">
  65. [[${feedback.process_result}]]
  66. </textarea>
  67. </div>
  68. </div>
  69. <div class="row cl">
  70. <label class="form-label col-xs-4 col-sm-2">文件上传:</label>
  71. <div class="formControls col-xs-8 col-sm-9">
  72. <div class="uploader-thum-container">
  73. <div id="fileListPre" class="uploader-list">
  74. <th:block th:unless="${feedback.fileDowns} == null">
  75. <div th:each="filedown,iterStat:${feedback.fileDowns}" th:object="${filedown}">
  76. <a th:href="${fileUrl} + *{file_url}" target="_blank" style="color: #5b98dd;">[[*{file_name}]]</a>
  77. <a onclick="delDoc(this)">删除<br/></a>
  78. <input type="hidden" name="fileDown.file_id" th:value="*{file_id}"/>
  79. </div>
  80. </th:block>
  81. </div>
  82. <div id="filePicker">选择文件</div>
  83. </div>
  84. </div>
  85. </div>
  86. <div class="row cl">
  87. <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
  88. <button class="btn btn-primary radius" type="submit">&nbsp;&nbsp;上传&nbsp;&nbsp;</button>
  89. <button onClick="removeIframe();" class="btn btn-default radius" type="button">&nbsp;&nbsp;返回&nbsp;&nbsp;</button>
  90. </div>
  91. </div>
  92. </form>
  93. </article>
  94. <script th:inline="javascript">
  95. $(function () {
  96. $("#form-land-feedback").validate({
  97. rules: {
  98. },
  99. messages: {
  100. },
  101. onkeyup: false,
  102. focusCleanup: true,
  103. success: "valid",
  104. submitHandler: function (form) {
  105. // $(form).find(":submit").attr("disabled", true);
  106. setDocNames();
  107. $(form).ajaxSubmit({
  108. type: 'post',
  109. url: pagePath + "/stockLand/processFeedback",
  110. dataType: "json",
  111. success: function (data) {
  112. if (data.success) {
  113. succeedMessage(data.message);
  114. setTimeClose();
  115. } else {
  116. // $(form).find(":submit").attr("disabled", false);
  117. errorMessage(data.message);
  118. }
  119. },
  120. error: function () {
  121. errorMessage('系统错误!');
  122. }
  123. });
  124. return false; // 非常重要,如果是false,则表明是不跳转,在本页上处理,也就是ajax,如果是非false,则传统的form跳转。
  125. }
  126. });
  127. });
  128. //修改上传文件的name域,改成数组形式
  129. function setDocNames(){
  130. $("#fileListPre").find("input[name='fileDown.file_id']").each(function(i,item){
  131. $(this).attr("name","fileDowns["+i+"].file_id");
  132. });
  133. }
  134. /**
  135. * 初始化上传控件
  136. */
  137. var options = {
  138. uploadBtnId: '#filePicker',
  139. picturePreId: 'fileListPre',
  140. hiddenPictureUrl: 'img',
  141. hiddenPictureName: 'imgName',
  142. // accept : {
  143. // title : 'Images',
  144. // extensions : 'gif,jpg,jpeg,bmp,png',
  145. // mimeTypes : 'image/gif,image/jpg,image/jpeg,image/bmp,image/png'
  146. // },
  147. width: 81,
  148. height: 81,
  149. fileSizeLimit: 100 * 1024 * 1024,
  150. fileSingleSizeLimit: 100 * 1024 * 1024,
  151. // fileNumLimit: 1,
  152. append : true
  153. };
  154. var webUploadDoc = new $WebUploadDoc(options);
  155. webUploadDoc.init();
  156. /**
  157. * 取消
  158. */
  159. function removeIframe(){
  160. var index = parent.layer.getFrameIndex(window.name);
  161. parent.layer.close(index);
  162. }
  163. </script>
  164. </body>
  165. </html>