timeoutDispatchOrder.zml 4.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. ${zhiqim_manager_breadcrumb("派单超时")}
  2. ${zhiqim_manager_content()}
  3. <#-- 导航栏 -->
  4. <div class="z-tabnav-main z-blue z-mg-b20">
  5. <nav>
  6. <ul>
  7. <#if ZmrPathRule.check(request, "/timeoutMerDispatch.htm")><li onclick="Z.L.href('timeoutMerDispatch.htm');">分拣超时</li></#if>
  8. <li class="z-active">派单超时</li>
  9. <#if ZmrPathRule.check(request, "/timeoutDraftOrder.htm")><li onclick="Z.L.href('timeoutDraftOrder.htm');">初稿超时</li></#if>
  10. <#if ZmrPathRule.check(request, "/timeoutDesignerComplete.htm")><li onclick="Z.Location.href('timeoutDesignerComplete.htm');">设计师定稿超时</li></#if>
  11. <#if ZmrPathRule.check(request, "/timeoutOrgComplete.htm")><li onclick="Z.Location.href('timeoutOrgComplete.htm');">组织定稿超时统计</li></#if>
  12. </ul>
  13. </nav>
  14. </div>
  15. <#-- 查询条件 -->
  16. ${zhiqim_manager_title("查询条件&emsp;<span style='color:red;'>此列表展示派单超时仍未派送订单(等待设计到正在设计)</span>")}
  17. <form name="theForm">
  18. <table class="z-table z-bordered z-pd6 z-bg-white">
  19. <tr class="z-h40">
  20. <td width="240">订单号:
  21. <input name="designId" class="${zmr_color_class} z-input z-w160 z-mg-l4" value="${designId}" maxlength="64" placeholder="订单号" >
  22. </td>
  23. <td width="240">旺旺号:
  24. <input name="buyerNick" class="${zmr_color_class} z-input z-w160 z-mg-l4" value="${buyerNick}" maxlength="64" placeholder="旺旺号" >
  25. </td>
  26. <td width="270">选择行业:
  27. <select name="industryId" class="z-select z-w180" data-role="z-select" data-class="${zmr_color_class}">
  28. <option value="">全部</option>
  29. <#for item : Global.get(DesignIndustryCache.class).getIndustryList()>
  30. <option value="${item.getIndustryId()}" <#if item.getIndustryId() == industryId>selected</#if>>${item.getIndustryName()}</option>
  31. </#for>
  32. </select>
  33. </td>
  34. <td width="270">产品类型:<select name="typeId" class="z-select z-w180" data-role="z-select" data-class="${zmr_color_class}">
  35. <option value="">全部</option>
  36. <#for item : DesignTypeDao.listAll()>
  37. <option value="${item.getTypeId()}" <#if typeId == item.getTypeId()>selected</#if>>${item.getTypeName()}</option>
  38. </#for>
  39. </select>
  40. </td>
  41. <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>
  42. </tr>
  43. </table>
  44. </form>
  45. <#-- 分页列表 -->
  46. <div class="z-mg-t20">
  47. <table class="z-table z-bordered z-bg-white z-text-center">
  48. <tr class="z-h40" bgcolor="${zmr_thead_bgcolor}">
  49. <td width="140">订单号</td>
  50. <td width="160">旺旺名</td>
  51. <td width="*">产品</td>
  52. <td width="150">组织</td>
  53. <td width="125">录单客服</td>
  54. <td width="155">分拣时间</td>
  55. <td width="140">进度备注</td>
  56. <td width="130">行业</td>
  57. <td width="140">超时时长</td>
  58. </tr>
  59. <#var typeMap = DesignTypeDao.mapAll()/>
  60. <#for item : pageResult.list()>
  61. <#var effectiveTime = Validates.isEmpty(typeMap) ? 0 : ( typeMap.containsKey(item.getTypeId()) ? typeMap.get(item.getTypeId()).getDispatchOrderEffectiveTime() : 0)/>
  62. <tr class="z-pointer z-h40" ${zhiqim_manager_tr_onmouse()} <#if item_index % 2 == 0>bgcolor="#f3fdfc"</#if>>
  63. <td>${item.getDesignId()}</td>
  64. <td>${item.getBuyerNick()}</td>
  65. <td>${item.getOrderText()}</td>
  66. <td>${ZmrOrgDao.getOrgName(request, item.getOrgId())}</td>
  67. <td>${item.getCreater()}</td>
  68. <td>${Sqls.toDateTimeString(item.getOrgReceiveTime())}</td>
  69. <td>${progressNoteMap.get(item.getDesignId())}</td>
  70. <td>${Global.get(DesignIndustryCache.class).getIndustryName(item.getIndustryId())}</td>
  71. <td><span class="z-text-red">${CalculationUtil.dateTimeTran(DateTimes.compareMinute(Sqls.nowTimestamp(), item.getOrgReceiveTime()) - effectiveTime)}</span></td>
  72. </tr>
  73. </#for>
  74. <#if pageResult.total() == 0>
  75. ${zhiqim_manager_no_record(10, "暂时没有派单超时订单信息")}
  76. </#if>
  77. </table>
  78. </div>
  79. ${zhiqim_manager_paging(pageResult, "timeoutDispatchOrder.htm")}
  80. ${zhiqim_manager_content_end()}