cy
2022-06-28 2ba5c891b24d4d0cd6ce7ef833592e4f576ee5e8
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
<!doctype html>
<html>
<head>
[#include "/business/wechat/include/title.html" /]
[#include "/business/wechat/include/wheader.html" /]
</head>
 
<body>
<header class="kltit">
    <a href="javascript:history.go(-1);"><span></span></a>工单关闭
 
</header>
<section class="wlresponse">
    <p >
        <span>关闭原因</span>
        <label>
        <select id="solveWay" class="select">
            <option value="">请选择</option>
            [#if ways?? && ways?size>0]
                  [#list ways as re]
                      <option class="ropos" value="${re.DATAKEY}" class="${re.DATAKEY}" [#if re_index==0]selected[/#if]>${re.DATAVALUE}</option>
                      <!-- <input class="ropos"  name="solveWay" type="radio" value="${re.DATAKEY}"/>&nbsp;<a>${re.DATAVALUE}</a> -->
                  [/#list]
              [/#if]
          </select>
        </label>
    </p>
    <a href="javascript:linkOrder();" class="repead">
        <p class="next2">
            <span>关联重复<br />问题工单</span>
            <i>[#if info??]${info.value}<input type="hidden" id="valueId" name="id" value="${info.id}" />[#else]<input type="hidden" id="valueId" name="id" />[/#if]</i>        
        </p>
    </a>
    <p>
        <span>流转备注</span>
        <i><textarea name="bz" id="bz" cols="" rows="3" class="event-text">[#if info??]${info.bz}[/#if]</textarea></i>
    </p>
    <button class="bluebtn bluebtnsmal2" onclick="checkSubmit();">确定</button>
</section>
</body>
<script type="text/javascript">
$(function(){
    $("#solveWay").change(function() {
       if($(this).val() == "WTCF"){
           $(".repead").show();
       }else{
           $(".repead").hide();
       }
   });
 
    var flag = $("#solveWay").val();
    if(flag == "WTCF"){
        $(".repead").show();
    }else{
        $(".repead").hide();
    }
   
   
});
 
function checkSubmit(){
    var solveWay = $("#solveWay").val();
    var bz = $.trim($("#bz").val());
    var repeat_order = $("#valueId").val();
    if(solveWay == ""){
        popupTips('请选择关闭原因!');
        return;
    }
    if(solveWay == "WTCF"){
        if(repeat_order == ""){
            popupTips('请选择重复工单!');
            return;
        }
    }
    if(bz == ""){
        popupTips('请填写流转备注!');
        return;
    }
    var solveWayName = $("."+solveWay).text();
    $.post("${base}/ewyw/ewQuestion/ewclosequestion.html",{'solveWay':solveWay,'solveWayName':solveWayName,'repeat_order':repeat_order,'bz':bz,'flowId':'${flowId}','orderId':'${orderId}','nodeId':'${nodeId}'},function(data,textStatus) {
        if(data == '1') {
            popupTips("操作成功", 2000);
            window.location.href = "${base}/ewyw/ewQuestion/ewMyQuestion.html";
        } else {
            popupTips("操作失败", 2000);
        }
    });
}
 
function linkOrder(){
    var reordercode =  $(".repead").find("i").text();
    var bz = $.util.encode($.util.encode($.trim($("#bz").val())));
    window.location.href = "${base}/ewyw/ewQuestion/ewLinkwtOrder.html?customerid=${customerId}&orderid=${orderId}&reordercode="+reordercode+"&bz="+bz+"&flowId=${flowId}+&nodeId=${nodeId}";
}
</script>
</html>