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
<!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">
               <input type="hidden" name="id" id="id" [#if info?? && info?size>0] value="${info.ID}" [/#if] />
                <p>
                    <span>处理描述</span>
                     <i><textarea name="deal_content" id="deal_content" cols="" rows="3" class="event-text">[#if info??]${info.DEAL_CONTENT}[/#if]</textarea></i>
                </p>
                 <!-- <p>
                    <span>添加附件</span>
                    <button class="selects">上传附件</button> <button class="photographs2"><em></em>拍照</button>
                </p> -->
                <button class="bluebtn bluebtnsmal2" onclick="javascript:checkSubmit();">确定</button>
            </section>
</body>
<script type="text/javascript">
    var sftj=true;
    function checkSubmit(){
        var id = $("#id").val();
        var deal_content = $.trim($("#deal_content").val());
        if(deal_content == ""){
            popupTips('请填写处理描述!');
            return;
        }
        if(sftj){
            $.post("${base}/ewyw/ewIncident/addEwCl.html",{'id':id,'flowId':'${flowId}','deal_content':deal_content},function(data,textStatus) {
                if(data == '1') {
                    sftj=false;
                    popupTips("操作成功", 2000);
                    if('${showType}' == '${Constants.WECHAT_DETAIL_DEAL_SCORE_SJ}'){
                        window.location.href = "${base}/ewyw/ewIncident/ewIncidentInfoCl.html?orderId=${orderId}";
                    }else if('${showType}' == '${Constants.WECHAT_DETAIL_DEAL_SCORE_WT}'){
                        window.location.href = "${base}/ewyw/ewQuestion/ewQuestionDeal.html?orderId=${orderId}&flowId=${flowId}";
                    }else if('${showType}' == '${Constants.WECHAT_DETAIL_DEAL_SCORE_LXWH}'){
                        window.location.href = "${base}/ewyw/ewRemind/ewRemindInfoCl.html?orderId=${orderId}";
                    }else if('${showType}' == '${Constants.WECHAT_DETAIL_DEAL_SCORE_JKJC}'){
                        window.location.href="${base}/ewyw/ewHealth/ewHealthInfoCl.html?orderId=${orderId}";
                    }
                } else {
                    popupTips("操作失败", 2000);
                }
            },"json");
        }
    }
</script>
</html>