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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<title>[#if RequestParameters.type == Constants.CMDB_MAINUFACTURER_CS]厂商[#elseif RequestParameters.type == Constants.CMDB_MAINUFACTURER_JCS]集成商[/#if]</title>
[#include "/business/pages/include/static.html" /]
 
</head>
 
<body class="fullscreen">
[#include "/business/pages/include/header.html" /]
 
<nav class="fs_nav">
    <div class="fsnav_con">
        <h3>${Constants.CUSTOMER_CONSTANTS}配置</h3>
        <a  href="${base}/business/pages/customerconfig/slacus/slacusMain.html?customerId=${RequestParameters.customerId}"><span>${Constants.CUSTOMER_CONSTANTS}配置</span></a>
        <a class="focus" href="${base}/business/pages/customerconfig/cuscs/cslist.html?customerId=${RequestParameters.customerId}"><span>厂商/集成商</span></a>
    </div>
</nav>
<div class="fs_navpath">
    <h3>当前位置</h3>
    <span></span>
    <a href="${base}/business/pages/customerconfig/slacus/slacusMain.html?customerId=${RequestParameters.customerId}">${Constants.CUSTOMER_CONSTANTS}配置</a>
    <span></span>
    <em>厂商/集成商</em>
</div>
<div style="margin:10px;">
</div>
 
<div class="fs_main equip_add clearfix monitor_report" >
    <div class="ucmLeft">
        [#if RequestParameters.type == Constants.CMDB_MAINUFACTURER_CS]
        [#assign tjType = 'CSGL']
        [#assign tjFocus = 'CS']
        [#elseif RequestParameters.type == Constants.CMDB_MAINUFACTURER_JCS]
        [#assign tjType = 'JCSGL']
        [#assign tjFocus = 'JCS']
        [/#if]
        [#include "/business/pages/customerconfig/cuscs/csleft.html" /]
    </div>
    <div class="expert_base " >
        
        <div class="event_fill sa_event_fill" style="margin:10px 15px;">
        <table><tr><th width="75%">
            <div class="fill_item"><label>简称:</label><input class="general" type="text" name="name" id="name"/></div>
             <div class="fill_item"><label>状态:</label>
            <select id="state" name="state" class="mysel">
              <option value="" >请选择</option>
              <option value="1" >启用</option>
              <option value="2" >禁用</option>
              </select>
        </div>
        </th><td width="25%">
            <a class="retrievebtn" id="reset" onclick="window.location.reload(true);" >重置</a><a class="retrievebtn focus" href="javascript:psearch();">查询</a>
        </td></tr></table>
        </div>
        
    <div class="fs_navtitle" >
    <div class="fs_navtitle_con common_list" style="margin:0 15px;">
        <div class="fsnt_btn">
            <a class="operating_conmon"  href="javascript:addCsJcs();"><span>增加</span></a>
        </div>
        </div>
     </div>   
        
    <div class="fs_main clearfix">
        <div id="main"></div>   
        <div class="paging clearfix" id="pagination" style="margin-bottom:10px;"></div>
    </div>
    </div>
</div>
[#include "/business/pages/include/footer.html" /]
</body>
<script type="text/javascript">
    var customerId = '${RequestParameters.customerId}';
    var type = '${RequestParameters.type}';
    var nowPage = 1;
    function query() {
        var name = $.trim($("#name").val());
        var state = $.trim($("#state").val());
        var params = {"customerId":customerId,"type":type,"name":name,"state":state};
        pagination("${base}/business/pages/customerconfig/cuscs/csData.html","${base}/business/pages/customerconfig/cuscs/csCount.html","main","pagination",{cpage:nowPage,psize:10},params,function(data,page) {
           nowPage = page;
        });
    }
    
    function psearch() {
        nowPage = 1;
        query();
    }
    
    $(function() {
        query();
    })
    
    
    //查看联系人
    function contact(csId) {
        window.top.openDialog("0","联系人列表",
                         {},
                         {"width":80,"height":80},
                         [],
                         "${base}/business/pages/customerconfig/cuscs/contactList.html?customerId="+customerId+"&csId="+csId);
    }
    
    //添加厂商或者集成商
    function addCsJcs() {
        window.top.openDialog("1","新增",
                             {},
                             {"width":60,"height":80},
                             [{btnId:"btnSure", btnName:"确定", btnStyle:"bluebtn"}],
                             "${base}/business/pages/customerconfig/cuscs/addCsJcs.html?customerId="+customerId+"&type="+type);
    }
 
    function updateCsJcs(id,type) {
        window.top.openDialog("1","修改",
                             {},
                             {"width":60,"height":80},
                             [{btnId:"btnSure", btnName:"确定", btnStyle:"bluebtn"}],
                             "${base}/business/pages/customerconfig/cuscs/addCsJcs.html?id="+id+"&type="+type+"&customerId="+customerId);
    }
 
    function changeCsState(id,state) {
        var msg;
        if(state==1) {
          msg = "确定要启用吗?";
        } else {
          msg = "确定要禁用吗?";
        }
        window.top.confirmInfo('提示', msg, function(){
            $.post("${base}/business/pages/customerconfig/cuscs/changeCsState.html",{"id":id,"state":state},function(data,textStatus) {
                if(data == 1) {
                    window.top.popupTips("操作成功");
                    query();
                } else {
                    window.top.popupTips("操作失败");
                }
                query();
            })
        })
    }
    
</script>
</html>