Files
2025-02-20 14:58:55 +08:00

141 baris
5.5 KiB
Plaintext

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<#def designatedPath="/draftStatusOrderStat.htm"/>
<script>
Z.onload(function(){
computeEfficiency();
});
function computeEfficiency()
{//计算效率
Z.each(Z("span[id^=time_]"), function(span, i)
{
var minute = span.attributes["data-minute"].value*1;
var num = span.attributes["data-num"].value*1;
minute = parseInt(minute/num);
var hour;
var minute;
if (minute/60 >0)
{
hour = parseInt(minute/60);
minute = minute%60;
}
var timeHtml = "";
if (hour >0)
timeHtml += hour+"小时";
if (minute >0)
timeHtml += minute+"分钟";
Z(span).html(timeHtml);
});
}
function doSearch(designer,prdTypeId)
{
if (Z.V.isEmpty(designer))
{
Z.alert("设计师不能为空");
return;
}
if (Z.V.isEmpty(prdTypeId))
{
Z.alert("类型不能为空");
return;
}
var beginDate = '${beginDate}';
var endDate = '${endDate}';
var dialog = new Z.Dialog();
dialog.title = "["+designer+"]初稿订单时效详情";
dialog.url = "/draftOrderTimelinessInfo.htm?beginDate="+beginDate+"&endDate="+endDate+"&designer="+designer+"&prdTypeId="+prdTypeId;
dialog.width = 1650;
dialog.height = 695;
dialog.execute();
}
</script>
${zhiqim_manager_breadcrumb("初稿时效统计")}
${zhiqim_manager_content()}
<#-- 导航栏 -->
<div class="z-tabnav-main z-blue z-mg-b20">
<nav>
<ul>
<li onclick="Z.Location.href('draftStatusOrderStat.htm');">未完成订单统计</li>
<li onclick="Z.Location.href('draftOrderConvert.htm');">初稿统计</li>
<!--<li onclick="Z.Location.href('completeOrderConvert.htm');">定稿统计</li> -->
<li onclick="Z.Location.href('completeOrderDetail.htm');">定稿统计</li>
<#if ZmrPathRule.check(request, "/designFinalizeOrgCase.htm")><li onclick="Z.Location.href('designFinalizeOrgCase.htm');">组织定稿统计</li></#if>
<#if ZmrPathRule.check(request, "/completeDesignRateStat.htm")><li onclick="Z.Location.href('completeDesignRateStat.htm');">设计师定稿率统计</li></#if>
<#if ZmrPathRule.check(request, "/completeOrgRateStat.htm")><li onclick="Z.Location.href('completeOrgRateStat.htm');">组织定稿率统计</li></#if>
<li onclick="Z.Location.href('designOrderTypeStat.htm');">订单类型统计</li>
<li class="z-active">初稿时效统计</li>
<li onclick="Z.Location.href('draftOrderOrgTimeliness.htm');">初稿时效统计(组织)</li>
<li onclick="Z.Location.href('completeOrderTimeliness.htm');">定稿时效统计</li>
<#if ZmrPathRule.check(request, "/selfDraftModifyOrderStat.htm")><li onclick="Z.Location.href('selfDraftModifyOrderStat.htm');">改稿订单统计</li></#if>
<#if ZmrPathRule.check(request, "/designOrderCountStat.htm")><li onclick="Z.Location.href('designOrderCountStat.htm');">设计总订单数量统计</li></#if>
<#if ZmrPathRule.check(request, "/draftOrderTypeTimeliness.htm")><li onclick="Z.Location.href('draftOrderTypeTimeliness.htm');">初稿产品时效统计</li></#if>
<#if ZmrPathRule.check(request, "/completeOrderTypeTimeliness.htm")><li onclick="Z.Location.href('completeOrderTypeTimeliness.htm');">定稿产品时效统计</li></#if>
</ul>
</nav>
</div>
<#-- 查询条件 -->
${zhiqim_manager_title("查询条件")}
<form name="theForm" action="/draftOrderTimeliness.htm">
<table class="z-table z-bordered z-pd6">
<tr class="z-h40 z-bg-white">
<td>初稿日期:
<input name="beginDate" onfocus="Z.date(this);" readonly class="z-input ${zmr_color_class} z-w100" value="${beginDate}"> -
<input name="endDate" onfocus="Z.date(this);" readonly class="z-input ${zmr_color_class} z-w100 z-mg-r20 " value="${endDate}">
<button class="z-mg-l10 z-button ${zmr_color_class}">查询</button>
</td>
</tr>
</table>
</form>
<br>
<#-- 分页列表-->
<table class="z-table z-bordered z-bg-white z-pd6">
${zhiqim_manager_tr_title( 1 , "初稿时效统计详情")}
<tr class="z-text-center z-h40" bgcolor="${zmr_thead_bgcolor}">
<td width="100">设计师</td>
<#for type : showTypeList>
<td width="100">${type.getTypeName()}</td>
</#for>
<td width="100">其他</td>
<td width="100">总数量</td>
</tr>
<#for item : pageResult.list()>
<tr class="z-text-center z-h40" <#if item_index % 2 == 0>bgcolor="#f3fdfc"</#if>>
<td>${item.getDesigner()}</td>
<#for type : showTypeList>
<td>
<#var num = item.getNumberMap().get(type.getTypeName())/>
<#var time =item.getTimeMap().get(type.getTypeName())/>
<#if num gt 0 && time gt 0>
<a onclick="doSearch('${item.getDesigner()}','${type.getTypeId()}');">
<span id="time_${item.getDesigner()}_${type.getTypeId()}" data-minute="${time}" data-num="${num}"></span><br>${num}单)
</a>
</#if>
</td>
</#for>
<td>
<#if item.getNumberMap().get("其他") gt 0 && item.getTimeMap().get("其他") gt 0>
<span id="time_${item.getDesigner()}_other" data-minute="${item.getTimeMap().get("其他")}" data-num="${item.getNumberMap().get("其他")}"></span><br>${item.getNumberMap().get("其他")}单)
</#if>
</td>
<td>${item.getAllCount()}</td>
</tr>
</#for>
<#if pageResult.size() == 0>
<tr class="z-h40">
<td colspan="${showTypeList.size()+3}" class="z-text-center">暂无初稿时效统计详情</td>
</tr>
</#if>
${zhiqim_manager_paging(pageResult, "draftOrderTimeliness.htm")}
</table>
${zhiqim_manager_content_end()}