end.jsp 70 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345
  1. <%@ page language="java" contentType="text/html; charset=UTF-8"
  2. pageEncoding="UTF-8" %>
  3. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  4. <!DOCTYPE html>
  5. <html>
  6. <head>
  7. <jsp:include page="../../../common/common-meta-include.jsp"></jsp:include>
  8. <jsp:include page="../../../common/common-js-include.jsp"></jsp:include>
  9. <jsp:include page="../../../common/common-css-include.jsp"></jsp:include>
  10. <!--[if lt IE 9]>
  11. <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
  12. <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
  13. <![endif]-->
  14. <style type="text/css">
  15. .layui-table-view .layui-table td {
  16. border-right: 1px solid #DDD !important;
  17. }
  18. .layui-table-body .layui-table-cell {
  19. padding: 5px !important;
  20. }
  21. .layui-table-header .layui-table-cell {
  22. height: 42px !important;
  23. }
  24. .table_box .table_process {
  25. height: fit-content;
  26. max-height: 60vh;
  27. overflow: hidden;
  28. }
  29. .layui-table-body::-webkit-scrollbar {
  30. width: 0px;
  31. /*height: 10px;*/
  32. }
  33. .layui-table-col-special .layui-table-cell {
  34. display: flex;
  35. justify-content: space-between;
  36. }
  37. .queryTimeType {
  38. margin-top: -9px;
  39. position: absolute;
  40. }
  41. .hiddenParam,
  42. .hiddenParams {
  43. display: none;
  44. }
  45. .morePan {
  46. position: absolute;
  47. margin-left: 11px;
  48. }
  49. .morePan a {
  50. color: #2C6EC6;
  51. }
  52. .table_box,
  53. .table_box .table_process {
  54. overflow: visible;
  55. }
  56. .layui-form-select dl {
  57. height: 120px;
  58. }
  59. </style>
  60. </head>
  61. <body>
  62. <div id="app"></div>
  63. <template id="template">
  64. <div class="layui-layout layui-layout-admin">
  65. <!-- 内容区域 -->
  66. <div class="right_title">
  67. <%-- <span class="txt">竣工项目库</span>--%>
  68. <div class="txt" style="width: 100%; font-size: 35px; font-family: '方正小标宋', '仿宋', sans-serif; text-align: center;font-weight: bold;">竣工项目库</div>
  69. <div class="layui-btn-container" style="margin-top: 20px;margin-left: 20px">
  70. <button type="button" class="layui-btn">导出明细</button>
  71. <button type="button" class="layui-btn">导出总表</button>
  72. <button type="button" class="layui-btn">自定义导出</button>
  73. </div>
  74. <div class="layui-collapse">
  75. <div class="layui-colla-item">
  76. <%-- <%-- <h2 class="layui-colla-title">筛选</h2>--%>
  77. <div class="layui-colla-content layui-show">
  78. <form class="layui-form" lay-filter="searchForm" id="searchForm">
  79. <input type="hidden" name="queryType" value="4">
  80. <div class="layui-row">
  81. <%-- <div class="layui-col-xs3 layui-col-sm3 layui-col-md3">--%>
  82. <%-- <div class="layui-form-item">--%>
  83. <%-- <label class="layui-form-label label-longers required">项目名称</label>--%>
  84. <%-- <div class="layui-input-block">--%>
  85. <%-- <input type="text" name="subName" placeholder="请输入" autocomplete="off"--%>
  86. <%-- class="layui-input">--%>
  87. <%-- </div>--%>
  88. <%-- </div>--%>
  89. <%-- </div>--%>
  90. <%-- <div class="layui-col-xs3 layui-col-sm3 layui-col-md3" style="display: none">--%>
  91. <%-- <div class="layui-form-item" style="height:28px;">--%>
  92. <%-- <label class="layui-form-label label-longers required">项目类型</label>--%>
  93. <%-- <div class="layui-input-block">--%>
  94. <%-- <div id="kind" name="kind"></div>--%>
  95. <%-- </div>--%>
  96. <%-- </div>--%>
  97. <%-- </div>--%>
  98. <%-- <div class="layui-col-xs3 layui-col-sm3 layui-col-md3 hiddenParam">--%>
  99. <%-- <div class="layui-form-item">--%>
  100. <%-- <label class="layui-form-label label-longers required" style="width: 100px;">金额(万元)</label>--%>
  101. <%-- <div class="layui-input-block time_box">--%>
  102. <%-- <input type="text" id="startAmt" name="startAmt" placeholder="请输入最小金额"--%>
  103. <%-- autocomplete="off" class="layui-input" value="${minAmt}">--%>
  104. <%-- <span class="split_txt">至</span>--%>
  105. <%-- <input type="text" id="endAmt" name="endAmt" placeholder="请输入最大金额"--%>
  106. <%-- autocomplete="off" class="layui-input" value="${maxAmt}">--%>
  107. <%-- </div>--%>
  108. <%-- </div>--%>
  109. <%-- </div>--%>
  110. <%-- <div class="layui-col-xs3 layui-col-sm3 layui-col-md3 hiddenParam">--%>
  111. <%-- <div class="layui-form-item">--%>
  112. <%-- <label class="layui-form-label label-longers required">建设性质</label>--%>
  113. <%-- <div class="layui-input-block">--%>
  114. <%-- <select name="propKind">--%>
  115. <%-- <option value="">请选择</option>--%>
  116. <%-- <c:forEach items="${JSXZ}" var="js">--%>
  117. <%-- <option value="${js.code }">${js.title }</option>--%>
  118. <%-- </c:forEach>--%>
  119. <%-- </select>--%>
  120. <%-- </div>--%>
  121. <%-- </div>--%>
  122. <%-- </div>--%>
  123. <%-- <div class="layui-col-xs3 layui-col-sm3 layui-col-md3">--%>
  124. <%-- <div class="layui-form-item">--%>
  125. <%-- <label class="layui-form-label label-longers required">建设地点</label>--%>
  126. <%-- <div class="layui-input-block">--%>
  127. <%-- <select name="subjectId">--%>
  128. <%-- <option value="">请选择</option>--%>
  129. <%-- <c:forEach items="${JSDD }" var="hy">--%>
  130. <%-- <option value="${hy.code }">${hy.title }</option>--%>
  131. <%-- </c:forEach>--%>
  132. <%-- </select>--%>
  133. <%-- </div>--%>
  134. <%-- </div>--%>
  135. <%-- </div>--%>
  136. <div class="layui-col-xs3 layui-col-sm3 layui-col-md3">
  137. <div class="layui-form-item">
  138. <label class="layui-form-label label-longers required">项目名称</label>
  139. <div class="layui-input-block">
  140. <input type="text" name="subName" placeholder="请输入" autocomplete="off"
  141. class="layui-input">
  142. </div>
  143. </div>
  144. </div>
  145. <div class="layui-col-xs3 layui-col-sm3 layui-col-md3">
  146. <div class="layui-form-item">
  147. <label class="layui-form-label required label-longers">项目属地</label>
  148. <div class="layui-input-block">
  149. <select name="subjectId">
  150. <option value="">请选择</option>
  151. <c:forEach items="${JSDD }" var="hy">
  152. <option value="${hy.code }">${hy.title }</option>
  153. </c:forEach>
  154. </select>
  155. </div>
  156. </div>
  157. </div>
  158. <div class="layui-col-xs3 layui-col-sm3 layui-col-md3">
  159. <div class="layui-form-item">
  160. <label class="layui-form-label required label-longers">行业类别</label>
  161. <div class="layui-input-block">
  162. <div id="indusKind"></div>
  163. </div>
  164. </div>
  165. </div>
  166. <div class="layui-col-xs3 layui-col-sm3 layui-col-md3 hiddenParam">
  167. <div class="layui-form-item">
  168. <label class="layui-form-label required label-longers" style="width: 100px;">项目总投资</label>
  169. <div class="layui-input-block time_box">
  170. <input type="number" name="startAmt" placeholder="请输入最小金额"
  171. autocomplete="off"
  172. class="layui-input">
  173. <span class="split_txt">至</span>
  174. <input type="number" name="endAmt" placeholder="请输入最大金额" autocomplete="off"
  175. class="layui-input">
  176. </div>
  177. </div>
  178. </div>
  179. <div class="layui-col-xs3 layui-col-sm3 layui-col-md3 hiddenParam">
  180. <div class="layui-form-item">
  181. <label class="layui-form-label label-longers">项目单位</label>
  182. <div class="layui-input-block">
  183. <input type="text" name="sbdw" placeholder="请输入项目项目单位名称"
  184. autocomplete="off"
  185. class="layui-input">
  186. </div>
  187. </div>
  188. </div>
  189. <div class="layui-col-xs3 layui-col-sm3 layui-col-md3 hiddenParam">
  190. <div class="layui-form-item">
  191. <label class="layui-form-label required label-longers" style="width: 100px;">升规入统时间</label>
  192. <div class="layui-input-block time_box" style="margin-left:120px">
  193. <input type="text" id="startTime" name="rangeDate" placeholder="请选择时间段"
  194. autocomplete="off" class="layui-input" style="margin-left: 20px;">
  195. </div>
  196. </div>
  197. </div>
  198. <%-- <div class="layui-col-xs3 layui-col-sm3 layui-col-md3">--%>
  199. <%-- <div class="layui-form-item">--%>
  200. <%-- <label class="layui-form-label label-longers required">所属行业</label>--%>
  201. <%-- <div class="layui-input-block">--%>
  202. <%-- <div id="indusKind"></div>--%>
  203. <%-- </div>--%>
  204. <%-- </div>--%>
  205. <%-- </div>--%>
  206. <%-- <div class="layui-col-xs3 layui-col-sm3 layui-col-md3 hiddenParam">--%>
  207. <%-- <div class="layui-form-item">--%>
  208. <%-- <label class="layui-form-label label-longers required">投资类型</label>--%>
  209. <%-- <div class="layui-input-block">--%>
  210. <%-- <select name="kindNature">--%>
  211. <%-- <option value="">请选择</option>--%>
  212. <%-- <c:forEach items="${TZXZ }" var="hy">--%>
  213. <%-- <option value="${hy.code }">${hy.title }</option>--%>
  214. <%-- </c:forEach>--%>
  215. <%-- </select>--%>
  216. <%-- </div>--%>
  217. <%-- </div>--%>
  218. <%-- </div>--%>
  219. <%-- <div class="layui-col-xs3 layui-col-sm3 layui-col-md3 hiddenParam">
  220. <div class="layui-form-item">
  221. <label class="layui-form-label label-longers required">项目单位名称</label>
  222. <div class="layui-input-block">
  223. <input name="sbdw" class="layui-input" value="${unitName }">
  224. </div>
  225. </div>
  226. </div>--%>
  227. <%-- <c:if test="${currUser.statusProj == 1 }">--%>
  228. <%-- <div class="layui-col-xs3 layui-col-sm3 layui-col-md3 hiddenParam">--%>
  229. <%-- <div class="layui-form-item">--%>
  230. <%-- <label class="layui-form-label label-longers required">行业单位</label>--%>
  231. <%-- <div class="layui-input-block">--%>
  232. <%-- <select name="hydw" lay-search>--%>
  233. <%-- <option value="">--请选择--</option>--%>
  234. <%-- <c:forEach items="${HYDW }" var="hy">--%>
  235. <%-- <option value="${ hy.id}">${hy.title }</option>--%>
  236. <%-- </c:forEach>--%>
  237. <%-- </select>--%>
  238. <%-- </div>--%>
  239. <%-- </div>--%>
  240. <%-- </div>--%>
  241. <%-- </c:if>--%>
  242. <%-- <c:if test="${isHydw}">--%>
  243. <%-- <div class="layui-col-xs3 layui-col-sm3 layui-col-md3">--%>
  244. <%-- <div class="layui-form-item">--%>
  245. <%-- <label class="layui-form-label required" >灯色:</label>--%>
  246. <%-- <div class="layui-input-block">--%>
  247. <%-- <div id="light"></div>--%>
  248. <%-- </div>--%>
  249. <%-- </div>--%>
  250. <%-- </div>--%>
  251. <%-- </c:if>--%>
  252. <%-- <div class="layui-col-xs3 layui-col-sm3 layui-col-md3 hiddenParam">--%>
  253. <%-- <div class="layui-form-item">--%>
  254. <%-- <label class="layui-form-label label-longers queryTimeType" style="width: 130px;">--%>
  255. <%-- <select name="queryTimeType">--%>
  256. <%-- <option value="">建设日期</option>--%>
  257. <%-- <option value="1">计划开工日期</option>--%>
  258. <%-- <option value="2">计划结束日期</option>--%>
  259. <%-- <option value="3">创建日期</option>--%>
  260. <%-- </select>--%>
  261. <%-- </label>--%>
  262. <%-- <div class="layui-input-block time_box" style="margin-left:120px">--%>
  263. <%-- <input type="text" id="startTime" name="rangeDate" placeholder="请选择时间段"--%>
  264. <%-- autocomplete="off" class="layui-input" style="margin-left: 20px;">--%>
  265. <%-- </div>--%>
  266. <%-- </div>--%>
  267. <%-- </div>--%>
  268. <%-- <div class="layui-col-xs3 layui-col-sm3 layui-col-md3 hiddenParam">--%>
  269. <%-- <div class="layui-form-item">--%>
  270. <%-- <label class="layui-form-label label-longers" style="width: 100px;">完成比例(%)</label>--%>
  271. <%-- <div class="layui-input-block time_box">--%>
  272. <%-- <input type="number" name="endBl" placeholder="请填写最小完成比例" autocomplete="off"--%>
  273. <%-- class="layui-input">--%>
  274. <%-- <span class="split_txt">至</span>--%>
  275. <%-- <input type="number" name="endBlPlus" placeholder="请填写最大完成比例"--%>
  276. <%-- autocomplete="off" class="layui-input">--%>
  277. <%-- </div>--%>
  278. <%-- </div>--%>
  279. <%-- </div>--%>
  280. <%-- <div class="layui-col-xs3 layui-col-sm3 layui-col-md3 hiddenParam">--%>
  281. <%-- <div class="layui-form-item">--%>
  282. <%-- <label class="layui-form-label label-longers required">资金来源</label>--%>
  283. <%-- <div class="layui-input-block">--%>
  284. <%-- <select name="zjly" lay-search="">--%>
  285. <%-- <option value="">请选择</option>--%>
  286. <%-- <c:forEach items="${ZJLY }" var="zj">--%>
  287. <%-- <option value="${zj.id }">${zj.title }</option>--%>
  288. <%-- </c:forEach>--%>
  289. <%-- </select>--%>
  290. <%-- </div>--%>
  291. <%-- </div>--%>
  292. <%-- </div>--%>
  293. <%-- <c:if test="${isHydw }">--%>
  294. <%-- <div class="layui-col-xs3 layui-col-sm3 layui-col-md3 hiddenParam">--%>
  295. <%-- <div class="layui-form-item">--%>
  296. <%-- <label class="layui-form-label label-longers ">是否分管</label>--%>
  297. <%-- <div class="layui-input-block">--%>
  298. <%-- <select name="blSub">--%>
  299. <%-- <option value="false">所有项目</option>--%>
  300. <%-- <option value="true">是</option>--%>
  301. <%-- </select>--%>
  302. <%-- </div>--%>
  303. <%-- </div>--%>
  304. <%-- </div>--%>
  305. <%-- </c:if>--%>
  306. <%-- <c:if test="${admin }">--%>
  307. <%-- <div class="layui-col-xs3 layui-col-sm3 layui-col-md3 hiddenParam">--%>
  308. <%-- <div class="layui-form-item">--%>
  309. <%-- <label class="layui-form-label label-longers required">在建库</label>--%>
  310. <%-- <div class="layui-input-block">--%>
  311. <%-- <select name="isHide">--%>
  312. <%-- <option value="">所有</option>--%>
  313. <%-- <option value="1">是</option>--%>
  314. <%-- <option value="0">否</option>--%>
  315. <%-- </select>--%>
  316. <%-- </div>--%>
  317. <%-- </div>--%>
  318. <%-- </div>--%>
  319. <%-- </c:if>--%>
  320. <%-- <div class="layui-col-xs3 layui-col-sm3 layui-col-md3 hiddenParam">--%>
  321. <%-- <div class="layui-form-item">--%>
  322. <%-- <label class="layui-form-label label-longers required">年份</label>--%>
  323. <%-- <div class="layui-input-block time_box">--%>
  324. <%-- <input type="text" id="year" readonly="readonly" name="year"--%>
  325. <%-- class="layui-input">--%>
  326. <%-- </div>--%>
  327. <%-- </div>--%>
  328. <%-- </div>--%>
  329. <%-- <div class="layui-col-xs3 layui-col-sm3 layui-col-md3 hiddenParam">--%>
  330. <%-- <div class="layui-form-item">--%>
  331. <%-- <label class="layui-form-label label-longers required">月份</label>--%>
  332. <%-- <div class="layui-input-block time_box">--%>
  333. <%-- <select id="month" name="month">--%>
  334. <%-- <option value="">请选择</option>--%>
  335. <%-- <option value="1">1月</option>--%>
  336. <%-- <option value="2">2月</option>--%>
  337. <%-- <option value="3">3月</option>--%>
  338. <%-- <option value="4">4月</option>--%>
  339. <%-- <option value="5">5月</option>--%>
  340. <%-- <option value="6">6月</option>--%>
  341. <%-- <option value="7">7月</option>--%>
  342. <%-- <option value="8">8月</option>--%>
  343. <%-- <option value="9">9月</option>--%>
  344. <%-- <option value="10">10月</option>--%>
  345. <%-- <option value="11">11月</option>--%>
  346. <%-- <option value="12">12月</option>--%>
  347. <%-- </select>--%>
  348. <%-- </div>--%>
  349. <%-- </div>--%>
  350. <%-- </div>--%>
  351. <%-- <div class="layui-col-xs3 layui-col-sm3 layui-col-md3 hiddenParam">--%>
  352. <%-- <div class="layui-form-item">--%>
  353. <%-- <label class="layui-form-label label-longers">项目单位</label>--%>
  354. <%-- <div class="layui-input-block">--%>
  355. <%-- <input type="text" name="sbdw" placeholder="请输入项目项目单位名称"--%>
  356. <%-- autocomplete="off"--%>
  357. <%-- class="layui-input">--%>
  358. <%-- </div>--%>
  359. <%-- </div>--%>
  360. <%-- </div>--%>
  361. <div class="layui-col-xs3 layui-col-sm3 layui-col-md3 hiddenParams" style="display: flex">
  362. <div class="layui-form-item">
  363. <button type="button" class="layui-btn layui-btn-normal" @click="search">查询
  364. </button>
  365. </div>
  366. <div class="layui-form-item">
  367. <div class="layui-input-block">
  368. <span class="morePan" @click="showMore"><a v-if="!showMoreFlag">更多 </a><a
  369. v-if="showMoreFlag">收起 V</a></span>
  370. </div>
  371. </div>
  372. </div>
  373. <%-- <span style="color: red;float: right;">带*号的条件可在导出时使用,其中年份及月份仅限导出使用,年份不选择默认为当前年份</span>--%>
  374. </div>
  375. </form>
  376. </div>
  377. </div>
  378. </div>
  379. </div>
  380. <div>
  381. <div class="layui-row">
  382. <div style="display: flex">
  383. <%-- <label class="juli">--%>
  384. <%-- 开工率<span class="lanse-first">{{beginRate.beginRate}}%</span>--%>
  385. <%-- <div class="progress-div">--%>
  386. <%-- <div class="layui-progress">--%>
  387. <%-- <div class="layui-progress-bar" :style="'width:'+beginRate.beginRate+'%'"></div>--%>
  388. <%-- </div>--%>
  389. <%-- </div>--%>
  390. <%-- </label>--%>
  391. <label class="juli">
  392. 竣工项目总数<span class="lanse-first">{{endData||0}}</span>
  393. <%-- <div class="progress-div">
  394. <div class="layui-progress">
  395. <div class="layui-progress-bar" style=""></div>
  396. </div>
  397. </div>--%>
  398. </label>
  399. <%-- <label class="juli" style="display: none">
  400. 投资进度<span class="lanse-first">{{beginRate.amtRate}}%</span>
  401. <div class="progress-div">
  402. <div class="layui-progress">
  403. <div class="layui-progress-bar" :style="'width:'+beginRate.amtRate+'%'"></div>
  404. </div>
  405. </div>
  406. </label>--%>
  407. </div>
  408. <div style="display: flex;margin-bottom: 3px">
  409. <label @click="levelList('kindNatures',item.name,item.code)" class="juli"
  410. v-for="(item, index) in beginRate.tzlxList" :key="index">
  411. {{item.name}}<span class="lanse-first">{{item.num}}</span>
  412. </label>
  413. <label class="juli" @click="levelList('subjects',item.name,item.code)"
  414. v-for="(item, index) in beginRate.jsddList" :key="index">
  415. {{item.name}}<span class="lanse-first">{{item.num}}</span>
  416. </label>
  417. </div>
  418. <div style="margin-bottom: 3px">
  419. <label class="juli"
  420. @click="levelList('indusKinds',item.name?item.name:item.code,item.split(',')[3])"
  421. v-for="(item, index) in beginRate.hyflList" :key="index">
  422. {{item.name?item.name:item.code}}<span class="lanse-first">{{item.num}}</span>
  423. </label>
  424. </div>
  425. </div>
  426. </div>
  427. <div class="table_box" style="padding-top: 0;">
  428. <div class="table_process" style="position: relative">
  429. <div class="export" style="background: transparent" @mouseover="openExport" @mouseout="choseExport">
  430. <div class="export" style="right: 25px;top: 0">
  431. <img src="${WebSite.asset}/css/images/left/export.svg"/>
  432. <span>导出</span>
  433. </div>
  434. <div class="export-item" v-if="showExport">
  435. <button type="button" class="" @click="exportExcel">
  436. 项目汇总
  437. </button>
  438. <button type="button" class=""
  439. @click="exportExcelByIndusKind">按所属行业
  440. </button>
  441. <button type="button" class=""
  442. @click="exportSchedulingExcel">项目调度表
  443. </button>
  444. <!-- <button type="button" class="" @click="exportExcel2">项目明细导出</button> -->
  445. <button type="button" class=""
  446. @click="exportMoreExcel">自定义
  447. </button>
  448. </div>
  449. </div>
  450. <table id="table1" lay-filter="test"></table>
  451. <div class="pagination-box" id="pagination"></div>
  452. </div>
  453. </div>
  454. <div style="height: 20px;"></div>
  455. </div>
  456. </template>
  457. <div id="setReason" style="display: none;">
  458. <form class="layui-form" lay-filter="reasonForm">
  459. <div class="layui-row">
  460. <div class="layui-col-xs6 layui-col-sm6">
  461. <div class="layui-form-item">
  462. <label class="layui-form-label">已开工未入库原因:</label>
  463. <div class="layui-input-block">
  464. <textarea name="reasonNoRk" maxlength="200" style="height: 50px;width: 80%;" id="reasonNoRk"
  465. autocomplete="off" class="layui-textarea"></textarea>
  466. </div>
  467. </div>
  468. </div>
  469. <div class="layui-col-xs6 layui-col-sm6">
  470. <div class="layui-form-item">
  471. <label class="layui-form-label">已入库无投资原因:</label>
  472. <div class="layui-input-block">
  473. <textarea name="reasonNoAmt" maxlength="200" style="height: 50px;width: 80%;" id="reasonNoAmt"
  474. autocomplete="off" class="layui-textarea"></textarea>
  475. </div>
  476. </div>
  477. </div>
  478. </div>
  479. <div class="layui-row">
  480. <div class="layui-col-xs6 layui-col-sm6">
  481. <div class="layui-form-item">
  482. <label class="layui-form-label">是否入统:</label>
  483. <div class="layui-input-block">
  484. <input type="radio" name="isRk" value="0" title="否" checked="checked"/>
  485. <input type="radio" name="isRk" value="1" title="是"/>
  486. </div>
  487. </div>
  488. </div>
  489. <div class="layui-col-xs6 layui-col-sm6">
  490. <div class="layui-form-item">
  491. <label class="layui-form-label">未开工建设原因:</label>
  492. <div class="layui-input-block">
  493. <textarea name="reasonNoKg" maxlength="200" style="height: 50px;width: 80%;" id="reasonNoKg"
  494. autocomplete="off" class="layui-textarea"></textarea>
  495. </div>
  496. </div>
  497. </div>
  498. </div>
  499. <div class="layui-row">
  500. <div class="layui-col-xs6 layui-col-sm6">
  501. <div class="layui-form-item">
  502. <label class="layui-form-label">存在的问题:</label>
  503. <div class="layui-input-block">
  504. <textarea name="reasonq" maxlength="200" style="height: 50px;width: 80%;" id="reasonq"
  505. autocomplete="off" class="layui-textarea"></textarea>
  506. </div>
  507. </div>
  508. </div>
  509. <div class="layui-col-xs6 layui-col-sm6">
  510. <div class="layui-form-item">
  511. <label class="layui-form-label">已开工进度慢原因:</label>
  512. <div class="layui-input-block">
  513. <textarea name="reasonJd" maxlength="200" style="height: 50px;width: 80%;" id="reasonJd"
  514. autocomplete="off" class="layui-textarea"></textarea>
  515. </div>
  516. </div>
  517. </div>
  518. </div>
  519. </form>
  520. </div>
  521. <div id="setAssess" class="layuimini-main" style="display: none;">
  522. <form class="layui-form" lay-filter="assessForm">
  523. <div class="layui-row">
  524. <div class="layui-col-xs12 layui-col-sm12">
  525. <div class="layui-form-item">
  526. <label class="layui-form-label" style="width: 90px">得分</label>
  527. <div class="layui-input-block" style="width: 80%;">
  528. <input name="score" style="width: 80%;"
  529. oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')" id="score"
  530. autocomplete="off" class="layui-input">
  531. </div>
  532. </div>
  533. </div>
  534. </div>
  535. <div class="layui-row">
  536. <div class="layui-col-xs12 layui-col-sm12">
  537. <div class="layui-form-item">
  538. <label class="layui-form-label" style="width: 90px">项目后评价</label>
  539. <div class="layui-input-block" style="width: 80%;">
  540. <textarea name="assessReason" maxlength="400" style="height: 300px;width: 80%;"
  541. id="assessReason" autocomplete="off" class="layui-textarea"></textarea>
  542. </div>
  543. </div>
  544. </div>
  545. </div>
  546. </form>
  547. </div>
  548. <div id="problem" class="layuimini-main" style="display: none;">
  549. <form class="layui-form" lay-filter="problemForm">
  550. <div class="layui-row">
  551. <div class="layui-col-xs12 layui-col-sm12">
  552. <div class="layui-form-item">
  553. <label class="layui-form-label">状态:</label>
  554. <div class="layui-input-block block-width">
  555. <input type="radio" name="statusF" value="2" title="红灯" checked="checked"/>
  556. <input type="radio" name="statusF" value="1" title="黄灯"/>
  557. <input type="radio" name="statusF" value="0" title="绿灯"/>
  558. </div>
  559. </div>
  560. </div>
  561. </div>
  562. <div class="layui-row">
  563. <div class="layui-col-xs12 layui-col-sm12">
  564. <div class="layui-form-item">
  565. <label class="layui-form-label">问题描述:</label>
  566. <div class="layui-input-block block-width">
  567. <textarea name="status_reason" maxlength="400" style="height: 300px;width: 80%;"
  568. id="problemReason" autocomplete="off" class="layui-textarea"></textarea>
  569. </div>
  570. </div>
  571. </div>
  572. </div>
  573. <div class="layui-row">
  574. <div class="layui-col-xs12 layui-col-sm12">
  575. <div class="layui-form-item">
  576. <label class="layui-form-label">要求解决日期:</label>
  577. <div class="layui-input-block block-width" style="width: 25%">
  578. <input type="text" id="dateConfirm" name="dateConfirm" autocomplete="off" class="layui-input">
  579. </div>
  580. </div>
  581. </div>
  582. </div>
  583. </form>
  584. </div>
  585. <div id="toBack" class="layuimini-main" style="display: none;">
  586. <form class="layui-form" lay-filter="toBackForm">
  587. <div class="layui-row">
  588. <div class="layui-col-xs12 layui-col-sm12">
  589. <div class="layui-form-item">
  590. <label class="layui-form-label" style="width: 100px">退回到状态:</label>
  591. <div class="layui-input-block">
  592. <%-- <input type="radio" name="status" value="0" title="暂存" />--%>
  593. <input type="radio" name="status" value="1" title="项目前期" checked="checked"/>
  594. <input type="radio" name="status" value="6" title="待开工"/>
  595. <input type="radio" name="status" value="7" title="施工中"/>
  596. </div>
  597. </div>
  598. </div>
  599. </div>
  600. </form>
  601. </div>
  602. <script type="text/html" id="subName">
  603. <%-- {{# if(d.usersub == "1") { }}--%>
  604. <span lay-event="toDetail" title="{{d.subName}}">{{d.subName}}</span>
  605. <%-- {{# }else { }}--%>
  606. <%-- <span title="{{d.subName}}">{{d.subName}}</span>--%>
  607. <%-- {{#}}}--%>
  608. </script>
  609. <script type="text/html" id="amt">
  610. {{# var computedPer = function(total, now){
  611. return (total == 0) ? 0 : parseInt(now * 100 / total +0.5);
  612. };
  613. }}
  614. <span title="">
  615. <span class="qianse">总投资:</span><strong class="lanse">{{d.amtTotal}}</strong> 万元 <br/>
  616. <span class="qianse">已完成投资:</span><strong class="lanse">{{d.allAmt}}</strong> 万元(<i
  617. class="lanse">{{computedPer(d.amtTotal, d.allAmt)}} %</i> )
  618. </span>
  619. </script>
  620. <script type="text/html" id="date">
  621. <div title="">
  622. <div class="line"><span class="qianse">计划开工:</span><span class="shense">{{d.beginDate}}</span>
  623. </div>
  624. <div class="line"><span class="qianse">计划竣工:</span><span class="shense">{{d.endDate}}</span>
  625. </div>
  626. </div>
  627. </script>
  628. <script type="text/html" id="scoreTem">
  629. <div title="">
  630. <c:if test="${sfgw}">
  631. {{# if(d.score == null || d.score == '') { }}
  632. {{#} else { }}
  633. {{d.score}}
  634. {{#} }}
  635. </c:if>
  636. </div>
  637. </script>
  638. <script type="text/html" id="assessReasonTem">
  639. <div title="">
  640. <c:if test="${admin}">
  641. {{# if(d.assessReason == null || d.assessReason == '') { }}
  642. {{#} else { }}
  643. {{d.assessReason}}
  644. {{#} }}
  645. </c:if>
  646. </div>
  647. </script>
  648. <script type="text/html" id="toolBar">
  649. <div class="toolBar">
  650. <span title="项目查询" lay-event="toDetail" class="no-wrap">项目查询</span>
  651. {{# if("${currUser.edit}" == 'true'||( d.propKind == '3' && "${currUser.id}" == d.create_user_id )) { }}
  652. <span title="编辑" lay-event="toEditSubInfo" class="no-wrap">&nbsp;编辑</span>
  653. {{#} }}
  654. <span title="入规" lay-event="rg" class="no-wrap">入规</span>
  655. </div>
  656. </script>
  657. <script>
  658. let vm = new Vue({
  659. el: "#app",
  660. template: "#template",
  661. data: {
  662. winH: 0,
  663. dataList: [],
  664. startDate: "",
  665. endDate: "",
  666. tableName: 'test',
  667. cacheName: 'TzQueryParam_end_${currUser.id}',
  668. pageNo: 1,
  669. kind: {},
  670. beginRate: {},
  671. showMoreFlag: false,
  672. light: null,
  673. sort: {field: "amtTotal", type: "desc"},
  674. pageSize: 10,
  675. endData:'',
  676. showExport: false,
  677. rgParam:{
  678. rgDate: "",
  679. id: ""
  680. }
  681. },
  682. mounted: function () {
  683. this.init()
  684. },
  685. methods: {
  686. closeAllLayers() {
  687. layui.layer.closeAll();
  688. },
  689. confirmMove: function() {
  690. let rgDate = document.getElementById('rgDate').value;
  691. if (!rgDate) {
  692. App.msg.error('请选择入规日期');
  693. }
  694. let param = {rgDate:rgDate,id:this.rgParam.id}
  695. App.postJson("/api/subject/subInfo/rg",param, (res)=>{
  696. App.msg.success(res.msg);
  697. })
  698. this.closeAllLayers();
  699. },
  700. // confirmMove: function () {
  701. // let param = this.rgParam
  702. // console.log(param,"=====")
  703. // App.postJson("/api/subject/subInfo/moveDb",param, (res)=>{
  704. // App.msg.success(res.msg);
  705. // })
  706. // this.closeAllLayers();
  707. // },
  708. rg (obj) {
  709. this.rgParam.id = obj.data.id
  710. layer.open({
  711. type: 1,
  712. title: '入规',
  713. content: '<div class="layui-form" style="padding: 20px;">' +
  714. '<div class="layui-form-item">' +
  715. '<label class="layui-form-label">入规日期:</label>' +
  716. '<input class="layui-form-input" type="text" id="rgDate" placeholder="请选择入规日期">'+
  717. '</div>' +
  718. '<div class="layui-form-item" style="text-align: center;margin-top: 50px">' +
  719. '<button type="button" class="layui-btn moveConfirm" onclick="vm.confirmMove()">确认</button>' +
  720. '<button type="button" class="layui-btn layui-btn-primary layui-border" onclick="vm.closeAllLayers()">返回</button>' +
  721. '</div>' +
  722. '</div>',
  723. area: ['350px', '300px'],
  724. success: function(layero, index){
  725. layui.laydate.render({
  726. elem: '#rgDate'
  727. });
  728. }
  729. });
  730. },
  731. init: function () {
  732. this.winH = document.body.clientHeight;
  733. var nowdate = new Date();
  734. nowdate.setMonth(nowdate.getMonth() + 1);
  735. var y = nowdate.getFullYear();
  736. var m = nowdate.getMonth() + 1;
  737. var d = nowdate.getDate();
  738. var formatwdate = y + '-' + m + '-' + d;
  739. layui.laydate.render({
  740. elem: '#startTime',
  741. range: '~',
  742. theme: layDateTheme,
  743. value: "2018" + "-01-01 ~ " + y + "-12-31"
  744. });
  745. layui.laydate.render({
  746. elem: '#dateConfirm',
  747. theme: layDateTheme,
  748. value: formatwdate
  749. });
  750. /* $("#month").val(new Date().getMonth() + 1);*/
  751. var xmlx = [];
  752. <c:forEach items="${XMLX}" var="xm">
  753. xmlx.push({value: "${xm.code}", name: "${xm.title}"});
  754. </c:forEach>
  755. // this.kind = layui.xmSelect.render({
  756. // el: "#kind",
  757. // language: 'zn',
  758. // data: xmlx
  759. // });
  760. var indusKindData = [];
  761. <c:forEach items="${HYFL}" var="xm">
  762. indusKindData.push({value: "${xm.id}", name: "${xm.title}"});
  763. </c:forEach>
  764. this.indusKind = layui.xmSelect.render({
  765. el: "#indusKind",
  766. language: 'zn',
  767. data: indusKindData
  768. });
  769. layui.laydate.render({
  770. elem: '#year',
  771. type: 'year',
  772. theme: layDateTheme,
  773. value: new Date().getFullYear()
  774. })
  775. var params = window.localStorage.getItem(this.cacheName);
  776. if (params) {
  777. layui.form.val("searchForm", JSON.parse(params));
  778. }
  779. <%--if(${isHydw}) {--%>
  780. <%-- this.light = layui.xmSelect.render({--%>
  781. <%-- el: "#light",--%>
  782. <%-- language:'zn',--%>
  783. <%-- data: [--%>
  784. <%-- {value: '0', name:'绿灯'},--%>
  785. <%-- {value: '1', name:'黄灯'},--%>
  786. <%-- {value: '2', name:'红灯'}--%>
  787. <%-- ]--%>
  788. <%-- })--%>
  789. <%--}--%>
  790. this.getData();
  791. window.toDetail = this.toDetail;
  792. $(".hiddenParams").show();
  793. },
  794. setQueryForm2: function () {
  795. $("#searchForm").find(".layui-form-item").parent()
  796. .removeClass("layui-col-xs3").removeClass("layui-col-sm3").removeClass("layui-col-md3")
  797. .addClass("layui-col-xs5").addClass("layui-col-sm5").addClass("layui-col-md5");
  798. },
  799. setQueryForm4: function () {
  800. $("#searchForm").find(".layui-form-item").parent()
  801. .removeClass("layui-col-xs5").removeClass("layui-col-sm5").removeClass("layui-col-md5")
  802. .addClass("layui-col-xs3").addClass("layui-col-sm3").addClass("layui-col-md3");
  803. },
  804. showMore: function () {
  805. this.showMoreFlag = !this.showMoreFlag;
  806. $(".hiddenParam").toggle();
  807. /* var self = this;
  808. layer.open({
  809. title: "查询条件",
  810. type: 1,
  811. area: ['800px', ''],
  812. content: $("#searchForm"),
  813. btn: ["查询"],
  814. yes: function (index) {
  815. self.search();
  816. layer.close(index);
  817. },
  818. success: function () {
  819. self.setQueryForm2();
  820. $(".hiddenParam").show();
  821. $(".hiddenParams").hide();
  822. },
  823. end: function () {
  824. self.setQueryForm4();
  825. $(".hiddenParam").hide();
  826. $(".hiddenParams").show();
  827. }
  828. })*/
  829. },
  830. levelList: function (field, title, val) {
  831. //详情
  832. var param = field + "," + title + "," + val
  833. var params = encodeURIComponent(JSON.stringify(this.getSearchParams()));
  834. var index = top.layer.open({
  835. type: 2,
  836. title: '',
  837. area: ['90%', '90%'],
  838. content: App.getUrl("/subject/subInfo/levelList?layer=true&type=" + this.getSearchParams().queryType + "&curParam=" + param + "&params=" + params),
  839. });
  840. //top.layer.full(index);
  841. },
  842. getSearchParams: function () {
  843. var param = layui.form.getValue("searchForm");
  844. if (param.rangeDate) {
  845. param.beginDate = param.rangeDate.split(" ~ ")[0];
  846. param.endDate = param.rangeDate.split(" ~ ")[1];
  847. param.rangeDate = null;
  848. }
  849. if (this.light) {
  850. param.light = this.light.getValue("valueStr");
  851. }
  852. if (this.indusKind) {
  853. param.indusKind = this.indusKind.getValue("valueStr");
  854. }
  855. // param.kind = this.kind.getValue("value").sort().join(",");
  856. delete (param.select)
  857. return param;
  858. },
  859. leaderSupervise: function (obj) {
  860. App.openLayer({
  861. title: "督办信息",
  862. content: App.getUrl("/meetingRecords/leaderMeeting?subId=" + obj.data.id),
  863. height: "600",
  864. width: "800"
  865. })
  866. },
  867. getData: function () {
  868. var self = this;
  869. var param = this.getSearchParams();
  870. param.pageNo = this.pageNo;
  871. param.pageSize = this.pageSize;
  872. param.orderBy = this.sort.field;
  873. param.orderType = this.sort.type || null;
  874. ;
  875. // 表格分页数据
  876. param.status = 9;
  877. App.postJson("/api/subInfo/query/queryPage", param, function (res) {
  878. self.dataList = res.rows;
  879. self.loadPage(res.total);
  880. self.loadTable();
  881. });
  882. // 统计数据
  883. App.postJson("/api/subInfo/query/statistics", param, function (res) {
  884. if (res.success) {
  885. self.beginRate = res.data;
  886. self.beginRate.hyflList = self.beginRate.hyflData;
  887. self.beginRate.jsddList = self.beginRate.jsddData;
  888. }
  889. });
  890. // App.postJson("/api/subInfo/query/all", param, function (res) {
  891. // self.dataList = res.rows;
  892. // self.loadPage(res.total);
  893. // self.loadTable();
  894. // var ids = res.rows.map(function(row) {
  895. // return row.id; // 假设每个 row 中有一个 id 属性
  896. // });
  897. // if (ids.length > 0) {
  898. // // 发送请求获取额外数据
  899. // App.postJson("/api/subInfo/query/getSubCompletedPicBySubId", ids, function(res) {
  900. // if (res.success) {
  901. // // 处理返回的额外数据
  902. // console.log('额外数据:', res.rows);
  903. // // 根据需要处理 `res.data`
  904. // self.dataList.forEach(function (project) {
  905. // // 查找该项目的验收报告文件信息(按 subId 匹配)
  906. // var reports = res.rows.filter(function (report) {
  907. // return report.subId === project.id; // 通过 subId 和 id 进行匹配
  908. // });
  909. //
  910. // if (reports.length > 0) {
  911. // // 将所有相关的验收报告文件信息绑定到该项目
  912. // project.acceptanceReports = reports.map(function (report) {
  913. // return {
  914. // picName: report.picName, // 报告文件名
  915. // picAddre: report.picAddre // 报告地址
  916. // };
  917. // });
  918. // } else {
  919. // project.acceptanceReports = []; // 如果没有匹配的报告文件,设为空数组
  920. // }
  921. // });
  922. // } else {
  923. // console.error('获取额外数据失败');
  924. // }
  925. // });
  926. // }
  927. // });
  928. // App.postJson("/api/subInfo/query/beginRate", param, function (res) {
  929. // if (res.success) {
  930. // self.beginRate = res.data;
  931. // self.endData=res.data.total;
  932. // self.beginRate.hyflList = self.beginRate.hyflData.split(";");
  933. // self.beginRate.tzlxList = self.beginRate.tzlxData.split(";");
  934. // self.beginRate.jsddList = self.beginRate.jsddData.split(";");
  935. // if (res.data.total != 0) {
  936. // self.beginRate.beginRate = (res.data.beginNum * 100 / res.data.total).toFixed(2);
  937. // } else {
  938. // self.beginRate.beginRate = 0;
  939. // }
  940. // if (res.data.yearAmt != 0) {
  941. // self.beginRate.amtRate = (res.data.yearAmtSj * 100 / res.data.yearAmt).toFixed(2);
  942. // } else if (res.data.yearAmtSj != 0) {
  943. // self.beginRate.amtRate = 100;
  944. // } else {
  945. // self.beginRate.amtRate = 0;
  946. // }
  947. // } else {
  948. // self.beginRate.beginRate = 0;
  949. // self.beginRate.amtRate = 0;
  950. // }
  951. // });
  952. },
  953. loadTable: function () {
  954. // 状态映射
  955. var statusMap = {
  956. '0': '暂存',
  957. '1': '项目前期',
  958. '6': '待开工',
  959. '7': '施工中',
  960. '8': '暂停施工',
  961. 'A': '已竣工'
  962. };
  963. // 数据转换
  964. this.dataList.forEach(function (item) {
  965. item.statusName = statusMap[item.status] || '未知状态';
  966. });
  967. var self = this;
  968. layui.table.render({
  969. elem: '#table1', // 指定原始表格元素选择器(推荐id选择器)
  970. // even: true,
  971. autoSort: false,
  972. initSort: self.sort,
  973. cols: [[ // 设置表头
  974. {type: 'numbers', fixed: 'left', align: 'center', title: '序号', width: 44},
  975. <%--{title: '', fixed: 'left', align:'center', templet: function(row) {--%>
  976. <%-- var temp='<span class="step step_' + (row.status === "9" ? '' : (row.status === "0" ? 'empty' : 'half')) + '"></span>'--%>
  977. <%-- if (${isHydw}){--%>
  978. <%-- if(row.status_fgw==="2"){--%>
  979. <%-- temp=temp+ '<span class="step step_red' + '"></span>'--%>
  980. <%-- }else if (row.status_fgw==="1"){--%>
  981. <%-- temp=temp+ '<span class="step step_yellow' + '"></span>'--%>
  982. <%-- }else{--%>
  983. <%-- temp=temp+ '<span class="step step_green' + '"></span>'--%>
  984. <%-- }--%>
  985. <%-- }--%>
  986. <%-- return temp;--%>
  987. <%-- }},--%>
  988. {field: 'subName', fixed: 'left', title: '项目名称', minWidth: 300, templet: '#subName'},
  989. <%-- <c:if test="${sfgw}">--%>
  990. <%-- // {field: 'score', title: '得分', width: 70, templet: '#scoreTem'},--%>
  991. <%-- {field: 'assessReason', title: '项目后评价', minWidth: 150, templet: '#assessReasonTem'},--%>
  992. <%-- </c:if>--%>
  993. {field: 'subjectName', title: '项目所在地', minWidth: 150},
  994. {field: 'content', title: '项目基本情况', minWidth: 150},
  995. {field: 'rgDate', title: '升规入统时间', minWidth: 150},
  996. {field: 'progress', title: '进展情况', minWidth: 150},
  997. {field: 'remark', title: '备注', minWidth: 150},
  998. // {field: 'acceptanceReports', title: '验收报告', minWidth: 150, templet: function(row) {
  999. // if (row.acceptanceReports && row.acceptanceReports.length > 0) {
  1000. // // 渲染所有文件名,并绑定文件路径
  1001. // return row.acceptanceReports.map(function(report) {
  1002. // return '<a href="' + report.picAddre + '" target="_blank">' + report.picName + '</a>';
  1003. // }).join('<br>'); // 使用 <br> 分隔多个文件
  1004. // } else {
  1005. // return '无报告';
  1006. // }
  1007. // }},
  1008. // // {field: 'regulationStatus', title: '申规入统', minWidth: 150},
  1009. // {field: 'amtTotal', title: '投资金额', minWidth: 250, templet: '#amt'},
  1010. // // {field: 'offset', title: '偏离度-%', width: 100 },
  1011. // {field: 'mainName', title: '日常责任监管单位', minWidth: 100},
  1012. // {field: 'unitName', title: '项目单位', minWidth: 120},
  1013. // // {field: 'statusName', title: '项目进度', width: 200},
  1014. // // {field: 'isHide', title: '在建库', minWidth: 120,templet: function(row) {
  1015. // // if(row.isHide == "1") {
  1016. // // return '<span>是</span>';
  1017. // // }else{
  1018. // // return '<span>否</span>';
  1019. // // }
  1020. // // return "";
  1021. // // }},
  1022. // // {field: 'reason', title: '退回/不同意原因', width: 160},
  1023. {title: '操作', width: 200, toolbar: '#toolBar', fixed: 'right'},
  1024. ]],
  1025. fixed: true,
  1026. height: window.screen.availHeight - 470,
  1027. data: self.dataList,
  1028. done: function (res, curr, count) {
  1029. res.data.forEach(function (item, index) {
  1030. //1.当前行的背景颜色cur_color , sort: "amtTotal"
  1031. // if (item.usersub == 1) {
  1032. // $('.layui-table').find('tr[data-index="' + index + '"]').find("td").css('background-color', "#0a99eb");
  1033. // }
  1034. $(".layui-table-body tr").resize(function () {
  1035. $(".layui-table-body tr").each(function (index, val) {
  1036. $($(".layui-table-fixed .layui-table-body table tr")[index]).height($(val).height());
  1037. });
  1038. });
  1039. //初始化高度,使得冻结行表体高度一致
  1040. $(".layui-table-body tr").each(function (index, val) {
  1041. $($(".layui-table-fixed .layui-table-body table tr")[index]).height($(val).height());
  1042. });
  1043. });
  1044. }
  1045. });
  1046. layui.table.on('tool(' + this.tableName + ')', function (obj) {
  1047. var event = obj.event;
  1048. self[event].call(this, obj);
  1049. });
  1050. layui.table.on('sort(' + this.tableName + ')', function (obj) {
  1051. self.sort = obj;
  1052. self.getData();
  1053. return;
  1054. })
  1055. },
  1056. toBack: function (obj) {
  1057. layer.open({
  1058. type: 1,
  1059. title: "退回",
  1060. content: $("#toBack"),
  1061. area: ['600px', ''],
  1062. btn: ["保存", "取消"],
  1063. yes: function (index) {
  1064. var data = layui.form.val("toBackForm");
  1065. var status = data.status;
  1066. if (status != undefined) {
  1067. if (parseInt(obj.data.status) <= parseInt(data.status)) {
  1068. App.msg.warn("只能退回下级状态,请检查!!!!");
  1069. return;
  1070. }
  1071. }
  1072. App.postJson("/api/subject/subInfo/toTemp", {
  1073. subId: obj.data.id,
  1074. status: data.status
  1075. }, function (res) {
  1076. if (res.success) {
  1077. layer.msg("成功", {icon: 6, time: 1000});
  1078. //
  1079. window.location.href = App.getUrl("subject/subInfo/projTz?type=4");
  1080. }
  1081. });
  1082. },
  1083. close: function (index) {
  1084. layer.close(index);
  1085. }
  1086. })
  1087. },
  1088. loadPage: function (totalCount) {
  1089. var self = this;
  1090. layui.laypage.render({
  1091. elem: 'pagination',
  1092. count: totalCount,
  1093. curr: self.pageNo,
  1094. limit: self.pageSize,
  1095. layout: ['count', 'prev', 'page', 'next', 'skip'],
  1096. jump: function (obj, first) {
  1097. //首次不执行
  1098. if (!first) {
  1099. self.pageNo = obj.curr;
  1100. self.getData();
  1101. }
  1102. }
  1103. });
  1104. },
  1105. yearPlan: function (obj) {
  1106. window.location.href = App.getUrl("amtPlan/detail?subId=" + obj.data.id);
  1107. },
  1108. setAssess: function (obj) {
  1109. var self = this;
  1110. layui.form.val("assessForm", obj.data);
  1111. layer.open({
  1112. type: 1,
  1113. title: "项目评分",
  1114. content: $("#setAssess"),
  1115. area: ['800px', '600px'],
  1116. btn: ["保存", "取消"],
  1117. yes: function (index) {
  1118. var reason = layui.form.val("assessForm");
  1119. reason.subId = obj.data.id;
  1120. if (reason.score == "" || reason.score == null) {
  1121. App.msg("得分不能为空");
  1122. }
  1123. App.postJson("/api/subject/subInfo/setSubAssess", reason, function (res) {
  1124. if (res.success) {
  1125. App.msg.success("设置成功");
  1126. self.getData();
  1127. layer.close(index);
  1128. }
  1129. });
  1130. },
  1131. close: function (index) {
  1132. layer.close(index);
  1133. }
  1134. })
  1135. },
  1136. setSubReason: function (obj) {
  1137. var self = this;
  1138. layui.form.val("reasonForm", obj.data);
  1139. layer.open({
  1140. type: 1,
  1141. title: "项目原因录入",
  1142. content: $("#setReason"),
  1143. area: ['880px', '560px'],
  1144. btn: ["保存", "取消"],
  1145. yes: function (index) {
  1146. var reason = layui.form.val("reasonForm");
  1147. reason.subId = obj.data.id;
  1148. App.postJson("/api/subject/subInfo/setSubReason", reason, function (res) {
  1149. if (res.success) {
  1150. App.msg.success("设置成功");
  1151. self.getData();
  1152. layer.close(index);
  1153. }
  1154. });
  1155. },
  1156. close: function (index) {
  1157. layer.close(index);
  1158. }
  1159. })
  1160. },
  1161. problem: function (obj) {
  1162. var self = this;
  1163. obj.data.status_reason = "";
  1164. layui.form.val("problemForm", obj.data);
  1165. layer.open({
  1166. type: 1,
  1167. title: "问题督办",
  1168. content: $("#problem"),
  1169. area: ['800px', '600px'],
  1170. btn: ["保存", "取消"],
  1171. yes: function (index) {
  1172. var reason = layui.form.val("problemForm");
  1173. reason.subId = obj.data.id;
  1174. if (reason.statusF == "2" || reason.statusF == "1") {
  1175. if (reason.status_reason == "" || reason.status_reason == undefined) {
  1176. layer.msg("红灯,黄灯必须输入原因");
  1177. return;
  1178. }
  1179. }
  1180. App.postJson("/api/subject/subInfo/setStatus", {
  1181. subId: obj.data.id,
  1182. statusFgw: reason.statusF,
  1183. reason: reason.status_reason,
  1184. dateConfirm: reason.dateConfirm
  1185. }, function (res) {
  1186. if (res.success) {
  1187. App.msg.success("设置成功");
  1188. self.getData();
  1189. layer.close(index);
  1190. }
  1191. });
  1192. },
  1193. close: function (index) {
  1194. layer.close(index);
  1195. }
  1196. })
  1197. },
  1198. exportExcel: function () {
  1199. var param = this.getSearchParams();
  1200. App.common.utils.downFile(App.getUrl("subInfoExport/exportSummaryExcel"), "POST", param, "项目情况表.xlsx", "导出失败");
  1201. },
  1202. exportExcelByIndusKind: function () {
  1203. var param = this.getSearchParams();
  1204. App.common.utils.downFile(App.getUrl("subInfoExport/exportExcelByIndusKind"), "POST", param, "项目情况表(按所属行业统计).xlsx", "导出失败");
  1205. },
  1206. exportSchedulingExcel: function () {
  1207. var param = this.getSearchParams();
  1208. App.common.utils.downFile(App.getUrl("subInfoExport/exportSchedulingExcel"), "POST", param, "项目调度表.xlsx", "导出失败");
  1209. },
  1210. /* exportExcel2: function(){
  1211. var param = this.getSearchParams();
  1212. App.common.utils.downFile(App.getUrl("subInfoExport/exportExcelTz"),"POST", param,"项目详情信息表.xlsx", "导出失败");
  1213. }, */
  1214. exportMoreExcel: function () {
  1215. top.window.getSearchParams = this.getSearchParams;
  1216. App.openLayer({
  1217. title: "自定义导出",
  1218. content: App.getUrl("/subInfoExport/index"),
  1219. height: "800",
  1220. width: "1000"
  1221. })
  1222. },
  1223. toDetail: function (obj) {
  1224. //详情
  1225. var index = layer.open({
  1226. type: 2,
  1227. title: '',
  1228. area: ['1000px', '800px'],
  1229. content: App.getUrl("/subject/subInfo/detailView2?layer=true&subId=" + obj.data.id + "&lastUrl=" + window.location.href),
  1230. });
  1231. layui.layer.full(index);
  1232. },
  1233. print: function (obj) {
  1234. window.open(App.getUrl("/subject/apply/downPdf?subId=" + obj.data.id));
  1235. },
  1236. toEditSubInfo: function (obj) {
  1237. window.location.href = App.getUrl("/subject/subInfo/editSubInfo?subId=" + obj.data.id+"&queryType=4");
  1238. },
  1239. toTh: function (obj) {
  1240. if (obj.data.statusJh == null || obj.data.statusJh == '0' || obj.data.statusJh == '1') {
  1241. App.msg.confirm("是否需要退回到暂存状态?", function () {
  1242. App.postJson("/api/subject/subInfo/toTemp", {subId: obj.data.id}, function (res) {
  1243. if (res.success) {
  1244. layer.msg("成功", {icon: 6, time: 1000});
  1245. //
  1246. window.location.href = App.getUrl("subject/subInfo/projTz");
  1247. }
  1248. });
  1249. })
  1250. } else {
  1251. App.msg.warn("已做过开工申报,需要走变更流程");
  1252. }
  1253. },
  1254. isNoHide: function (obj) {
  1255. var self = this;
  1256. App.msg.confirm("是否移除在建库?", function () {
  1257. App.postJson("/api/subject/subInfo/setBackIsHide", {subId: obj.data.id}, function (res) {
  1258. if (res.success) {
  1259. App.msg.success("设置成功");
  1260. self.getData();
  1261. layer.close(index);
  1262. }
  1263. });
  1264. });
  1265. },
  1266. isHide: function (obj) {
  1267. var self = this;
  1268. App.msg.confirm("是否移入重点项目库?", function () {
  1269. App.postJson("/api/subject/subInfo/setIsHide", {subId: obj.data.id}, function (res) {
  1270. if (res.success) {
  1271. App.msg.success("设置成功");
  1272. self.getData();
  1273. layer.close(index);
  1274. }
  1275. });
  1276. });
  1277. },
  1278. search: function () {
  1279. var param = layui.form.getValue("searchForm");
  1280. window.localStorage.setItem(this.cacheName, JSON.stringify(param));
  1281. this.pageNo = 1;
  1282. this.getData();
  1283. },
  1284. openExport: function () {
  1285. this.showExport = true;
  1286. console.log('移入了')
  1287. },
  1288. choseExport: function () {
  1289. this.showExport = false;
  1290. console.log('移出了')
  1291. }
  1292. }
  1293. });
  1294. </script>
  1295. </body>
  1296. </html>