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
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
<!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" /]
[#include "/component/newupload.html" /]
[#include "/component/DatePicker.html" /]
[#include "/component/newsel.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>
<script src="${common_static}/static/ui/js/jquery.sl.js"></script>
<script type="text/javascript">
    $(document).ready(function () {
        $.formValidator.initConfig({
            formID: "myform", onError: function (msg) {
                popupTips(msg)
            }, onSuccess: function () {
                if (!(window.top.openConfirm("确定要提交吗?"))) {
                    return false;
                }
                document.getElementById("myform").target = window.top.openDialog("0", "操作",
                    {},
                    {"width": 60, "height": 40},
                    [{btnId: "btnSure", btnName: "确定", btnStyle: "bluebtn"}]);
                return true;
            }
        });
    });
</script>
<div class="fs_navpath">
    <h3>当前位置</h3>
    <span></span>
    <a>变更管理 </a>
    <span></span>
    <em>变更处理</em>
</div>
 
 
<div class="fs_navtitle" id="fsNavtitle">
    <div class="fs_navtitle_con">
        <h2>变更受理<input type="hidden" name="flowId" value="${flowId}" id="flowId"></h2>
        <div class="fsnt_btn_left">
            <a class="mainbtn back" href="javascript:history.go(-1);"><span>返回</span></a>
            <a class="mainbtn commit" href="javascript:orderAssign();"><span>工单提交</span></a>
            <div class="icon_select">
                <a class="mainbtn return" href="javascript:orderback();"><span>工单回退</span></a>
            </div>
            <div class="icon_select">
                <a class="mainbtn close" href="javascript:orderclose();"><span>工单取消</span></a>
            </div>
        </div>
        <div class="fsnt_btn">
            <a class="mainbtn refresh" href="javascript:window.location.reload(true);"><span>刷新</span></a>
        </div>
    </div>
</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]
<form id="myform" action="${base}/business/pages/change/changesl.html" method="post">
    <input type="hidden" id="id" name="id" value="${change.ID}"/>
    <input type="hidden" id="flowId" name="flowId" value="${flowId}"/>
    <input type="hidden" id="nodeId" name="nodeId" value="${nodeId}"/>
    <input type="hidden" id="orderId" name="orderId" value="${orderId}"/>
    <input type="hidden" id="isnotmain" name="isnotmain" />
</form>
 
<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="1200px" 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>
[/#if]
[#include "/business/pages/include/footer.html" /]
<script type="text/javascript">
    var base = '${base}';
    var isanswer = '${answer}';
    var buttons = [{btnId: "btnSure", btnName: "确定", btnStyle: "bluebtn"}]
    var serivceListId = '${change.FIRST_CATEGORY_ID}-${change.SECOND_CATEGORY_ID}-${change.THIRD_CATEGORY_ID}';
    var customerId = '${change.CUSTOMER_ID}';
    var projectId = '${change.PROJECT_ID}';
    var nodeId = '${nodeId}';
    function subCus() {
        var customer_id = $("#customer_id").val();
        if ($.util.isEmpty(customer_id)) {
            popupTips("请先选择${Constants.CUSTOMER_CONSTANTS}");
            return;
        }
 
        var sub_customer_id = $("#sub_customer_id").val();
 
        var url = "${base}/business/pages/servicelist/slaproject/subCus.html?type=2&customerId=" + customer_id + "&subCustomerId=" + sub_customer_id;
        window.top.openDialog("selectSubCus", "操作",
            {},
            {"width": 80, "height": 80},
            [{btnId: "btnSure", btnName: "确定", btnStyle: "bluebtn"}], url);
    }
 
 
    function showCus(labelId, labelName) {
        $("#sub_customer_name").val(labelName);
        $("#sub_customer_id").val(labelId);
    }
 
    function showSl() {
        var project_id = $("#project_id").val();
        if ($.util.isEmpty(project_id)) {
            popupTips("请先选择领域");
            return;
        }
        var customer_id = $("#customer_id").val();
        if ($.util.isEmpty(customer_id)) {
            popupTips("请先选择${Constants.CUSTOMER_CONSTANTS}");
            return;
        }
 
        var serivceList = $("#serivceList").val();
        var serivceListId = $("#serivceListId").val();
        var url = "${base}/business/pages/servicelist/slaproject/serviceListTree.html?customerId=" + customer_id + "&projectId=" + project_id + "&type=2";
        if (!$.util.isEmpty(serivceList) && !$.util.isEmpty(serivceListId)) {
            var names = serivceList.split("-");
            var ids = serivceListId.split("-");
            if (ids.length == 3) {
                url += "&sl=" + ids[2];
            }
        }
 
        window.top.openDialog("selectSl", "操作",
            {},
            {"width": 80, "height": 80},
            [{btnId: "btnSure", btnName: "确定", btnStyle: "bluebtn"}], url);
    }
 
    function showName(labelId, labelName) {
        $("#serivceList").val(labelName);
        $("#serivceListId").val(labelId);
 
    }
 
    $(function () {
        var customerId = $('#customer_id');
        $(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 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}");
    }
 
    function orderAssign() {
        $.post("${base}/business/pages/change/issave.html", {"nodeId": nodeId}, function (data, textStatus) {
            if (data == 0) {
                $("#myform").submit();
            } else {
                if (data == 1) {
                    popupTips("其他人还在处理工单");
                } else {
                    $("#isnotmain").val(1);
                    $("#myform").submit();
                }
 
            }
        });
    }
 
    //工单回退
    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": 40, "height": 60},
            [{
                btnId: "btnSure3",
                btnName: "确定",
                btnStyle: "bluebtn"
            }], "${base}/business/pages/change/closeChange.html?orderId=${orderId}&flowId=${flowId}&nodeId=${nodeId}");
    }
</script>
</body>
</html>