project_overview.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340
  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. <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>
  82. </tr>
  83. <tr>
  84. <th class="form-title">工程类型</th>
  85. <th>
  86. {$detail.engineering_type1}
  87. <!-- <div>
  88. <select name="type" lay-verify="required" lay-filter="aihao">
  89. <option value="1" style="align-items: center;">预算</option>
  90. <option value="2">结算</option>
  91. </select>
  92. </div>-->
  93. </th>
  94. <th class="form-title">——</th>
  95. <th>
  96. {$detail.engineering_type2}
  97. <!-- <div>
  98. <select name="type" lay-verify="required" lay-filter="aihao">
  99. <option value="1">审核</option>
  100. <option value="2">编制</option>
  101. </select>
  102. </div> -->
  103. </th>
  104. <th class="form-title">工程类别</th>
  105. <th>{$detail.engineering_category}</th>
  106. <th class="form-title">项目区域</th>
  107. <th colspan="2">
  108. {$detail.province}-{$detail.city}-{$detail.area}
  109. </th>
  110. </tr>
  111. <tr>
  112. <th class="form-title">资金性质</th>
  113. <th>{$detail.fiscal_nature}</th>
  114. <th class="form-title">项目规模</th>
  115. <th colspan="3">{$detail.project_scale}</th>
  116. <th class="form-title">收费标准</th>
  117. <th colspan="2">{$detail.charge_standard}</th>
  118. </tr>
  119. <tr>
  120. <th colspan="9" class="forleft">相关单位</th>
  121. </tr>
  122. <tr>
  123. <th class="form-title">委托单位</th>
  124. <th>{$detail.entrust_unit_name}</th>
  125. <th class="form-title">负责人</th>
  126. <th>{$detail.entrust_maker_name}</th>
  127. <th class="form-title">送审单位</th>
  128. <th>{$detail.sent_review_unit}</th>
  129. <th class="form-title">负责人</th>
  130. <th colspan="2">{$detail.sent_review_head}</th>
  131. </tr>
  132. <tr>
  133. <th class="form-title">评审机构</th>
  134. <th>{$detail.review_unit_name}</th>
  135. <th class="form-title">项目负责人</th>
  136. <th>{$detail.review_head_name}</th>
  137. <th class="form-title">作业负责人</th>
  138. <th>{$detail.operate_head_name}</th>
  139. <th class="form-title">作业成员</th>
  140. <th colspan="2">{$detail.operate_team_names}</th>
  141. </tr>
  142. <tr>
  143. <th colspan="9" class="forleft">金额详情</th>
  144. </tr>
  145. <tr>
  146. <th class="form-title" colspan="1">编制金额(元)</th>
  147. <th colspan="1">{$detail.preparation_amount}</th>
  148. <th class="form-title" colspan="1">送审金额(元)</th>
  149. <th colspan="1">{$detail.sent_review_amount}</th>
  150. <th class="form-title" colspan="1">审定金额(元)</th>
  151. <th colspan="4" style="text-align: left; padding-left: 3.5vw;">{$detail.authorize_amount}</th>
  152. </tr>
  153. <tr>
  154. <th class="form-title" colspan="1">审增额(元)</th>
  155. <th colspan="1">{$detail.review_add_amount}</th>
  156. <th class="form-title" colspan="1">审减额(元)</th>
  157. <th colspan="1">{$detail.review_reduce_amount}</th>
  158. <th class="form-title" colspan="1">审增减率</th>
  159. <th colspan="1">{$detail.review_add_reduce_rate}</th>
  160. <th class="form-title" colspan="1">送审服务费(元)</th>
  161. <th colspan="4" style="text-align: left; padding-left: 3.5vw;">{$detail.sent_review_cost}</th>
  162. </tr>
  163. <tr>
  164. <th class="form-title" colspan="1">报告时间</th>
  165. <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>
  166. </tr>
  167. <tr>
  168. <th colspan="9" class="forleft">相关附件
  169. </th>
  170. </tr>
  171. <tr>
  172. <th colspan="9" class="forleft fujianimg">
  173. <ul id="filesBox" style="height: 140px;display: flex;flex-flow: wrap;overflow: scroll;">
  174. {:fileCard($file_array)}
  175. </ul>
  176. {empty name="$file_array" }
  177. <div class="layui-data-none">暂无附件</div>
  178. {/empty}
  179. </th>
  180. </tr>
  181. </table>
  182. <table class="layui-table layui-table-form">
  183. <table class="layui-table" >
  184. <colgroup>
  185. <col width="110">
  186. <col width="800">
  187. <col width="250">
  188. <col width="250">
  189. <col width="250">
  190. </colgroup>
  191. <thead>
  192. <tr>
  193. <td class="layui-td-gray-1" colspan=9 style="height: 36px;"> &nbsp;&nbsp;项目报告
  194. </td>
  195. </tr>
  196. {if !empty($report) }
  197. <thead>
  198. <tr class="heading">
  199. <th>序号</th>
  200. <th style="text-align: left;">报告名称</th>
  201. <th>报告类型</th>
  202. <th>上传时间</th>
  203. <th>发布人</th>
  204. </tr>
  205. </thead>
  206. <tbody class="form">
  207. {volist name="report" id="vo"}
  208. <tr>
  209. <td>{$vo.id}</td>
  210. <td style="text-align: left;"><a data-id="{$vo.id}" lay-data="readreport" href="" style="color: #187FDD;">{$vo.title}</a></td>
  211. <td> {switch $vo.type}
  212. {case 0}初审报告{/case}
  213. {case 1}对数报告{/case}
  214. {case 2}定审报告{/case}
  215. {default /}未知
  216. {/switch}
  217. </td>
  218. <td>{$vo.create_time}</td>
  219. <td>{$vo.nickname}</td>
  220. </tr>
  221. {/volist}
  222. </tbody>
  223. {/if}
  224. </table>
  225. {empty name="$report" }
  226. <div class="layui-data-none">暂无项目报告</div>
  227. {/empty}
  228. </table>
  229. <!-- <script type="text/javascript" src="/static/assets/layui//layui.js"></script>-->
  230. <script src="/assets/layui/adress.json"> </script>
  231. <script>
  232. function first(){
  233. layui.use(['form', 'jquery'], function () {
  234. var form = layui.form;
  235. const $ = layui.jquery;
  236. let adress;
  237. $.ajax({
  238. type:"get", //使用get方式
  239. url: "/static/assets/layui/adress.json", //json文件相对于这个HTML的路径
  240. dataType:"json",
  241. async: false,
  242. success:function(data) {
  243. //这个data就是json数据
  244. adress = data
  245. },
  246. error:function() {
  247. layer.alert("地址请求失败!! ");
  248. }
  249. });
  250. function getFirstAttr(obj) {
  251. for (var k in obj) return k;
  252. }
  253. function selectOption(selectedProvince, selectedCity,selectedArea) {
  254. var proStr = '', cityStr = '', areaStr = '';
  255. var pro = adress[selectedProvince], ci = adress[selectedProvince][selectedCity];
  256. for (var province in adress) {
  257. if (province == selectedProvince) proStr += '<option value="' + province + '" selected>' + province + '</option>';
  258. else proStr += '<option value="' + province + '">' + province + '</option>';
  259. }
  260. $("#province").html(proStr);
  261. for (var city in pro) {
  262. if (city == selectedCity) cityStr += '<option value="' + city + '" selected>' + city + '</option>';
  263. else cityStr += '<option value="' + city + '">' + city + '</option>';
  264. }
  265. $("#city").html(cityStr);
  266. for (var area in ci) {
  267. if(area == "remove"){
  268. continue;
  269. }
  270. if (ci[area] == selectedArea) areaStr += '<option value="' + ci[area] + '" selected>' + ci[area] + '</option>';
  271. else areaStr += '<option value="' + ci[area] + '">' + ci[area] + '</option>';
  272. }
  273. $("#area").html(areaStr);
  274. form.render();
  275. }
  276. selectOption('湖北省', getFirstAttr(adress['湖北省']),'硚口区');
  277. form.on('select(province)', function (data) {
  278. let thisProvince = data.value;
  279. let thisCity = getFirstAttr(adress[thisProvince]);
  280. selectOption(data.value, thisCity,thisCity[0]);
  281. });
  282. form.on('select(city)', function (data) {
  283. selectOption($("#province").val(), data.value,getFirstAttr(data.value));
  284. });
  285. })
  286. }
  287. </script>
  288. <script>
  289. // 获取具有指定 ID 的 <ul> 元素
  290. var ulElement = document.getElementById("filesBox");
  291. // 检查 <ul> 元素的子元素数量
  292. if (ulElement.children.length === 0) {
  293. // 如果子元素数量为 0,隐藏 <ul> 元素
  294. ulElement.style.display = "none";
  295. }
  296. </script>
  297. </body>
  298. </html>