project_overview.html 12 KB

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