index.html 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327
  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. <th style="">操作</th>
  97. </tr>
  98. </thead>
  99. <tbody>
  100. <tr class="text-c" th:each="model,iterStat:${pageInfo.list}" th:object="${model}">
  101. <td th:text="*{no}"></td>
  102. <td th:text="*{title}" class="text-overflow" th:title="*{title}"></td>
  103. <td th:text="*{location}" class="text-overflow" th:title="*{location}"></td>
  104. <td th:text="*{process_stage_desc}"></td>
  105. <td th:text="*{approve_status_desc}"></td>
  106. <td th:text="*{accept_date}"></td>
  107. <th:block th:if="*{remain_time != '0天0小时0分'}">
  108. <td th:text="*{remain_time}"></td>
  109. </th:block>
  110. <th:block th:if="*{remain_time == '0天0小时0分'}">
  111. <td th:text="*{remain_time}" style="color:red;"></td>
  112. </th:block>
  113. <td class="td-manage">
  114. <a title="详情" href="javascript:;" class="ml-5" style="text-decoration:none"
  115. th:onclick="'javascript:jump_to(\'详情\',\'/land_supply/detail/'+*{id}+'\');'">详情</a>
  116. <th:block th:if="${type=='1'}">
  117. <th:block th:if="${#strings.containsIgnoreCase(userGroupType,'0')}">
  118. <a title="编辑" href="javascript:;" class="ml-5" style="text-decoration:none"
  119. th:onclick="'javascript:jump_to(\'编辑\',\'/land_supply/edit/'+*{id}+'\');'"
  120. th:if="*{approve_status=='1' || approve_status=='3' || approve_status=='4' || approve_status=='5' || approve_status=='9'}">编辑</a>
  121. </th:block>
  122. <th:block th:if="${#strings.containsIgnoreCase(userGroupType,'1')}">
  123. <th:block th:if="*{user_type=='0'}">
  124. <a title="编辑" href="javascript:;" class="ml-5" style="text-decoration:none"
  125. th:onclick="'javascript:jump_to(\'编辑\',\'/land_supply/edit/'+*{id}+'\');'"
  126. th:if="*{approve_status=='1' || approve_status=='3' || approve_status=='4' || approve_status=='5' || approve_status=='9' || approve_status=='12'}">编辑</a>
  127. </th:block>
  128. <th:block th:if="*{user_type=='4'}">
  129. <a title="编辑" href="javascript:;" class="ml-5" style="text-decoration:none"
  130. th:onclick="'javascript:jump_to(\'编辑\',\'/land_supply/commerce_approve/'+*{id}+'\');'"
  131. th:if="*{approve_status=='1' || approve_status=='3' || approve_status=='4' || approve_status=='5' || approve_status=='9' || approve_status=='12'}">编辑</a>
  132. </th:block>
  133. <a title="审核" href="javascript:;" class="ml-5" style="text-decoration:none"
  134. th:onclick="'javascript:jump_to(\'审核\',\'/land_supply/commerce_approve/'+*{id}+'\');'"
  135. th:if="*{approve_status=='2'}">审核</a>
  136. <a title="撤回咨询" href="javascript:;" class="ml-5" style="text-decoration:none"
  137. th:onclick="'javascript:jump_to(\'撤回咨询\',\'/land_supply/feedback_withdraw/'+*{id}+'\');'"
  138. th:if="*{approve_status=='6'}">撤回咨询</a>
  139. <a title="咨询汇总" href="javascript:;" class="ml-5" style="text-decoration:none"
  140. th:onclick="'javascript:jump_to(\'咨询汇总\',\'/land_supply/summary/'+*{id}+'\');'"
  141. th:if="*{approve_status=='7'}">咨询汇总</a>
  142. <a title="追加咨询" href="javascript:;" class="ml-5" style="text-decoration:none"
  143. th:onclick="'javascript:jump_to(\'追加咨询\',\'/land_supply/feedback_append/'+*{id}+'\');'"
  144. th:if="*{approve_status=='6' || approve_status=='7'}">追加咨询</a>
  145. <a title="查看行政审批局反馈" href="javascript:;" class="ml-5" style="text-decoration:none"
  146. th:onclick="'javascript:jump_to(\'查看行政审批局反馈\',\'/land_supply/xingzheng_feedback_view/'+*{id}+'\');'"
  147. th:if="*{gs_feedback=='0'}">查看行政审批局反馈</a>
  148. </th:block>
  149. <th:block th:if="${#strings.containsIgnoreCase(userGroupType,'3')}">
  150. <a title="预审审批" href="javascript:;" class="ml-5" style="text-decoration:none"
  151. th:onclick="'javascript:jump_to(\'预审审批\',\'/land_supply/pre_approve/'+*{id}+'\');'"
  152. th:if="*{approve_status=='8'}">预审审批</a>
  153. </th:block>
  154. <th:block th:if="${#strings.containsIgnoreCase(userGroupType,'2')}">
  155. <a title="咨询反馈" href="javascript:;" class="ml-5" style="text-decoration:none"
  156. th:onclick="'javascript:jump_to(\'咨询反馈\',\'/land_supply/feedback/'+*{id}+'\');'"
  157. th:if="*{approve_status=='6'}">咨询反馈</a>
  158. </th:block>
  159. <th:block th:if="${#strings.containsIgnoreCase(userGroupType,'4')}">
  160. <a title="预审审批" href="javascript:;" class="ml-5" style="text-decoration:none"
  161. th:onclick="'javascript:jump_to(\'预审审批\',\'/land_supply/pre_approve/'+*{id}+'\');'"
  162. th:if="*{approve_status=='11'}">预审审批</a>
  163. <a title="供地审批" href="javascript:;" class="ml-5" style="text-decoration:none"
  164. th:onclick="'javascript:jump_to(\'供地审批\',\'/land_supply/land_approve/'+*{id}+'\');'"
  165. th:if="*{approve_status=='17'}">供地审批</a>
  166. </th:block>
  167. <th:block th:if="${#strings.containsIgnoreCase(userGroupType,'5')}">
  168. <a title="分发反馈" href="javascript:;" class="ml-5" style="text-decoration:none"
  169. th:onclick="'javascript:jump_to(\'分发反馈\',\'/land_supply/distribute_feedback/'+*{id}+'\');'"
  170. th:if="*{approve_status=='15'}">分发反馈</a>
  171. </th:block>
  172. <th:block th:if="${#strings.containsIgnoreCase(userGroupType,'6')}">
  173. <a title="反馈商务局" href="javascript:;" class="ml-5" style="text-decoration:none"
  174. th:onclick="'javascript:jump_to(\'反馈商务局\',\'/land_supply/xingzheng_feedback/'+*{id}+'\');'"
  175. th:if="*{process_stage=='2' && (approve_status!='18'||approve_status!='19')}">反馈商务局</a>
  176. </th:block>
  177. <th:block th:if="${#strings.containsIgnoreCase(userGroupType,'7')}">
  178. <a title="分发" href="javascript:;" class="ml-5" style="text-decoration:none"
  179. th:onclick="'javascript:jump_to(\'分发\',\'/land_supply/distribute/'+*{id}+'\');'"
  180. th:if="*{approve_status=='14'}">分发</a>
  181. <a title="编辑" href="javascript:;" class="ml-5" style="text-decoration:none"
  182. th:onclick="'javascript:jump_to(\'编辑\',\'/land_supply/distribute/'+*{id}+'\');'"
  183. th:if="*{approve_status=='20'}">编辑</a>
  184. <a title="分发汇总" href="javascript:;" class="ml-5" style="text-decoration:none"
  185. th:onclick="'javascript:jump_to(\'分发汇总\',\'/land_supply/distribute_summary/'+*{id}+'\');'"
  186. th:if="*{approve_status=='16'}">分发汇总</a>
  187. <a title="最终信息" href="javascript:;" class="ml-5" style="text-decoration:none"
  188. th:onclick="'javascript:jump_to(\'最终信息\',\'/land_supply/land_approve/'+*{id}+'\');'"
  189. th:if="*{approve_status=='18'}">最终信息</a>
  190. </th:block>
  191. <th:block th:if="${userType}==*{user_type}">
  192. <a title="删除" href="javascript:;" class="ml-5" style="text-decoration:none"
  193. th:onclick="'javascript:deleteProject(\''+*{id}+'\');'"
  194. th:if="*{approve_status=='1' || approve_status=='3' || approve_status=='4' || approve_status=='5'}">删除</a>
  195. </th:block>
  196. </th:block>
  197. <th:block th:if="${type=='2'}">
  198. <a title="撤回" href="javascript:;" class="ml-5" style="text-decoration:none"
  199. th:if="*{approve_status=='2'}"
  200. th:onclick="'javascript:withdrawApply(\''+*{id}+'\');'">撤回</a>
  201. <th:block th:if="${#strings.containsIgnoreCase(userGroupType,'1')}">
  202. <a title="查看行政审批局反馈" href="javascript:;" class="ml-5" style="text-decoration:none"
  203. th:onclick="'javascript:jump_to(\'查看行政审批局反馈\',\'/land_supply/xingzheng_feedback_view/'+*{id}+'\');'"
  204. th:if="*{gs_feedback=='0'}">查看行政审批局反馈</a>
  205. </th:block>
  206. </th:block>
  207. </td>
  208. </tr>
  209. </tbody>
  210. </table>
  211. <div th:replace="admin/common/page :: page"></div>
  212. </div>
  213. </form>
  214. <script type="text/javascript" th:src="@{/js/common/page.js}"></script>
  215. <script th:inline="javascript">
  216. //跳转
  217. function jump_to(title, url, w, h) {
  218. var index = layer_show(title, pagePath + url, w, h);
  219. layer.full(index);
  220. }
  221. /*删除*/
  222. function deleteProject(id) {
  223. layer.confirm('确认要删除吗?', function (index) {
  224. $.ajax({
  225. type: "GET",
  226. dataType: "json",
  227. url: pagePath + "/land_supply/delete/" + id,
  228. success: function (result) {
  229. if (result.success) {
  230. smileMessage(result.message)
  231. setTime();
  232. } else {
  233. errorMessage(result.message);
  234. }
  235. },
  236. error: function () {
  237. errorMessage('系统错误!');
  238. }
  239. });
  240. });
  241. }
  242. /*撤回*/
  243. function withdrawApply(id) {
  244. layer.confirm('确认要撤回吗?', function (index) {
  245. $.ajax({
  246. type: "GET",
  247. dataType: "json",
  248. url: pagePath + "/land_supply/withdraw_apply/" + id,
  249. success: function (result) {
  250. if (result.success) {
  251. smileMessage(result.message)
  252. setTime();
  253. } else {
  254. errorMessage(result.message);
  255. }
  256. },
  257. error: function () {
  258. errorMessage('系统错误!');
  259. }
  260. });
  261. });
  262. }
  263. </script>
  264. </body>
  265. </html>