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

73 rivejä
2.2 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.
<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);
});
}
</script>
<#-- 分页列表-->
<table class="z-table z-bordered z-bg-white z-pd6">
<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>
<span id="time_${item.getDesigner()}_${type.getTypeId()}" data-minute="${time}" data-num="${num}"></span><br>${num}单)
</#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, "draftOrderOrgTimelinessInfo.htm")}
</table>
${zhiqim_manager_content_end()}