cy
2022-06-22 6e06bba1c89f8077e29d0fbf0ce12f89f027d8d2
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
<!doctype html>
<html>
<head>
[#include "/business/wechat/include/title.html" /]
[#include "/business/wechat/include/wheader.html" /]
</head>
 
<body>
<header class="kltit">
    <span></span>实施结果
 
</header>
<section class="wlresponse">
    <p class="next2">
        <span>解决方法</span>
        <label>
        <select id="ssjg" class="select">
        <option value="1">实施成功</option>
        <option value="2">实施失败</option>
        </select>
        </label>
        
    </p>
    <p >
        <span>实施步骤</span>
        <i><textarea name="ssbz" id="ssbz" cols="" rows="3" class="event-text"></textarea></i>
    </p>
    <p class="ht" style="display:none;">
        <span>回退步骤及结果</span>
        <i><textarea name="ssnote" id="ssnote" cols="" rows="3" class="event-text"></textarea></i>
    </p>
    <button class="bluebtn bluebtnsmal2" onclick="saveresult()" >确定</button>
</section>
 
<script type="text/javascript">
var nodeId = '${RequestParameters.nodeId}';
var flowId = '${RequestParameters.flowId}';
var orderId = '${RequestParameters.orderId}';
function saveresult(){
  var ssjg = $("#ssjg").val();
   var ssbz = $("#ssbz").val();
   var ssnote = $("#ssnote").val();
    if($.util.isEmpty(ssbz)) {
        popupTips("请输入实施步骤");
        return;
      }
     if(ssjg == 2){
       if($.util.isEmpty(ssnote)) {
        popupTips("请输入回退步骤及结果");
        return;
      }
     
     }
    $.post("${base}/ewyw/ewQuestion/ewadminEndQuestion.html",{"nodeId":nodeId,"flowId":flowId,"orderId":orderId,"ssjg":ssjg,"ssbz":ssbz,"ssnote":ssnote},function(data,textStatus) {
           window.location.href = "${base}/ewyw/ewIncident/ewoption.html?wt=1";
           
    });
 
}
$(function() {
$("#ssjg").change(function() {
           if($(this).val() == 2){
               $(".ht").show();
           }else{
               $(".ht").hide();
           }
       });
});
</script>
</body>
</html>