completeDesignRateStat.zml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <script>
  2. Z.onload(function()
  3. {
  4. doQueryDesigner('${designer}');
  5. });
  6. var designer;
  7. function doQueryDesigner(designers)
  8. {
  9. designer = designers;
  10. doQueryDesignNotCompleteOrderInfo(1);
  11. }
  12. function doQueryDesignNotCompleteOrderInfo(page)
  13. {
  14. var ajax = new Z.Ajax();
  15. ajax.setClassName("StatPresenter");
  16. ajax.setMethodName("doQueryDesignNotCompleteOrderInfo");
  17. ajax.addParam("page",page);
  18. ajax.addParam("startDate", Z("#startDate").val());
  19. ajax.addParam("endDate", Z("#endDate").val());
  20. ajax.addParam("designer", designer);
  21. ajax.addParam("orgId", Z("#orgId").val());
  22. ajax.setCallback("result");
  23. ajax.setLoading("result");
  24. ajax.execute();
  25. }
  26. function doProgressNote(id)
  27. {//进度备注
  28. var designId =id
  29. if (Z.V.isEmpty(designId))
  30. {
  31. designId = Z.FM.getChecked("designId");
  32. if (Z.V.isEmpty(designId))
  33. {
  34. Z.alert("请选择一条订单");
  35. return;
  36. }
  37. }
  38. var dialog = new Z.Dialog();
  39. dialog.title = "订单["+designId+"]进度备注";
  40. dialog.url = "/progressNote.htm?designId="+designId;
  41. dialog.width = 1000;
  42. dialog.height = 630;
  43. dialog.execute();
  44. }
  45. </script>
  46. ${zhiqim_manager_breadcrumb("设计师定稿率统计")}
  47. ${zhiqim_manager_content()}
  48. <#-- 导航栏 -->
  49. <div class="z-tabnav-main z-blue z-mg-b20">
  50. <nav>
  51. <ul>
  52. <li onclick="Z.Location.href('draftStatusOrderStat.htm');">未完成订单统计</li>
  53. <li onclick="Z.Location.href('draftOrderConvert.htm');">初稿统计</li>
  54. <#if ZmrPathRule.check(request, "/designerPerformance.htm")><li onclick="Z.Location.href('designerPerformance.htm');">设计师绩效统计</li></#if>
  55. <li class="z-active">设计师定稿率统计</li>
  56. </ul>
  57. </nav>
  58. </div>
  59. <table class="z-table z-bordered z-pd6">
  60. <tr>
  61. <td colspan="2">
  62. <form name="theForm" action="completeDesignRateStat.htm">
  63. <table class="z-table">
  64. <tr class="z-h40" bgcolor="${zmr_thead_bgcolor}">
  65. <td class="z-bold z-px14 zi-pd-l5">&nbsp;统计查询条件:</td>
  66. </tr>
  67. </table>
  68. <table class="z-table z-bordered z-pd6">
  69. <tr class="z-h40 z-bg-white">
  70. <td>接单日期:
  71. <input name="startDate" id="startDate" onfocus="Z.date(this);" readonly class="z-input ${zmr_color_class} z-w120" value="${startDate}"> -
  72. <input name="endDate" id="endDate" onfocus="Z.date(this);" readonly class="z-input ${zmr_color_class} z-w120"value="${endDate}">
  73. <#if isOrgRoot>&emsp;&emsp;设计师:<input name="designer" class="${zmr_color_class} z-input z-w160 z-mg-l4" value="${designer}" maxlength="64" placeholder="设计师"></#if>
  74. &emsp;&emsp;
  75. 组织:
  76. <select name="orgId" id="orgId" class="z-select z-w180" data-role="z-select" data-class="${zmr_color_class}">
  77. <option value="">全部</option>
  78. <#for item : orgList>
  79. <option value="${item.getOrgId()}" <#if item.getOrgId() == orgId>selected</#if>>${item.getOrgName()}</option>
  80. </#for>
  81. </select>
  82. &emsp;&emsp;
  83. <button class="z-mg-l10 z-button ${zmr_color_class}" onclick="this.form.submit()">查询</button>
  84. </td>
  85. </table>
  86. </form>
  87. </td>
  88. </tr>
  89. <tr class="z-h40">
  90. <td width="420" valign="top">
  91. <table id="statTable" class="z-table z-bordered z-pd6 z-bg-white z-text-center">
  92. <tr class="z-h40">
  93. <td>设计师</td>
  94. <td>接单量</td>
  95. <td>定稿量</td>
  96. <td>定稿率</td>
  97. </tr>
  98. <#for item : modelList>
  99. <tr class="z-h40" bgcolor="${zhiqim_manager_tr_bg(item_index)}" onclick="doQueryDesigner('${item.getDesigner()}');">
  100. <td>${item.getDesigner()}</td>
  101. <td>${item.getOrderNum()}</td>
  102. <td>${item.getOrderEndNum()}</td>
  103. <td>${item.getEndProportion()}%</td>
  104. </#for>
  105. <#if modelList.size() == 0>
  106. ${zhiqim_manager_no_record(4, "暂时没有设计师定稿率统计信息")}
  107. </#if>
  108. </table>
  109. </td>
  110. <td width="*" id="result" valign="top" id="result" ></td>
  111. </tr>
  112. </table>
  113. ${zhiqim_manager_content_end()}