project_overview.html 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>Document</title>
  7. <style>
  8. .filelist{
  9. width: 100%;
  10. overflow: scroll;
  11. justify-content:flex-start;
  12. align-content: space-between;
  13. /* flex-direction: column-reverse; */
  14. flex-wrap: wrap;
  15. display: flex;
  16. }
  17. .filelist li{
  18. padding: 0.5vw 0.7vw 0.5vw 0.7vw;
  19. white-space: nowrap;
  20. overflow: hidden;
  21. text-overflow: ellipsis;
  22. display: inline-block;
  23. border-right: 1px solid #e2e2e2;
  24. }
  25. .filelist p{
  26. margin: 3px 0 5px 0;
  27. width: 5vw;
  28. text-align: center;
  29. }
  30. .filelist:hover li{
  31. /* display: initial; */
  32. }
  33. .heading th, .form td{
  34. height: 36px;
  35. }
  36. </style>
  37. </head>
  38. <body>
  39. <table id="tabniubi" cellpadding="1" cellspacing="1">
  40. <tr>
  41. <th style="width: 10%;height: 0;"></th>
  42. <th style="width: 10%;height: 0;"></th>
  43. <th style="width: 10%;height: 0;"></th>
  44. <th style="width: 10%;height: 0;"></th>
  45. <th style="width: 10%;height: 0;"></th>
  46. <th style="width: 10%;height: 0;"></th>
  47. <th style="width: 10%;height: 0;"></th>
  48. <th style="width: 10%;height: 0;"></th>
  49. <th style="width: 10%;height: 0;"></th>
  50. </tr>
  51. <tr border="1">
  52. {if $field.project_status == 1}
  53. <th class="form-title">项目状态</th>
  54. <th>
  55. {switch $detail.project_status}
  56. {case 1}立项中{/case}
  57. {case 2}审批中{/case}
  58. {case 3}待接收{/case}
  59. {case 4}待分配{/case}
  60. {case 5}作业中{/case}
  61. {case 6}归档中{/case}
  62. {case 7}退审中{/case}
  63. {case 8}已归档{/case}
  64. {case 9}已退审{/case}
  65. {default /}未知
  66. {/switch}
  67. </th>
  68. {/if}
  69. {if $field.project_name == 1}
  70. <th class="form-title">项目名称</th>
  71. <th colspan="3">{$detail.project_name}</th>
  72. {/if}
  73. {if $field.project_num == 1}
  74. <th class="form-title">项目编号</th>
  75. <th colspan="2">{$detail.project_num}</th>
  76. {/if}
  77. </tr>
  78. <tr>
  79. {if $field.project_time == 1}
  80. <th class="form-title">项目周期</th>
  81. <th colspan="8" style="text-align: left; padding-left: 3.5vw;">{$detail.project_start_time|date="Y-m-d"} 至 {$detail.project_end_time|date="Y-m-d"}</th>
  82. {/if}
  83. </tr>
  84. <tr>
  85. {if $field.engineering_type == 1}
  86. <th class="form-title">工程类型</th>
  87. <th>
  88. {$detail.engineering_type1}
  89. <!-- <div>
  90. <select name="type" lay-verify="required" lay-filter="aihao">
  91. <option value="1" style="align-items: center;">预算</option>
  92. <option value="2">结算</option>
  93. </select>
  94. </div>-->
  95. </th>
  96. <th class="form-title">——</th>
  97. <th>
  98. {$detail.engineering_type2}
  99. <!-- <div>
  100. <select name="type" lay-verify="required" lay-filter="aihao">
  101. <option value="1">审核</option>
  102. <option value="2">编制</option>
  103. </select>
  104. </div> -->
  105. </th>
  106. {/if}
  107. {if $field.engineering_category == 1}
  108. <th class="form-title">工程类别</th>
  109. <th>{$detail.engineering_category}</th>
  110. {/if}
  111. {if $field.project_region == 1}
  112. <th class="form-title">项目区域</th>
  113. <th colspan="2">
  114. {$detail.province}-{$detail.city}-{$detail.area}
  115. <!--<div>
  116. <form class="layui-form">
  117. <div class="layui-form-item" style="margin-bottom: 0;">
  118. <div class="layui-input-inline" style="width: 6vw;">
  119. <select id="province" lay-filter="province" name="province">
  120. </select>
  121. </div>
  122. <div class="layui-input-inline area" style="width: 6vw;">
  123. <select id="city" lay-filter="city" name="city">
  124. </select>
  125. </div>
  126. <div class="layui-input-inline area" style="width: 6vw;">
  127. <select id="area" lay-filter="area" name="area">
  128. </select>
  129. </div>
  130. </div>
  131. </form>
  132. </div>-->
  133. </th>
  134. {/if}
  135. </tr>
  136. <tr>
  137. {if $field.fiscal_nature == 1}
  138. <th class="form-title">资金性质</th>
  139. <th>{$detail.fiscal_nature}</th>
  140. {/if}
  141. {if $field.project_scale == 1}
  142. <th class="form-title">项目规模</th>
  143. <th colspan="3">{$detail.project_scale}</th>
  144. {/if}
  145. {if $field.charge_standard == 1}
  146. <th class="form-title">收费标准</th>
  147. <th colspan="2">{$detail.charge_standard}</th>
  148. {/if}
  149. </tr>
  150. {if $field.entrust_unit == 1 || $field.entrust_head == 1 || $field.sent_review_unit == 1 || $field.sent_review_head == 1
  151. || $field.review_unit == 1 || $field.review_head == 1 || $field.operate_name == 1 || $field.operate_team_names == 1
  152. || $field.construction_unit == 1 || $field.construction_head == 1}
  153. <tr>
  154. <th colspan="9" class="forleft">相关单位</th>
  155. </tr>
  156. <tr>
  157. {if $field.entrust_unit == 1}
  158. <th class="form-title">委托单位</th>
  159. <th>{$detail.entrust_unit_name}</th>
  160. {/if}
  161. {if $field.entrust_head == 1}
  162. <th class="form-title">负责人</th>
  163. <th>{$detail.entrust_maker_name}</th>
  164. {/if}
  165. {if $field.sent_review_unit == 1}
  166. <th class="form-title">送审单位</th>
  167. <th>{$detail.sent_review_unit}</th>
  168. {/if}
  169. {if $field.sent_review_head == 1}
  170. <th class="form-title">负责人</th>
  171. <th colspan="2">{$detail.sent_review_head}</th>
  172. {/if}
  173. </tr>
  174. <tr>
  175. {if $field.review_unit == 1}
  176. <th class="form-title">评审机构</th>
  177. <th>{$detail.review_unit_name}</th>
  178. {/if}
  179. {if $field.review_head == 1}
  180. <th class="form-title">项目负责人</th>
  181. <th>{$detail.review_head_name}</th>
  182. {/if}
  183. {if $field.operate_name == 1}
  184. <th class="form-title">作业负责人</th>
  185. <th>{$detail.operate_head_name}</th>
  186. {/if}
  187. {if $field.operate_team_names == 1}
  188. <th class="form-title">作业成员</th>
  189. <th colspan="2">{$detail.operate_team_names}</th>
  190. {/if}
  191. </tr>
  192. <tr>
  193. {if $field.construction_unit == 1}
  194. <th class="form-title" colspan="1">施工单位</th>
  195. <th colspan="1">{$detail.construction_unit}</th>
  196. {/if}
  197. {if $field.construction_head == 1}
  198. <th class="form-title" colspan="1">负责人</th>
  199. <th colspan="6">{$detail.construction_head}</th>
  200. {/if}
  201. </tr>
  202. {/if}
  203. {if $field.sent_review_amount == 1 || $field.authorize_amount == 1
  204. || $field.review_add_reduce_amount == 1 || $field.review_add_reduce_rate == 1 || $field.sent_review_cost == 1
  205. || $field.sent_review_approver_amount == 1 || $field.construction_approver_amount == 1 || $field.report_time == 1}
  206. <tr>
  207. <th colspan="9" class="forleft">金额详情</th>
  208. </tr>
  209. <tr>
  210. {if $field.sent_review_amount == 1}
  211. <th class="form-title" colspan="1">送审金额(元)</th>
  212. <th colspan="3" style="text-align: left;">{$detail.sent_review_amount}</th>
  213. {/if}
  214. {if $field.authorize_amount == 1}
  215. <th class="form-title" colspan="1">审定金额(元)</th>
  216. <th colspan="4" style="text-align: left; padding-left: 3.5vw;">{$detail.authorize_amount}</th>
  217. {/if}
  218. </tr>
  219. <tr>
  220. {if $field.review_add_reduce_amount == 1}
  221. <th class="form-title" colspan="1">审增额(元)</th>
  222. <th colspan="1">{$detail.review_add_amount}</th>
  223. <th class="form-title" colspan="1">审减额(元)</th>
  224. <th colspan="1">{$detail.review_reduce_amount}</th>
  225. {/if}
  226. {if $field.review_add_reduce_rate == 1}
  227. <th class="form-title" colspan="1">审增减率(%)</th>
  228. <th colspan="1">{$detail.review_add_reduce_rate}</th>
  229. {/if}
  230. {if $field.sent_review_cost == 1}
  231. <th class="form-title" colspan="1">送审服务费 (元)</th>
  232. <th colspan="4" style="text-align: left; padding-left: 3.5vw;">{$detail.sent_review_cost}</th>
  233. {/if}
  234. </tr>
  235. <tr>
  236. {if $field.sent_review_approver_amount == 1}
  237. <th class="form-title forright" colspan="1">
  238. 送审单位承担<br>审核费(元)
  239. </th>
  240. <th colspan="1">{$detail.sent_review_approver_amount}</th>
  241. {/if}
  242. {if $field.construction_approver_amount == 1}
  243. <th class="form-title forright" colspan="1">
  244. 施工单位负责<br>核减超5%评审费部分(元)
  245. </th>
  246. <th colspan="1">{$detail.construction_approver_amount}</th>
  247. {/if}
  248. {if $field.report_time == 1}
  249. <th class="form-title" colspan="1">报告时间</th>
  250. <th colspan="4" style="text-align: left; padding-left: 3.5vw;">{if $detail.report_time!=0}{$detail.report_time|date="Y-m-d"}{/if}</th>
  251. {/if}
  252. </tr>
  253. {/if}
  254. <tr>
  255. <th colspan="9" class="forleft">相关附件</th>
  256. </tr>
  257. <tr>
  258. <th colspan="9" class="forleft fujianimg">
  259. <ul id="filesBox" style="height: 140px;display: flex;flex-flow: wrap;overflow: scroll;">
  260. {:fileCard($file_array)}
  261. </ul>
  262. {empty name="$file_array" }
  263. <div class="layui-data-none">暂无附件</div>
  264. {/empty}
  265. </th>
  266. </tr>
  267. </table>
  268. <table class="layui-table layui-table-form">
  269. <table class="layui-table" >
  270. <colgroup>
  271. <col width="110">
  272. <col width="800">
  273. <col width="250">
  274. <col width="250">
  275. <col width="250">
  276. </colgroup>
  277. <thead>
  278. <tr>
  279. <td class="layui-td-gray-1" colspan=9 style="height: 36px;"> &nbsp;&nbsp;项目报告
  280. </td>
  281. </tr>
  282. {if !empty($report) }
  283. <thead>
  284. <tr class="heading">
  285. <th>序号</th>
  286. <th style="text-align: left;">报告名称</th>
  287. <th>报告类型</th>
  288. <th>上传时间</th>
  289. <th>发布人</th>
  290. </tr>
  291. </thead>
  292. <tbody class="form">
  293. {volist name="report" id="vo"}
  294. <tr>
  295. <td>{$vo.id}</td>
  296. <td style="text-align: left;"><a data-id="{$vo.id}" lay-data="readreport" href="" style="color: #187FDD;">{$vo.title}</a></td>
  297. <td> {switch $vo.type}
  298. {case 0}初审报告{/case}
  299. {case 1}对数报告{/case}
  300. {case 2}定审报告{/case}
  301. {default /}未知
  302. {/switch}
  303. </td>
  304. <td>{$vo.create_time}</td>
  305. <td>{$vo.nickname}</td>
  306. </tr>
  307. {/volist}
  308. </tbody>
  309. {/if}
  310. </table>
  311. {empty name="$report" }
  312. <div class="layui-data-none">暂无项目报告</div>
  313. {/empty}
  314. </table>
  315. <!-- <script type="text/javascript" src="/static/assets/layui//layui.js"></script>-->
  316. <script src="/assets/layui/adress.json"> </script>
  317. <script>
  318. function first(){
  319. layui.use(['form', 'jquery'], function () {
  320. var form = layui.form;
  321. const $ = layui.jquery;
  322. let adress;
  323. $.ajax({
  324. type:"get", //使用get方式
  325. url: "/static/assets/layui/adress.json", //json文件相对于这个HTML的路径
  326. dataType:"json",
  327. async: false,
  328. success:function(data) {
  329. //这个data就是json数据
  330. adress = data
  331. },
  332. error:function() {
  333. layer.alert("地址请求失败!! ");
  334. }
  335. });
  336. function getFirstAttr(obj) {
  337. for (var k in obj) return k;
  338. }
  339. function selectOption(selectedProvince, selectedCity,selectedArea) {
  340. var proStr = '', cityStr = '', areaStr = '';
  341. var pro = adress[selectedProvince], ci = adress[selectedProvince][selectedCity];
  342. for (var province in adress) {
  343. if (province == selectedProvince) proStr += '<option value="' + province + '" selected>' + province + '</option>';
  344. else proStr += '<option value="' + province + '">' + province + '</option>';
  345. }
  346. $("#province").html(proStr);
  347. for (var city in pro) {
  348. if (city == selectedCity) cityStr += '<option value="' + city + '" selected>' + city + '</option>';
  349. else cityStr += '<option value="' + city + '">' + city + '</option>';
  350. }
  351. $("#city").html(cityStr);
  352. for (var area in ci) {
  353. if(area == "remove"){
  354. continue;
  355. }
  356. if (ci[area] == selectedArea) areaStr += '<option value="' + ci[area] + '" selected>' + ci[area] + '</option>';
  357. else areaStr += '<option value="' + ci[area] + '">' + ci[area] + '</option>';
  358. }
  359. $("#area").html(areaStr);
  360. form.render();
  361. }
  362. selectOption('湖北省', getFirstAttr(adress['湖北省']),'硚口区');
  363. form.on('select(province)', function (data) {
  364. let thisProvince = data.value;
  365. let thisCity = getFirstAttr(adress[thisProvince]);
  366. selectOption(data.value, thisCity,thisCity[0]);
  367. });
  368. form.on('select(city)', function (data) {
  369. selectOption($("#province").val(), data.value,getFirstAttr(data.value));
  370. });
  371. })
  372. }
  373. </script>
  374. <script>
  375. // 获取具有指定 ID 的 <ul> 元素
  376. var ulElement = document.getElementById("filesBox");
  377. // 检查 <ul> 元素的子元素数量
  378. if (ulElement.children.length === 0) {
  379. // 如果子元素数量为 0,隐藏 <ul> 元素
  380. ulElement.style.display = "none";
  381. }
  382. </script>
  383. </body>
  384. </html>