cy
2022-06-21 129904537f66509f97b285e7eb4f42b3dc349dd0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!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>