<!doctype html>
|
<html>
|
<head>
|
<meta charset="utf-8">
|
[#include "/business/wechat/include/title.html" /]
|
[#include "/business/wechat/include/wheader.html" /]
|
[#include "/business/wechat/include/mobiscroll.html" /]
|
</head>
|
|
<body>
|
<header class="kltit">
|
[#if baseMsg.WFSTATE == Constants.WORKFLOW_BASE_WFSTATE_DOING || baseMsg.WFSTATE == Constants.WORKFLOW_BASE_WFSTATE_FINISH || baseMsg.WFSTATE == Constants.WORKFLOW_BASE_WFSTATE_EVALUATE || baseMsg.WFSTATE == Constants.WORKFLOW_BASE_WFSTATE_CLOSE]
|
<label class="dropmenu"></label>
|
[/#if]
|
<a href="${base}/ewyw/ewRemind/ewMyRemind.html"><span></span></a>工单处理
|
[#if baseMsg.WFSTATE == Constants.WORKFLOW_BASE_WFSTATE_FINISH || baseMsg.WFSTATE == Constants.WORKFLOW_BASE_WFSTATE_EVALUATE]
|
<div class="wlsdrop2"><a href="${base}/ewyw/ewRemind/ewRemindReport.html?orderId=${orderId}&flowId=${baseMsg.FLOW_ID}" ><p class="baogao">例行维护报告</p></a>
|
[#elseif baseMsg.WFSTATE == Constants.WORKFLOW_BASE_WFSTATE_DOING]
|
<!-- 人员指派 -->
|
[#if nodeTemplateId == Constants.REMIND_DISPATCH]
|
<div class="wlsdrop2">
|
<a href="javascript:fpTask();"><p class="renwu">分派任务</p></a>
|
<a href="${base}/ewyw/ewRemind/ewCloseWorkFlow.html?orderId=${orderId}&nodeId=${nodeId}"><p class="guanbi">关闭工单</p></a>
|
</div>
|
<!-- 维护执行 -->
|
[#elseif nodeTemplateId == Constants.REMIND_DEAL]
|
<div class="wlsdrop2">
|
<a href="javascript:engineerCommit();"><p class="tijiao">提交</p></a>
|
</div>
|
<!-- 结果审核 -->
|
[#elseif nodeTemplateId == Constants.REMIND_APPROVE]
|
<div class="wlsdrop2">
|
<a href="${base}/ewyw/ewRemind/ewApproveCommit.html?orderId=${orderId}&nodeId=${nodeId}""><p class="tijiao">提交</p></a>
|
<a href="${base}/ewyw/ewRemind/ewRemindSendback.html?orderId=${orderId}&nodeId=${nodeId}&flowId=${baseMsg.FLOW_ID}"><p class="huitui">回退</p></a>
|
</div>
|
[/#if]
|
[/#if]
|
</header>
|
<nav class="kltwo clearfix">
|
<div class="kltwowrap">
|
<a href="#" hidefocus="true" class="active" v="0">基本信息</a>
|
<a href="#" hidefocus="true" v="1">巡检配置</a>
|
<a href="#" hidefocus="true" v="2">处理记录</a>
|
<a href="#" hidefocus="true" v="3">关联工单</a>
|
<a href="#" hidefocus="true" v="4">文档附件</a>
|
<a href="#" hidefocus="true" v="5">流转记录</a>
|
</div>
|
</nav>
|
<div class="swiper-container" id="swiper-pages">
|
<div class="swiper-wrapper">
|
<div class="swiper-slide">
|
<div id="main0"></div>
|
</div>
|
<div class="swiper-slide">
|
<div id="main1"></div>
|
</div>
|
<div class="swiper-slide">
|
<div id="main2"></div>
|
</div>
|
<div class="swiper-slide">
|
<div id="main3"></div>
|
</div>
|
<div class="swiper-slide">
|
<div id="main4"></div>
|
</div>
|
<div class="swiper-slide">
|
<div id="main5"></div>
|
</div>
|
</div>
|
</div>
|
<script type="text/javascript">
|
var flowId = '${baseMsg.FLOW_ID}';
|
var orderId = '${baseMsg.ID}';
|
var nodeId = '${nodeId}';
|
var nodeTemplateId = '${nodeTemplateId}';//当前节点
|
var showType = '${Constants.WECHAT_DETAIL_DEAL_SCORE_LXWH}';//例行维护界面
|
|
function query(index) { //ciRemindJumpPage
|
var $main = $("#main"+index);
|
var html = $.trim($main.html());
|
if($.util.isEmpty(html)) {
|
var param = {"flowId":flowId,"orderId":orderId,"nodeTemplateId":nodeTemplateId,"nodeId":nodeId,"showType":showType};
|
loading($main);
|
if(index==0){
|
if(nodeTemplateId == '${Constants.REMIND_DISPATCH}'){
|
$.get("${base}/ewyw/ewRemind/remindInfoEw.html",param,function(data,textStatus) {
|
$main.html(data);
|
})
|
}else if(nodeTemplateId == '${Constants.REMIND_DEAL}' || nodeTemplateId == '${Constants.REMIND_APPROVE}'){
|
$.get("${base}/ewyw/ewRemind/ewRemindReadInfo.html",param,function(data,textStatus) {
|
$main.html(data);
|
})
|
}
|
} else if(index==1) {
|
$.post("${base}/ewyw/ewRemind/ewRemindCiListCl.html",param,function(data,textStatus) {
|
$main.html(data);
|
})
|
} else if(index==2) {
|
$.post("${base}/ewyw/ewIncident/ewClRecordCl.html",param,function(data,textStatus) {
|
$main.html(data);
|
})
|
} else if(index==3) {
|
$.post("${base}/ewyw/ewIncident/ewLinkOrderCl.html",param,function(data,textStatus) {
|
$main.html(data);
|
})
|
} else if(index==4) {
|
$.post("${base}/ewyw/ewIncident/ewFileCl.html",param,function(data,textStatus) {
|
$main.html(data);
|
})
|
} else if(index==5) {
|
$.post("${base}/ewyw/ewIncident/ewLzRecord.html",param,function(data,textStatus) {
|
$main.html(data);
|
})
|
}
|
}
|
}
|
|
/*工单详情下拉*/
|
$(function(){
|
var searchBtn = $('.kltit label'),
|
searchCon = $('div.wlsdrop2');
|
searchBtn.click(function(){
|
searchCon.animate({height:'toggle'});
|
$(this).children('em').toggleClass("open");
|
});
|
searchCon.children('a').click(function(){
|
searchCon.slideUp();
|
});
|
$("div").click(function(){
|
searchCon.slideUp();
|
});
|
$("section").click(function(){
|
searchCon.slideUp();
|
});
|
|
query(0);
|
})
|
|
function fpTask(){
|
myform1Submit();
|
}
|
|
function engineerCommit(){
|
if('${isCanFinish}'=='true'){
|
window.location.href = "${base}/ewyw/ewRemind/ewEngineerCommit.html?isAdmin=${isAdmin}&orderId=${orderId}&nodeId=${nodeId}";
|
}else{
|
var flowId = "${flowId}";
|
var users = '';
|
$.post("${base}/ewyw/ewRemind/ewGetNotDealList.html",{flowId:flowId},function(data){
|
$.each(data,function(i,item){
|
if(users!=''){
|
users = users + ',' +item.name;
|
}else{
|
users = users +item.name;
|
}
|
|
});
|
popupTips('执行人:' + users + '未处理,暂不可提交');
|
},'json');
|
|
}
|
}
|
|
$(function() {
|
var initIndex = 0;
|
|
if(!(typeof(selectIndex) == "undefined")) {
|
initIndex = selectIndex;
|
}
|
n=$('.kltwowrap a').size();
|
var wh=100*n+"%";
|
$('.kltwowrap').width(wh);
|
var lt=(100/n/4);
|
var lt_li=lt+"%";
|
$('.kltwowrap a').width(lt_li);
|
$(".kltwowrap a").on('touchstart mousedown',function(e){
|
e.preventDefault()
|
$(".kltwowrap .active").removeClass('active');
|
$(this).addClass('active');
|
tabsSwiper.slideTo($(this).index());
|
});
|
|
$(".kltwowrap a").click(function(e){
|
e.preventDefault();
|
});
|
|
window.onload=function(){
|
var pages = document.getElementById("swiper-pages");
|
var scale = window.screen.height / window.screen.width;
|
pages.style.height = document.body.clientWidth * scale -$('.kltit').height()-$('.kltwo').height() - 20 + "px";
|
}
|
|
var tabsSwiper = new Swiper(".swiper-container",{
|
initialSlide : initIndex,
|
setWrapperSize :true,
|
onSlideChangeStart: function(tabsSwiper){
|
$(".kltwowrap .active").removeClass('active');
|
var panelIndex = tabsSwiper.activeIndex;
|
var $kltwowrapA = $(".kltwowrap a").eq(panelIndex);
|
$kltwowrapA.addClass('active');
|
$kltwowrapA.parent().css("left",-parseInt(tabsSwiper.activeIndex/4)*tabsSwiper.width);
|
query(panelIndex);
|
//跳转页面的时候缓存填写的表单数据
|
$.post("${base}/ewyw/ewRemind/saveTempData.html",$("#myform1").serialize(),function(data,textStatus) {
|
if(data == '1') {}
|
});
|
}
|
});
|
})
|
</script>
|
</body>
|
</html>
|