timeoutOrgComplete.zml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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: '<#if ZmrOrgDao.getOrgRootId(request) == sessionUser.getSelectedOrgId()>组织超时占比(超时总单量${orgTimeoutSumNum})<#else>组织超时/未超时占比(总接单量${orgOrderNum})</#if>'},
  11. tooltip: {pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'},
  12. <#if ZmrOrgDao.getOrgRootId(request) != sessionUser.getSelectedOrgId()>
  13.   colors:['#4dd3b9','#fdd67f','#ffaca8','#64bcec'],
  14. </#if>
  15. plotOptions:
  16. {
  17. pie:
  18. {
  19. allowPointSelect: true,
  20. cursor: 'pointer',
  21. dataLabels:
  22. {
  23. enabled: true,
  24. format: '<b>{point.name}</b>: {point.percentage:.1f} %',
  25. style: { color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black'}
  26. }
  27. }
  28. },
  29. series:
  30. [{
  31. name: '百分比',
  32. colorByPoint: true,
  33. data:[
  34. <#for key : statMap.keySet()>
  35. {name: '${key}',y: ${statMap.get(key)}},
  36. </#for>
  37. ]
  38. }]
  39. });
  40. });
  41. </script>
  42. ${zhiqim_manager_breadcrumb("组织定稿超时统计")}
  43. ${zhiqim_manager_content()}
  44. <#-- 导航栏 -->
  45. <div class="z-tabnav-main z-blue z-mg-b20">
  46. <nav>
  47. <ul>
  48. <#if ZmrPathRule.check(request, "/timeoutMerDispatch.htm")><li onclick="Z.L.href('timeoutMerDispatch.htm');">分拣超时</li></#if>
  49. <#if ZmrPathRule.check(request, "/timeoutDispatchOrder.htm")><li onclick="Z.L.href('timeoutDispatchOrder.htm');">派单超时</li></#if>
  50. <#if ZmrPathRule.check(request, "/timeoutDraftOrder.htm")><li onclick="Z.L.href('timeoutDraftOrder.htm');">初稿超时</li></#if>
  51. <#if ZmrPathRule.check(request, "/timeoutDesignerComplete.htm")><li onclick="Z.Location.href('timeoutDesignerComplete.htm');">设计师定稿超时</li></#if>
  52. <li class="z-active">组织定稿超时统计</li>
  53. </ul>
  54. </nav>
  55. </div>
  56. <#-- 查询条件 -->
  57. <#-- 查询条件 -->
  58. ${zhiqim_manager_title("查询条件")}
  59. <form name="theForm" action="/timeoutOrgComplete.htm">
  60. <table class="z-table z-bordered z-pd6">
  61. <tr class="z-h40 z-bg-white">
  62. <td width="350">录单时间:
  63. <input name="startDate" onfocus="Z.date(this);" readonly class="z-input ${zmr_color_class} z-w100" value="${startDate}"> -
  64. <input name="endDate" onfocus="Z.date(this);" readonly class="z-input ${zmr_color_class} z-w100 z-mg-r30 " value="${endDate}">
  65. </td>
  66. <td width="270">产品类型:<select name="typeId" class="z-select z-w180" data-role="z-select" data-class="${zmr_color_class}">
  67. <option value="">全部</option>
  68. <#for item : DesignTypeDao.listAll()>
  69. <option value="${item.getTypeId()}" <#if typeId == item.getTypeId()>selected</#if>>${item.getTypeName()}</option>
  70. </#for>
  71. </select>
  72. </td>
  73. <td width="*"><button class="z-large z-w120 z-button ${zmr_color_class}">查询</button></td>
  74. </tr>
  75. </table>
  76. </form>
  77. <br>
  78. <#-- 分页列表-->
  79. <table class="z-table z-bordered z-pd6 z-bg-white">
  80. <tr>
  81. <td width="50%"><div id="container" class="z-bg-white" style="min-width:400px;height:600px"></div></td>
  82. <td width="*">
  83. <table class="z-table z-bordered z-pd10 z-bg-white z-text-left" style="text-align:center">
  84. <#if ZmrOrgDao.getOrgRootId(request) == sessionUser.getSelectedOrgId()>
  85. <tr class="z-bold">
  86. <td width="19%">组织名称</td>
  87. <td width="18%">组织总接单</td>
  88. <td width="30%">组织总超时(设计超时数)</td>
  89. <td width="33%">超时率(该组织超时/该组织总接单数)</td>
  90. </tr>
  91. <#for item : statList>
  92. <tr>
  93. <td>${String.valueOf(item.get("orgName"))}</td>
  94. <td>${String.valueOf(item.get("orgOrderNum"))}</td>
  95. <td>${String.valueOf(item.get("orgTimeoutNum"))}</td>
  96. <td>${CalculationUtil.calculatePercent(Integer.valueOf(String.valueOf(item.get("orgTimeoutNum"))),Integer.valueOf(String.valueOf(item.get("orgOrderNum"))))}</td>
  97. </tr>
  98. </#for>
  99. <#else>
  100. <tr class="z-bold">
  101. <td width="20%">组织名称</td>
  102. <td width="18%">总订单数</td>
  103. <td width="16%">未超时</td>
  104. <td width="16%">已超时</td>
  105. <td width="30%">超时比例(组织超时/总单量)</td>
  106. </tr>
  107. <#for item : statList>
  108. <tr>
  109. <td>${String.valueOf(item.get("orgName"))}</td>
  110. <td>${String.valueOf(item.get("orgOrderNum"))}</td>
  111. <td>${Integer.valueOf(String.valueOf(item.get("orgOrderNum"))) - Integer.valueOf(String.valueOf(item.get("orgTimeoutNum")))}</td>
  112. <td>${String.valueOf(item.get("orgTimeoutNum"))}</td>
  113. <td>${String.valueOf(item.get("orgTimeoutProportion"))}%</td>
  114. </tr>
  115. </#for>
  116. </#if>
  117. </table>
  118. </td>
  119. </tr>
  120. </table>
  121. ${zhiqim_manager_content_end()}