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
<!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>${incident.ORDER_CODE}</label>
    </p>
    <p>
        <span>事件状态</span>
        <label>${Constants.getmapSC_WORKFLOW_INCIDENT_STATE_Label(incident.STATE+"")}</label>
    </p>
    <p>
        <span>${Constants.CUSTOMER_CONSTANTS}名称</span>
        <label>${incident.CUSTOMER_NAME}</label>
    </p>
    <p>
        <span>服务目录</span>
        <label>${incident.FIRST_CATEGORY_NAME}>${incident.SECOND_CATEGORY_NAME}>${incident.THIRD_CATEGORY_NAME}</label>
    </p>
    <p>
        <span>SLA等级</span>
        <label>
            <em class="org">${incident.SLA_NAME}</em><br />
            <em class="responseicon"></em>响应时间:<em class="org">${incident.REQUEST_ANSWER_TIME}分钟</em><br />
            <em class="responseicon"></em>解决时间:<em class="org">${incident.REQUEST_DEAL_TIME}小时</em>
        </label>
    </p>
    <button class="bluebtn bluebtnsmall" onclick="incidentResp()">确定</button><button class="bluebtn bluebtnsmall redcolor" onclick="javascript:window.location.href='${base}/ewyw/eworder/ewOrderInfo.html?orderId=${incident.ID}&orderType=${Constants.WORKFLOW_BASE_BUSINESS_TYPE_INCIDENT}'">详情</button>
</section>
 
<script type="text/javascript">
    var b = false;
    function incidentResp() {
        if(!b) {
            b = true;
            $.post("${base}/ewyw/ewIncident/answerIncident.html",{"incidentId":'${incident.ID}',"flowId":'${incident.FLOW_ID}'},function(data,textStatus) {
                if(data=='2') {
                    popupTips('该工单已被响应过', 2000);
                } else if(data=='1') {
                    popupTips("响应成功", 2000);
                    window.location.href="${base}/ewyw/ewIncident/ewIncidentInfoCl.html?orderId=${incident.ID}&orderType=${Constants.WORKFLOW_BASE_BUSINESS_TYPE_INCIDENT}";
                } else {
                    popupTips("响应失败", 2000);
                }
                b = false;
            })
        } else {
            popupTips("正在响应...", 2000);
        }
    }
    </script>
 
</body>
 
 
 
</html>