cy
2022-06-23 b83c40548208609d0d6826be13d742c28a784806
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
<!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" /]
<div class="fs_lastitle">
    <span>报修详情</span>
</div>
[#if answer == 1]
    <script type="text/javascript">
        window.top.openDialog("3","报修响应",
             {},
             {"width":40,"height":40,"noclose":true},
             [{btnId:"btnSure3", btnName:"报修确认", btnStyle:"bluebtn"}],"${base}/business/pages/repair/answerRepair.html?id=${RequestParameters.id}");
    </script>
[#else]
<div class="fs_navtitle" id="fsNavtitle">
    <div class="fs_navtitle_con">
        <h2>报修详情</h2>
        <div class="fsnt_btn_left">
            <a class="mainbtn dotask" href="javascript:deal('${RequestParameters.id}');"><span>处理</span></a>
             <a class="mainbtn dotask" href="javascript:close('${RequestParameters.id}');"><span>关闭</span></a>
        </div>
    </div>
</div>
<div class="fs_main clearfix">
        <div class="deal_switch_wrap">
            <div class="deal_switch_con">
                <div class="edit_title"><h3>基本信息</h3></div>
                    <table class="edit_layout basicinfo" width="100%">
                        <tr>
                            <th><label>报修人:</label></th>
                            <td><span class="infotxt">${info.create_name}</span></td>
                            <th><label>${Constants.CUSTOMER_CONSTANTS}名称:</label></th>
                            <td><span class="infotxt">${info.cus_name}</span></td>
                        </tr>
                        <tr>
                            <th><label>报修时间:</label></th>
                            <td><span class="infotxt">${DateUtil.format("yyyy-MM-dd HH:mm",info.create_time)}</span></td>
                            <th><label>状态:</label></th>
                            <td><span class="infotxt">${Constants.getREPAIR_STATE(info.status)}</span></td>
                        </tr>
                        <tr>
                            <th><label>处理人:</label></th>
                            <td colspan="3"><span class="infotxt">${info.deal_name}</span></td>
                        </tr>
                    </table>
            </div>
        </div>
</div>
[/#if]
<script type="text/javascript">
    function deal(id){
        $.post("${base}/business/pages/repair/repairisdeal.html",{"id":id},function(data,textStatus) {
             if(data == 2){
                window.top.location.href="${base}/business/pages/incident/engineerAddIncident.html?repair="+id;
             }else{
                window.top.popupTips("该报修已被处理过");
             }
        });
    }
    
    function close(id){
        window.top.openDialog("3","关闭",
             {},
             {"width":50,"height":40},
             [{btnId:"btnSure3", btnName:"确认", btnStyle:"bluebtn"}],"${base}/business/pages/repair/closeRepair.html?id=${RequestParameters.id}");
    
    
    }
    
</script>
[#include "/business/pages/include/footer.html" /]
</body>
</html>