timeoutCompleteOrderHistory.zml 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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. <#if ZmrPathRule.check(request, "/timeoutOrderHistory.htm")><li onclick="Z.Location.href('timeoutOrderHistory.htm');">历史超时订单</li></#if>
  23. <#if ZmrPathRule.check(request, "/notTimeoutCompleteOrderHistory.htm")><li onclick="Z.Location.href('notTimeoutCompleteOrderHistory.htm');">时效绩效</li></#if>
  24. <li class="z-active">定稿超时列表</li>
  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="hasComplete" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}">
  42. <option value="">全部</option>
  43. <option value="1" <#if 1 == hasComplete>selected</#if>>已定稿</option>
  44. <option value="0" <#if 0 == hasComplete>selected</#if>>未定稿</option>
  45. </select>
  46. </td>
  47. <td width="*">选择行业:
  48. <select name="industryId" class="z-select z-w180" data-role="z-select" data-class="${zmr_color_class}">
  49. <option value="">全部</option>
  50. <#for item : Global.get(DesignIndustryCache.class).getIndustryList()>
  51. <option value="${item.getIndustryId()}" <#if item.getIndustryId() == industryId>selected</#if>>${item.getIndustryName()}</option>
  52. </#for>
  53. </select>
  54. </td>
  55. <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>
  56. </tr>
  57. <tr>
  58. </tr>
  59. </table>
  60. </form>
  61. <#-- 分页列表 -->
  62. <div class="z-mg-t20">
  63. <table class="z-table z-bordered z-pd6 z-bd-none">
  64. <tr>
  65. <td width="300" valign="top">
  66. <table class="z-table z-bordered z-bg-white z-text-center">
  67. <tr class="z-h40" bgcolor="${zmr_thead_bgcolor}">
  68. <td width="100">序号</td>
  69. <td width="100">设计师</td>
  70. <td width="100">订单数</td>
  71. </tr>
  72. <#for item : map.keySet()>
  73. <tr class="z-h40" <#if item == designer>bgcolor="#f3fdfc"</#if> onclick="doQueryDesigner('${item}');">
  74. <td>${item_index +1}</td>
  75. <td>${item}</td>
  76. <td>${map.get(item)}</td>
  77. </tr>
  78. </#for>
  79. <#if map.values().isEmpty()>
  80. ${zhiqim_manager_no_record(3, "暂时没有信息")}
  81. </#if>
  82. </table>
  83. </td>
  84. <td width="*" valign="top">
  85. <table class="z-table z-bordered z-bg-white z-text-center">
  86. <tr class="z-h40" bgcolor="${zmr_thead_bgcolor}">
  87. <td width="150">订单ID</td>
  88. <td width="*">订单信息</td>
  89. <td width="100">旺旺名</td>
  90. <td width="150">录单时间</td>
  91. <td width="150">初稿时间</td>
  92. <td width="150">定稿时间</td>
  93. <td width="150">进度备注</td>
  94. <td width="100">超时时长</td>
  95. <td width="100">设计师</td>
  96. <td width="100">行业</td>
  97. </tr>
  98. <#for item : pageResult.list()>
  99. <#var effectiveTime = 24*60/>
  100. <tr class="z-pointer z-h40" ${zhiqim_manager_tr_onmouse()}>
  101. <td>${item.getDesignId()}</td>
  102. <td>${item.getOrderText()}</td>
  103. <td>${item.getBuyerNick()}</td>
  104. <td>${Sqls.toDateTimeString(item.getCreateTime())}</td>
  105. <td>${Sqls.toDateTimeString(item.getDesignDraftTime())}</td>
  106. <td>${Sqls.toDateTimeString(item.getDesignEndTime())}</td>
  107. <td>${progressNoteMap.get(item.getDesignId())}</td>
  108. <td><span class="z-text-red"><#if Validates.isNotEmpty(item.getDesignEndTime())>${DateTimes.compareMinute(item.getDesignEndTime(), item.getCreateTime()) - effectiveTime}<#else>${DateTimes.compareMinute(Sqls.nowTimestamp(), item.getCreateTime()) - effectiveTime}</#if> 分钟</span></td>
  109. <td>${item.getDesigner()}</td>
  110. <td><#if Validates.isNotEmpty(industryMap) && industryMap.containsKey(item.getIndustryId())>${industryMap.get(item.getIndustryId()).getIndustryName()}</#if></td>
  111. </tr>
  112. </#for>
  113. <#if pageResult.total() == 0>
  114. ${zhiqim_manager_no_record(10, "暂时没有定稿超时列表信息")}
  115. </#if>
  116. </table>
  117. ${zhiqim_manager_paging(pageResult, "timeoutCompleteOrderHistory.htm")}
  118. </td>
  119. </tr>
  120. </table>
  121. </div>
  122. ${zhiqim_manager_content_end()}