timeoutOrderHistory.zml 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. <script>
  2. function doQueryDesigner(designer)
  3. {
  4. Z("#designer").val(designer);
  5. Z.loading(document);
  6. Z("#theForm")[0].submit();
  7. }
  8. </script>
  9. <#def designatedPath="/timeoutOrderNear.htm"/>
  10. ${zhiqim_manager_breadcrumb("历史超时订单")}
  11. ${zhiqim_manager_content()}
  12. <#-- 页面数据定义 -->
  13. <#var typeMap = DesignTypeDao.mapAll()/>
  14. <#var industryMap = Global.get(DesignIndustryCache.class).mapAll()/>
  15. <#-- 导航栏 -->
  16. <div class="z-tabnav-main z-blue z-mg-b20">
  17. <nav>
  18. <ul>
  19. <!--<li onclick="Z.Location.href('chargeOrder.htm');">主管审核</li>-->
  20. <#if ZmrPathRule.check(request, "/timeoutOrderNear.htm")><li onclick="Z.Location.href('timeoutOrderNear.htm');">快超时订单</li></#if>
  21. <#if ZmrPathRule.check(request, "/timeoutOrderToday.htm")><li onclick="Z.Location.href('timeoutOrderToday.htm');">当日超时订单</li></#if>
  22. <li class="z-active">历史超时订单</li>
  23. <#if ZmrPathRule.check(request, "/notTimeoutCompleteOrderHistory.htm")><li onclick="Z.Location.href('notTimeoutCompleteOrderHistory.htm');">时效绩效</li></#if>
  24. <#if ZmrPathRule.check(request, "/timeoutCompleteOrderHistory.htm")><li onclick="Z.Location.href('timeoutCompleteOrderHistory.htm');">定稿超时列表</li></#if>
  25. <#if ZmrPathRule.check(request, "/timeoutOrderHistoryStat.htm")><li onclick="Z.Location.href('timeoutOrderHistoryStat.htm');">初稿超时折线图</li></#if>
  26. <#if ZmrPathRule.check(request, "/timelinessOrgStat.htm")><li onclick="Z.Location.href('timelinessOrgStat.htm');">组织初稿时效</li></#if>
  27. </ul>
  28. </nav>
  29. </div>
  30. <#-- 查询条件 -->
  31. ${zhiqim_manager_title("查询条件")}
  32. <form name="theForm" id="theForm">
  33. <table class="z-table z-bordered z-pd6 z-bg-white">
  34. <input type="hidden" name="designer" id="designer" value="">
  35. <tr class="z-h40">
  36. <td width="24%">录单时间:
  37. <input name="startDate" class="z-input z-w90 ${zmr_color_class}" readonly="true" onfocus="Z.date(this);" value="${startDate}"> -
  38. <input name="endDate" class="z-input z-w90 ${zmr_color_class}" readonly="true" onfocus="Z.date(this);" value="${endDate}">
  39. </td>
  40. <td width="24%">订单状态:
  41. <select name="hasDesigner" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}">
  42. <option value="">全部</option>
  43. <option value="0" <#if 0 == hasDesigner>selected</#if>>未领取</option>
  44. <option value="1" <#if 1 == hasDesigner>selected</#if>>已有设计师</option>
  45. </select>
  46. </td>
  47. <td width="24%">是否初稿:
  48. <select name="hasDraft" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}">
  49. <option value="">全部</option>
  50. <option value="1" <#if 1 == hasDraft>selected</#if>>已初稿</option>
  51. <option value="0" <#if 0 == hasDraft>selected</#if>>未初稿</option>
  52. </select>
  53. </td>
  54. <td width="*">选择行业:
  55. <select name="industryId" class="z-select z-w180" data-role="z-select" data-class="${zmr_color_class}">
  56. <option value="">全部</option>
  57. <#for item : Global.get(DesignIndustryCache.class).getIndustryList()>
  58. <option value="${item.getIndustryId()}" <#if item.getIndustryId() == industryId>selected</#if>>${item.getIndustryName()}</option>
  59. </#for>
  60. </select>
  61. </td>
  62. </tr>
  63. <tr>
  64. <td width="24%">产品类型:<select name="typeId" class="z-select z-w180" data-role="z-select" data-class="${zmr_color_class}">
  65. <option value="">全部</option>
  66. <#for item : designTypeList>
  67. <option value="${item.getTypeId()}" <#if typeId == item.getTypeId()>selected</#if>>${item.getTypeName()}</option>
  68. </#for>
  69. </select>
  70. </td>
  71. <td colspan="3" align="center"><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>
  72. </tr>
  73. </table>
  74. </form>
  75. <#-- 分页列表 -->
  76. <div class="z-mg-t20">
  77. <table class="z-table z-bordered z-pd6 z-bd-none">
  78. <tr>
  79. <td width="300" valign="top">
  80. <table class="z-table z-bordered z-bg-white z-text-center">
  81. <tr class="z-h40" bgcolor="${zmr_thead_bgcolor}">
  82. <td width="100">序号</td>
  83. <td width="100">设计师</td>
  84. <td width="100">订单数</td>
  85. </tr>
  86. <#for item : map.keySet()>
  87. <tr class="z-h40" <#if item == designer>bgcolor="#f3fdfc"</#if> onclick="doQueryDesigner('${item}');">
  88. <td>${item_index +1}</td>
  89. <td>${item}</td>
  90. <td>${map.get(item)}</td>
  91. </tr>
  92. </#for>
  93. <#if map.values().isEmpty()>
  94. ${zhiqim_manager_no_record(3, "暂时没有信息")}
  95. </#if>
  96. </table>
  97. </td>
  98. <td width="*" valign="top">
  99. <table class="z-table z-bordered z-bg-white z-text-center">
  100. <tr class="z-h40" bgcolor="${zmr_thead_bgcolor}">
  101. <td width="150">订单ID</td>
  102. <td width="*">订单信息</td>
  103. <td width="100">旺旺名</td>
  104. <td width="150">录单时间</td>
  105. <td width="150">领单时间</td>
  106. <td width="150">初稿时间</td>
  107. <td width="150">进度备注</td>
  108. <td width="100">超时时长</td>
  109. <td width="100">设计师</td>
  110. <td width="100">行业</td>
  111. </tr>
  112. <#for item : pageResult.list()>
  113. <#var effectiveTime = Validates.isEmpty(typeMap) ? 0 : (typeMap.containsKey(item.getTypeId()) ? typeMap.get(item.getTypeId()).getEffectiveTime() : 0)/>
  114. <tr class="z-pointer z-h40" ${zhiqim_manager_tr_onmouse()}>
  115. <td>${item.getDesignId()}</td>
  116. <td>${item.getOrderText()}</td>
  117. <td>${item.getBuyerNick()}</td>
  118. <td>${Sqls.toDateTimeString(item.getCreateTime())}</td>
  119. <td>${Sqls.toDateTimeString(item.getDesignReceiveTime())}</td>
  120. <td>${Sqls.toDateTimeString(item.getDesignDraftTime())}</td>
  121. <td>${progressNoteMap.get(item.getDesignId())}</td>
  122. <td><span class="z-text-red"><#if Validates.isNotEmpty(item.getDesignDraftTime())>${DateTimes.compareMinute(item.getDesignDraftTime(), item.getCreateTime()) - effectiveTime}<#else>${DateTimes.compareMinute(Sqls.nowTimestamp(), item.getCreateTime()) - effectiveTime}</#if> 分钟</span></td>
  123. <td>${item.getDesigner()}</td>
  124. <td><#if Validates.isNotEmpty(industryMap) && industryMap.containsKey(item.getIndustryId())>${industryMap.get(item.getIndustryId()).getIndustryName()}</#if></td>
  125. </tr>
  126. </#for>
  127. <#if pageResult.total() == 0>
  128. ${zhiqim_manager_no_record(10, "暂时没有历史超时订单信息")}
  129. </#if>
  130. </table>
  131. ${zhiqim_manager_paging(pageResult, "timeoutOrderHistory.htm")}
  132. </td>
  133. </tr>
  134. </table>
  135. </div>
  136. ${zhiqim_manager_content_end()}