project_overview.html 22 KB

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