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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<title>事件处理</title>
 
[#include "/business/pages/include/static.html" /]
</head>
 
<body class="fullscreen">
 
[#include "/business/pages/include/header.html" /]
<div class="fs_lastitle">
    <span>事件处理</span>
</div>
 
 
[#if !baseMsg.XY_TIME?? || baseMsg.XY_TIME==""]
    <script type="text/javascript">
    window.top.openDialog("orderConfirm","工单确认",
                     {},
                     {"width":60,"height":50,"noclose":true},
                     [{btnId:"btnSure_orderConfirm", btnName:"工单确认", btnStyle:"bluebtn"}],
                     "${base}/business/pages/incident/orderConfirm.html?incidentId=${orderId}");
    </script>
[#else]
 
    [#if baseMsg?? && baseMsg?size>0]
<div class="fs_navtitle" id="fsNavtitle">
    <div class="fs_navtitle_con">
        <h2>事件处理</h2>
        <div class="fsnt_btn_left">
            <div class="icon_select">
                <a class="mainbtn dotask" href="javascript:selectPerson();"><span>分派任务</span></a>
            </div>
            <a class="mainbtn dotask" href="javascript:finishTask();"><span>结束任务</span></a>
            <!-- <a class="mainbtn delevent"><span>删除事件</span></a>-->
            <a class="mainbtn close" href="javascript:closeTask();"><span>取消事件</span></a>
        </div>
        <div class="fsnt_btn">
            <a class="mainbtn refresh" href="javascript:window.location.reload(true);"><span>刷新</span></a>
            <!--<div class="icon_select">
                <a class="mainbtn"><span><em>生成</em></span></a>
                <div class="ins_con">
                    <a>生成第一项</a>
                    <a>生成首选项</a>
                </div>
            </div>
        --></div>
    </div>
</div>
<div class="fs_main clearfix">
    <div class="fsm_left nopadding" id="fsmLeft">
        <div class="deal_switch">
            <div class="dls_btn" id="dlsBtn">
                <a class="basicinfo focus"><span><em>基本信息</em></span></a>
                <a class="relaequip"><span><em>关联配置</em></span></a>
                <a class="relaorder"><span><em>关联工单</em></span></a>
                <a class="filedoc"><span><em>文档附件</em></span></a>
                <!--<a class="flowchart"><span><em>流程图</em></span></a>-->
                <a class="flowrecord"><span><em>流转记录</em></span></a>
                <a class="dealrem"><span><em>处理记录</em></span></a>
            </div>
        </div>
        <div class="deal_switch_wrap">
            <div class="deal_switch_con iframecon" style="display:block;">
                <iframe src="${base}/business/pages/incident/incidentBaseMsg.html?orderId=${orderId}" frameborder="0" scrolling="no" width="100%" height="900px" id="baseMsgIframe"></iframe>
            </div>
            
            <div class="deal_switch_con iframecon" style="display:none;">
                <iframe src="${base}/business/pages/incident/devices.html?flowId=${flowId}" width="100%" height="600px" id="deviceIframe"></iframe>
            </div>
            
            <div class="deal_switch_con iframecon" style="display:none;">
                <iframe src="${base}/business/pages/incident/orders.html?flowId=${flowId}" width="100%" height="600px" id="orderIframe"></iframe>
            </div>
            
            <div class="deal_switch_con iframecon" style="display:none;">
                <iframe src="${base}/business/pages/incident/files.html?flowId=${flowId}&folderId=${Constants.GG_FOLDERS_SJFOLDERS}" width="100%" height="600px" id="fileIframe"></iframe>
            </div>
            
            <!--<div class="deal_switch_con" style="display:none;">流程图</div>-->
            <div class="deal_switch_con" style="display:none;">
                <iframe src="${base}/business/pages/incident/lcRecord.html?flowId=${flowId}" width="100%" height="600px" id="lzIframe"></iframe>
            </div>
            <div class="deal_switch_con iframecon" style="display:none;">
                <iframe src="${base}/business/pages/incident/dealRecord.html?flowId=${flowId}&folderId=${Constants.GG_FOLDERS_SJFOLDERS}" width="100%" height="600px" id="recordIframe"></iframe>
            </div>
        </div>
    </div>
    <div class="fsm_right" id="fsmRight">
         <div class="fsmr_basicinfo">
             [#if baseMsg?? && baseMsg?size>0]
             <table>
                 <tr class="greybg"><th><label>事件编号:</label></th><td>${baseMsg.ORDER_CODE}</td></tr>
                 <tr><th><label>事件状态:</label></th><td><span class="blue_txt">${Constants.getmapSC_WORKFLOW_INCIDENT_STATE_Label(baseMsg.STATE+"")}</span></td></tr>
                 <tr class="greybg"><th><label>${Constants.CUSTOMER_CONSTANTS}名称:</label></th><td>${baseMsg.CUSTOMER_NAME}</td></tr>
                 <tr><th><label>联系人:</label></th><td>${baseMsg.CONTACT_NAME}</td></tr>
                 <tr class="greybg"><th><label>联系方式:</label></th><td>${baseMsg.CONTACT_PHONE}</td></tr>
                 <tr><th><label>事件类型:</label></th><td>${baseMsg.TYPE_NAME}</td></tr>
                 <tr class="greybg"><th><label>服务目录:</label></th><td>${baseMsg.FIRST_CATEGORY_NAME}->${baseMsg.SECOND_CATEGORY_NAME}->${baseMsg.THIRD_CATEGORY_NAME}</td></tr>
                 <tr><th><label>优先级:</label></th><td>${baseMsg.PRIORITY_NAME}</td></tr>
                 <tr class="greybg"><th><label>影响度:</label></th><td>${baseMsg.INFLUENCE_NAME}</td></tr>
                 <tr><th><label>SLA:</label></th><td class="scores_con">
                    <!--<a class="scores_star focus"></a>
                    <a class="scores_star focus"></a>
                    <a class="scores_star"></a>
                    <a class="scores_star"></a>
                    <a class="scores_star"></a>
                    --><h4>${baseMsg.SLA_NAME}</h4>
                    <p>(<span>响应时间:</span><em class="first">${baseMsg.REQUEST_ANSWER_TIME}分钟</em><span>解决时间:</span><em>${baseMsg.REQUEST_DEAL_TIME}小时</em>)</p>
                </td></tr>
                <tr class="greybg">
                    <th><label>响应时间:</label></th>
                    <td>
                        <div  style="width:150px;" [#if baseMsg.ANSWER_TIMEOUT == 1]class="probar redbg"[#else]class="probar"[/#if]>
                            <span style="width:${baseMsg.xyWidth}px"></span>
                            <em>${baseMsg.sjxysj}&nbsp;/&nbsp;${baseMsg.REQUEST_ANSWER_TIME}(分钟)</em>
                        </div>
                    </td>
                </tr>
                <tr>
                    <th><label>解决时间:</label>
                    </th>
                        <td>
                            <div  [#if baseMsg.DEAL_TIMEOUT == 1]class="probar redbg"[#else]class="probar"[/#if]  style="width:150px;">
                                <span style="width:${baseMsg.jjWidth}px"></span>
                                <em>${baseMsg.sjjjsj}&nbsp;/&nbsp;${baseMsg.REQUEST_DEAL_TIME}(小时)</em>
                            </div>
                        </td>
                    </tr>
                <tr class="greybg"><th><label>创建时间:</label></th><td>${DateUtil.format("yyyy-MM-dd HH:mm:ss",baseMsg.CREATE_TIME)}</td></tr>
             </table>
            [/#if]
         </div>
    </div>
</div>
 
<form id="fpform" action="${base}/business/pages/incident/dispatchTask.html" method="post">
<input type="hidden" name="id" value="${flowId}" />
<input type="hidden" name="userMsg" id="userMsg" />
<input type="hidden" name="bz" id="bz" />
<input type="hidden" name="customerId" value="${baseMsg.CUSTOMER_ID}" />
<input type="hidden" name="projectId" value="${baseMsg.PROJECT_ID}" />
</form>
 
<script type="text/javascript">
 
$(function() {
    $("#dlsBtn>a").click(function() {
        var index = $("#dlsBtn>a").index(this);
        $("#dlsBtn>a").removeClass("focus");
        $(this).addClass("focus");
        
        var $dom = $("div.deal_switch_con:eq("+index+")");
        $("div.deal_switch_con").hide();
        $dom.show();
    })
    
    
    $.formValidator.initConfig({formID:"fpform",onError:function(msg){popupTips(msg)},onSuccess:function(){
            document.getElementById("fpform").target = window.top.openDialog("0","操作",
                             {},
                             {"width":40,"height":40,"noclose":true},
                             [{btnId:"tipBtnSure", btnName:"确定", btnStyle:"bluebtn"}]);
                             return true;
        }});
    
})
 
 
var serivceListId = '${baseMsg.FIRST_CATEGORY_ID}-${baseMsg.SECOND_CATEGORY_ID}-${baseMsg.THIRD_CATEGORY_ID}';
var customerId = '${baseMsg.CUSTOMER_ID}';
function selectPerson() {
            window.top.openDialog("personList","人员分配",
                     {},
                     {"width":80,"height":80},
                     [{btnId:"btnSure", btnName:"选择", btnStyle:"bluebtn"}],"${base}/business/pages/incident/users.html?customerId="+customerId+"&flowId=${flowId}&serivceListId="+serivceListId);
}
 
 
function showUser(userMsg,bz) {
    $("#userMsg").val(userMsg);
    $("#bz").val(bz);
    $("#fpform").submit();
}
 
//结束任务
function finishTask() {
    window.top.openDialog("1","解决方案",
                         {},
                         {"width":80,"height":80},
                         [{btnId:"tipBtnSure", btnName:"提交", btnStyle:"bluebtn"}],"${base}/business/pages/incident/endTask.html?incidentId=${orderId}");
}
 
 
//关闭任务
function closeTask() {
    window.top.openDialog("0","取消原因",
                         {},
                         {"width":80,"height":80},
                         [{btnId:"tipBtnSure", btnName:"提交", btnStyle:"bluebtn"}],"${base}/business/pages/incident/closeReason.html?incidentId=${orderId}");
}
 
</script>
 
 
 
[/#if]
 
 
[/#if]
 
 
 
 
 
 
[#include "/business/pages/include/footer.html" /]
</body>
</html>