<!-- 人员分派显示页面 -->
|
[#if nodeTemplateId == Constants.HEALTH_DISPATCH]
|
<button type="button" id="button" class="add" onclick="addCi();" ><span>添加巡检配置</span></button>
|
[#if ciList??&&ciList?size>0]
|
|
[#list ciList as item]
|
<section class="worklist clearfix" id="${item.CIID}">
|
<h2>
|
<div class="deletes">
|
<a href="javascript:zbEdit('${item.CIID}');"><em class="edit"></em></a>
|
<a href="javascript:remove('${item.CIID}');"><em class="deletes"></em></a>
|
</div>
|
${item.SEARCHCODE}
|
</h2>
|
<div class="worklistcon clearfix">
|
<input type="hidden" value="${item.CIID}" class="flag" />
|
<div class="itemDiv${item.CIID}" style="display:none;">
|
[#if item.children??]
|
[#list item.children as ci_item]${ci_item.item_id}-[/#list]
|
[/#if]
|
</div>
|
<span class="relaicon"></span>
|
<p>配置名称:${item.CINAME}</p>
|
<p>分类名称:${item.CATENAME}</p>
|
<p>存放位置:${item.POSITION}</p>
|
</div>
|
</section>
|
[/#list]
|
|
[#else]
|
<div class="nodate"><span>无巡检配置</span></div>
|
[/#if]
|
[#else]
|
<!-- 工程师处理,结果审核显示页面 -->
|
[#if nodeList??&&nodeList?size>0]
|
[#list nodeList as ci]
|
<div class="inspection-box">
|
<div class="inspection-bg">
|
<span [#if nodeTemplateId == Constants.HEALTH_PATROL] onclick="bz('${ci.id}');" [#elseif nodeTemplateId == Constants.HEALTH_APPROVE] onclick="bzDetail('${ci.id}');" [/#if]>备注</span>
|
${ci.text}
|
</div>
|
[#if ci.children??&&ci.children?size>0]
|
[#list ci.children as item]
|
<a>
|
<p class="no-next">
|
<span>${item.ITEM_NAME}</span>
|
<label>
|
[#if nodeTemplateId == Constants.HEALTH_PATROL]
|
<em onclick="xj('${item.id}');">巡检</em>
|
[#elseif nodeTemplateId == Constants.HEALTH_APPROVE]
|
<em onclick="xjDetail('${item.id}');">明细</em>
|
[/#if]
|
</label>
|
</p>
|
</a>
|
[/#list]
|
[/#if]
|
</div>
|
[/#list]
|
[#else]
|
<div class="nodate"><span>无巡检配置</span></div>
|
[/#if]
|
[/#if]
|
|
<script type="text/javascript">
|
function addCi(){
|
var ciIds = '';
|
var jsonList=[];
|
var $hidden = $(".flag");
|
if($hidden.size() > 0){
|
$hidden.each(function(){
|
ciIds += (ciIds?',':'') + $(this).val();
|
var itemJson={};
|
var item=$.trim($(this).next().html());
|
itemJson["itemId"]=item;
|
jsonList.push(itemJson);
|
});
|
}
|
var items=JSON.stringify(jsonList);
|
window.location.href = "${base}/ewyw/ewHealth/ewAddCiDialog.html?customerId=${info.customer_id}&subCustomerId=${info.sub_customer_id}&flowId=${info.flow_id}&orderId=${orderId}&ciIds="+ciIds+"&items="+items;
|
}
|
|
function remove(id){
|
$("#"+id).remove();
|
}
|
|
//指标配置
|
function zbEdit(id){
|
/*
|
var jsonList=[];
|
var $hidden = $(".flag");
|
if($hidden.size() > 0){
|
$hidden.each(function(){
|
var itemJson={};
|
var item=$.trim($(this).next().html());
|
itemJson["itemId"]=item;
|
jsonList.push(itemJson);
|
});
|
}
|
var items=JSON.stringify(jsonList);*/
|
var selectId = "itemDiv"+id;
|
var selectedItem = $.trim($("."+selectId).html());
|
window.location.href = "${base}/ewyw/ewHealth/ewSelectItem.html?cusId=${info.customer_id}&subCustomerId=${info.sub_customer_id}&orderId=${orderId}&id="+id+"&selectedItem="+selectedItem;
|
}
|
|
//备注及详情
|
function bz(patrolCiId){
|
window.location.href = "${base}/ewyw/ewHealth/ewHealthCiPatrol.html?orderId=${orderId}&patrolCiId="+patrolCiId;
|
}
|
function bzDetail(patrolCiId){
|
window.location.href = "${base}/ewyw/ewHealth/ewHealthCiPatrolRead.html?patrolCiId="+patrolCiId;
|
}
|
//指标巡检及详情
|
function xj(patrolItemId){
|
window.location.href = "${base}/ewyw/ewHealth/ewHealthItemPatrol.html?orderId=${orderId}&patrolItemId="+patrolItemId;
|
}
|
function xjDetail(patrolItemId){
|
window.location.href = "${base}/ewyw/ewHealth/ewHealthItemPatrolRead.html?patrolItemId="+patrolItemId;
|
}
|
</script>
|