designRefundOrgTotalStatistics.zml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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. var orgAllOrder = '${refundOrgMergeCount}';
  8. Highcharts.chart('container',
  9. {
  10. chart: {plotBackgroundColor: null,plotBorderWidth: null,plotShadow: false,type: 'pie'},
  11. title: {text: '组织退款总统计(总退款量:'+orgAllOrder+')'},
  12. tooltip: {pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'},
  13. plotOptions:
  14. {
  15. pie:
  16. {
  17. allowPointSelect: true,
  18. cursor: 'pointer',
  19. dataLabels:
  20. {
  21. enabled: true,
  22. format: '<b>{point.name}</b>: {point.percentage:.1f} %',
  23. style: { color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black'}
  24. }
  25. }
  26. },
  27. series:
  28. [{
  29. name: '组织退款占比',
  30. colorByPoint: true,
  31. data:[
  32. <#for item : pieMap.keySet()>
  33. {name: '${item}',y: ${pieMap.get(item)}},
  34. </#for>
  35. ]
  36. }]
  37. });
  38. });
  39. </script>
  40. ${zhiqim_manager_breadcrumb("组织退款统计")}
  41. ${zhiqim_manager_content()}
  42. <#-- 导航栏 -->
  43. <div class="z-tabnav-main z-blue z-mg-b20">
  44. <nav>
  45. <ul>
  46. <#if ZmrPathRule.check(request, "/designOrderRefundRateStat.htm")><li onclick="Z.Location.href('designOrderRefundRateStat.htm')">退款率统计</li></#if>
  47. <#if ZmrPathRule.check(request, "/designOrderRefundStat.htm")><li onclick="Z.L.href('designOrderRefundStat.htm')">订单退款统计</li></#if>
  48. <li class="z-active">组织退款统计</li>
  49. <#if ZmrPathRule.check(request, "/designRefundPrdTypeStatistics.htm")><li onclick="Z.L.href('designRefundPrdTypeStatistics.htm')">产品退款统计</li></#if>
  50. </ul>
  51. </nav>
  52. </div>
  53. <#-- 查询条件 -->
  54. ${zhiqim_manager_title("查询条件")}
  55. <form name="theForm" action="/designRefundOrgTotalStatistics.htm">
  56. <table class="z-table z-bordered z-pd6">
  57. <tr class="z-h40 z-bg-white">
  58. <td>查询日期:
  59. <select name="year" class="z-select" data-role="z-select" data-class="z-blue">
  60. <#for yyyy : 2018..DateTimes.getCurrentYear()>
  61. <option value="${yyyy}" <#if year==yyyy>selected</#if>>${yyyy}</option>
  62. </#for>
  63. </select>
  64. <select name="month" class="z-select" data-role="z-select" data-class="z-blue">
  65. <#for mm : 1..12>
  66. <option value="${mm}" <#if month==mm>selected</#if>>${mm}</option>
  67. </#for>
  68. </select>
  69. <button type="submit" class="z-mg-l10 z-button ${zmr_color_class}">查询</button>
  70. </td>
  71. </tr>
  72. </table>
  73. </form>
  74. <br>
  75. <#-- 分页列表-->
  76. <table class="z-table z-bordered z-pd6 z-bg-white">
  77. <tr>
  78. <td width="50%"><div id="container" class="z-bg-white" style="min-width:400px;height:600px"></div></td>
  79. <td width="*">
  80. <table class="z-table z-bordered-line z-pd10 z-bg-white z-text-left" style="text-align:center">
  81. <tr class="z-bold">
  82. <td width="20%">组织名称</td>
  83. <td width="10%">总接单量</td>
  84. <td width="10%">退款单量</td>
  85. <td width="10%">退款率</td>
  86. <td width="15%">退款金额</td>
  87. <td width="15%">总订单金额</td>
  88. <td width="20%">组织金额退款比例</td>
  89. </tr>
  90. <#for item : refundOrgList>
  91. <tr>
  92. <td>${item.getOrgName()}</td>
  93. <td>${item.getOrgOrderCount()}</td>
  94. <td>${item.getOrgRefundCount()}</td>
  95. <td>${CalculationUtil.designerRefundCalculate(item.getOrgOrderCount(),item.getOrgRefundCount())}</td>
  96. <td>${Amounts.toYuan(item.getOrgRefundMoneySum())}</td>
  97. <td>${Amounts.toYuan(item.getOrgOrderMoneySum())}</td>
  98. <td>${CalculationUtil.designerRefundCalculate(item.getOrgOrderMoneySum(),item.getOrgRefundMoneySum())}</td>
  99. </tr>
  100. </#for>
  101. <tr class="z-bold">
  102. <td>总计</td>
  103. <td>${orgOrderMergeCount}</td>
  104. <td>${refundOrgMergeCount}</td>
  105. <td>${CalculationUtil.designerRefundCalculate(orgOrderMergeCount,refundOrgMergeCount)}</td>
  106. <td>${Amounts.toYuan(refundOrgMoneySum)}</td>
  107. <td>${Amounts.toYuan(orgOrderMoneySum)}</td>
  108. <td>${CalculationUtil.designerRefundCalculate(orgOrderMoneySum / 100,refundOrgMoneySum / 100)}</td>
  109. </tr>
  110. </table>
  111. </td>
  112. </tr>
  113. </table>
  114. ${zhiqim_manager_content_end()}