project_overview.html 21 KB

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