summary.html 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  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 {
  9. display: block;
  10. text-align: left;
  11. background-color: #fff;
  12. color: #333;
  13. border-bottom: 1px solid #0a6999;
  14. border-color: #fff;
  15. border-bottom: 1px solid #0a6999;
  16. margin-top: 10px;
  17. vertical-align: middle;
  18. padding: 4px 12px;
  19. height: 31px;
  20. line-height: 31px;
  21. font-size: 14px;
  22. font-weight: bold;
  23. }
  24. </style>
  25. </head>
  26. <body layout:fragment="content">
  27. <article class="page-container">
  28. <form class="form form-horizontal">
  29. <div class="line">基本信息 <span style="float:right">来源:[[${data?.recource}]]</span></div>
  30. <div class="row cl">
  31. <label class="form-label col-xs-4 col-sm-2">项目标题:</label>
  32. <div class="formControls col-xs-4 col-sm-2">
  33. <p>[[${data?.title}]]</p>
  34. </div>
  35. <label class="form-label col-xs-2 col-sm-2">项目阶段:</label>
  36. <div class="formControls col-xs-4 col-sm-2">
  37. <p>[[${data?.process_stage_desc}]]</p>
  38. </div>
  39. </div>
  40. <div class="row cl">
  41. <label class="form-label col-xs-4 col-sm-2">项目用地:</label>
  42. <div class="formControls col-xs-8 col-sm-2">
  43. <p>[[${data?.location}]]</p>
  44. </div>
  45. <label class="form-label col-xs-2 col-sm-2">项目状态:</label>
  46. <div class="formControls col-xs-4 col-sm-2">
  47. <p>[[${data?.approve_status_desc}]]</p>
  48. </div>
  49. </div>
  50. <div class="row cl">
  51. <label class="form-label col-xs-4 col-sm-2"><span>项目介绍:</span></label>
  52. <div class="formControls col-xs-8 col-sm-9">
  53. <div th:utext="${data.content}">
  54. </div>
  55. </div>
  56. </div>
  57. <div class="row cl">
  58. <label class="form-label col-xs-4 col-sm-2"><span>附件:</span></label>
  59. <div class="formControls col-xs-8 col-sm-9">
  60. <!-- <div class="uploader-list">-->
  61. <!-- <th:block th:unless="${data.fileDown==null || data.fileDown.file_url== null}">-->
  62. <!-- <a style="color: #0c80fe;" th:href="${fileUrl} + ${data.fileDown.file_url}" target="_blank">[[${data.fileDown.file_name}]]</a>-->
  63. <!-- </th:block>-->
  64. <!-- </div>-->
  65. <div class="uploader-list">
  66. <th:block th:unless="${data.fileList==null}"
  67. th:each="item,itemStat: ${data.fileList}">
  68. <p><a style="color: #0c80fe;" th:href="${fileUrl} + ${item.file_url}" target="_blank">[[${item.file_name}]]</a></p>
  69. </th:block>
  70. </div>
  71. </div>
  72. </div>
  73. <div class="line">项目信息补充</div>
  74. <div class="row cl">
  75. <label class="form-label col-xs-4 col-sm-2"><span>补充信息:</span></label>
  76. <div class="formControls col-xs-8 col-sm-9">
  77. <div th:utext="${data.supplement}">
  78. </div>
  79. </div>
  80. </div>
  81. <div class="row cl">
  82. <label class="form-label col-xs-4 col-sm-2"><span>补充附件:</span></label>
  83. <div class="formControls col-xs-8 col-sm-9">
  84. <div class="uploader-list">
  85. <th:block th:unless="${data.supplement_file==null || data.supplement_file.file_url== null}">
  86. <a style="color: #0c80fe;" th:href="${fileUrl} + ${data.supplement_file.file_url}"
  87. target="_blank">[[${data.supplement_file.file_name}]]</a>
  88. </th:block>
  89. </div>
  90. </div>
  91. </div>
  92. <div class="line">咨询问题</div>
  93. <div class="row cl">
  94. <label class="form-label col-xs-4 col-sm-2"></label>
  95. <div class="formControls col-xs-8 col-sm-9">
  96. <table class="table table-border table-bordered table-bg table-hover processTb">
  97. <thead>
  98. <tr class="text-c">
  99. <th>咨询部门</th>
  100. <th>咨询问题</th>
  101. <th>反馈内容</th>
  102. <th>反馈文件</th>
  103. <th>剩余答复时间</th>
  104. <th>答复时间</th>
  105. <th>咨询时间</th>
  106. </tr>
  107. </thead>
  108. <tbody>
  109. <tr class="text-c" th:each="item : ${data.consultationList}">
  110. <td th:text="${item.department_name}"></td>
  111. <td th:text="${item.consultation}" class="viewComment" th:data="*{item.consultation}"></td>
  112. <td th:text="${item.feedback}" class="viewComment" th:data="*{item.feedback}"></td>
  113. <td>
  114. <th:block th:unless="${item.fileDown==null || item.fileDown.file_url== null}">
  115. <a style="color: #0c80fe;" th:href="${fileUrl} + ${item.fileDown.file_url}"
  116. target="_blank">[[${item.fileDown.file_name}]]</a>
  117. </th:block>
  118. </td>
  119. <td th:text="${item.remain_time}"></td>
  120. <td th:text="${item.feedback_time}"></td>
  121. <td th:text="${item.consultation_time}"></td>
  122. </tr>
  123. </tbody>
  124. </table>
  125. </div>
  126. </div>
  127. </form>
  128. <form class="form form-horizontal" id="form-add">
  129. <input hidden th:value="${data.id}" th:name="id"/>
  130. <div class="line">咨询汇总</div>
  131. <div class="row cl">
  132. <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>汇总意见:</label>
  133. <div class="formControls col-xs-8 col-sm-9">
  134. <textarea id="consultation_summary" name="consultation_summary" required>
  135. [[${data.consultation_summary}]]
  136. </textarea>
  137. </div>
  138. </div>
  139. <div class="row cl">
  140. <label class="form-label col-xs-4 col-sm-2"><span>文件:</span></label>
  141. <div class="formControls col-xs-8 col-sm-9">
  142. <div class="uploader-thum-container">
  143. <div id="fileListPre" class="uploader-list"></div>
  144. <div id="filePicker">选择文件</div>
  145. </div>
  146. </div>
  147. </div>
  148. <div class="row cl text-c" style="background-color: white">
  149. <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
  150. <a onclick="save()" class="btn btn-primary radius"><i class="Hui-iconfont">&#xe632;</i>提交 </a>
  151. <a onClick="removeIframe();" class="btn btn-default radius" type="button">&nbsp;&nbsp;返回&nbsp;&nbsp;</a>
  152. </div>
  153. </div>
  154. </form>
  155. </article>
  156. <script type="text/javascript" th:src="@{/h-ui/lib/webuploader/0.1.5/webuploader.min.js}"></script>
  157. <script th:inline="javascript">
  158. //富文本kindeditor初始化
  159. var editor;
  160. KindEditor.ready(function (K) {
  161. editor = K.create('#consultation_summary', {
  162. uploadJson: pagePath + '/upload/kindEditorUpload',
  163. cssData: 'body {font-family: "微软雅黑"; font-size: 14px}',
  164. allowFileManager: false,
  165. allowUpload: true,
  166. width: "100%",
  167. height: "350px",
  168. items: array,
  169. syncType: "auto",
  170. filterMode: false,
  171. afterBlur: function () {
  172. this.sync();
  173. }
  174. });
  175. });
  176. $(function () {
  177. // 初始化上传
  178. var options = {
  179. uploadBtnId: '#filePicker',
  180. picturePreId: 'fileListPre',
  181. hiddenPictureUrl: 'img',
  182. hiddenPictureName: 'imgName',
  183. width: 81,
  184. height: 81,
  185. fileSizeLimit: 100 * 1024 * 1024,
  186. fileSingleSizeLimit: 100 * 1024 * 1024
  187. };
  188. var webUploadDoc = new $WebUploadDoc(options);
  189. webUploadDoc.init();
  190. });
  191. $(function () {
  192. //查看完整意见
  193. $(".viewComment").on("click", function () {
  194. layer.alert(
  195. $(this).attr('data'),
  196. {area: ['800px', '500px']}
  197. )
  198. });
  199. });
  200. function save() {
  201. if (editor.isEmpty()) {
  202. errorMessage('请输入汇总意见');
  203. return false;
  204. }
  205. $("#form-add").ajaxSubmit({
  206. type: 'post',
  207. url: pagePath + "/land_supply/summary",
  208. dataType: "json",
  209. data: {
  210. consultation_summary_text:editor.text()
  211. },
  212. success: function (data) {
  213. if (data.success) {
  214. succeedMessage(data.message);
  215. setTimeClose();
  216. } else {
  217. // $(form).find(":submit").attr("disabled", false);
  218. errorMessage(data.message);
  219. }
  220. },
  221. error: function () {
  222. errorMessage('系统错误!');
  223. }
  224. });
  225. }
  226. /**
  227. * 取消
  228. */
  229. function removeIframe() {
  230. var index = parent.layer.getFrameIndex(window.name);
  231. parent.layer.close(index);
  232. }
  233. </script>
  234. </body>
  235. </html>