project_overview.html 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548
  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. .heading-1 td{
  37. border-color: #e2e2e2;
  38. display: flex;
  39. justify-content: center;
  40. }
  41. #filesBox2 .layui-table-tool{
  42. display: none;
  43. }
  44. #filesBox2 .layui-table-view .layui-table{
  45. width: 100% !important;
  46. }
  47. #filesBox2 .layui-table-cell{
  48. display: flex;
  49. align-items: center;
  50. justify-content: center;
  51. }
  52. .laytable-cell-1-0-1, .laytable-cell-1-0-2{
  53. justify-content: flex-start !important;
  54. }
  55. .laytable-cell-1-0-0 span, .laytable-cell-1-0-1 span, .laytable-cell-1-0-2 span, .laytable-cell-1-0-3 span, .laytable-cell-1-0-4 span, th>.laytable-cell-1-0-5 span{
  56. display: flex;
  57. font: 14px red;
  58. font-weight: 600;
  59. color: #5f5f5f;
  60. }
  61. #tabniubi tr:first-child th{
  62. border-right: 1px solid #e2e2e2 !important;
  63. }
  64. #filesBox2 th:sixth-child{
  65. border-right: none !important;
  66. }
  67. </style>
  68. </head>
  69. <body>
  70. <table id="tabniubi" cellpadding="1" cellspacing="1">
  71. <tr>
  72. <th style="width: 10%;height: 0;"></th>
  73. <th style="width: 10%;height: 0;"></th>
  74. <th style="width: 10%;height: 0;"></th>
  75. <th style="width: 10%;height: 0;"></th>
  76. <th style="width: 10%;height: 0;"></th>
  77. <th style="width: 10%;height: 0;"></th>
  78. <th style="width: 10%;height: 0;"></th>
  79. <th style="width: 10%;height: 0;"></th>
  80. <th style="width: 10%;height: 0;"></th>
  81. </tr>
  82. <tr border="1">
  83. {if $field.project_status == 1}
  84. <th class="form-title">项目状态</th>
  85. <th>
  86. {switch $detail.project_status}
  87. {case 1}立项中{/case}
  88. {case 2}审批中{/case}
  89. {case 3}待接收{/case}
  90. {case 4}待分配{/case}
  91. {case 5}作业中{/case}
  92. {case 6}归档中{/case}
  93. {case 7}退审中{/case}
  94. {case 8}已归档{/case}
  95. {case 9}已退审{/case}
  96. {case 0}
  97. {switch $detail.proprietor_status}
  98. {case 0}立项中{/case}
  99. {case 1}审核中{/case}
  100. {case 2}待接收{/case}
  101. {/switch}
  102. {/case}
  103. {default /}未知
  104. {/switch}
  105. </th>
  106. {/if}
  107. {if $field.project_name == 1}
  108. <th class="form-title">项目名称</th>
  109. <th colspan="3">{$detail.project_name}</th>
  110. {/if}
  111. {if $field.project_num == 1}
  112. <th class="form-title">项目编号</th>
  113. <th colspan="2">{$detail.project_num}</th>
  114. {/if}
  115. </tr>
  116. <tr>
  117. {if $field.project_time == 1}
  118. <th class="form-title">项目周期</th>
  119. {if $detail.project_start_time != null}
  120. <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>
  121. {else/}
  122. <th colspan="8" style="text-align: left; padding-left: 3.5vw;"> </th>
  123. {/if}
  124. {/if}
  125. </tr>
  126. <tr>
  127. {if $field.engineering_type == 1}
  128. <th class="form-title">工程类型</th>
  129. <th>
  130. {if $detail.engineering_type1==1}
  131. 预算
  132. {elseif $detail.engineering_type1==2}
  133. 结算
  134. {elseif $detail.engineering_type1==3}
  135. 概算
  136. {elseif $detail.engineering_type1==4}
  137. 决算
  138. {elseif $detail.engineering_type1==5}
  139. 工程总承包(EPC)
  140. {/if}
  141. </th>
  142. <th class="form-title">——</th>
  143. <th>
  144. {if $detail.engineering_type2==1}审核{else}编制{/if}
  145. </th>
  146. {/if}
  147. {if $field.engineering_category == 1}
  148. <th class="form-title">工程类别</th>
  149. <th>{$detail.engineering_category}</th>
  150. {/if}
  151. {if $field.project_region == 1}
  152. <th class="form-title">项目区域</th>
  153. <th colspan="2">
  154. {$detail.province}-{$detail.city}-{$detail.area}
  155. <!--<div>
  156. <form class="layui-form">
  157. <div class="layui-form-item" style="margin-bottom: 0;">
  158. <div class="layui-input-inline" style="width: 6vw;">
  159. <select id="province" lay-filter="province" name="province">
  160. </select>
  161. </div>
  162. <div class="layui-input-inline area" style="width: 6vw;">
  163. <select id="city" lay-filter="city" name="city">
  164. </select>
  165. </div>
  166. <div class="layui-input-inline area" style="width: 6vw;">
  167. <select id="area" lay-filter="area" name="area">
  168. </select>
  169. </div>
  170. </div>
  171. </form>
  172. </div>-->
  173. </th>
  174. {/if}
  175. </tr>
  176. <tr>
  177. {if $field.fiscal_nature == 1}
  178. <th class="form-title">资金性质</th>
  179. <th>{$detail.fiscal_nature}</th>
  180. {/if}
  181. {if $field.project_scale == 1}
  182. <th class="form-title">项目规模</th>
  183. <th colspan="3">{$detail.project_scale}</th>
  184. {/if}
  185. {if $field.charge_standard == 1}
  186. <th class="form-title">收费标准</th>
  187. <th colspan="2">{$detail.charge_standard}</th>
  188. {/if}
  189. </tr>
  190. {if $field.entrust_unit == 1 || $field.entrust_head == 1 || $field.sent_review_unit == 1 || $field.sent_review_head == 1
  191. || $field.review_unit == 1 || $field.review_head == 1 || $field.operate_name == 1 || $field.operate_team_names == 1
  192. || $field.construction_unit == 1 || $field.construction_head == 1}
  193. <tr>
  194. <th colspan="9" class="forleft">相关单位</th>
  195. </tr>
  196. <tr>
  197. {if $field.entrust_unit == 1}
  198. <th class="form-title">委托单位</th>
  199. <th>{$detail.entrust_unit_name}</th>
  200. {/if}
  201. {if $field.entrust_head == 1}
  202. <th class="form-title">负责人</th>
  203. <th>{$detail.entrust_maker_name}</th>
  204. {/if}
  205. {if $field.sent_review_unit == 1}
  206. <th class="form-title">送审单位</th>
  207. <th>{$detail.sent_review_unit}</th>
  208. {/if}
  209. {if $field.sent_review_head == 1}
  210. <th class="form-title">负责人</th>
  211. <th colspan="2">{$detail.sent_review_head}</th>
  212. {/if}
  213. </tr>
  214. <tr>
  215. {if $field.review_unit == 1}
  216. <th class="form-title">评审机构</th>
  217. <th>{$detail.review_unit_name}</th>
  218. {/if}
  219. {if $field.review_head == 1}
  220. <th class="form-title">项目负责人</th>
  221. <th>{$detail.review_head_name}</th>
  222. {/if}
  223. {if $field.operate_name == 1}
  224. <th class="form-title">作业负责人</th>
  225. <th>{$detail.operate_head_name}</th>
  226. {/if}
  227. {if $field.operate_team_names == 1}
  228. <th class="form-title">作业成员</th>
  229. <th colspan="2">{$detail.operate_team_names}</th>
  230. {/if}
  231. </tr>
  232. <tr>
  233. {if $field.construction_unit == 1}
  234. <th class="form-title" colspan="1">施工单位</th>
  235. <th colspan="1">{$detail.construction_unit}</th>
  236. {/if}
  237. {if $field.construction_head == 1}
  238. <th class="form-title" colspan="1">负责人</th>
  239. <th colspan="6">{$detail.construction_head}</th>
  240. {/if}
  241. </tr>
  242. {/if}
  243. {if $field.sent_review_amount == 1 || $field.authorize_amount == 1
  244. || $field.review_add_reduce_amount == 1 || $field.review_add_reduce_rate == 1 || $field.sent_review_cost == 1
  245. || $field.sent_review_approver_amount == 1 || $field.construction_approver_amount == 1 || $field.report_time == 1}
  246. <tr>
  247. <th colspan="9" class="forleft">金额详情</th>
  248. </tr>
  249. <tr>
  250. {if $field.sent_review_amount == 1}
  251. <th class="form-title" colspan="1">送审金额(元)</th>
  252. <th colspan="3" style="text-align: left;">{$detail.sent_review_amount}</th>
  253. {/if}
  254. {if $field.authorize_amount == 1}
  255. <th class="form-title" colspan="1">审定金额(元)</th>
  256. <th colspan="4" style="text-align: left; padding-left: 3.5vw;">{$detail.authorize_amount}</th>
  257. {/if}
  258. </tr>
  259. <tr>
  260. {if $field.review_add_reduce_amount == 1}
  261. <th class="form-title" colspan="1">审增额(元)</th>
  262. <th colspan="1">{$detail.review_add_amount}</th>
  263. <th class="form-title" colspan="1">审减额(元)</th>
  264. <th colspan="1">{$detail.review_reduce_amount}</th>
  265. {/if}
  266. {if $field.review_add_reduce_rate == 1}
  267. <th class="form-title" colspan="1">审增减率(%)</th>
  268. <th colspan="1">{$detail.review_add_reduce_rate}</th>
  269. {/if}
  270. {if $field.sent_review_cost == 1}
  271. <th class="form-title" colspan="1">送审服务费 (元)</th>
  272. <th colspan="4" style="text-align: left; padding-left: 3.5vw;">{$detail.sent_review_cost}</th>
  273. {/if}
  274. </tr>
  275. <tr>
  276. {if $field.sent_review_approver_amount == 1}
  277. <th class="form-title forright" colspan="1">
  278. 送审单位承担<br>审核费(元)
  279. </th>
  280. <th colspan="2">{$detail.sent_review_approver_amount}</th>
  281. {/if}
  282. {if $field.construction_approver_amount == 1}
  283. <th class="form-title forright" colspan="2">
  284. 施工单位负责<br>核减超5%评审费部分(元)
  285. </th>
  286. <th colspan="2">{$detail.construction_approver_amount}</th>
  287. {/if}
  288. {if $field.report_time == 1}
  289. <th class="form-title" colspan="1">报告时间</th>
  290. <th colspan="1" style="text-align: left; padding-left: 3.5vw;">{if
  291. $detail.report_time!=0}{$detail.report_time|date="Y-m-d"}{/if}
  292. </th>
  293. {/if}
  294. </tr>
  295. {/if}
  296. <tr>
  297. <th colspan="9" class="forleft">相关附件</th>
  298. </tr>
  299. <tr>
  300. <th colspan="9" class="fujianimg" style="padding: 0px 0;">
  301. <div id="filesBox2">
  302. <table class="layui-hide" id="get_file" lay-filter="get_file"></table>
  303. </div>
  304. </th>
  305. </tr>
  306. </table>
  307. <table class="layui-table layui-table-form">
  308. <table class="layui-table" >
  309. <colgroup>
  310. <col width="110">
  311. <col width="800">
  312. <col width="250">
  313. <col width="250">
  314. <col width="250">
  315. </colgroup>
  316. <thead>
  317. <tr>
  318. <td class="layui-td-gray-1" colspan=9 style="height: 36px;"> &nbsp;&nbsp;项目报告
  319. </td>
  320. </tr>
  321. {if !empty($report) }
  322. <thead>
  323. <tr class="heading">
  324. <th>序号</th>
  325. <th style="text-align: left;">报告名称</th>
  326. <th>报告类型</th>
  327. <th>上传时间</th>
  328. <th>发布人</th>
  329. </tr>
  330. </thead>
  331. <tbody class="form">
  332. {volist name="report" id="vo"}
  333. <tr>
  334. <td>{$vo.id}</td>
  335. <td style="text-align: left;"><a data-id="{$vo.id}" lay-data="readreport" href="" style="color: #187FDD;">{$vo.title}</a></td>
  336. <td> {switch $vo.type}
  337. {case 0}初审报告{/case}
  338. {case 1}对数报告{/case}
  339. {case 2}定审报告{/case}
  340. {default /}未知
  341. {/switch}
  342. </td>
  343. <td>{$vo.create_time}</td>
  344. <td>{$vo.nickname}</td>
  345. </tr>
  346. {/volist}
  347. </tbody>
  348. {/if}
  349. </table>
  350. {empty name="$report" }
  351. <div class="layui-data-none">暂无项目报告</div>
  352. {/empty}
  353. </table>
  354. <!-- <script type="text/javascript" src="/static/assets/layui//layui.js"></script>-->
  355. <script src="/static/assets/layui/adress.json"> </script>
  356. <script>
  357. function first(){
  358. let table = layui.table;
  359. //项目任务
  360. var allcount;
  361. parent.layui.get_fileTable = table.render({
  362. elem: '#get_file',
  363. title: '文档列表',
  364. toolbar: '#toolbarget_file',
  365. cellMinWidth: 80,
  366. parseData: function (res) { // 数据解析回调函数
  367. // 在这里可以获取数据总数
  368. allcount = res.data.length;
  369. return {
  370. code: res.code, // 数据状态码
  371. msg: res.msg, // 状态信息
  372. count: res.count, // 数据总数
  373. data: res.data // 当前页数据
  374. };
  375. },
  376. // className: 'layui-table-testcss', // 用于给表格主容器追加 css 类名
  377. // lineStyle: 'height: 151px;', // 定义表格的多行样式
  378. url: "/admin/project.api/get_file",
  379. where: {'id': project_id},
  380. page: true, //开启分页
  381. limit: 20,
  382. cols: [[
  383. {field: 'id', title: '序号', width: 80, align: 'center',
  384. templet: function (d) {
  385. console.log(allcount,d.LAY_NUM)
  386. return allcount - (d.LAY_NUM - 1);
  387. }
  388. },
  389. {field: 'name', title: '附件名称', align: 'left',
  390. },
  391. {field: 'remark', title: '附件说明', align: 'left',
  392. },
  393. {field: 'admin_name', title: '上传人', align: 'center', width: 150},
  394. {field: 'create_time', title: '上传时间', align: 'center', width: 100},
  395. {field: 'right', fixed: 'right', title: '操作', width: 150, align: 'center',
  396. templet: function (d) {
  397. var html = '<div class="layui-btn-group">';
  398. var btn1 = `<a href="https://view.officeapps.live.com/op/view.aspx?src=${d.filepath}" target="_blank" class="layui-btn layui-btn-xs">预览</a>`;
  399. var btn2 = `<a class="layui-btn layui-btn-xs layui-bg-blue" href="${d.filepath}" download="${d.name}" lay-event="">下载</a>`;
  400. return html + btn1 + btn2 +'</div>';
  401. }
  402. }
  403. ]]
  404. });
  405. layui.use(['form', 'jquery'], function () {
  406. var form = layui.form;
  407. const $ = layui.jquery;
  408. let adress;
  409. $.ajax({
  410. type:"get", //使用get方式
  411. url: "/static/assets/layui/adress.json", //json文件相对于这个HTML的路径
  412. dataType:"json",
  413. async: false,
  414. success:function(data) {
  415. //这个data就是json数据
  416. adress = data
  417. },
  418. error:function() {
  419. layer.alert("地址请求失败!! ");
  420. }
  421. });
  422. function getFirstAttr(obj) {
  423. for (var k in obj) return k;
  424. }
  425. function selectOption(selectedProvince, selectedCity,selectedArea) {
  426. var proStr = '', cityStr = '', areaStr = '';
  427. var pro = adress[selectedProvince], ci = adress[selectedProvince][selectedCity];
  428. for (var province in adress) {
  429. if (province == selectedProvince) proStr += '<option value="' + province + '" selected>' + province + '</option>';
  430. else proStr += '<option value="' + province + '">' + province + '</option>';
  431. }
  432. $("#province").html(proStr);
  433. for (var city in pro) {
  434. if (city == selectedCity) cityStr += '<option value="' + city + '" selected>' + city + '</option>';
  435. else cityStr += '<option value="' + city + '">' + city + '</option>';
  436. }
  437. $("#city").html(cityStr);
  438. for (var area in ci) {
  439. if(area == "remove"){
  440. continue;
  441. }
  442. if (ci[area] == selectedArea) areaStr += '<option value="' + ci[area] + '" selected>' + ci[area] + '</option>';
  443. else areaStr += '<option value="' + ci[area] + '">' + ci[area] + '</option>';
  444. }
  445. $("#area").html(areaStr);
  446. form.render();
  447. }
  448. selectOption('湖北省', getFirstAttr(adress['湖北省']),'硚口区');
  449. form.on('select(province)', function (data) {
  450. let thisProvince = data.value;
  451. let thisCity = getFirstAttr(adress[thisProvince]);
  452. selectOption(data.value, thisCity,thisCity[0]);
  453. });
  454. form.on('select(city)', function (data) {
  455. selectOption($("#province").val(), data.value,getFirstAttr(data.value));
  456. });
  457. })
  458. }
  459. </script>
  460. <script>
  461. // 获取具有指定 ID 的 <ul> 元素
  462. var ulElement = document.getElementById("filesBox");
  463. // 检查 <ul> 元素的子元素数量
  464. if (ulElement.children.length === 0) {
  465. // 如果子元素数量为 0,隐藏 <ul> 元素
  466. ulElement.style.display = "none";
  467. }
  468. </script>
  469. </body>
  470. </html>