Files
2025-02-20 14:59:35 +08:00

143 lines
6.8 KiB
Plaintext

<script>
function doQueryDesigner(designer)
{
Z("#designer").val(designer);
Z.loading(document);
Z("#theForm")[0].submit();
}
</script>
<#def designatedPath="/timeoutOrderNear.htm"/>
${zhiqim_manager_breadcrumb("历史超时订单")}
${zhiqim_manager_content()}
<#-- 页面数据定义 -->
<#var typeMap = DesignTypeDao.mapAll()/>
<#var industryMap = Global.get(DesignIndustryCache.class).mapAll()/>
<#-- 导航栏 -->
<div class="z-tabnav-main z-blue z-mg-b20">
<nav>
<ul>
<!--<li onclick="Z.Location.href('chargeOrder.htm');">主管审核</li>-->
<#if ZmrPathRule.check(request, "/timeoutOrderNear.htm")><li onclick="Z.Location.href('timeoutOrderNear.htm');">快超时订单</li></#if>
<#if ZmrPathRule.check(request, "/timeoutOrderToday.htm")><li onclick="Z.Location.href('timeoutOrderToday.htm');">当日超时订单</li></#if>
<li class="z-active">历史超时订单</li>
<#if ZmrPathRule.check(request, "/notTimeoutCompleteOrderHistory.htm")><li onclick="Z.Location.href('notTimeoutCompleteOrderHistory.htm');">时效绩效</li></#if>
<#if ZmrPathRule.check(request, "/timeoutCompleteOrderHistory.htm")><li onclick="Z.Location.href('timeoutCompleteOrderHistory.htm');">定稿超时列表</li></#if>
<#if ZmrPathRule.check(request, "/timeoutOrderHistoryStat.htm")><li onclick="Z.Location.href('timeoutOrderHistoryStat.htm');">初稿超时折线图</li></#if>
<#if ZmrPathRule.check(request, "/timelinessOrgStat.htm")><li onclick="Z.Location.href('timelinessOrgStat.htm');">组织初稿时效</li></#if>
</ul>
</nav>
</div>
<#-- 查询条件 -->
${zhiqim_manager_title("查询条件")}
<form name="theForm" id="theForm">
<table class="z-table z-bordered z-pd6 z-bg-white">
<input type="hidden" name="designer" id="designer" value="">
<tr class="z-h40">
<td width="24%">录单时间:
<input name="startDate" class="z-input z-w90 ${zmr_color_class}" readonly="true" onfocus="Z.date(this);" value="${startDate}"> -
<input name="endDate" class="z-input z-w90 ${zmr_color_class}" readonly="true" onfocus="Z.date(this);" value="${endDate}">
</td>
<td width="24%">订单状态:
<select name="hasDesigner" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}">
<option value="">全部</option>
<option value="0" <#if 0 == hasDesigner>selected</#if>>未领取</option>
<option value="1" <#if 1 == hasDesigner>selected</#if>>已有设计师</option>
</select>
</td>
<td width="24%">是否初稿:
<select name="hasDraft" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}">
<option value="">全部</option>
<option value="1" <#if 1 == hasDraft>selected</#if>>已初稿</option>
<option value="0" <#if 0 == hasDraft>selected</#if>>未初稿</option>
</select>
</td>
<td width="*">选择行业:
<select name="industryId" class="z-select z-w180" data-role="z-select" data-class="${zmr_color_class}">
<option value="">全部</option>
<#for item : Global.get(DesignIndustryCache.class).getIndustryList()>
<option value="${item.getIndustryId()}" <#if item.getIndustryId() == industryId>selected</#if>>${item.getIndustryName()}</option>
</#for>
</select>
</td>
</tr>
<tr>
<td width="24%">产品类型:<select name="typeId" class="z-select z-w180" data-role="z-select" data-class="${zmr_color_class}">
<option value="">全部</option>
<#for item : designTypeList>
<option value="${item.getTypeId()}" <#if typeId == item.getTypeId()>selected</#if>>${item.getTypeName()}</option>
</#for>
</select>
</td>
<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>
</tr>
</table>
</form>
<#-- 分页列表 -->
<div class="z-mg-t20">
<table class="z-table z-bordered z-pd6 z-bd-none">
<tr>
<td width="300" valign="top">
<table class="z-table z-bordered z-bg-white z-text-center">
<tr class="z-h40" bgcolor="${zmr_thead_bgcolor}">
<td width="100">序号</td>
<td width="100">设计师</td>
<td width="100">订单数</td>
</tr>
<#for item : map.keySet()>
<tr class="z-h40" <#if item == designer>bgcolor="#f3fdfc"</#if> onclick="doQueryDesigner('${item}');">
<td>${item_index +1}</td>
<td>${item}</td>
<td>${map.get(item)}</td>
</tr>
</#for>
<#if map.values().isEmpty()>
${zhiqim_manager_no_record(3, "暂时没有信息")}
</#if>
</table>
</td>
<td width="*" valign="top">
<table class="z-table z-bordered z-bg-white z-text-center">
<tr class="z-h40" bgcolor="${zmr_thead_bgcolor}">
<td width="150">订单ID</td>
<td width="*">订单信息</td>
<td width="100">旺旺名</td>
<td width="150">录单时间</td>
<td width="150">领单时间</td>
<td width="150">初稿时间</td>
<td width="150">进度备注</td>
<td width="100">超时时长</td>
<td width="100">设计师</td>
<td width="100">行业</td>
</tr>
<#for item : pageResult.list()>
<#var effectiveTime = Validates.isEmpty(typeMap) ? 0 : (typeMap.containsKey(item.getTypeId()) ? typeMap.get(item.getTypeId()).getEffectiveTime() : 0)/>
<tr class="z-pointer z-h40" ${zhiqim_manager_tr_onmouse()}>
<td>${item.getDesignId()}</td>
<td>${item.getOrderText()}</td>
<td>${item.getBuyerNick()}</td>
<td>${Sqls.toDateTimeString(item.getCreateTime())}</td>
<td>${Sqls.toDateTimeString(item.getDesignReceiveTime())}</td>
<td>${Sqls.toDateTimeString(item.getDesignDraftTime())}</td>
<td>${progressNoteMap.get(item.getDesignId())}</td>
<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>
<td>${item.getDesigner()}</td>
<td><#if Validates.isNotEmpty(industryMap) && industryMap.containsKey(item.getIndustryId())>${industryMap.get(item.getIndustryId()).getIndustryName()}</#if></td>
</tr>
</#for>
<#if pageResult.total() == 0>
${zhiqim_manager_no_record(10, "暂时没有历史超时订单信息")}
</#if>
</table>
${zhiqim_manager_paging(pageResult, "timeoutOrderHistory.htm")}
</td>
</tr>
</table>
</div>
${zhiqim_manager_content_end()}