project_overview.html 22 KB

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