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
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<!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" /]
[#include "/component/newsel.html" /]
[#include "/component/DatePicker.html" /]
[#assign label = GnConstants.THJL]
[#include "/business/pages/include/gps.html" /]
<form id="search">
<div class="fs_main clearfix">
    <div class="event_fill list_common_select">
    
    <table><tr><th width="90%">
        
        <div class="fill_item">
            <label>客户电话:</label>
                <input  class="general" type="text" name="customer_mobile" id="customer_mobile"/>
           </div>
           <div class="fill_item">
            <label>处理人员:</label>
                <input  class="general" type="text" name="user_name" id="user_name"/>
           </div>
        <div class="fill_item"><label>状态:</label>
           <select id="tra_state"  name="tra_state" class="mysel">  
                <option value="">全部</option>  
                <option value="0">未通话</option>  
                <option value="1">通话</option>  
            </select> 
        </div>
        <div class="fill_item">
            <label>开始日期:</label>
            [@datepicker id="start_time" name="start_time" value="" length=8/]
        </div>
        <div class="fill_item">
            <label>结束日期:</label>
            [@datepicker id="end_time" name="end_time" value="" length=8/]
        </div>
    </th><td width="10%">
        <a class="retrievebtn" id="reset">重置</a><a class="retrievebtn focus" onclick="query();">查询</a>
    </td></tr></table>
    </div>
    
</div>
</form>
    
    <div class="fs_main clearfix">
        <div id="main"></div>   
        <div class="paging clearfix" id="pagination"></div>
    </div>
 
<script type="text/javascript">
    function query(){
        var customer_mobile = $("#customer_mobile").val();
        var user_name = $("#user_name").val();
        var tra_state = $("#tra_state").val();
        var start_time=$("#start_time").val();
        var end_time=$("#end_time").val();
        var params = {"customer_mobile":customer_mobile,"user_name":user_name,"tra_state":tra_state,"start_time":start_time,"end_time":end_time};
        pagination("${base}/business/pages/traffic/trafficData.html","${base}/business/pages/traffic/trafficCount.html","main","pagination",{psize:10},params);
    }
    
    $(function() {
        query();
        $("#reset").click(function () {
            $("#search")[0].reset();
            $("#start_time").val("");
            $("#_start_time").val("");
            $("#end_time").val("");
            $("#_end_time").val("");
        });
        
    })
    
    
    function details(planId){
        window.top.openDialog("0","详情",
                             {},
                             {"width":"70","height":"80"},
                             [],
                             "${base}/business/pages/traffic/trafficDetail.html?id="+planId);    
    }
    function deliverReport(tra_id,mobile){
        window.top.openDialog("10","通话弹屏",
         {},
         {"width":"80","height":"90"},
         [],
         "${base}/business/pages/traffic/trafficAddIncident.html?tra_id="+tra_id+"&mobile="+mobile);    
    }
    function delPlan(id){
        var    tip = "确定要 删除该交付管理吗?";
        window.top.confirmInfo('提示', tip, function(){
            $.post("${base}/business/pages/deliver/delPlan.html", {id:id},function(data){
                  if(data == "1"){
                      window.top.popupTips("操作成功");
                      query();
                  } else {
                      window.top.popupTips("操作失败");
                  }
            },"json");
        })
    }
</script>
[#include "/business/pages/include/footer.html" /]
</body>
</html>