index.html 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  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. .dateform {
  9. float: left;
  10. width: 120px;
  11. }
  12. .datelabel {
  13. float: left;
  14. width: 120px;
  15. }
  16. </style>
  17. </head>
  18. <body layout:fragment="content">
  19. <nav class="breadcrumb" th:action="@{/government/projectProvinces/index}" th:method="post">
  20. <i class="Hui-iconfont">&#xe67f;</i>
  21. 政府服务管理
  22. <span th:unless="${is_label}" class="c-gray en">&gt; 产业用地预审管理</span>
  23. <span th:unless="${is_label}" class="c-gray en">&gt; 列表</span>
  24. <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px"
  25. href="javascript:location.replace(location.href);" title="刷新">
  26. <i class="Hui-iconfont">&#xe68f;</i>
  27. </a>
  28. </nav>
  29. <form id="myForm" th:action="@{'/industrialLand/index/'+${pageType}}" th:method="get">
  30. <div class="page-container">
  31. <div style="text-align: center;">
  32. <span class="select-box" style="width:200px; margin-right: 20px;" th:if="${userType}==0">
  33. <select class="select" th:name="street_id" id="street_id" placeholder="请选择板块">
  34. <option value="">-- 请选择板块 --</option>
  35. <option th:each="item : ${streetList}" th:value="${item.id}" th:text="${item.name}"
  36. th:selected="${condition.street_id==item.id}">
  37. </select>
  38. </span>
  39. <span class="select-box" style="width:150px; margin-right: 20px;">
  40. <select class="select" th:name="status" id="status" placeholder="请选择状态">
  41. <option value="">-- 请选择状态 --</option>
  42. <option th:value="1" th:text="材料申报" th:selected="1==${condition.status}"></option>
  43. <option th:value="2" th:text="项目评审" th:selected="2==${condition.status}"></option>
  44. <option th:value="3" th:text="项目认定" th:selected="3==${condition.status}"></option>
  45. <option th:value="4" th:text="退回" th:selected="4==${condition.status}"></option>
  46. <option th:value="5" th:text="不通过" th:selected="5==${condition.status}"></option>
  47. <option th:value="6" th:text="通过" th:selected="6==${condition.status}"></option>
  48. </select>
  49. </span>
  50. <input style="width:200px;" type="text" class="input-text" placeholder="请输入投资主体名称"
  51. id="investment_subject" name="investment_subject" th:value="${condition.investment_subject}"/>
  52. <input style="width:200px;" type="text" class="input-text" placeholder="请输入法人姓名"
  53. id="legal_representative" name="legal_representative" th:value="${condition.legal_representative}"/>
  54. <input style="width:200px;" type="text" class="input-text" placeholder="请输入联系人姓名"
  55. id="contact" name="contact" th:value="${condition.contact}"/>
  56. <input type="button" value="搜索" class="btn btn-primary" onclick="$('#myForm').submit();">
  57. </div>
  58. <div class="cl pd-5 bg-1 bk-gray mt-20">
  59. <span class="l" th:if="${userType}==4 and ${pageType} == apply">
  60. <a th:onclick="'javascript:add(\'新增\',\'/industrialLand/add\',\'1000\',\'500\');'"
  61. class="btn btn-primary radius"><i class="Hui-iconfont">&#xe600;</i> 新增</a>
  62. </span>
  63. <span class="r">共有数据:<strong th:text="${pageInfo.total}" id="total">0</strong> 条</span>
  64. </div>
  65. <!-- 表格 -->
  66. <table id="index" class="table table-border table-bordered table-bg table-hover"
  67. style="table-layout: fixed;width:100%;">
  68. <thead>
  69. <tr class="text-c">
  70. <th style="width:135px;">编号</th>
  71. <th th:if="${userType}==0" style="width:100px;">所属板块</th>
  72. <th style="width:100px;">投资主体名称</th>
  73. <th style="width:100px;">法人姓名</th>
  74. <th style="width:100px;">联系人姓名</th>
  75. <th style="width:100px;">状态</th>
  76. <th style="width:100px;">提交日期</th>
  77. <th style="width:200px;">操作</th>
  78. </tr>
  79. </thead>
  80. <tbody>
  81. <tr class="text-c" th:each="model,iterStat:${pageInfo.list}" th:object="${model}">
  82. <td th:text="*{apply_no}" class="text-overflow" th:title="*{apply_no}"></td>
  83. <td th:if="${userType}==0" th:text="*{streetName}" class="text-overflow"></td>
  84. <td th:text="*{investment_subject}" class="text-overflow" th:title="*{investment_subject}"></td>
  85. <td th:text="*{legal_representative}" class="text-overflow" th:title="*{legal_representative}"></td>
  86. <td th:text="*{contact}" class="text-overflow" th:title="*{contact}"></td>
  87. <td th:if="*{status==1}">材料申报</td>
  88. <td th:if="*{status==2}">项目评审</td>
  89. <td th:if="*{status==3}">项目认定</td>
  90. <td th:if="*{status==4}">退回</td>
  91. <td th:if="*{status==5}">不通过</td>
  92. <td th:if="*{status==6}">通过</td>
  93. <td th:if="*{status==7}">待分发</td>
  94. <td th:text="*{create_time}"></td>
  95. <td class="td-manage">
  96. <a title="详情" href="javascript:;" class="ml-5" style="text-decoration:none"
  97. th:onclick="'javascript:projectDetail(\'详情\',\'/industrialLand/detail/'+*{id}+'\');'">详情</a>
  98. <th:block th:if="${pageType}=='apply'">
  99. <a th:if="${userType}==4 and *{status}==4" title="编辑" href="javascript:;" class="ml-5"
  100. style="text-decoration:none"
  101. th:onclick="'javascript:editProject(\'编辑\',\'/industrialLand/edit/'+*{id}+'\');'">编辑</a>
  102. </th:block>
  103. <th:block th:if="${pageType}=='audit'">
  104. <a th:if="*{canAudit}==true" title="审核" href="javascript:;" class="ml-5"
  105. style="text-decoration:none"
  106. th:onclick="'javascript:editProject(\'审核\',\'/industrialLand/audit/'+*{id}+'\');'">审核</a>
  107. <!--<a th:if=" *{canAudit}==true " title="审核" href="javascript:;" class="ml-5" style="text-decoration:none"
  108. th:onclick="'javascript:editProject(\'审核\',\'/industrialLand/audit/'+*{id}+'\');'">审核(带草稿)</a>-->
  109. <a th:if=" *{status}==7" title="待分发" href="javascript:;" class="ml-5"
  110. style="text-decoration:none"
  111. th:onclick="'javascript:editProject(\'分发\',\'/industrialLand/audit/'+*{id}+'\');'">分发</a>
  112. </th:block>
  113. <th:block th:if="${pageType}=='done'">
  114. <a th:if=" *{canWithdraw}==1" title="撤回" href="javascript:;" class="ml-5"
  115. style="text-decoration:none"
  116. th:onclick="'javascript:withdraw(\''+*{id}+'\');'">撤回</a>
  117. </th:block>
  118. </td>
  119. </tr>
  120. </tbody>
  121. </table>
  122. <div th:replace="admin/common/page :: page"></div>
  123. </div>
  124. </form>
  125. <script type="text/javascript" th:src="@{/js/common/page.js}"></script>
  126. <script th:inline="javascript">
  127. //添加
  128. function add(title, url, w, h) {
  129. sessionStorage.removeItem("hidden_array");
  130. var index = layer_show(title, pagePath + url, w, h);
  131. layer.full(index);
  132. }
  133. /*详情*/
  134. function projectDetail(title, url, w, h) {
  135. var index = layer_show(title, pagePath + url, w, h);
  136. layer.full(index);
  137. }
  138. /*编辑*/
  139. function editProject(title, url, w, h) {
  140. sessionStorage.removeItem("hidden_array");
  141. var index = layer_show(title, pagePath + url, w, h);
  142. layer.full(index);
  143. }
  144. /*撤回*/
  145. function withdraw(id) {
  146. layer.confirm('确认要撤回吗?', function (index) {
  147. $.ajax({
  148. type: "GET",
  149. dataType: "json",
  150. url: pagePath + "/industrialLand/withdraw/" + id,
  151. success: function (result) {
  152. if (result.success) {
  153. smileMessage(result.message)
  154. setTime();
  155. } else {
  156. errorMessage(result.message);
  157. }
  158. },
  159. error: function () {
  160. errorMessage('系统错误!');
  161. }
  162. });
  163. });
  164. }
  165. </script>
  166. </body>
  167. </html>