orderAnalysis.zml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. ${Styles.htmlOverflowHidden()}
  2. ${Scripts.src("/zinc/chart/highcharts.js")}
  3. ${Scripts.src("/zinc/chart/exporting.js")}
  4. ${Scripts.src("/zinc/chart/data.js")}
  5. ${Scripts.src("/zinc/chart/highcharts-zh_CN.js")}
  6. <script>
  7. Z.onload(function()
  8. {
  9. var chart = new Highcharts.Chart('container',
  10. {
  11. chart: {
  12. type: 'spline'
  13. },
  14. title: {
  15. text: '订单分析'
  16. },
  17. xAxis: {
  18. categories: [
  19. <#for date : dateList>
  20. <#if date_index==(dateList.size()-1)>
  21. '${date}:00'
  22. <#else>
  23. '${date}:00',
  24. </#if>
  25. </#for>
  26. ]
  27. },
  28. yAxis: {
  29. title: {
  30. text: '单量'
  31. },
  32. labels: {
  33. formatter: function () {
  34. return this.value + '';
  35. }
  36. }
  37. },
  38. tooltip: {
  39. crosshairs: true,
  40. shared: true
  41. },
  42. legend: {
  43. layout: 'vertical',
  44. align: 'right',
  45. verticalAlign: 'middle'
  46. },
  47. plotOptions: {
  48. spline: {
  49. marker: {
  50. radius: 4,
  51. lineColor: '#eaeaea',
  52. lineWidth: 1
  53. }
  54. }
  55. },
  56. series:
  57. [
  58. {
  59. name: '订单数量',
  60. marker: {
  61. symbol: 'diamond'
  62. },
  63. data: [
  64. <#for date : dateList>
  65. <#if date_index==(dateList.size()-1)>
  66. ${orderCountMap.get(date)}
  67. <#else>
  68. ${orderCountMap.get(date)},
  69. </#if>
  70. </#for>
  71. ]
  72. },
  73. {
  74. name: '初稿数量',
  75. marker: {
  76. symbol: 'diamond'
  77. },
  78. data: [
  79. <#for date : dateList>
  80. <#if date_index==(dateList.size()-1)>
  81. ${draftCountMap.get(date)}
  82. <#else>
  83. ${draftCountMap.get(date)},
  84. </#if>
  85. </#for>
  86. ]
  87. },
  88. {
  89. name: '定稿数量',
  90. marker: {
  91. symbol: 'diamond'
  92. },
  93. data: [
  94. <#for date : dateList>
  95. <#if date_index==(dateList.size()-1)>
  96. ${endCountMap.get(date)}
  97. <#else>
  98. ${endCountMap.get(date)},
  99. </#if>
  100. </#for>
  101. ]
  102. },
  103. ]
  104. });
  105. });
  106. </script>
  107. ${zhiqim_manager_breadcrumb("订单分析")}
  108. ${zhiqim_manager_content()}
  109. <#-- 左侧功能 -->
  110. <#-- 查询条件 -->
  111. ${zhiqim_manager_title("查询条件")}
  112. <form action="orderAnalysis.htm" method="post">
  113. <table class="z-table z-bordered z-pd6 z-bg-white">
  114. <tr class="z-h40">
  115. <td width="50%">
  116. <select name="timeType" class="z-select z-mg-r20" data-role="z-select" data-class="${zmr_color_class}">
  117. <option value="3" <#if timeType == 3>selected</#if>>近三天</option>
  118. <option value="7" <#if timeType == 7>selected</#if>>近一周</option>
  119. <option value="30" <#if timeType == 30>selected</#if>>近一月</option>
  120. </select>
  121. <button class="z-button z-large z-w120 z-mg-r15 ${zmr_color_class}">查询</button>
  122. </td>
  123. </tr>
  124. </table>
  125. </form>
  126. <div id="container" class="z-bg-white" style="margin-top:20px; min-width:400px;min-height:550px"></div>
  127. ${zhiqim_manager_content_end()}