<!doctype html>
|
<html>
|
<head>
|
<meta charset="utf-8">
|
[#include "/business/wechat/include/title.html" /]
|
[#include "/business/wechat/include/wheader.html" /]
|
|
</head>
|
<body>
|
<header class="kltit clearfix"><a href="javascript:history.go(-1);"><span></span></a>健康检查工单响应</header>
|
<section class="wlresponse">
|
<p>
|
<span>工单编号</span>
|
<label>${health.ORDER_CODE}</label>
|
</p>
|
<p>
|
<span>工单名称</span>
|
<label>${health.NAME}</label>
|
</p>
|
<p>
|
<span>当前节点</span>
|
<label>${health.nodeName}</label>
|
</p>
|
<p>
|
<span>${Constants.CUSTOMER_CONSTANTS}名称</span>
|
<label>${health.CUSTOMER_NAME}</label>
|
</p>
|
<p>
|
<span>${Constants.UNIT_CONSTANTS}</span>
|
<label>${health.SUB_CUSTOMER_NAME}</label>
|
</p>
|
<p>
|
<span class="detaillong">计划执行日期</span>
|
<label class="detaillong">${DateUtil.format("yyyy-MM-dd",health.PLAN_EXE_DATE)}</label>
|
</p>
|
[#if health.isBack == '2']
|
<p>
|
<span>退回说明</span>
|
<label>
|
${StringUtil.str2Html(health.dealNode)}
|
</label>
|
</p>
|
[/#if]
|
<button class="bluebtn bluebtnsmall" onclick="javascript:healthResp();">确定</button><button class="bluebtn bluebtnsmall redcolor" onclick="javascript:window.location.href='${base}/ewyw/ewHealth/ewHealthInfo.html?orderId=${health.ID}&orderType=${Constants.WORKFLOW_BASE_BUSINESS_TYPE_CI_HEALTH}'">详情</button>
|
</section>
|
|
<script type="text/javascript">
|
var b = false;
|
function healthResp() {
|
if(!b) {
|
b = true;
|
$.post("${base}/ewyw/ewHealth/answerHealth.html",{"nodeId":'${nodeId}',"flowId":'${health.FLOW_ID}'},function(data,textStatus) {
|
if(data=='2') {
|
popupTips('该工单已被响应过', 2000);
|
} else if(data=='1') {
|
popupTips("响应成功", 2000);
|
window.location.href="${base}/ewyw/ewHealth/ewHealthInfoCl.html?orderId=${health.ID}&orderType=${Constants.WORKFLOW_BASE_BUSINESS_TYPE_CI_HEALTH}";
|
} else {
|
popupTips("响应失败", 2000);
|
}
|
b = false;
|
})
|
} else {
|
popupTips("正在响应...", 2000);
|
}
|
}
|
</script>
|
|
</body>
|
|
</html>
|