project_overview.html 20 KB

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