133 rivejä
4.8 KiB
Plaintext
133 rivejä
4.8 KiB
Plaintext
<#def designatedPath="/qcReasonStat.htm"/>
|
|
<script>
|
|
Z.onload(function()
|
|
{
|
|
doQueryQcOrderInfo(1);
|
|
|
|
var calcTotal=function(table,column)
|
|
{//合计,表格对象,对哪一列进行合计,第一列从0开始
|
|
var trs=table.getElementsByTagName('tr');
|
|
var start=1,//忽略第一行,从第二行开始
|
|
end=trs.length-1;//忽略最后一行
|
|
var total=0;
|
|
for(var i=start;i<end;i++){
|
|
var td=trs[i].getElementsByTagName('td')[column];
|
|
var t=parseFloat(td.innerHTML);
|
|
if(t)total+=t;
|
|
}
|
|
trs[end].getElementsByTagName('td')[column-1].innerHTML=total;
|
|
};
|
|
|
|
calcTotal(document.getElementById('statTable'),2);
|
|
calcTotal(document.getElementById('statTable'),3);
|
|
calcTotal(document.getElementById('statTable'),4);
|
|
});
|
|
|
|
var designer;
|
|
function doQueryQcOrder(designers)
|
|
{
|
|
designer = designers;
|
|
doQueryQcOrderInfo(1);
|
|
}
|
|
|
|
function doQueryQcOrderInfo(page)
|
|
{
|
|
var ajax = new Z.Ajax();
|
|
ajax.setClassName("StatPresenter");
|
|
ajax.setMethodName("doQueryQcOrder");
|
|
ajax.addParam("page",page);
|
|
ajax.addParam("year", Z("#year").val());
|
|
ajax.addParam("month", Z("#month").val());
|
|
ajax.addParam("designer", designer);
|
|
ajax.setCallback("result");
|
|
ajax.setLoading("result");
|
|
ajax.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('qcReasonStat.htm');">质检原因统计</li>
|
|
<li class="z-active">设计师质检统计</li>
|
|
<#if ZmrPathRule.check(request, "/qcDisposeStat.htm")><li onclick="Z.L.href('/qcDisposeStat.htm')">质检处理统计</li></#if>
|
|
</ul>
|
|
</nav>
|
|
</div>
|
|
|
|
<table class="z-table z-bordered z-pd6">
|
|
<tr>
|
|
<td colspan="2">
|
|
<form name="theForm" action="qcDesignerStat.htm">
|
|
<table class="z-table">
|
|
<tr class="z-h40" bgcolor="${zmr_thead_bgcolor}">
|
|
<td class="z-bold z-px14 zi-pd-l5"> 统计查询条件:</td>
|
|
</tr>
|
|
</table>
|
|
<table class="z-table z-bordered z-pd6">
|
|
<tr class="z-h40 z-bg-white">
|
|
<td>查询日期:
|
|
<select id="year" name="year" class="z-select z-w110" data-role="z-select" data-class="${zmr_color_class}" value="${year}">
|
|
<#for item : yearList>
|
|
<option value="${item}" <#if item==year>selected</#if>>${item}</option>
|
|
</#for>
|
|
</select>
|
|
<select id="month" name="month" class="z-select z-w110" data-role="z-select" data-class="${zmr_color_class}" value="${month}">
|
|
<option value="1" <#if month==1>selected</#if>>1</option>
|
|
<option value="2" <#if month==2>selected</#if>>2</option>
|
|
<option value="3" <#if month==3>selected</#if>>3</option>
|
|
<option value="4" <#if month==4>selected</#if>>4</option>
|
|
<option value="5" <#if month==5>selected</#if>>5</option>
|
|
<option value="6" <#if month==6>selected</#if>>6</option>
|
|
<option value="7" <#if month==7>selected</#if>>7</option>
|
|
<option value="8" <#if month==8>selected</#if>>8</option>
|
|
<option value="9" <#if month==9>selected</#if>>9</option>
|
|
<option value="10" <#if month==10>selected</#if>>10</option>
|
|
<option value="11" <#if month==11>selected</#if>>11</option>
|
|
<option value="12" <#if month==12>selected</#if>>12</option>
|
|
</select>
|
|
<input type="hidden" name="query" id="query" value="1" >
|
|
<button class="z-mg-l10 z-button ${zmr_color_class}">查询</button>
|
|
</td>
|
|
</table>
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
<tr class="z-h40">
|
|
<td width="400" valign="top">
|
|
<table class="z-table z-bordered z-pd6 z-bg-white z-text-center" id="statTable">
|
|
<tr class="z-h40">
|
|
<td>序号</td>
|
|
<td>设计师</td>
|
|
<td>质检分数</td>
|
|
<td>好评加分</td>
|
|
<td>违规扣分</td>
|
|
</tr>
|
|
<#for item : modelList>
|
|
<tr class="z-h40 <#if (item.getQcScore()-item.getPunishScore()) lt 1 >z-text-red</#if>" onclick="doQueryQcOrder('${item.getDesigner()}');">
|
|
<td>${item_index + 1}</td>
|
|
<td>${item.getDesigner()}</td>
|
|
<td>${item.getQcScore()}</td>
|
|
<td>${item.getRewardScore()}</td>
|
|
<td>-${item.getPunishScore()}</td>
|
|
</tr>
|
|
</#for>
|
|
<#if modelList.size() == 0>
|
|
${zhiqim_manager_no_record(5, "暂时没有质检统计信息")}
|
|
<#else>
|
|
<tr class="z-h40" bgcolor="${zmr_thead_bgcolor}">
|
|
<td colspan="2">总计</td>
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
</tr>
|
|
</#if>
|
|
</table>
|
|
</td>
|
|
<td width="*" id="result" valign="top" id="result" ></td>
|
|
</tr>
|
|
</table>
|
|
${zhiqim_manager_content_end()} |