s-project-section-detail.html 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. <!DOCTYPE html>
  2. <html lang=zh-cn>
  3. <head>
  4. <meta charset=utf-8>
  5. <title>纵横计量支付系统</title>
  6. <meta name=description content=计量支付>
  7. <meta name=copyright content=smartcost.com.cn>
  8. <meta name="viewport" content="width=device-width,initial-scale=1.0">
  9. <link rel=stylesheet href={{rootUrl}}global/css/bootstrap.css>
  10. <link rel=stylesheet href={{rootUrl}}global/css/style.css>
  11. <script src={{rootUrl}}global/js/jquery-1.9.1.min.js></script>
  12. <script src={{rootUrl}}global/js/bootstrap.js></script>
  13. <script src={{rootUrl}}global/js/jl.js></script>
  14. <script src={{rootUrl}}global/js/echarts.min.js></script>
  15. </head>
  16. <body>
  17. <!-- include "top" -->
  18. <div class="wrapContent">
  19. <!-- include "left" -->
  20. <div class="mainContainer">
  21. <!--内容-->
  22. <div class="mainContent">
  23. <div class="title clearfix">
  24. <ul class="nav nav-pills">
  25. <li class="dropdown"><a title="返回" href="{{rootUrl}}sproject/{{currproArray.pid}}/section"><span class="closePanel" aria-hidden="true" data-icon="Z"></span></a></li>
  26. <li class="dropdown">
  27. <a href="{{rootUrl}}sproject/{{currproArray.pid}}/section" data-toggle="dropdown" class="dropdown-toggle">
  28. {{currproArray.pname}}<b class="caret"></b>
  29. </a>
  30. <ul class="dropdown-menu">
  31. <!-- loop allproArray -->
  32. <li><a href="{{rootUrl}}sproject/{{allproArray' value.pid}}/section">{{allproArray' value.pname}}</a></li>
  33. <!-- endloop -->
  34. </ul>
  35. </li>
  36. <li class="dropdown">
  37. <a href="{{rootUrl}}sproject/{{currproArray.pid}}/section" data-toggle="dropdown" class="dropdown-toggle">
  38. {{currconArray.stname}}<b class="caret"></b>
  39. </a>
  40. <ul class="dropdown-menu">
  41. <!-- loop allconArray -->
  42. <li><a href="{{rootUrl}}sproject/{{currproArray.pid}}/section">{{allconArray' value.stname}}</a></li>
  43. <!-- endloop -->
  44. </ul>
  45. </li>
  46. <li class="dropdown">
  47. <a href="{{rootUrl}}sproject/{{currproArray.pid}}/section" data-toggle="dropdown" class="dropdown-toggle">
  48. {{curractmeasureArray.pmname}}<b class="caret"></b>
  49. </a>
  50. <ul class="dropdown-menu">
  51. <!-- loop allactmeasureArray -->
  52. <li><a href="{{rootUrl}}sproject/{{currproArray.pid}}/section/{{allactmeasureArray' value.pmid}}/detail">{{allactmeasureArray' value.pmname}}</a></li>
  53. <!-- endloop -->
  54. <!-- <li class="divider"></li>
  55. <li><a href="#">共18标段,查看更多</a></li>-->
  56. </ul>
  57. </li>
  58. </ul>
  59. </div>
  60. <!--导航-->
  61. <ul class="nav nav-tabs">
  62. <li class="active">
  63. <a href="{{rootUrl}}sproject/{{pid}}/section/{{pmid}}/detail">标段概况</a>
  64. </li>
  65. <li><a href="{{rootUrl}}sproject/{{pid}}/section/{{pmid}}/files">附件</a></li>
  66. <!-- if {{imediateSwitch}} == 1 --><li><a href="{{rootUrl}}sproject/{{pid}}/section/{{pmid}}/intermediate">中间计量草图</a></li><!-- endif -->
  67. <li><a href="<!-- if !empty({{mpid}}) -->{{rootUrl}}sproject/{{pid}}/section/{{pmid}}/report/{{mpid}}<!-- else -->javascript:void(0);<!-- endif -->" <!-- if empty({{mpid}}) -->style="cursor: no-drop;"<!-- endif -->>审批流程</a></li>
  68. </ul>
  69. <div class="project">
  70. <div class="proSection clearfix">
  71. <!--图表4-->
  72. <div id="chartContainer4" style="height: 300px; width: 100%;">
  73. </div>
  74. <!--图表4-->
  75. </div>
  76. <div class="proSection clearfix">
  77. <!--图表5-->
  78. <div class="fL" style="width:30%">
  79. <div id="chartContainer5" style="height: 300px; width: 100%;">
  80. </div>
  81. </div>
  82. <!--图表5-->
  83. <!--表-->
  84. <div class="fL" style="width:70%;height:300px;overflow:hide">
  85. <table class="table table-striped">
  86. <thead>
  87. <tr>
  88. <th width="8%">期数</th><th width="16%" class="taC">本期合同计量</th><th width="16%" class="taC">本期数量变更计量</th><th width="16%" class="taC">截止上期完成</th><th width="16%" class="taC">本期完成计量</th><th width="16%" class="taC">截止本期完成</th>
  89. </tr>
  90. </thead>
  91. </table>
  92. <div style="height:264px;overflow-y:auto">
  93. <table class="table table-striped">
  94. <!-- loop MeasureArray -->
  95. <tr>
  96. <td width="8%">第{{ToChinaseNum(MeasureArray' value.numpname)}}期&nbsp;<span data-toggle="tooltip" data-placement="bottom" title="上报:{{formatDate(MeasureArray' value.intime,'Y-m-d')}} <!-- if {{MeasureArray' value.audittime}}!='0' -->;通过:{{formatDate(MeasureArray' value.audittime,'Y-m-d')}}<!-- endif -->" class="icon-time"></span> </td><td width="16%" class="taR">{{MeasureArray' value.currcontractval}}</td><td width="16%" class="taR">{{MeasureArray' value.currchangeval}}</td><td width="16%" class="taR">{{MeasureArray' value.stopnowtotal}}</td><td width="16%" class="taR">{{MeasureArray' value.currdone}}</td><td width="16%" class="taR">{{MeasureArray' value.curralltotal}}</td>
  97. </tr>
  98. <!-- endloop -->
  99. </table>
  100. </div>
  101. </div>
  102. <!--表-->
  103. </div>
  104. </div>
  105. </div>
  106. <!--内容-->
  107. </div>
  108. </div>
  109. <script type="text/javascript">autoFlashHeight();</script>
  110. <script type="text/javascript">
  111. // 路径配置
  112. $(function(ec) {
  113. //4 标段期数计量进度//
  114. var myChart = echarts.init(document.getElementById('chartContainer4'));
  115. var option = {
  116. color: ['#e9af68', '#57b7b6', '#e4575a', '#959eac', '#6699FF',
  117. '#d38b70', '#8fb7cf', '#cd5c5c', '#ffa500', '#40e0d0',
  118. '#1e90ff', '#ff6347', '#7b68ee', '#00fa9a', '#ffd700',
  119. '#5c616b', '#ff6666', '#3cb371', '#b8860b', '#30e0e0'],
  120. tooltip: {
  121. trigger: 'axis'
  122. },
  123. calculable: true,
  124. legend: {
  125. data: ['本期合同计量', '本期数量变更计量', '截止上期完成', '本期完成计量', '完成度']
  126. },
  127. dataZoom : {
  128. show : true,
  129. start :0,
  130. end : 100
  131. },
  132. xAxis: [
  133. {
  134. type: 'category',
  135. splitLine: {show: true},
  136. data: [
  137. <!-- loop MeasureArray -->
  138. '第{{ToChinaseNum(MeasureArray' value.numpname)}}期',
  139. <!-- endloop -->
  140. ]
  141. }
  142. ],
  143. yAxis: [
  144. {
  145. type: 'value',
  146. position: 'left',
  147. splitArea: {show: true}
  148. },
  149. {
  150. type: 'value',
  151. name: '完成度',
  152. axisLabel: {
  153. formatter: '{value} %'
  154. },
  155. position: 'right',
  156. splitArea: {show: false},
  157. splitLine: {show: false}
  158. }
  159. ],
  160. series: [
  161. {
  162. name: '本期合同计量',
  163. type: 'bar',
  164. tooltip: {trigger: 'item', formatter: "{b} <br/>{a}:{c}元"},
  165. stack: '合同',
  166. data: [
  167. <!-- loop MeasureArray -->
  168. {{MeasureArray' value.currcontractval}},
  169. <!-- endloop -->
  170. ]
  171. },
  172. {
  173. name: '本期数量变更计量',
  174. type: 'bar',
  175. tooltip: {trigger: 'item', formatter: "{b} <br/>{a}:{c}元"},
  176. stack: '合同',
  177. data: [
  178. <!-- loop MeasureArray -->
  179. {{MeasureArray' value.currchangeval}},
  180. <!-- endloop -->
  181. ]
  182. },
  183. {
  184. name: '截止上期完成',
  185. type: 'bar',
  186. tooltip: {trigger: 'item', formatter: "{b} <br/>{a}:{c}元"},
  187. stack: '完成',
  188. data: [
  189. <!-- loop MeasureArray -->
  190. {{MeasureArray' value.stopnowtotal}},
  191. <!-- endloop -->
  192. ]
  193. },
  194. {
  195. name: '本期完成计量',
  196. type: 'bar',
  197. tooltip: {trigger: 'item', formatter: "{b} <br/>{a}:{c}元"},
  198. stack: '完成',
  199. data: [
  200. <!-- loop MeasureArray -->
  201. {{MeasureArray' value.currdone}},
  202. <!-- endloop -->
  203. ]
  204. },
  205. {
  206. name: '完成度',
  207. type: 'line',
  208. tooltip: {trigger: 'axis', formatter: "{b}占总标段<br/>{a}:{c} %"},
  209. yAxisIndex: 1,
  210. data: [
  211. <!-- loop MeasureArray -->
  212. {{MeasureArray' value.lessTotal}},
  213. <!-- endloop -->
  214. ]
  215. },
  216. ]
  217. };
  218. // 为echarts对象加载数据
  219. myChart.setOption(option);
  220. //4 标段期数计量进度//
  221. //5 期数组成//
  222. // 基于准备好的dom,初始化echarts图表
  223. var myChart2 = echarts.init(document.getElementById('chartContainer5'));
  224. var option = {
  225. color: ['#e9af68', '#57b7b6', '#e4575a', '#959eac', '#6699FF',
  226. '#d38b70', '#8fb7cf', '#cd5c5c', '#ffa500', '#40e0d0',
  227. '#1e90ff', '#ff6347', '#7b68ee', '#00fa9a', '#ffd700',
  228. '#5c616b', '#ff6666', '#3cb371', '#b8860b', '#30e0e0'],
  229. title: {
  230. text: '期数计量组成',
  231. x: 'left'
  232. },
  233. tooltip: {
  234. trigger: 'item',
  235. formatter: "{a} <br/>{b}:{c} 元<br>占标段:{d} %"
  236. },
  237. calculable: true,
  238. series: [
  239. {
  240. name: '标段计量分布',
  241. type: 'pie',
  242. radius: '40%',
  243. center: ['45%', 155],
  244. data: [
  245. <!-- loop MeasureArray -->
  246. {value: {{MeasureArray' value.currdone}}, name: '第{{ToChinaseNum(MeasureArray' value.numpname)}}期'},
  247. <!-- endloop -->
  248. ]
  249. }
  250. ]
  251. };
  252. // 为echarts对象加载数据
  253. myChart2.setOption(option);
  254. //5 期数组成//
  255. });
  256. </script>
  257. </body>
  258. <html/>