dispatchWaitStat.zml 3.6 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. var sumCount = '${sumCount}';
  8. var chart = Highcharts.chart('container',
  9. {
  10. title: {text: '组织待派订单统计分析(总单量:'+sumCount+')'},
  11. tooltip: {headerFormat: '{series.name}<br>',pointFormat: '{point.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. type: 'pie',
  29. name: '组织占比',
  30. data:
  31. [
  32. <#for item : map.values()>
  33. ['${item.getOrgName()}', ${item.getOrderNum()}],
  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, "/waitDisOrder.htm")><li onclick="Z.L.href('waitDisOrder.htm');">待派订单</li></#if>
  47. <#if ZmrPathRule.check(request, "/dispatchLog.htm")><li onclick="Z.L.href('dispatchLog.htm');">派单日志</li></#if>
  48. <#if ZmrPathRule.check(request, "/waitDisMerOrder.htm")><li onclick="Z.L.href('waitDisMerOrder.htm');">待分拣订单</li></#if>
  49. <#if ZmrPathRule.check(request, "/merDispatchLog.htm")><li onclick="Z.L.href('merDispatchLog.htm');">商户分拣日志</li></#if>
  50. <#if ZmrPathRule.check(request, "/waitDisDesignerGroupOrder.htm")><li onclick="Z.L.href('waitDisDesignerGroupOrder.htm');">新待派单订单</li></#if>
  51. <#if ZmrPathRule.check(request, "/designerGroupDispatchLog.htm")><li onclick="Z.L.href('designerGroupDispatchLog.htm');">新派单日志</li></#if>
  52. <#if ZmrPathRule.check(request, "/dispatchStat.htm")><li onclick="Z.L.href('dispatchStat.htm');">分拣统计</li></#if>
  53. <li class="z-active">待派统计</li>
  54. </ul>
  55. </nav>
  56. </div>
  57. <#-- 分页列表-->
  58. <table class="z-table z-bordered z-pd6 z-bg-white">
  59. <tr>
  60. <td width="60%"><div id="container" class="z-bg-white" style="min-width:400px;height:600px"></div></td>
  61. <td width="*">
  62. <table class="z-table z-bordered-line z-pd10 z-bg-white z-text-left z-mg-t30 ">
  63. <tr class="z-bg-gray">
  64. <td width="150">组织名称</td>
  65. <td width="80">单量</td>
  66. <td width="90">百分比</td>
  67. <td width="70">名片类</td>
  68. <td width="65">名片</td>
  69. <td width="70">彩页类</td>
  70. <td width="65">彩页</td>
  71. <td width="*">其他</td>
  72. </tr>
  73. <#for item : map.values()>
  74. <tr>
  75. <td>${item.getOrgName()}</td>
  76. <td>${item.getOrderNum()}</td>
  77. <td>${Maths.division(item.getOrderNum()*100, sumCount, 1)}%</td>
  78. <td>${item.getCardNum()}</td>
  79. <td>${item.getOnlyCardNum()}</td>
  80. <td>${item.getColorPageNum()}</td>
  81. <td>${item.getOnlyColorPageNum()}</td>
  82. <td>${item.getOtherNum()}</td>
  83. </tr>
  84. </#for>
  85. <tr class="z-bold">
  86. <td>总待派订单</td>
  87. <td colspan="5">${sumCount}</td>
  88. </tr>
  89. </table>
  90. </td>
  91. </tr>
  92. </table>
  93. ${zhiqim_manager_content_end()}