cost.html 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457
  1. {extend name="common/base"/}
  2. <!-- 主体 -->
  3. {block name="body"}
  4. <style>
  5. /* Border styles */
  6. #table-1 thead, #table-1 tr {
  7. border-top-width: 1px;
  8. border-top-style: solid;
  9. border-top-color: rgb(127 195 227);
  10. }
  11. #table-1 {
  12. border-bottom-width: 1px;
  13. border-bottom-style: solid;
  14. border-bottom-color: rgb(76 177 248);
  15. width: 100%;
  16. }
  17. /* Padding and font style */
  18. #table-1 td, #table-1 th {
  19. padding: 5px 10px;
  20. font-size: 14px;
  21. font-family: Verdana;
  22. color: rgb(87 163 205);
  23. }
  24. /* Alternating background colors */
  25. #table-1 tr:nth-child(even) {
  26. background: rgb(221 236 254)
  27. }
  28. #table-1 tr:nth-child(odd) {
  29. background: #FFF;
  30. }
  31. .layui-card-body {
  32. overflow: auto;
  33. }
  34. </style>
  35. <link rel="stylesheet" href="{__DATA__}/css/cost.css">
  36. <div class="p-3">
  37. <form id="taskForm" class="layui-form" lay-filter="barsearchformbarsearchform">
  38. <div class="layui-inline">
  39. <label class="layui-form-label">年选择器</label>
  40. <div class="layui-input-inline">
  41. <input type="text" class="layui-input" id="ID-laydate-type-year" placeholder="yyyy" name="today">
  42. </div>
  43. </div>
  44. <div class="layui-input-inline" style="width:150px;">
  45. <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="webform"><i
  46. class="layui-icon layui-icon-search mr-1"></i>搜索
  47. </button>
  48. <button class="layui-btn layui-btn-reset" lay-submit="" lay-filter="reset1">清空</button>
  49. </div>
  50. </form>
  51. </div>
  52. <div class="p-3">
  53. <div class="layui-row layui-col-space12">
  54. <div class="layui-col-xs12">
  55. <div class="layui-card">
  56. <div class="layui-card-body table">
  57. <table id='table-1' style="width: 100vw;">
  58. <tr>
  59. <th>项目数量</th>
  60. <th>1月</th>
  61. <th>2月</th>
  62. <th>3月</th>
  63. <th>4月</th>
  64. <th>5月</th>
  65. <th>6月</th>
  66. <th>7月</th>
  67. <th>8月</th>
  68. <th>9月</th>
  69. <th>10月</th>
  70. <th>11月</th>
  71. <th>12月</th>
  72. </tr>
  73. <tr>
  74. <th>{$sent.all.project_number}</th>
  75. <th>{$sent.1.project_number}</th>
  76. <th>{$sent.2.project_number}</th>
  77. <th>{$sent.3.project_number}</th>
  78. <th>{$sent.4.project_number}</th>
  79. <th>{$sent.5.project_number}</th>
  80. <th>{$sent.6.project_number}</th>
  81. <th>{$sent.7.project_number}</th>
  82. <th>{$sent.8.project_number}</th>
  83. <th>{$sent.9.project_number}</th>
  84. <th>{$sent.10.project_number}</th>
  85. <th>{$sent.11.project_number}</th>
  86. <th>{$sent.12.project_number}</th>
  87. </tr>
  88. <tr>
  89. <th>送审总额</th>
  90. <th>1月</th>
  91. <th>2月</th>
  92. <th>3月</th>
  93. <th>4月</th>
  94. <th>5月</th>
  95. <th>6月</th>
  96. <th>7月</th>
  97. <th>8月</th>
  98. <th>9月</th>
  99. <th>10月</th>
  100. <th>11月</th>
  101. <th>12月</th>
  102. </tr>
  103. <tr>
  104. <th>{$sent.all.all_sent_amount}</th>
  105. <th>{$sent.1.all_sent_amount}</th>
  106. <th>{$sent.2.all_sent_amount}</th>
  107. <th>{$sent.3.all_sent_amount}</th>
  108. <th>{$sent.4.all_sent_amount}</th>
  109. <th>{$sent.5.all_sent_amount}</th>
  110. <th>{$sent.6.all_sent_amount}</th>
  111. <th>{$sent.7.all_sent_amount}</th>
  112. <th>{$sent.8.all_sent_amount}</th>
  113. <th>{$sent.9.all_sent_amount}</th>
  114. <th>{$sent.10.all_sent_amount}</th>
  115. <th>{$sent.11.all_sent_amount}</th>
  116. <th>{$sent.12.all_sent_amount}</th>
  117. </tr>
  118. <tr>
  119. <th>审定总额</th>
  120. <th>1月</th>
  121. <th>2月</th>
  122. <th>3月</th>
  123. <th>4月</th>
  124. <th>5月</th>
  125. <th>6月</th>
  126. <th>7月</th>
  127. <th>8月</th>
  128. <th>9月</th>
  129. <th>10月</th>
  130. <th>11月</th>
  131. <th>12月</th>
  132. </tr>
  133. <tr>
  134. <th>{$sent.all.all_authorize_amount}</th>
  135. <th>{$sent.1.all_authorize_amount}</th>
  136. <th>{$sent.2.all_authorize_amount}</th>
  137. <th>{$sent.3.all_authorize_amount}</th>
  138. <th>{$sent.4.all_authorize_amount}</th>
  139. <th>{$sent.5.all_authorize_amount}</th>
  140. <th>{$sent.6.all_authorize_amount}</th>
  141. <th>{$sent.7.all_authorize_amount}</th>
  142. <th>{$sent.8.all_authorize_amount}</th>
  143. <th>{$sent.9.all_authorize_amount}</th>
  144. <th>{$sent.10.all_authorize_amount}</th>
  145. <th>{$sent.11.all_authorize_amount}</th>
  146. <th>{$sent.12.all_authorize_amount}</th>
  147. </tr>
  148. <tr>
  149. <th>服务费总额</th>
  150. <th>1月</th>
  151. <th>2月</th>
  152. <th>3月</th>
  153. <th>4月</th>
  154. <th>5月</th>
  155. <th>6月</th>
  156. <th>7月</th>
  157. <th>8月</th>
  158. <th>9月</th>
  159. <th>10月</th>
  160. <th>11月</th>
  161. <th>12月</th>
  162. </tr>
  163. <tr>
  164. <th>{$sent.all.all_sent_review_cost}</th>
  165. <th>{$sent.1.all_sent_review_cost}</th>
  166. <th>{$sent.2.all_sent_review_cost}</th>
  167. <th>{$sent.3.all_sent_review_cost}</th>
  168. <th>{$sent.4.all_sent_review_cost}</th>
  169. <th>{$sent.5.all_sent_review_cost}</th>
  170. <th>{$sent.6.all_sent_review_cost}</th>
  171. <th>{$sent.7.all_sent_review_cost}</th>
  172. <th>{$sent.8.all_sent_review_cost}</th>
  173. <th>{$sent.9.all_sent_review_cost}</th>
  174. <th>{$sent.10.all_sent_review_cost}</th>
  175. <th>{$sent.11.all_sent_review_cost}</th>
  176. <th>{$sent.12.all_sent_review_cost}</th>
  177. </tr>
  178. </table>
  179. </div>
  180. </div>
  181. </div>
  182. </div>
  183. <div class="layui-row layui-col-space12">
  184. <div class="layui-col-xs12">
  185. <div class="layui-card">
  186. <div class="layui-card-body table">
  187. <table id='table-1'>
  188. <thead>
  189. <tr>
  190. <th>评审机构</th>
  191. <th>项目数量</th>
  192. <th>送审总额</th>
  193. <th>审定总额</th>
  194. <th>总审增减率</th>
  195. <th>预算总额</th>
  196. <th>结算总额</th>
  197. <th>送审服务费</th>
  198. </tr>
  199. </thead>
  200. <tbody>
  201. {volist name="review_poportion" id="vo"}
  202. <tr>
  203. <th>{$vo.review_unit_name}</th>
  204. <th>{$vo.project_number}</th>
  205. <th>{$vo.all_sent_amount}</th>
  206. <th>{$vo.all_authorize_amount}</th>
  207. {if $vo.increaseOrdecrease == null}
  208. <th>0.00</th>
  209. {else}
  210. <th>{$vo.increaseOrdecrease}</th>
  211. {/if}
  212. <th>{$vo.budget_amount}</th>
  213. <th>{$vo.settlement_amount}</th>
  214. <th>{$vo.all_sent_review_cost}</th>
  215. </tr>
  216. {/volist}
  217. </tbody>
  218. </table>
  219. </div>
  220. </div>
  221. </div>
  222. </div>
  223. <div class="layui-row layui-col-space12">
  224. <div class="layui-col-xs12">
  225. <div class="layui-card">
  226. <div class="layui-card-body table-bottom">
  227. <table id='table-1'>
  228. <thead>
  229. <tr>
  230. <th>建设单位</th>
  231. <th>项目数量</th>
  232. <th>送审总额</th>
  233. <th>预算总额</th>
  234. <th>结算总额</th>
  235. </tr>
  236. </thead>
  237. <tbody>
  238. {volist name="sent_poportion" id="vo"}
  239. <tr>
  240. <th>{$vo.sent_review_unit_name}</th>
  241. <th>{$vo.project_number}</th>
  242. <th>{$vo.all_sent_amount}</th>
  243. <th>{$vo.budget_amount}</th>
  244. <th>{$vo.settlement_amount}</th>
  245. </tr>
  246. {/volist}
  247. </tbody>
  248. </table>
  249. </div>
  250. </div>
  251. </div>
  252. <div class="layui-col-xs6">
  253. <div class="layui-card">
  254. <div class="layui-card-header">
  255. <span id="time1"></span><span>年项目分布统计图</span>
  256. </div>
  257. <div class="layui-card-body">
  258. <div id="main1" style="height: 100%"></div>
  259. </div>
  260. </div>
  261. </div>
  262. <div class="layui-col-xs6">
  263. <div class="layui-card">
  264. <div class="layui-card-header">
  265. <span id="time2"></span><span>年项目送审、审定总额分布图</span>
  266. </div>
  267. <div class="layui-card-body">
  268. <div id="main2" style="height: 100%;"></div>
  269. </div>
  270. </div>
  271. </div>
  272. <div class="layui-col-xs6">
  273. <div class="layui-card">
  274. <div class="layui-card-header">
  275. <span id="time3"></span><span>年项目送审服务费分布图</span>
  276. </div>
  277. <div class="layui-card-body">
  278. <div id="main3" style="height: 100%;"></div>
  279. </div>
  280. </div>
  281. </div>
  282. <div class="layui-col-xs6">
  283. <div class="layui-card">
  284. <div class="layui-card-header">
  285. <span id="time4"></span><span>年送审总额占比分布图</span>
  286. </div>
  287. <div class="layui-card-body">
  288. <div id="main4" style="height: 100%;"></div>
  289. </div>
  290. </div>
  291. </div>
  292. <div class="layui-col-xs6">
  293. <div class="layui-card">
  294. <div class="layui-card-header">
  295. <span>评审机构项目数量排行</span>
  296. </div>
  297. <div class="layui-card-body">
  298. <div id="main5" style="height: 100%"></div>
  299. </div>
  300. </div>
  301. </div>
  302. <div class="layui-col-xs6">
  303. <div class="layui-card">
  304. <div class="layui-card-header">
  305. <span>评审机构送审总额排行</span>
  306. </div>
  307. <div class="layui-card-body">
  308. <div id="main6" style="height: 100%;"></div>
  309. </div>
  310. </div>
  311. </div>
  312. <div class="layui-col-xs6">
  313. <div class="layui-card">
  314. <div class="layui-card-header">
  315. <span>评审机构审定总额排行</span>
  316. </div>
  317. <div class="layui-card-body">
  318. <div id="main7" style="height: 100%;"></div>
  319. </div>
  320. </div>
  321. </div>
  322. <div class="layui-col-xs6">
  323. <div class="layui-card">
  324. <div class="layui-card-header">
  325. <span>建设单位项目数量排行</span>
  326. </div>
  327. <div class="layui-card-body">
  328. <div id="main8" style="height: 100%;"></div>
  329. </div>
  330. </div>
  331. </div>
  332. <div class="layui-col-xs6">
  333. <div class="layui-card">
  334. <div class="layui-card-header">
  335. <span>建设单位送审总额排行</span>
  336. </div>
  337. <div class="layui-card-body">
  338. <div id="main9" style="height: 100%"></div>
  339. </div>
  340. </div>
  341. </div>
  342. <div class="layui-col-xs6">
  343. <div class="layui-card">
  344. <div class="layui-card-header">
  345. <span>建设单位送审总额占比图</span>
  346. </div>
  347. <div class="layui-card-body">
  348. <div id="main10" style="height: 100%;"></div>
  349. </div>
  350. </div>
  351. </div>
  352. </div>
  353. </div>
  354. <script type="text/html" id="barDemo"></script>
  355. <script src="{__DATA__}/css/js/jquery.js"></script>
  356. <script src="{__DATA__}/css/js/echarts.min.js"></script>
  357. <script src="{__DATA__}/css/js/cost.js"></script>
  358. <script>
  359. const moduleInit = ['tool', 'oaTool'];
  360. function getQuerys(e) {
  361. if (!e) return "";
  362. var t = {},
  363. r = [],
  364. n = "",
  365. a = "";
  366. try {
  367. var i = [];
  368. if (e.indexOf("?") >= 0 && (i = e.substring(e.indexOf("?") + 1, e.length).split("&")), i.length > 0) for (var o in i) n = (r = i[o].split("="))[0],
  369. a = r[1],
  370. t[n] = a
  371. } catch (s) {
  372. t = {}
  373. }
  374. return t
  375. }
  376. let datetime = getQuerys(window.location.href).today;
  377. if (!datetime) {
  378. datetime = 2024;
  379. }
  380. $.ajax({
  381. url: '/admin/datastat.datastat/cost_chat?today='+ datetime,
  382. async: false,
  383. success: function (res) {
  384. if(res.code == 0){
  385. console.log(res)
  386. echarts_1(res.data);
  387. echarts_2(res.data);
  388. echarts_3(res.data);
  389. echarts_4(res.data);
  390. echarts_5(res.data);
  391. echarts_6(res.data);
  392. echarts_7(res.data);
  393. echarts_8(res.data);
  394. echarts_9(res.data);
  395. echarts_10(res.data);
  396. }else{
  397. layer.msg('请检查权限设置、网络或联系管理员!');
  398. }
  399. },
  400. error: function () {
  401. layer.msg('系统错误,请检查网络或联系管理员!');
  402. }
  403. })
  404. document.getElementById("time1").textContent = datetime; //it will print on html page
  405. document.getElementById("time2").textContent = datetime;
  406. document.getElementById("time3").textContent = datetime;
  407. document.getElementById("time4").textContent = datetime;
  408. function gouguInit() {
  409. var table = layui.table, tool = layui.tool, form = layui.form, oaTool = layui.oaTool;
  410. var laydate = layui.laydate;
  411. // 年选择器
  412. laydate.render({
  413. elem: '#ID-laydate-type-year',
  414. type: 'year',
  415. value: datetime
  416. });
  417. //监听搜索提交
  418. form.on('submit(webform)', function (data) {
  419. location.href = '/admin/datastat.datastat/cost?today=' + data.field.today;
  420. return false;
  421. });
  422. }
  423. </script>
  424. {/block}