timeoutDraftOrder.zml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <script>
  2. Z.onload(function()
  3. {
  4. doQueryDesigner('${designer}');
  5. });
  6. var designer;
  7. function doQueryDesigner(designers)
  8. {
  9. designer = designers;
  10. doQueryTimeoutDraftOrder(1);
  11. }
  12. function doQueryTimeoutDraftOrder(page)
  13. {
  14. var ajax = new Z.Ajax();
  15. ajax.setClassName("StatPresenter");
  16. ajax.setMethodName("doQueryTimeoutDraftOrder");
  17. ajax.addParam("page",page);
  18. ajax.addParam("beginDate", Z("#beginDate").val());
  19. ajax.addParam("endDate", Z("#endDate").val());
  20. ajax.addParam("designer", designer);
  21. ajax.setCallback("result");
  22. ajax.setLoading("result");
  23. ajax.execute();
  24. }
  25. function doProgressNote(id)
  26. {//进度备注
  27. var designId =id
  28. if (Z.V.isEmpty(designId))
  29. {
  30. designId = Z.FM.getChecked("designId");
  31. if (Z.V.isEmpty(designId))
  32. {
  33. Z.alert("请选择一条订单");
  34. return;
  35. }
  36. }
  37. var dialog = new Z.Dialog();
  38. dialog.title = "订单["+designId+"]进度备注";
  39. dialog.url = "/progressNote.htm?designId="+designId;
  40. dialog.width = 1000;
  41. dialog.height = 630;
  42. dialog.execute();
  43. }
  44. </script>
  45. ${zhiqim_manager_breadcrumb("初稿超时")}
  46. ${zhiqim_manager_content()}
  47. <#-- 导航栏 -->
  48. <div class="z-tabnav-main z-blue z-mg-b20">
  49. <nav>
  50. <ul>
  51. <#if ZmrPathRule.check(request, "/timeoutMerDispatch.htm")><li onclick="Z.L.href('timeoutMerDispatch.htm');">分拣超时</li></#if>
  52. <#if ZmrPathRule.check(request, "/timeoutDispatchOrder.htm")><li onclick="Z.L.href('timeoutDispatchOrder.htm');">派单超时</li></#if>
  53. <li class="z-active">初稿超时</li>
  54. <#if ZmrPathRule.check(request, "/timeoutDesignerComplete.htm")><li onclick="Z.Location.href('timeoutDesignerComplete.htm');">定稿超时</li></#if>
  55. <#if ZmrPathRule.check(request, "/timeoutOrgComplete.htm")><li onclick="Z.Location.href('timeoutOrgComplete.htm');">组织定稿超时统计</li></#if>
  56. </ul>
  57. </nav>
  58. </div>
  59. <table class="z-table z-bordered z-pd6">
  60. <tr>
  61. <td colspan="2">
  62. <#-- 查询条件 -->
  63. ${zhiqim_manager_title("查询条件&emsp;<span style='color:red;'>此列表展示初稿超时订单</span>")}
  64. <form name="theForm" action="timeoutDraftOrder.htm" id="timeoutDraftOrder">
  65. <table class="z-table z-bordered z-pd6 z-bg-white">
  66. <tr class="z-h40">
  67. <td width="345">
  68. 接单日期:<input name="beginDate" id="beginDate" onfocus="Z.date(this);" readonly class="z-input ${zmr_color_class} z-w120" value="<#if Validates.isNotEmpty(beginDate)>${beginDate}<#else>${DateTimes.getDateString()}</#if>"> -
  69. <input name="endDate" id="endDate" onfocus="Z.date(this);" readonly class="z-input ${zmr_color_class} z-w120"value="<#if Validates.isNotEmpty(endDate)>${endDate}<#else>${DateTimes.getDateString()}</#if>">
  70. </td>
  71. <#if isOrgRoot> <td width="250">
  72. 设计师:<input name="designer" class="${zmr_color_class} z-input z-w160 z-mg-l4" value="${designer}" maxlength="64" placeholder="设计师">
  73. </td></#if>
  74. <td width="*"><button class="z-button z-large z-w100 ${zmr_color_class}" >查询</button>&nbsp;&nbsp;&nbsp;&nbsp;<button class="z-button z-large" type="button" onclick="Z.Forms.clearForm(this.form)">清空</button></td>
  75. </tr>
  76. </table>
  77. </form>
  78. </td>
  79. </tr>
  80. <tr class="z-h40">
  81. <td width="330" valign="top">
  82. <table class="z-table z-bordered z-pd6 z-bg-white z-text-center">
  83. <tr class="z-h40">
  84. <td>设计师</td>
  85. <td>接单量</td>
  86. <td>超时量</td>
  87. <td>超时率</td>
  88. </tr>
  89. <#for item : pageResult.list()>
  90. <tr class="z-h40" bgcolor="${zhiqim_manager_tr_bg(item_index)}" onclick="doQueryDesigner('${item.getDesigner()}');">
  91. <td>${item.getDesigner()}</td>
  92. <td>${item.getOrdCount()}</td>
  93. <td>${item.getTimeoutOrdCount()}</td>
  94. <td>${CalculationUtil.calculatePercent(item.getTimeoutOrdCount(),item.getOrdCount())}</td>
  95. </tr>
  96. </#for>
  97. <#if pageResult.list().size() == 0>
  98. ${zhiqim_manager_no_record(4, "暂时没有初稿超时统计信息")}
  99. <#else>
  100. <tr class="z-h40" bgcolor="${zmr_thead_bgcolor}">
  101. <td>总计</td>
  102. <td>${ordSum}</td>
  103. <td>${timeoutOrdSum}</td>
  104. <td>${CalculationUtil.calculatePercent(timeoutOrdSum,ordSum)}</td>
  105. </tr>
  106. </#if>
  107. </table>
  108. ${zhiqim_manager_paging(pageResult, "/timeoutDraftOrder.htm")}
  109. </td>
  110. <td width="*" id="result" valign="top" id="result" ></td>
  111. </tr>
  112. </table>
  113. ${zhiqim_manager_content_end()}