designOrderRefundStat.zml 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. ${Scripts.src("/zinc/chart/highcharts.js")}
  2. ${Scripts.src("/zinc/chart/exporting.js")}
  3. ${Scripts.src("/zinc/chart/highcharts-zh_CN.js")}
  4. <script>
  5. Z.onload(function()
  6. {
  7. Highcharts.chart('container',
  8. {
  9. chart: {plotBackgroundColor: null,plotBorderWidth: null,plotShadow: false,type: 'pie'},
  10. title: {text: '订单退款总统计(总单量:'+${allCount}+')'},
  11. tooltip: {pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'},
  12. plotOptions:
  13. {
  14. pie:
  15. {
  16. allowPointSelect: true,
  17. cursor: 'pointer',
  18. dataLabels:
  19. {
  20. enabled: true,
  21. format: '<b>{point.name}</b>: {point.percentage:.1f} %',
  22. style: { color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black'}
  23. }
  24. }
  25. },
  26. series:
  27. [{
  28. name: '百分比',
  29. colorByPoint: true,
  30. data:[
  31. <#for key : map.keySet()>
  32. {name: '${key}',y: ${map.get(key)}},
  33. </#for>
  34. ]
  35. }]
  36. });
  37. });
  38. </script>
  39. ${zhiqim_manager_breadcrumb("订单退款统计")}
  40. ${zhiqim_manager_content()}
  41. <#-- 导航栏 -->
  42. <div class="z-tabnav-main z-blue z-mg-b20">
  43. <nav>
  44. <ul>
  45. <#if ZmrPathRule.check(request, "/designOrderRefundRateStat.htm")><li onclick="Z.Location.href('designOrderRefundRateStat.htm')">退款率统计</li></#if>
  46. <li class="z-active">订单退款统计</li>
  47. <#if ZmrPathRule.check(request, "/designRefundOrgTotalStatistics.htm")><li onclick="Z.L.href('designRefundOrgTotalStatistics.htm')">组织退款统计</li></#if>
  48. <#if ZmrPathRule.check(request, "/designRefundPrdTypeStatistics.htm")><li onclick="Z.L.href('designRefundPrdTypeStatistics.htm')">产品退款统计</li></#if>
  49. </ul>
  50. </nav>
  51. </div>
  52. <#-- 查询条件 -->
  53. ${zhiqim_manager_title("查询条件")}
  54. <form name="theForm" action="/designOrderRefundStat.htm">
  55. <table class="z-table z-bordered z-pd6">
  56. <tr class="z-h40 z-bg-white">
  57. <td>录单时间:
  58. <input name="beginDate" onfocus="Z.date(this);" readonly class="z-input ${zmr_color_class} z-w100" value="${beginDate}"> -
  59. <input name="endDate" onfocus="Z.date(this);" readonly class="z-input ${zmr_color_class} z-w100 z-mg-r30 " value="${endDate}">
  60. <button class="z-large z-w120 z-button ${zmr_color_class}">查询</button>
  61. </td>
  62. </tr>
  63. </table>
  64. </form>
  65. <br>
  66. <#-- 分页列表-->
  67. <table class="z-table z-bordered z-pd6 z-bg-white">
  68. <tr>
  69. <td width="60%"><div id="container" class="z-bg-white" style="min-width:400px;height:600px"></div></td>
  70. <td width="*">
  71. <table class="z-table z-bordered-line z-pd10 z-bg-white z-text-left">
  72. <tr class="z-bg-gray">
  73. <td width="200">订单类型</td>
  74. <td width="150">单量</td>
  75. <td width="*">百分比</td>
  76. </tr>
  77. <#for key : map.keySet()>
  78. <tr>
  79. <td>${key}</td>
  80. <td>${map.get(key)}</td>
  81. <td><#if allCount gt 0>${Maths.division(map.get(key)*100, allCount, 1)}%<#else>0.0%</#if></td>
  82. </tr>
  83. </#for>
  84. <tr class="z-bold">
  85. <td>总单量</td>
  86. <td colspan="2">${allCount}</td>
  87. </tr>
  88. </table>
  89. </td>
  90. </tr>
  91. </table>
  92. ${zhiqim_manager_content_end()}