w-share-project-section.html 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  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. <link rel=stylesheet href={{rootUrl}}global/css/bootstrap.css>
  9. <link rel=stylesheet href={{rootUrl}}global/css/style.css>
  10. <script src={{rootUrl}}global/js/jquery-1.9.1.min.js></script>
  11. <script src={{rootUrl}}global/js/bootstrap.js></script>
  12. <script src={{rootUrl}}global/js/jl.js></script>
  13. <script src={{rootUrl}}global/js/echarts.min.js></script>
  14. </head>
  15. <body style="overflow:auto">
  16. <div class="wrapHeader"><h1 title="纵横计量支付" class="mainLogo"></h1></div>
  17. <div class="mainContent">
  18. <div class="row-fluid">
  19. <div class="span7"><h2>{{secname}}</h2>
  20. <p><span data-icon="n"></span> <a href="{{rootUrl}}share/section/{{hashcode}}">{{rootUrl}}share/section/{{hashcode}}</a>
  21. </p>
  22. </div>
  23. <div class="span5">
  24. <div class="detail">
  25. <h5>总价:¥{{st.bcontracttotal}}元</h5>
  26. <div class="progress">
  27. <div class="bar bar-success" style="width:{{st.progress}};" data-placement="bottom" data-toggle="tooltip"
  28. data-original-title="累计完成:¥{{st.nprogress}}">{{st.progress}}
  29. </div>
  30. <div class="bar bar-danger" style="width:{{st.otherprogress}};" data-placement="bottom" data-toggle="tooltip"
  31. data-original-title="未完成:¥{{st.notherprogress}}">{{st.otherprogress}}
  32. </div>
  33. </div>
  34. </div>
  35. </div>
  36. </div>
  37. <!--标段信息-->
  38. <ul class="nav nav-tabs">
  39. <li class="active">
  40. <a href="w-project-detail.html">标段信息</a>
  41. </li>
  42. </ul>
  43. <div class="project">
  44. <div class="proSection clearfix">
  45. <!--图表5-->
  46. <div class="fL" style="width:30%">
  47. <div id="chartContainer6" style="height: 300px; width: 100%;">
  48. </div>
  49. </div>
  50. <!--图表5-->
  51. <div class="fL" style="width:70%;height:300px;overflow:hide">
  52. <div id="chartContainer7" style="height: 300px; width: 100%;">
  53. </div>
  54. </div>
  55. </div>
  56. <div class="proSection clearfix">
  57. <table class="table table-striped">
  58. <thead>
  59. <tr>
  60. <th width="15%">标段名</th>
  61. <th width="16%" class="taC">总价/期数</th>
  62. <th width="40%" class="taC">截止上期累计完成/本期完成/未完成</th>
  63. </tr>
  64. <!-- loop stidArray -->
  65. <tr>
  66. <td width="15%"><a href="/share/section/tender/{{stidArray' value.pmid}}/{{hashcode}}" target="_blank">{{stidArray' value.pmname}}</a><br>共 {{stidArray' value.qi}} 期(本期 {{stidArray' value.statusStr}})
  67. </td>
  68. <td width="16%" class="taR">¥<b>{{stidArray' value.totalmoney}}</b><br>
  69. </td>
  70. <td width="40%" class="taR">
  71. <div class="progress">
  72. <div data-original-title="截止本期累计完成:{{stidArray' value.nTotalProgress}}" data-toggle="tooltip"
  73. data-placement="bottom" style="width: {{stidArray' value.displayPercentSnTotalProgress}};" class="bar bar-success">{{stidArray' value.displayPercentSnTotalProgress}}
  74. </div>
  75. <div data-original-title="本期完成:{{stidArray' value.ncurrTotalProgress}}" data-toggle="tooltip" data-placement="bottom"
  76. style="width:{{stidArray' value.displayPercentCurrTotalProgress}};" class="bar">{{stidArray' value.displayPercentCurrTotalProgress}}
  77. </div>
  78. <div data-original-title="未完成:{{stidArray' value.nlessTotalProgress}}" data-toggle="tooltip" data-placement="bottom"
  79. style="width:{{stidArray' value.displayPercentLessTotalProgress}};" class="bar bar-gary">{{stidArray' value.displayPercentLessTotalProgress}}
  80. </div>
  81. </div>
  82. </td>
  83. </tr>
  84. <!-- endloop -->
  85. </table>
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. <script type="text/javascript">
  91. //5 期数组成//
  92. // 基于准备好的dom,初始化echarts图表
  93. var myChart = echarts.init(document.getElementById('chartContainer6'));
  94. var option = {
  95. color: ['#e9af68', '#57b7b6', '#e4575a', '#959eac', '#6699FF',
  96. '#d38b70', '#8fb7cf', '#cd5c5c', '#ffa500', '#40e0d0',
  97. '#1e90ff', '#ff6347', '#7b68ee', '#00fa9a', '#ffd700',
  98. '#5c616b', '#ff6666', '#3cb371', '#b8860b', '#30e0e0'],
  99. title: {
  100. text: '',
  101. x: 'left'
  102. },
  103. tooltip: {
  104. trigger: 'item',
  105. formatter: "{a} <br/>{b}:<br>{c} 元<br>占标段:{d} %"
  106. },
  107. calculable: true,
  108. series: [
  109. {
  110. name: '标段计量分布',
  111. type: 'pie',
  112. radius: '40%',
  113. center: ['50%', 155],
  114. data: [
  115. <!-- loop stidArray -->
  116. {value: {{stidArray' value.contracttotal}}, name: '{{stidArray' value.pmname}}'},
  117. <!-- endloop -->
  118. ]
  119. }
  120. ]
  121. };
  122. // 为echarts对象加载数据
  123. myChart.setOption(option);
  124. //5 期数组成//
  125. //6 标段计量分布//
  126. var myChart2 = echarts.init(document.getElementById('chartContainer7'));
  127. var option = {
  128. color: ['#ff6666', '#3cb371'],
  129. title: {
  130. text: '项目按月进度'
  131. },
  132. tooltip: {
  133. trigger: 'axis',
  134. formatter: "{b} <br/>{a}:{c} %<br/>{a1}:{c1} %"
  135. },
  136. legend: {
  137. data: ['累计完成', '本月完成']
  138. },
  139. dataZoom: {
  140. show: true,
  141. start: 50,
  142. end: 100
  143. },
  144. xAxis: [
  145. {
  146. type: 'category',
  147. boundaryGap: true,
  148. data: [
  149. {{projectDate}}
  150. ]
  151. }
  152. ],
  153. yAxis: [
  154. {
  155. type: 'value',
  156. axisLabel: {
  157. formatter: '{value} %'
  158. },
  159. splitArea: {show: true},
  160. }
  161. ],
  162. series: [
  163. {
  164. name: '累计完成',
  165. type: 'line',
  166. itemStyle: {
  167. normal: {
  168. lineStyle: {
  169. shadowColor: 'rgba(0,0,0,0.4)',
  170. shadowBlur: 5,
  171. shadowOffsetX: 3,
  172. shadowOffsetY: 3
  173. }
  174. }
  175. },
  176. data: [
  177. {{t1}}
  178. ]
  179. },
  180. {
  181. name: '本月完成',
  182. type: 'line',
  183. itemStyle: {
  184. normal: {
  185. lineStyle: {
  186. shadowColor: 'rgba(0,0,0,0.4)',
  187. shadowBlur: 5,
  188. shadowOffsetX: 3,
  189. shadowOffsetY: 3
  190. }
  191. }
  192. },
  193. data: [
  194. {{t2}}
  195. ]
  196. }
  197. ]
  198. };
  199. // 为echarts对象加载数据
  200. myChart2.setOption(option);
  201. //6 标段计量分布//
  202. </script>
  203. </body>