Files
ziqim/Yangcai365_web/manage/zview/stat/design/timeoutOrgComplete.zml
T
2025-02-20 14:59:35 +08:00

123 regels
5.3 KiB
Plaintext
Ruw Blame Geschiedenis

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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.
${Scripts.src("/zinc/chart/highcharts.js")}
${Scripts.src("/zinc/chart/exporting.js")}
${Scripts.src("/zinc/chart/highcharts-zh_CN.js")}
<script>
Z.onload(function()
{
Highcharts.chart('container',
{
chart: {plotBackgroundColor: null,plotBorderWidth: null,plotShadow: false,type: 'pie'},
title: {text: '<#if ZmrOrgDao.getOrgRootId(request) == sessionUser.getSelectedOrgId()>组织超时占比(超时总单量${orgTimeoutSumNum}<#else>组织超时/未超时占比(总接单量${orgOrderNum}</#if>'},
tooltip: {pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'},
<#if ZmrOrgDao.getOrgRootId(request) != sessionUser.getSelectedOrgId()>
  colors:['#4dd3b9','#fdd67f','#ffaca8','#64bcec'],
</#if>
plotOptions:
{
pie:
{
allowPointSelect: true,
cursor: 'pointer',
dataLabels:
{
enabled: true,
format: '<b>{point.name}</b>: {point.percentage:.1f} %',
style: { color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black'}
}
}
},
series:
[{
name: '百分比',
colorByPoint: true,
data:[
<#for key : statMap.keySet()>
{name: '${key}',y: ${statMap.get(key)}},
</#for>
]
}]
});
});
</script>
${zhiqim_manager_breadcrumb("组织定稿超时统计")}
${zhiqim_manager_content()}
<#-- 导航栏 -->
<div class="z-tabnav-main z-blue z-mg-b20">
<nav>
<ul>
<#if ZmrPathRule.check(request, "/timeoutMerDispatch.htm")><li onclick="Z.L.href('timeoutMerDispatch.htm');">分拣超时</li></#if>
<#if ZmrPathRule.check(request, "/timeoutDispatchOrder.htm")><li onclick="Z.L.href('timeoutDispatchOrder.htm');">派单超时</li></#if>
<#if ZmrPathRule.check(request, "/timeoutDraftOrder.htm")><li onclick="Z.L.href('timeoutDraftOrder.htm');">初稿超时</li></#if>
<#if ZmrPathRule.check(request, "/timeoutDesignerComplete.htm")><li onclick="Z.Location.href('timeoutDesignerComplete.htm');">设计师定稿超时</li></#if>
<li class="z-active">组织定稿超时统计</li>
</ul>
</nav>
</div>
<#-- 查询条件 -->
<#-- 查询条件 -->
${zhiqim_manager_title("查询条件")}
<form name="theForm" action="/timeoutOrgComplete.htm">
<table class="z-table z-bordered z-pd6">
<tr class="z-h40 z-bg-white">
<td width="350">录单时间:
<input name="startDate" onfocus="Z.date(this);" readonly class="z-input ${zmr_color_class} z-w100" value="${startDate}"> -
<input name="endDate" onfocus="Z.date(this);" readonly class="z-input ${zmr_color_class} z-w100 z-mg-r30 " value="${endDate}">
</td>
<td width="270">产品类型:<select name="typeId" class="z-select z-w180" data-role="z-select" data-class="${zmr_color_class}">
<option value="">全部</option>
<#for item : DesignTypeDao.listAll()>
<option value="${item.getTypeId()}" <#if typeId == item.getTypeId()>selected</#if>>${item.getTypeName()}</option>
</#for>
</select>
</td>
<td width="*"><button class="z-large z-w120 z-button ${zmr_color_class}">查询</button></td>
</tr>
</table>
</form>
<br>
<#-- 分页列表-->
<table class="z-table z-bordered z-pd6 z-bg-white">
<tr>
<td width="50%"><div id="container" class="z-bg-white" style="min-width:400px;height:600px"></div></td>
<td width="*">
<table class="z-table z-bordered z-pd10 z-bg-white z-text-left" style="text-align:center">
<#if ZmrOrgDao.getOrgRootId(request) == sessionUser.getSelectedOrgId()>
<tr class="z-bold">
<td width="19%">组织名称</td>
<td width="18%">组织总接单</td>
<td width="30%">组织总超时(设计超时数)</td>
<td width="33%">超时率(该组织超时/该组织总接单数)</td>
</tr>
<#for item : statList>
<tr>
<td>${String.valueOf(item.get("orgName"))}</td>
<td>${String.valueOf(item.get("orgOrderNum"))}</td>
<td>${String.valueOf(item.get("orgTimeoutNum"))}</td>
<td>${CalculationUtil.calculatePercent(Integer.valueOf(String.valueOf(item.get("orgTimeoutNum"))),Integer.valueOf(String.valueOf(item.get("orgOrderNum"))))}</td>
</tr>
</#for>
<#else>
<tr class="z-bold">
<td width="20%">组织名称</td>
<td width="18%">总订单数</td>
<td width="16%">未超时</td>
<td width="16%">已超时</td>
<td width="30%">超时比例(组织超时/总单量)</td>
</tr>
<#for item : statList>
<tr>
<td>${String.valueOf(item.get("orgName"))}</td>
<td>${String.valueOf(item.get("orgOrderNum"))}</td>
<td>${Integer.valueOf(String.valueOf(item.get("orgOrderNum"))) - Integer.valueOf(String.valueOf(item.get("orgTimeoutNum")))}</td>
<td>${String.valueOf(item.get("orgTimeoutNum"))}</td>
<td>${String.valueOf(item.get("orgTimeoutProportion"))}%</td>
</tr>
</#for>
</#if>
</table>
</td>
</tr>
</table>
${zhiqim_manager_content_end()}