project_overview.html 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377
  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. </style>
  37. </head>
  38. <body>
  39. <table id="tabniubi" cellpadding="1" cellspacing="1">
  40. <tr>
  41. <th style="width: 10%;height: 0;"></th>
  42. <th style="width: 10%;height: 0;"></th>
  43. <th style="width: 10%;height: 0;"></th>
  44. <th style="width: 10%;height: 0;"></th>
  45. <th style="width: 10%;height: 0;"></th>
  46. <th style="width: 10%;height: 0;"></th>
  47. <th style="width: 10%;height: 0;"></th>
  48. <th style="width: 10%;height: 0;"></th>
  49. <th style="width: 10%;height: 0;"></th>
  50. </tr>
  51. <tr border="1">
  52. <th class="form-title">项目状态</th>
  53. <th>
  54. {switch $detail.project_status}
  55. {case 1}立项中{/case}
  56. {case 2}审批中{/case}
  57. {case 3}待接收{/case}
  58. {case 4}待分配{/case}
  59. {case 5}作业中{/case}
  60. {case 6}归档中{/case}
  61. {case 7}退审中{/case}
  62. {case 8}已归档{/case}
  63. {case 9}已退审{/case}
  64. {case 0}
  65. {switch $detail.proprietor_status}
  66. {case 0}立项中{/case}
  67. {case 1}审核中{/case}
  68. {case 2}待接收{/case}
  69. {/switch}
  70. {/case}
  71. {default /}未知
  72. {/switch}
  73. </th>
  74. <th class="form-title">项目名称</th>
  75. <th colspan="3">{$detail.project_name}</th>
  76. <th class="form-title">项目编号</th>
  77. <th colspan="2">{$detail.project_num}</th>
  78. </tr>
  79. <tr>
  80. <th class="form-title">项目周期</th>'
  81. {if $detail.project_start_time != null}
  82. <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>
  83. {else/}
  84. <th colspan="8" style="text-align: left; padding-left: 3.5vw;"> </th>
  85. {/if}
  86. </tr>
  87. <tr>
  88. <th class="form-title">工程类型</th>
  89. <th>
  90. {$detail.engineering_type1}
  91. <!-- <div>
  92. <select name="type" lay-verify="required" lay-filter="aihao">
  93. <option value="1" style="align-items: center;">预算</option>
  94. <option value="2">结算</option>
  95. </select>
  96. </div>-->
  97. </th>
  98. <th class="form-title">——</th>
  99. <th>
  100. {$detail.engineering_type2}
  101. <!-- <div>
  102. <select name="type" lay-verify="required" lay-filter="aihao">
  103. <option value="1">审核</option>
  104. <option value="2">编制</option>
  105. </select>
  106. </div> -->
  107. </th>
  108. <th class="form-title">工程类别</th>
  109. <th>{$detail.engineering_category}</th>
  110. <th class="form-title">项目区域</th>
  111. <th colspan="2">
  112. {$detail.province}-{$detail.city}-{$detail.area}
  113. <!--<div>
  114. <form class="layui-form">
  115. <div class="layui-form-item" style="margin-bottom: 0;">
  116. <div class="layui-input-inline" style="width: 6vw;">
  117. <select id="province" lay-filter="province" name="province">
  118. </select>
  119. </div>
  120. <div class="layui-input-inline area" style="width: 6vw;">
  121. <select id="city" lay-filter="city" name="city">
  122. </select>
  123. </div>
  124. <div class="layui-input-inline area" style="width: 6vw;">
  125. <select id="area" lay-filter="area" name="area">
  126. </select>
  127. </div>
  128. </div>
  129. </form>
  130. </div>-->
  131. </th>
  132. </tr>
  133. <tr>
  134. <th class="form-title">资金性质</th>
  135. <th>{$detail.fiscal_nature}</th>
  136. <th class="form-title">项目规模</th>
  137. <th colspan="3">{$detail.project_scale}</th>
  138. <th class="form-title">收费标准</th>
  139. <th colspan="2">{$detail.charge_standard}</th>
  140. </tr>
  141. <tr>
  142. <th colspan="9" class="forleft">相关单位</th>
  143. </tr>
  144. <tr>
  145. <th class="form-title">委托单位</th>
  146. <th>{$detail.entrust_unit_name}</th>
  147. <th class="form-title">负责人</th>
  148. <th>{$detail.entrust_maker_name}</th>
  149. <th class="form-title">送审单位</th>
  150. <th>{$detail.sent_review_unit}</th>
  151. <th class="form-title">负责人</th>
  152. <th colspan="2">{$detail.sent_review_head}</th>
  153. </tr>
  154. <tr>
  155. <th class="form-title">评审机构</th>
  156. <th>{$detail.review_unit_name}</th>
  157. <th class="form-title">项目负责人</th>
  158. <th>{$detail.review_head_name}</th>
  159. <th class="form-title">作业负责人</th>
  160. <th>{$detail.operate_head_name}</th>
  161. <th class="form-title">作业成员</th>
  162. <th colspan="2">{$detail.operate_team_names}</th>
  163. </tr>
  164. <tr>
  165. <th class="form-title" colspan="1">施工单位</th>
  166. <th colspan="1">{$detail.construction_unit}</th>
  167. <th class="form-title" colspan="1">负责人</th>
  168. <th colspan="6">{$detail.construction_head}</th>
  169. </tr>
  170. <tr>
  171. <th colspan="9" class="forleft">金额详情</th>
  172. </tr>
  173. <tr>
  174. <th class="form-title" colspan="1">编制金额(元)</th>
  175. <th colspan="1">{$detail.preparation_amount}</th>
  176. <th class="form-title" colspan="1">送审金额(元)</th>
  177. <th colspan="1">{$detail.sent_review_amount}</th>
  178. <th class="form-title" colspan="1">审定金额(元)</th>
  179. <th colspan="4" style="text-align: left; padding-left: 3.5vw;">{$detail.authorize_amount}</th>
  180. </tr>
  181. <tr>
  182. <th class="form-title" colspan="1">审增额(元)</th>
  183. <th colspan="1">{$detail.review_add_amount}</th>
  184. <th class="form-title" colspan="1">审减额(元)</th>
  185. <th colspan="1">{$detail.review_reduce_amount}</th>
  186. <th class="form-title" colspan="1">审增减率</th>
  187. <th colspan="1">{$detail.review_add_reduce_rate}</th>
  188. <th class="form-title" colspan="1">送审服务费(元)</th>
  189. <th colspan="4" style="text-align: left; padding-left: 3.5vw;">{$detail.sent_review_cost}</th>
  190. </tr>
  191. <tr>
  192. <th class="form-title forright" colspan="1">
  193. 送审单位承担审核费(元)
  194. </th>
  195. <th colspan="1">{$detail.sent_review_approver_amount}</th>
  196. <th class="form-title forright" colspan="1">
  197. 施工单位负责核减<br>超5%评审费部分(元)
  198. </th>
  199. <th colspan="1">{$detail.construction_approver_amount}</th>
  200. <th class="form-title" colspan="1">报告时间</th>
  201. <th colspan="4" style="text-align: left; padding-left: 3.5vw;">{if $detail.report_time!=0}{$detail.report_time|date="Y-m-d"}{/if}</th>
  202. </tr>
  203. <tr>
  204. <th colspan="9" class="forleft">相关附件
  205. </th>
  206. </tr>
  207. <tr>
  208. <th colspan="9" class="forleft fujianimg">
  209. <ul id="filesBox" style="height: 140px;display: flex;flex-flow: wrap;overflow: scroll;">
  210. {:fileCard($file_array)}
  211. </ul>
  212. {empty name="$file_array" }
  213. <div class="layui-data-none">暂无附件</div>
  214. {/empty}
  215. </th>
  216. </tr>
  217. </table>
  218. <table class="layui-table layui-table-form">
  219. <table class="layui-table" >
  220. <colgroup>
  221. <col width="110">
  222. <col width="800">
  223. <col width="250">
  224. <col width="250">
  225. <col width="250">
  226. </colgroup>
  227. <thead>
  228. <tr>
  229. <td class="layui-td-gray-1" colspan=9 style="height: 36px;"> &nbsp;&nbsp;项目报告
  230. </td>
  231. </tr>
  232. {if !empty($report) }
  233. <thead>
  234. <tr class="heading">
  235. <th>序号</th>
  236. <th style="text-align: left;">报告名称</th>
  237. <th>报告类型</th>
  238. <th>上传时间</th>
  239. <th>发布人</th>
  240. </tr>
  241. </thead>
  242. <tbody class="form">
  243. {volist name="report" id="vo"}
  244. <tr>
  245. <td>{$vo.id}</td>
  246. <td style="text-align: left;"><a data-id="{$vo.id}" lay-data="readreport" href="" style="color: #187FDD;">{$vo.title}</a></td>
  247. <td> {switch $vo.type}
  248. {case 0}初审报告{/case}
  249. {case 1}对数报告{/case}
  250. {case 2}定审报告{/case}
  251. {default /}未知
  252. {/switch}
  253. </td>
  254. <td>{$vo.create_time}</td>
  255. <td>{$vo.nickname}</td>
  256. </tr>
  257. {/volist}
  258. </tbody>
  259. {/if}
  260. </table>
  261. {empty name="$report" }
  262. <div class="layui-data-none">暂无项目报告</div>
  263. {/empty}
  264. </table>
  265. <!-- <script type="text/javascript" src="/static/assets/layui//layui.js"></script>-->
  266. <script src="/assets/layui/adress.json"> </script>
  267. <script>
  268. function first(){
  269. layui.use(['form', 'jquery'], function () {
  270. var form = layui.form;
  271. const $ = layui.jquery;
  272. let adress;
  273. $.ajax({
  274. type:"get", //使用get方式
  275. url: "/static/assets/layui/adress.json", //json文件相对于这个HTML的路径
  276. dataType:"json",
  277. async: false,
  278. success:function(data) {
  279. //这个data就是json数据
  280. adress = data
  281. },
  282. error:function() {
  283. layer.alert("地址请求失败!! ");
  284. }
  285. });
  286. function getFirstAttr(obj) {
  287. for (var k in obj) return k;
  288. }
  289. function selectOption(selectedProvince, selectedCity,selectedArea) {
  290. var proStr = '', cityStr = '', areaStr = '';
  291. var pro = adress[selectedProvince], ci = adress[selectedProvince][selectedCity];
  292. for (var province in adress) {
  293. if (province == selectedProvince) proStr += '<option value="' + province + '" selected>' + province + '</option>';
  294. else proStr += '<option value="' + province + '">' + province + '</option>';
  295. }
  296. $("#province").html(proStr);
  297. for (var city in pro) {
  298. if (city == selectedCity) cityStr += '<option value="' + city + '" selected>' + city + '</option>';
  299. else cityStr += '<option value="' + city + '">' + city + '</option>';
  300. }
  301. $("#city").html(cityStr);
  302. for (var area in ci) {
  303. if(area == "remove"){
  304. continue;
  305. }
  306. if (ci[area] == selectedArea) areaStr += '<option value="' + ci[area] + '" selected>' + ci[area] + '</option>';
  307. else areaStr += '<option value="' + ci[area] + '">' + ci[area] + '</option>';
  308. }
  309. $("#area").html(areaStr);
  310. form.render();
  311. }
  312. selectOption('湖北省', getFirstAttr(adress['湖北省']),'硚口区');
  313. form.on('select(province)', function (data) {
  314. let thisProvince = data.value;
  315. let thisCity = getFirstAttr(adress[thisProvince]);
  316. selectOption(data.value, thisCity,thisCity[0]);
  317. });
  318. form.on('select(city)', function (data) {
  319. selectOption($("#province").val(), data.value,getFirstAttr(data.value));
  320. });
  321. })
  322. }
  323. </script>
  324. <script>
  325. // 获取具有指定 ID 的 <ul> 元素
  326. var ulElement = document.getElementById("filesBox");
  327. // 检查 <ul> 元素的子元素数量
  328. if (ulElement.children.length === 0) {
  329. // 如果子元素数量为 0,隐藏 <ul> 元素
  330. ulElement.style.display = "none";
  331. }
  332. </script>
  333. </body>
  334. </html>