index.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320
  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. .select-box, input, label {
  9. float: left;
  10. margin-bottom: 10px;
  11. height: 30px;
  12. margin-right: 10px;
  13. }
  14. label {
  15. line-height: 30px;
  16. }
  17. .dateform {
  18. float: left;
  19. width: 120px;
  20. }
  21. .datelabel {
  22. float: left;
  23. width: 85px;
  24. margin-left: 10px;
  25. }
  26. </style>
  27. </head>
  28. <body layout:fragment="content">
  29. <nav class="breadcrumb" th:action="@{/land_supply/list/{type}(type=${type})}" th:method="post">
  30. <i class="Hui-iconfont">&#xe67f;</i>
  31. 首页
  32. <span th:unless="${is_label}" class="c-gray en">&gt; 产业供地管理</span>
  33. <span th:unless="${is_label}" class="c-gray en">&gt; 待处理</span>
  34. <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px"
  35. href="javascript:location.replace(location.href);" title="刷新">
  36. <i class="Hui-iconfont">&#xe68f;</i>
  37. </a>
  38. </nav>
  39. <form id="myForm" th:action="@{/land_supply/list/{type}(type=${type})}" th:method="post">
  40. <div class="page-container">
  41. <div class="text-c">
  42. <div class="row clearfix">
  43. <div>
  44. <label class="datelabel">项目标题:</label>
  45. <input style="width:200px;" type="text" class="input-text dateform" placeholder="请输入项目标题"
  46. id="title"
  47. name="title" th:value="${param.title}"/>
  48. </div>
  49. <div>
  50. <label class="datelabel">项目用地:</label>
  51. <input style="width:200px;" type="text" class="input-text dateform" placeholder="请输入项目用地"
  52. id="location"
  53. name="location" th:value="${param.location}"/>
  54. </div>
  55. <span class="select-box" style="width:190px;">
  56. <select class="select" th:name="approve_status" id="approve_status">
  57. <option value="">-- 请选择项目状态 --</option>
  58. <option th:each="item : ${statusList}" th:value="${item.value}" th:text="${item.name}"
  59. th:selected="${item.value} == ${approve_status}">
  60. </option>
  61. </select>
  62. </span>
  63. <span class="select-box" style="width:190px;">
  64. <select class="select" th:name="process_stage" id="process_stage">
  65. <option value="">-- 请选择项目阶段 --</option>
  66. <option th:each="item : ${stageList}" th:value="${item.value}" th:text="${item.name}"
  67. th:selected="${process_stage eq item.value}">
  68. </option>
  69. </select>
  70. </span>
  71. <input type="button" value="搜索" class="btn btn-primary" onclick="$('#myForm').submit();">
  72. </div>
  73. </div>
  74. <div class="cl pd-5 bg-1 bk-gray mt-20">
  75. <span class="l">
  76. <th:block th:if="${type=='1'}">
  77. <a th:onclick="'javascript:jump_to(\'新增\',\'/land_supply/add\',\'1000\',\'500\');'"
  78. th:if="*{canAdd}"
  79. class="btn btn-primary radius"><i class="Hui-iconfont">&#xe600;</i> 新增</a>
  80. </th:block>
  81. </span>
  82. <span class="r">共有数据:<strong th:text="${pageInfo.total}" id="total">54</strong> 条</span>
  83. </div>
  84. <!-- 表格 -->
  85. <table id="index" class="table table-border table-bordered table-bg table-hover"
  86. style="table-layout: fixed;width:100%;">
  87. <thead>
  88. <tr class="text-c">
  89. <th style="">编号</th>
  90. <th style="">项目标题</th>
  91. <th style="">项目用地</th>
  92. <th style="">受理日期</th>
  93. <th style="">项目阶段</th>
  94. <th style="">项目状态</th>
  95. <th style="">操作</th>
  96. </tr>
  97. </thead>
  98. <tbody>
  99. <tr class="text-c" th:each="model,iterStat:${pageInfo.list}" th:object="${model}">
  100. <td th:text="*{no}"></td>
  101. <td th:text="*{title}" class="text-overflow" th:title="*{title}"></td>
  102. <td th:text="*{location}" class="text-overflow" th:title="*{location}"></td>
  103. <td th:text="*{accept_date}"></td>
  104. <td th:text="*{process_stage_desc}"></td>
  105. <td th:text="*{approve_status_desc}"></td>
  106. <td class="td-manage">
  107. <a title="详情" href="javascript:;" class="ml-5" style="text-decoration:none"
  108. th:onclick="'javascript:jump_to(\'详情\',\'/land_supply/detail/'+*{id}+'\');'">详情</a>
  109. <th:block th:if="${type=='1'}">
  110. <th:block th:if="${#strings.containsIgnoreCase(userGroupType,'0')}">
  111. <a title="编辑" href="javascript:;" class="ml-5" style="text-decoration:none"
  112. th:onclick="'javascript:jump_to(\'编辑\',\'/land_supply/edit/'+*{id}+'\');'"
  113. th:if="*{approve_status=='1' || approve_status=='3' || approve_status=='4' || approve_status=='5' || approve_status=='9'}">编辑</a>
  114. </th:block>
  115. <th:block th:if="${#strings.containsIgnoreCase(userGroupType,'1')}">
  116. <th:block th:if="*{user_type=='0'}">
  117. <a title="编辑" href="javascript:;" class="ml-5" style="text-decoration:none"
  118. th:onclick="'javascript:jump_to(\'编辑\',\'/land_supply/edit/'+*{id}+'\');'"
  119. th:if="*{approve_status=='1' || approve_status=='3' || approve_status=='4' || approve_status=='5' || approve_status=='9' || approve_status=='12'}">编辑</a>
  120. </th:block>
  121. <th:block th:if="*{user_type=='4'}">
  122. <a title="编辑" href="javascript:;" class="ml-5" style="text-decoration:none"
  123. th:onclick="'javascript:jump_to(\'编辑\',\'/land_supply/commerce_approve/'+*{id}+'\');'"
  124. th:if="*{approve_status=='1' || approve_status=='3' || approve_status=='4' || approve_status=='5' || approve_status=='9' || approve_status=='12'}">编辑</a>
  125. </th:block>
  126. <a title="审核" href="javascript:;" class="ml-5" style="text-decoration:none"
  127. th:onclick="'javascript:jump_to(\'审核\',\'/land_supply/commerce_approve/'+*{id}+'\');'"
  128. th:if="*{approve_status=='2'}">审核</a>
  129. <a title="撤回咨询" href="javascript:;" class="ml-5" style="text-decoration:none"
  130. th:onclick="'javascript:jump_to(\'撤回咨询\',\'/land_supply/feedback_withdraw/'+*{id}+'\');'"
  131. th:if="*{approve_status=='6'}">撤回咨询</a>
  132. <a title="咨询汇总" href="javascript:;" class="ml-5" style="text-decoration:none"
  133. th:onclick="'javascript:jump_to(\'咨询汇总\',\'/land_supply/summary/'+*{id}+'\');'"
  134. th:if="*{approve_status=='7'}">咨询汇总</a>
  135. <a title="追加咨询" href="javascript:;" class="ml-5" style="text-decoration:none"
  136. th:onclick="'javascript:jump_to(\'追加咨询\',\'/land_supply/feedback_append/'+*{id}+'\');'"
  137. th:if="*{approve_status=='6' || approve_status=='7'}">追加咨询</a>
  138. <a title="查看行政审批局反馈" href="javascript:;" class="ml-5" style="text-decoration:none"
  139. th:onclick="'javascript:jump_to(\'查看行政审批局反馈\',\'/land_supply/xingzheng_feedback_view/'+*{id}+'\');'"
  140. th:if="*{gs_feedback=='0'}">查看行政审批局反馈</a>
  141. </th:block>
  142. <th:block th:if="${#strings.containsIgnoreCase(userGroupType,'3')}">
  143. <a title="预审审批" href="javascript:;" class="ml-5" style="text-decoration:none"
  144. th:onclick="'javascript:jump_to(\'预审审批\',\'/land_supply/pre_approve/'+*{id}+'\');'"
  145. th:if="*{approve_status=='8'}">预审审批</a>
  146. </th:block>
  147. <th:block th:if="${#strings.containsIgnoreCase(userGroupType,'2')}">
  148. <a title="咨询反馈" href="javascript:;" class="ml-5" style="text-decoration:none"
  149. th:onclick="'javascript:jump_to(\'咨询反馈\',\'/land_supply/feedback/'+*{id}+'\');'"
  150. th:if="*{approve_status=='6'}">咨询反馈</a>
  151. </th:block>
  152. <th:block th:if="${#strings.containsIgnoreCase(userGroupType,'4')}">
  153. <a title="预审审批" href="javascript:;" class="ml-5" style="text-decoration:none"
  154. th:onclick="'javascript:jump_to(\'预审审批\',\'/land_supply/pre_approve/'+*{id}+'\');'"
  155. th:if="*{approve_status=='11'}">预审审批</a>
  156. <a title="供地审批" href="javascript:;" class="ml-5" style="text-decoration:none"
  157. th:onclick="'javascript:jump_to(\'供地审批\',\'/land_supply/land_approve/'+*{id}+'\');'"
  158. th:if="*{approve_status=='17'}">供地审批</a>
  159. </th:block>
  160. <th:block th:if="${#strings.containsIgnoreCase(userGroupType,'5')}">
  161. <a title="分发反馈" href="javascript:;" class="ml-5" style="text-decoration:none"
  162. th:onclick="'javascript:jump_to(\'分发反馈\',\'/land_supply/distribute_feedback/'+*{id}+'\');'"
  163. th:if="*{approve_status=='15'}">分发反馈</a>
  164. </th:block>
  165. <th:block th:if="${#strings.containsIgnoreCase(userGroupType,'6')}">
  166. <a title="反馈商务局" href="javascript:;" class="ml-5" style="text-decoration:none"
  167. th:onclick="'javascript:jump_to(\'反馈商务局\',\'/land_supply/xingzheng_feedback/'+*{id}+'\');'"
  168. th:if="*{process_stage=='2' && (approve_status!='18'||approve_status!='19')}">反馈商务局</a>
  169. </th:block>
  170. <th:block th:if="${#strings.containsIgnoreCase(userGroupType,'7')}">
  171. <a title="分发" href="javascript:;" class="ml-5" style="text-decoration:none"
  172. th:onclick="'javascript:jump_to(\'分发\',\'/land_supply/distribute/'+*{id}+'\');'"
  173. th:if="*{approve_status=='14'}">分发</a>
  174. <a title="编辑" href="javascript:;" class="ml-5" style="text-decoration:none"
  175. th:onclick="'javascript:jump_to(\'编辑\',\'/land_supply/distribute/'+*{id}+'\');'"
  176. th:if="*{approve_status=='20'}">编辑</a>
  177. <a title="分发汇总" href="javascript:;" class="ml-5" style="text-decoration:none"
  178. th:onclick="'javascript:jump_to(\'分发汇总\',\'/land_supply/distribute_summary/'+*{id}+'\');'"
  179. th:if="*{approve_status=='16'}">分发汇总</a>
  180. <a title="最终信息" href="javascript:;" class="ml-5" style="text-decoration:none"
  181. th:onclick="'javascript:jump_to(\'最终信息\',\'/land_supply/land_approve/'+*{id}+'\');'"
  182. th:if="*{approve_status=='18'}">最终信息</a>
  183. </th:block>
  184. <th:block th:if="${userType}==*{user_type}">
  185. <a title="删除" href="javascript:;" class="ml-5" style="text-decoration:none"
  186. th:onclick="'javascript:deleteProject(\''+*{id}+'\');'"
  187. th:if="*{approve_status=='1' || approve_status=='3' || approve_status=='4' || approve_status=='5'}">删除</a>
  188. </th:block>
  189. </th:block>
  190. <th:block th:if="${type=='2'}">
  191. <a title="撤回" href="javascript:;" class="ml-5" style="text-decoration:none"
  192. th:if="*{approve_status=='2'}"
  193. th:onclick="'javascript:withdrawApply(\''+*{id}+'\');'">撤回</a>
  194. <th:block th:if="${#strings.containsIgnoreCase(userGroupType,'1')}">
  195. <a title="查看行政审批局反馈" href="javascript:;" class="ml-5" style="text-decoration:none"
  196. th:onclick="'javascript:jump_to(\'查看行政审批局反馈\',\'/land_supply/xingzheng_feedback_view/'+*{id}+'\');'"
  197. th:if="*{gs_feedback=='0'}">查看行政审批局反馈</a>
  198. </th:block>
  199. </th:block>
  200. </td>
  201. </tr>
  202. </tbody>
  203. </table>
  204. <div th:replace="admin/common/page :: page"></div>
  205. </div>
  206. </form>
  207. <script type="text/javascript" th:src="@{/js/common/page.js}"></script>
  208. <script th:inline="javascript">
  209. //跳转
  210. function jump_to(title, url, w, h) {
  211. var index = layer_show(title, pagePath + url, w, h);
  212. layer.full(index);
  213. }
  214. /*删除*/
  215. function deleteProject(id) {
  216. layer.confirm('确认要删除吗?', function (index) {
  217. $.ajax({
  218. type: "GET",
  219. dataType: "json",
  220. url: pagePath + "/land_supply/delete/" + id,
  221. success: function (result) {
  222. if (result.success) {
  223. smileMessage(result.message)
  224. setTime();
  225. } else {
  226. errorMessage(result.message);
  227. }
  228. },
  229. error: function () {
  230. errorMessage('系统错误!');
  231. }
  232. });
  233. });
  234. }
  235. /*撤回*/
  236. function withdrawApply(id) {
  237. layer.confirm('确认要撤回吗?', function (index) {
  238. $.ajax({
  239. type: "GET",
  240. dataType: "json",
  241. url: pagePath + "/land_supply/withdraw_apply/" + id,
  242. success: function (result) {
  243. if (result.success) {
  244. smileMessage(result.message)
  245. setTime();
  246. } else {
  247. errorMessage(result.message);
  248. }
  249. },
  250. error: function () {
  251. errorMessage('系统错误!');
  252. }
  253. });
  254. });
  255. }
  256. </script>
  257. </body>
  258. </html>