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
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
<!doctype html>
<html class="no-js">
<head>
    <meta charset="utf-8">
    <title>变更处理</title>
 
</head>
 
<body class="fullscreen">
 
[#include "/business/pages/include/static.html" /]
[#include "/business/pages/include/header.html" /]
<nav class="fs_nav">
    <div class="fsnav_con">
        <h3>变更工单</h3>
        <a class="focus"
           href="${base}/business/pages/change/changeDeal.html?orderId=${RequestParameters.orderId}&flowId=${RequestParameters.flowId}"><span>变更处理</span></a>
    </div>
</nav>
<div class="fs_lastitle">
    <span>变更处理</span>
</div>
[#if answer == 1]
<script type="text/javascript">
    window.top.openDialog("3", "工单响应",
            {},
            {"width": 50, "height": 50, "noclose": true},
            [{
                btnId: "btnSure3",
                btnName: "工单确认",
                btnStyle: "bluebtn"
            }], "${base}/business/pages/change/anwer.html?orderId=${orderId}&flowId=${flowId}&nodeId=${nodeId}");
</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">
                <a class="mainbtn back" href="${base}/business/pages/change/myChange.html"><span>返回</span></a>
 
                [#if curnodeId==Constants.BGSL||curnodeId==Constants.BGSP]
                    <a class="mainbtn back" href="javascript:orderback();"><span>工单回退</span></a>
                [/#if]
 
                [#if curnodeId != Constants.BGHG]
                    <div class="icon_select">
                        <a class="mainbtn dotask" href="javascript:selectPerson();"><span>工单提交</span></a>
                    </div>
                [/#if]
                [#if curnodeId==Constants.BGSP]
                     <a class="mainbtn close" href="javascript:orderclose();"><span>工单取消</span></a>
                [/#if]
                [#if curnodeId == Constants.BGHG]
                    <a class="mainbtn dotask" href="javascript:finishChange();"><span>工单结束</span></a>
                [/#if]
                [#if curnodeId == Constants.BGHG]
                    <a class="mainbtn return" href="javascript:selectPerson();"><span>工单回退</span></a>
                [/#if]
 
                [#if isclose == 1 && ismain == 1 &&curnodeId != Constants.BGHG]
                    <a class="mainbtn close" href="javascript:orderclose();"><span>工单取消</span></a>
                [/#if]
            </div>
            <div class="fsnt_btn">
                <a class="mainbtn refresh" href="javascript:window.location.reload(true);"><span>刷新</span></a>
            </div>
        </div>
    </div>
    <div class="fs_main clearfix">
        <div class="fsm_left nopadding" id="fsmLeft">
            <div class="deal_switch">
                <style>
                    .deal_switch .dls_btn.jinjibiangeng a span {
                        padding: 0 13px;
                    }
                </style>
                <div class="dls_btn jinjibiangeng" id="dlsBtn">
                    <a class="basicinfo focus"><span><em>基本信息</em></span></a>
                    <a class="dealrem"><span><em>处理记录</em></span></a>
                    [#--[#if curnodeId != Constants.CCBSP && curnodeId != Constants.BGSP]
                        <a class="pzupdate"><span><em>配置修改</em></span></a>
                        <a class="pzupdate"><span><em>DSL</em></span></a>
                    [/#if]--]
                    <a class="ccb"><span><em>CCB评审</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>
                </div>
            </div>
            <div class="deal_switch_wrap">
                <div class="deal_switch_con iframecon" style="display:block;">
                    <iframe src="${base}/business/pages/change/changeBaseMsg.html?orderId=${orderId}" width="100%"
                            height="600px" id="baseMsgIframe"></iframe>
                </div>
                <!-- <div class="deal_switch_con iframecon" style="display:none;">
                <iframe src="${base}/business/pages/change/changedealNeed.html?orderId=${orderId}&flowId=${flowId}&nodeId=${nodeId}" width="100%" height="800px" id="needIframe"></iframe>
            </div>
            <div class="deal_switch_con iframecon" style="display:none;">
                <iframe src="${base}/business/pages/change/changedealScheme.html?orderId=${orderId}&flowId=${flowId}" width="100%" height="800px" id="schemeIframe"></iframe>
            </div>-->
 
                <div class="deal_switch_con iframecon" style="display:none;">
                    <iframe src="${base}/business/pages/incident/dealRecord.html?flowId=${flowId}" width="100%"
                            height="600px" id="recordIframe"></iframe>
                </div>
                [#--[#if curnodeId != Constants.CCBSP && curnodeId != Constants.BGSP]
                    <div class="deal_switch_con iframecon" style="display:none;">
                        <iframe src="${base}/business/pages/change/updcilist.html?orderId=${orderId}&flowId=${flowId}&projectId=${baseMsg.PROJECT_ID}"
                                width="100%" height="600px" id="pzIframe"></iframe>
                    </div>
                    <div class="deal_switch_con iframecon" style="display:none;">
                        <iframe src="${base}/business/pages/change/orderDSLInfo.html?flowId=${flowId}&proId=${baseMsg.project_id}"
                                width="100%" height="600px" id="dslIframe"></iframe>
                    </div>
                [/#if]--]
                <div class="deal_switch_con iframecon" style="display:none;">
                    <iframe src="${base}/business/pages/change/ccbList.html?orderId=${orderId}&flowId=${flowId}"
                            width="100%" height="600px" id="ccbIframe"></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_BGFOLDERS}&proId=${baseMsg.PROJECT_ID}&cusId=${baseMsg.CUSTOMER_ID}"
                            width="100%" height="600px" id="lzIframe"></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>
        </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_CHANGE_STATE_Label(baseMsg.STATE+"")}
                                (${curnodeState})</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.SOURCE_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.RISK_LEVEL_NAME}</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>
    <script type="text/javascript">
        var isanswer = '${answer}';
        var serivceListId = '${baseMsg.FIRST_CATEGORY_ID}-${baseMsg.SECOND_CATEGORY_ID}-${baseMsg.THIRD_CATEGORY_ID}';
        var customerId = '${baseMsg.CUSTOMER_ID}';
        var projectId = '${baseMsg.PROJECT_ID}';
        var nodeId = '${nodeId}';
        var curnodeId = '${curnodeId}';
        var ccbpsnodeId = '${CCBPS}';
        $(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();
            })
        })
        //工单回退
        function orderback() {
            window.top.openDialog("2", "流程回退",
                    {},
                    {"width": 50, "height": 50},
                    [{
                        btnId: "btnSure2",
                        btnName: "确定",
                        btnStyle: "bluebtn"
                    }], "${base}/business/pages/change/orderBack.html?orderId=${orderId}&flowId=${flowId}&nodeId=${nodeId}");
        }
        //工单关闭
        function orderclose() {
            window.top.openDialog("3", "工单关闭",
                    {},
                    {"width": 50, "height": 80},
                    [{
                        btnId: "btnSure3",
                        btnName: "确定",
                        btnStyle: "bluebtn"
                    }], "${base}/business/pages/change/closeChange.html?orderId=${orderId}&flowId=${flowId}&nodeId=${nodeId}");
        }
 
        //工单分派
        function selectPerson() {
 
            $.post("${base}/business/pages/change/issave.html", {"nodeId": nodeId}, function (data, textStatus) {
                if (data == 0) {
                    if (curnodeId == ccbpsnodeId) {
                        window.top.openDialog("0", "CCB评审",
                                {},
                                {"width": 60, "height": 80},
                                [{
                                    btnId: "btnSure",
                                    btnName: "提交",
                                    btnStyle: "bluebtn"
                                }], "${base}/business/pages/change/ccbMainSubmit.html?projectId=" + projectId + "&orderId=${orderId}&flowId=${flowId}&nodeId=${nodeId}&curnodeId=" + curnodeId);
 
                    } else {
                        window.top.openDialog("insideAllot", "工单分派",
                                {},
                                {"width": 60, "height": 80},
                                [{
                                    btnId: "tipBtnSure",
                                    btnName: "提交",
                                    btnStyle: "bluebtn"
                                }], "${base}/business/pages/change/usersAssign.html?customerId=" + customerId + "&projectId=" + projectId + "&orderId=${orderId}&flowId=${flowId}&serivceListId=" + serivceListId + "&curnodeId=" + curnodeId);
                    }
                } else {
                    if (data == 2) {
                        window.top.openDialog("1", "工单提交",
                                {},
                                {"width": 50, "height": 70},
                                [{
                                    btnId: "btnSure",
                                    btnName: "确定",
                                    btnStyle: "bluebtn"
                                }], "${base}/business/pages/change/lzbz.html?nodeId=${nodeId}&flowId=${flowId}" + "&curnodeId=" + curnodeId);
                    } else {
                        popupTips(data+"还在处理工单");
                    }
                }
            })
        }
 
        //结束任务
        function finishChange() {
            $.post("${base}/business/pages/change/issave.html", {"nodeId": nodeId}, function (data, textStatus) {
                if (data == 0) {
                    window.top.openDialog("4", "工单提交",
                            {},
                            {"width": 50, "height": 60},
                            [{
                                btnId: "btnSure4",
                                btnName: "提交",
                                btnStyle: "bluebtn"
                            }], "${base}/business/pages/change/orderSubmit.html?orderId=${orderId}&flowId=${flowId}&nodeId=${nodeId}");
                } else {
                    if (data == 1) {
                        popupTips("其他人还在处理工单");
                    } else {
                        window.top.openDialog("1", "工单提交",
                                {},
                                {"width": 50, "height": 50},
                                [{
                                    btnId: "btnSure",
                                    btnName: "确定",
                                    btnStyle: "bluebtn"
                                }], "${base}/business/pages/change/lzbz.html?nodeId=${nodeId}");
                    }
                }
            })
        }
        //工单响应
        function answer() {
            window.top.openDialog("3", "工单响应",
                    {},
                    {"width": 50, "height": 50, "noclose": true},
                    [{
                        btnId: "btnSure3",
                        btnName: "确定",
                        btnStyle: "bluebtn"
                    }], "${base}/business/pages/change/anwer.html?orderId=${orderId}&flowId=${flowId}&nodeId=${nodeId}");
        }
 
    </script>
 
    [/#if]
[/#if]
[#include "/business/pages/include/footer.html" /]
</body>
</html>