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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
[#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>
                        [#list reasons as reason]
                            <option value="${reason.DATAKEY}" class="${reason.DATAKEY}">${reason.DATAVALUE}</option>
                        [/#list]
                    </select>
                   </label>
                </p>
                <p>
                    <span>原因说明</span>
                    <i><textarea name="resolve" id="resolve" cols="" rows="3" class="event-text"></textarea></i>
                </p>
                <p>
                    <span>流转备注</span>
                    <i> <textarea name="bz" id="bz" cols="" rows="3" class="event-text"></textarea></i>
                </p>
                <button class="bluebtn bluebtnsmal2" onclick="javascript:checkSubmit();">确定</button>
            </section>
</body>
<script type="text/javascript">
    function checkSubmit(){
        var solveWay = $("#solveWay").val();
        var resolve = $.trim($("#resolve").val());
        var bz = $.trim($("#bz").val());
        if(solveWay == ""){
            popupTips('请选择解决方法!');
            return;
        }
        if(resolve == ""){
            popupTips('请输入原因说明!');
            return;
        }
        var solveWayName = $("."+solveWay).text();
        $.post("${base}/ewyw/ewzc/ewzcCloseReason.html",{'incidentId':'${incidentId}','solveWay':solveWay,'solveWayName':solveWayName,'resolve':resolve,'bz':bz,"isWechat":"1"},function(data,textStatus) {
            if(data == '1') {
                popupTips("操作成功", 2000);
                window.location.href = "${base}/ewyw/ewzc/ewMyzc.html";
            } else {
                popupTips("操作失败", 2000);
            }
        });
    }
</script>
</html>