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" /]
<nav class="fs_nav">
    <div class="fsnav_con">
        <h3>值班列表</h3>
    </div>
</nav>
<div class="fs_navpath">
    <h3>当前位置</h3>
    <span></span>
    <em>值班管理</em>
</div>
 
<div class="fs_main clearfix">
    
</div>
 
    
    <div class="fs_main clearfix">
        <div id="main"></div>   
        <div class="paging clearfix" id="pagination"></div>
    </div>
 
<script type="text/javascript">
    function query(){
        var proId = '${RequestParameters.proId}';
        var cusId = $("#customer_id").val();
        var subCusId = $("#sub_customer_id").val();
        var state = $("#state").val();
        var params = {"cusId":cusId,"subCusId":subCusId,"state":state,"proId":proId};
        pagination("${base}/business/pages/duty/dutyPlanListDataRead.html","${base}/business/pages/duty/dutyPlanListCountRead.html","main","pagination",{psize:10},params);
    }
    
    $(function() {
        var proId = '${RequestParameters.proId}';
        query();
        $("#reset").click(function() {
            window.location.reload(true);
        });
        $("#addBtn").click(function() {
            window.top.openDialog("0","添加",
                             {},
                             {"width":"50","height":"60"},
                             [{btnId:"btnSure", btnName:"确定", btnStyle:"bluebtn"}],
                             "${base}/business/pages/duty/addDutyPlan.html?proId="+proId);    
        });
        
    })
    
    
    function subCus() {
        var customer_id = $("#customer_id").val();
        if($.util.isEmpty(customer_id)) {
            popupTips("请先选择客户");
            return;
        }
        
        var sub_customer_id = $("#sub_customer_id").val();
        
        var url = "${base}/business/pages/servicelist/slaproject/subCus.html?type=2&customerId="+customer_id+"&subCustomerId="+sub_customer_id;
        window.top.openDialog("selectSubCus","操作",
                             {},
                             {"width":80,"height":80},
                             [{btnId:"btnSure", btnName:"确定", btnStyle:"bluebtn"}],url);
    }
    
    function showCus(labelId,labelName) {
        $("#sub_customer_name").val(labelName);
        $("#sub_customer_id").val(labelId);
    }
    
    
    function edit(planId){
        var proId = '${RequestParameters.proId}';
        window.top.openDialog("0","修改",
                             {},
                             {"width":"50","height":"60"},
                             [{btnId:"btnSure", btnName:"确定", btnStyle:"bluebtn"}],
                             "${base}/business/pages/duty/addDutyPlan.html?proId="+proId+"&planId="+planId);    
    }
    
    function config(planId){
        window.top.openDialog("0","设置",
                             {},
                             {"width":"50","height":"60"},
                             [{btnId:"btnSure", btnName:"确定", btnStyle:"bluebtn"}],
                             "${base}/business/pages/duty/configDutyPlan.html?planId="+planId);
    }
    
    function selPerson(planId){
        window.top.openDialog("0","选择人员",
                             {},
                             {"width":"70","height":"60"},
                             [{btnId:"btnSure", btnName:"确定", btnStyle:"bluebtn"}],
                             "${base}/business/pages/duty/selPerson.html?planId="+planId);
    }
    
</script>
 
[#include "/business/pages/include/footer.html" /]
</body>
</html>