qcReasonStat.zml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. ${Styles.htmlOverflowHidden()}
  2. ${Scripts.src("/zinc/chart/highcharts.js")}
  3. ${Scripts.src("/zinc/chart/exporting.js")}
  4. ${Scripts.src("/zinc/chart/highcharts-zh_CN.js")}
  5. <script>
  6. Z.onload(function()
  7. {
  8. var chart = Highcharts.chart('container',
  9. {
  10. plotBackgroundColor: null,
  11. plotBorderWidth: null,
  12. plotShadow: false,
  13. type: 'pie',
  14. title: {text: '质检违规原因分析'},
  15. tooltip: {headerFormat: '{series.name}<br>',pointFormat: '{point.name}: <b>{point.percentage:.1f}%</b>'},
  16. plotOptions:
  17. {
  18. pie:
  19. {
  20. allowPointSelect: true, // 可以被选择
  21. cursor: 'pointer', // 鼠标样式
  22. dataLabels:
  23. {
  24. enabled: true,
  25. useHTML: true,
  26. format: '<span style=" white-space:normal;">{point.name}</span>'
  27. + '<span style="display:block;">订单数量:{point.y}</span>'
  28. + '<span style="display:block;">占比:{point.percentage:.1f} % </span>',
  29. }
  30. }
  31. },
  32. series:
  33. [{
  34. type: 'pie',
  35. name: '违规原因占比',
  36. data:
  37. [
  38. <#for item : map.entrySet()>
  39. ['${item.getKey()}', ${item.getValue()}],
  40. </#for>
  41. ]
  42. }]
  43. });
  44. });
  45. </script>
  46. ${zhiqim_manager_breadcrumb("质检原因统计")}
  47. ${zhiqim_manager_content()}
  48. <#-- 导航 -->
  49. <div data-role="z-tabnav" class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
  50. <nav>
  51. <ul>
  52. <li class="z-active">质检原因统计</li>
  53. <#if ZmrPathRule.check(request, "/qcDesignerStat.htm")><li onclick="Z.L.href('/qcDesignerStat.htm');">设计师质检统计</li></#if>
  54. <#if ZmrPathRule.check(request, "/qcDisposeStat.htm")><li onclick="Z.L.href('/qcDisposeStat.htm');">质检处理统计</li></#if>
  55. </ul>
  56. <div class="z-float-left z-mg10 z-lh30">
  57. <form name="theForm" action="/qcReasonStat.htm" method="post">
  58. &nbsp;质检日期:
  59. <input name="beginDate" class="z-input z-w100 ${zmr_color_class}" readonly="true" onfocus="Z.date(this);" value="${beginDate}">&nbsp;-
  60. <input name="endDate" class="z-input z-w100 ${zmr_color_class}" readonly="true" onfocus="Z.date(this);" value="${endDate}">
  61. <button class="z-button z-w80 z-blue z-mg-l10"><i class="z-font z-query"></i>查询</button>
  62. </form>
  63. </div>
  64. </nav>
  65. </div>
  66. <table class="z-table z-bordered z-pd6 z-bg-white">
  67. <tr>
  68. <td width="60%"><div id="container" class="z-bg-white" style="min-width:400px;height:600px"></div></td>
  69. <td width="*">
  70. <table class="z-table z-bordered-line z-h40-tr z-pd5 z-bg-white z-text-center">
  71. <tr>
  72. <td width="50%">违规原因</td>
  73. <td width="50%">违规单数</td>
  74. </tr>
  75. <#for item : map.entrySet()>
  76. <tr>
  77. <td>${item.getKey()}</td>
  78. <td>${item.getValue()}</td>
  79. </tr>
  80. </#for>
  81. ${zhiqim_manager_tr_no_record(pageResult, 20, "没有质检订单")}
  82. </table>
  83. </td>
  84. </tr>
  85. </table>
  86. ${zhiqim_manager_content_end()}