|
|
@@ -1,238 +1,287 @@
|
|
1
|
1
|
$(document).ready(function() {
|
|
2
|
|
- //$(".ldtp-cr ul.ld-service li").click(function() {
|
|
3
|
|
- // $(this).addClass("cr-click").siblings().removeClass("cr-click");
|
|
4
|
|
- // var index = $(this).index();
|
|
5
|
|
- // $(".gsxx").find(".sqzx").eq(index).addClass("Shows").siblings().removeClass("Shows");
|
|
|
2
|
+ $(".ldtp-cr ul.ld-service li").click(function() {
|
|
|
3
|
+ $(this).addClass("cr-click").siblings().removeClass("cr-click");
|
|
|
4
|
+ var index = $(this).index();
|
|
|
5
|
+ $(".gsxx").find(".sqzx").eq(index).addClass("Shows").siblings().removeClass("Shows");
|
|
6
|
6
|
|
|
7
|
|
- // if (index == 2) {
|
|
8
|
|
- // getLX($(".tslx"), "TSLX");
|
|
9
|
|
- // getBM($("#zrbmtree"));
|
|
10
|
|
- // getBM($("#clbmtree"));
|
|
11
|
|
- // }
|
|
12
|
|
- //});
|
|
13
|
|
- getLX($(".tslx"), "TSLX");
|
|
14
|
|
- getBM($("#zrbmtree"));
|
|
15
|
|
- getBM($("#clbmtree"));
|
|
16
|
|
- //保存客户
|
|
17
|
|
- $("#khbc").click(function () {
|
|
18
|
|
- var khid = $("#khid").val();
|
|
19
|
|
- var khmc = $("#kh_name").val();
|
|
20
|
|
- var khbh = $("#kh_code").val();
|
|
21
|
|
- var tel1 = $("#kh_tel1").val();
|
|
22
|
|
- var tel2 = $("#kh_tel2").val();
|
|
23
|
|
- var tel3 = $("#kh_tel3").val();
|
|
|
7
|
+ if(index == 2) {
|
|
|
8
|
+ getLX($(".tslx"), "TSLX");
|
|
|
9
|
+ getBM($("#zrbmtree"));
|
|
|
10
|
+ getBM($("#clbmtree"));
|
|
|
11
|
+ }
|
|
|
12
|
+ });
|
|
|
13
|
+ getLX($(".tslx"), "TSLX");
|
|
|
14
|
+ getBM($("#zrbmtree"));
|
|
|
15
|
+ getBM($("#clbmtree"));
|
|
|
16
|
+ //保存客户
|
|
|
17
|
+ $("#khbc").click(function() {
|
|
|
18
|
+ var khid = $("#khid").val();
|
|
|
19
|
+ var khmc = $("#kh_name").val();
|
|
|
20
|
+ var khbh = $("#kh_code").val();
|
|
|
21
|
+ var tel1 = $("#kh_tel1").val();
|
|
|
22
|
+ var tel2 = $("#kh_tel2").val();
|
|
|
23
|
+ var tel3 = $("#kh_tel3").val();
|
|
24
|
24
|
|
|
25
|
|
- if (!khmc) {
|
|
26
|
|
- layer.confirm('请输入客户名称!', {
|
|
27
|
|
- btn: ['确定']
|
|
28
|
|
- });
|
|
29
|
|
- return;
|
|
30
|
|
- }
|
|
31
|
|
- $.post(huayi.config.callcenter_url+'Customer/AddCustomer',
|
|
32
|
|
- {
|
|
33
|
|
- cid:khid,name: khmc, code: khbh, mobile: tel1,
|
|
34
|
|
- telphone: tel2,chargetelephone: tel3, "token": $.cookie("token")
|
|
35
|
|
- }, function (result) {
|
|
36
|
|
- result = $.parseJSON(result);
|
|
37
|
|
- if (result.state.toLowerCase() == "success") {
|
|
38
|
|
- $("#khid").val(result.data);
|
|
39
|
|
- layer.msg("保存成功");
|
|
40
|
|
- }
|
|
41
|
|
- })
|
|
42
|
|
- })
|
|
|
25
|
+ if(!khmc) {
|
|
|
26
|
+ layer.confirm('请输入客户名称!', {
|
|
|
27
|
+ btn: ['确定']
|
|
|
28
|
+ });
|
|
|
29
|
+ return;
|
|
|
30
|
+ }
|
|
|
31
|
+ $.post(huayi.config.callcenter_url + 'Customer/AddCustomer', {
|
|
|
32
|
+ cid: khid,
|
|
|
33
|
+ name: khmc,
|
|
|
34
|
+ code: khbh,
|
|
|
35
|
+ mobile: tel1,
|
|
|
36
|
+ telphone: tel2,
|
|
|
37
|
+ chargetelephone: tel3,
|
|
|
38
|
+ "token": $.cookie("token")
|
|
|
39
|
+ }, function(result) {
|
|
|
40
|
+ result = $.parseJSON(result);
|
|
|
41
|
+ if(result.state.toLowerCase() == "success") {
|
|
|
42
|
+ $("#khid").val(result.data);
|
|
|
43
|
+ layer.msg("保存成功");
|
|
|
44
|
+ }
|
|
|
45
|
+ })
|
|
|
46
|
+ })
|
|
|
47
|
+ //创建咨询工单
|
|
|
48
|
+ $(".Cj").click(function() {
|
|
|
49
|
+ var tskh = $("#zxrs").val(); //咨询人:
|
|
|
50
|
+ var tsdh = $("#zxdhs").val(); //咨询电话
|
|
|
51
|
+ var cont = $("#zxnrs").val(); //咨询内容
|
|
|
52
|
+ var clcont = $("#jdnrs").val(); //内容
|
|
|
53
|
+ var type = "1";
|
|
|
54
|
+ if(!clcont) {
|
|
|
55
|
+ layer.confirm('请输入工单内容!', {
|
|
|
56
|
+ btn: ['确定']
|
|
|
57
|
+ });
|
|
|
58
|
+ return;
|
|
|
59
|
+ }
|
|
43
|
60
|
|
|
44
|
|
- //创建投诉工单
|
|
45
|
|
- $(".addts").click(function () {
|
|
46
|
|
- var tslx = $("#tslx").val();
|
|
47
|
|
- var tskh = $("#tskh").val();
|
|
48
|
|
- var tsdh = $("#tsdh").val();
|
|
49
|
|
- var zrbm = $("#zrbm").val();
|
|
50
|
|
- var zrid = $("#zrid").val();
|
|
51
|
|
- var clbm = $("#clbm").val();
|
|
52
|
|
- var clid = $("#clid").val();
|
|
53
|
|
- var khid = $("#khid").val();
|
|
54
|
|
- var type = "3";
|
|
55
|
|
- var cont = $("#cont").val();
|
|
56
|
|
- var callid = "";
|
|
|
61
|
+ $.post(huayi.config.callcenter_url + 'CallInScreen/AddWorkOrder', {
|
|
|
62
|
+ tskh: tskh,
|
|
|
63
|
+ tsdh: tsdh,
|
|
|
64
|
+ cont: cont,
|
|
|
65
|
+ clcont: clcont,
|
|
|
66
|
+ type:type,
|
|
|
67
|
+ "token": $.cookie("token")
|
|
|
68
|
+ }, function(result) {
|
|
|
69
|
+ result = $.parseJSON(result);
|
|
|
70
|
+ if(result.state.toLowerCase() == "success") {
|
|
|
71
|
+ $("#zxrs").val(''); //咨询人:
|
|
|
72
|
+ $("#zxdhs").val(''); //咨询电话
|
|
|
73
|
+ $("#zxnrs").val(''); //咨询内容
|
|
|
74
|
+ $("#jdnrs").val(''); //内容
|
|
|
75
|
+ layer.msg("创建工单成功");
|
|
|
76
|
+ }
|
|
|
77
|
+ })
|
|
|
78
|
+ })
|
|
|
79
|
+ //创建投诉工单
|
|
|
80
|
+ $(".addts").click(function() {
|
|
|
81
|
+ var tslx = $("#tslx").val();
|
|
|
82
|
+ var tskh = $("#tskh").val();
|
|
|
83
|
+ var tsdh = $("#tsdh").val();
|
|
|
84
|
+ var zrbm = $("#zrbm").val();
|
|
|
85
|
+ var zrid = $("#zrid").val();
|
|
|
86
|
+ var clbm = $("#clbm").val();
|
|
|
87
|
+ var clid = $("#clid").val();
|
|
|
88
|
+ var khid = $("#khid").val();
|
|
|
89
|
+ var type = "3";
|
|
|
90
|
+ var cont = $("#cont").val();
|
|
|
91
|
+ var callid = "";
|
|
57
|
92
|
|
|
58
|
|
- if (!tslx) {
|
|
59
|
|
- layer.confirm('请选择投诉类型!', {
|
|
60
|
|
- btn: ['确定']
|
|
61
|
|
- });
|
|
62
|
|
- return;
|
|
63
|
|
- }
|
|
64
|
|
- if (!tskh) {
|
|
65
|
|
- layer.confirm('请输入客户名称!', {
|
|
66
|
|
- btn: ['确定']
|
|
67
|
|
- });
|
|
68
|
|
- return;
|
|
69
|
|
- }
|
|
70
|
|
- if (!tsdh) {
|
|
71
|
|
- layer.confirm('请输入客户电话!', {
|
|
72
|
|
- btn: ['确定']
|
|
73
|
|
- });
|
|
74
|
|
- return;
|
|
75
|
|
- }
|
|
76
|
|
- if (!cont) {
|
|
77
|
|
- layer.confirm('请输入工单内容!', {
|
|
78
|
|
- btn: ['确定']
|
|
79
|
|
- });
|
|
80
|
|
- return;
|
|
81
|
|
- }
|
|
|
93
|
+ if(!tslx) {
|
|
|
94
|
+ layer.confirm('请选择投诉类型!', {
|
|
|
95
|
+ btn: ['确定']
|
|
|
96
|
+ });
|
|
|
97
|
+ return;
|
|
|
98
|
+ }
|
|
|
99
|
+ if(!tskh) {
|
|
|
100
|
+ layer.confirm('请输入客户名称!', {
|
|
|
101
|
+ btn: ['确定']
|
|
|
102
|
+ });
|
|
|
103
|
+ return;
|
|
|
104
|
+ }
|
|
|
105
|
+ if(!tsdh) {
|
|
|
106
|
+ layer.confirm('请输入客户电话!', {
|
|
|
107
|
+ btn: ['确定']
|
|
|
108
|
+ });
|
|
|
109
|
+ return;
|
|
|
110
|
+ }
|
|
|
111
|
+ if(!cont) {
|
|
|
112
|
+ layer.confirm('请输入工单内容!', {
|
|
|
113
|
+ btn: ['确定']
|
|
|
114
|
+ });
|
|
|
115
|
+ return;
|
|
|
116
|
+ }
|
|
82
|
117
|
|
|
83
|
|
- $.post(huayi.config.callcenter_url+'CallInScreen/AddWorkOrder',
|
|
84
|
|
- {
|
|
85
|
|
- tslx: tslx, tskh: tskh, tsdh: tsdh, zrbm: zrbm, zrid: zrid,
|
|
86
|
|
- clbm: clbm, clid: clid, type: type, cont: cont, callid: callid,
|
|
87
|
|
- khid:khid,"token": $.cookie("token")
|
|
88
|
|
- }, function (result) {
|
|
89
|
|
- result = $.parseJSON(result);
|
|
90
|
|
- if (result.state.toLowerCase() == "success") {
|
|
91
|
|
- $("#kh_name").val("");
|
|
92
|
|
- $("#kh_code").val("");
|
|
93
|
|
- $("#kh_tel1").val("");
|
|
94
|
|
- $("#kh_tel2").val("");
|
|
95
|
|
- $("#kh_tel3").val("");
|
|
|
118
|
+ $.post(huayi.config.callcenter_url + 'CallInScreen/AddWorkOrder', {
|
|
|
119
|
+ tslx: tslx,
|
|
|
120
|
+ tskh: tskh,
|
|
|
121
|
+ tsdh: tsdh,
|
|
|
122
|
+ zrbm: zrbm,
|
|
|
123
|
+ zrid: zrid,
|
|
|
124
|
+ clbm: clbm,
|
|
|
125
|
+ clid: clid,
|
|
|
126
|
+ type: type,
|
|
|
127
|
+ cont: cont,
|
|
|
128
|
+ callid: callid,
|
|
|
129
|
+ khid: khid,
|
|
|
130
|
+ "token": $.cookie("token")
|
|
|
131
|
+ }, function(result) {
|
|
|
132
|
+ result = $.parseJSON(result);
|
|
|
133
|
+ if(result.state.toLowerCase() == "success") {
|
|
|
134
|
+ $("#kh_name").val("");
|
|
|
135
|
+ $("#kh_code").val("");
|
|
|
136
|
+ $("#kh_tel1").val("");
|
|
|
137
|
+ $("#kh_tel2").val("");
|
|
|
138
|
+ $("#kh_tel3").val("");
|
|
96
|
139
|
|
|
97
|
|
- $("#tslxname").val("");
|
|
98
|
|
- $("#zrbmname").val("");
|
|
99
|
|
- $("#zridname").val("");
|
|
100
|
|
- $("#clbmname").val("");
|
|
101
|
|
- $("#clidname").val("");
|
|
102
|
|
- $("#tslx").val("");
|
|
103
|
|
- $("#tskh").val("");
|
|
104
|
|
- $("#tsdh").val("");
|
|
105
|
|
- $("#zrbm").val("");
|
|
106
|
|
- $("#zrid").val("");
|
|
107
|
|
- $("#clbm").val("");
|
|
108
|
|
- $("#clid").val("");
|
|
109
|
|
- $("#khid").val("");
|
|
110
|
|
- $("#cont").val("");
|
|
|
140
|
+ $("#tslxname").val("");
|
|
|
141
|
+ $("#zrbmname").val("");
|
|
|
142
|
+ $("#zridname").val("");
|
|
|
143
|
+ $("#clbmname").val("");
|
|
|
144
|
+ $("#clidname").val("");
|
|
|
145
|
+ $("#tslx").val("");
|
|
|
146
|
+ $("#tskh").val("");
|
|
|
147
|
+ $("#tsdh").val("");
|
|
|
148
|
+ $("#zrbm").val("");
|
|
|
149
|
+ $("#zrid").val("");
|
|
|
150
|
+ $("#clbm").val("");
|
|
|
151
|
+ $("#clid").val("");
|
|
|
152
|
+ $("#khid").val("");
|
|
|
153
|
+ $("#cont").val("");
|
|
111
|
154
|
|
|
112
|
|
- layer.msg("创建工单成功");
|
|
113
|
|
- }
|
|
114
|
|
- })
|
|
115
|
|
- })
|
|
|
155
|
+ layer.msg("创建工单成功");
|
|
|
156
|
+ }
|
|
|
157
|
+ })
|
|
|
158
|
+ })
|
|
116
|
159
|
});
|
|
117
|
160
|
//获取部门
|
|
118
|
161
|
var setting = {
|
|
119
|
|
- data: {
|
|
120
|
|
- key: {
|
|
121
|
|
- name: "F_DeptName"
|
|
122
|
|
- },
|
|
123
|
|
- simpleData: {
|
|
124
|
|
- enable: true,
|
|
125
|
|
- idKey: "F_DeptId",
|
|
126
|
|
- pIdKey: "F_ParentId",
|
|
127
|
|
- rootPId: 0
|
|
128
|
|
- }
|
|
129
|
|
- },
|
|
130
|
|
- callback: {
|
|
131
|
|
- onClick: zTreeOnClick
|
|
132
|
|
- }
|
|
|
162
|
+ data: {
|
|
|
163
|
+ key: {
|
|
|
164
|
+ name: "F_DeptName"
|
|
|
165
|
+ },
|
|
|
166
|
+ simpleData: {
|
|
|
167
|
+ enable: true,
|
|
|
168
|
+ idKey: "F_DeptId",
|
|
|
169
|
+ pIdKey: "F_ParentId",
|
|
|
170
|
+ rootPId: 0
|
|
|
171
|
+ }
|
|
|
172
|
+ },
|
|
|
173
|
+ callback: {
|
|
|
174
|
+ onClick: zTreeOnClick
|
|
|
175
|
+ }
|
|
133
|
176
|
};
|
|
|
177
|
+
|
|
134
|
178
|
function getBM(obj) {
|
|
135
|
|
- $.getJSON(huayi.config.callcenter_url+'Department/GetAllList', { "token": $.cookie("token") }, function (result) {
|
|
136
|
|
- if (result.state.toLowerCase() == "success") {
|
|
137
|
|
- $.fn.zTree.init(obj, setting, result.data);
|
|
138
|
|
- }
|
|
139
|
|
- })
|
|
|
179
|
+ $.getJSON(huayi.config.callcenter_url + 'Department/GetAllList', {
|
|
|
180
|
+ "token": $.cookie("token")
|
|
|
181
|
+ }, function(result) {
|
|
|
182
|
+ if(result.state.toLowerCase() == "success") {
|
|
|
183
|
+ $.fn.zTree.init(obj, setting, result.data);
|
|
|
184
|
+ }
|
|
|
185
|
+ })
|
|
140
|
186
|
}
|
|
|
187
|
+
|
|
141
|
188
|
function zTreeOnClick(event, treeId, treeNode) {
|
|
142
|
|
- if (event) {
|
|
143
|
|
- event.stopPropagation();
|
|
144
|
|
- }
|
|
145
|
|
- var obj = $("#" + event.data.treeId).parent();
|
|
146
|
|
- obj.parent().find("input").eq(0).val(treeNode.F_DeptName);
|
|
147
|
|
- obj.parent().find("input").eq(1).val(treeNode.F_DeptId);
|
|
148
|
|
- obj.hide();
|
|
149
|
|
- if (event.data.treeId == "zrbmtree") {
|
|
150
|
|
- getRY($(".zrid"), $("#zrbm").val());
|
|
151
|
|
- }
|
|
152
|
|
- if (event.data.treeId == "clbmtree") {
|
|
153
|
|
- getRY($(".clid"), $("#clbm").val());
|
|
154
|
|
- }
|
|
|
189
|
+ if(event) {
|
|
|
190
|
+ event.stopPropagation();
|
|
|
191
|
+ }
|
|
|
192
|
+ var obj = $("#" + event.data.treeId).parent();
|
|
|
193
|
+ obj.parent().find("input").eq(0).val(treeNode.F_DeptName);
|
|
|
194
|
+ obj.parent().find("input").eq(1).val(treeNode.F_DeptId);
|
|
|
195
|
+ obj.hide();
|
|
|
196
|
+ if(event.data.treeId == "zrbmtree") {
|
|
|
197
|
+ getRY($(".zrid"), $("#zrbm").val());
|
|
|
198
|
+ }
|
|
|
199
|
+ if(event.data.treeId == "clbmtree") {
|
|
|
200
|
+ getRY($(".clid"), $("#clbm").val());
|
|
|
201
|
+ }
|
|
155
|
202
|
};
|
|
156
|
203
|
//获取人员
|
|
157
|
204
|
function getRY(obj, deptid) {
|
|
158
|
|
- obj.empty();
|
|
159
|
|
- obj.append('<li itemid="">--请选择--</li>');
|
|
160
|
|
- obj.parent().parent().find("input").eq(0).val("--请选择--");
|
|
161
|
|
- obj.parent().parent().find("input").eq(1).val("");
|
|
162
|
|
- $.getJSON(huayi.config.callcenter_url+'UserAccount/GetDeptUserList', { "deptid": deptid, "token": $.cookie("token") }, function (result) {
|
|
163
|
|
- if (result.state.toLowerCase() == "success") {
|
|
164
|
|
- $(result.data).each(function (i, n) {
|
|
165
|
|
- obj.append('<li itemid="' + n.F_UserId + '">' + n.F_UserName + '</li>');
|
|
166
|
|
- })
|
|
|
205
|
+ obj.empty();
|
|
|
206
|
+ obj.append('<li itemid="">--请选择--</li>');
|
|
|
207
|
+ obj.parent().parent().find("input").eq(0).val("--请选择--");
|
|
|
208
|
+ obj.parent().parent().find("input").eq(1).val("");
|
|
|
209
|
+ $.getJSON(huayi.config.callcenter_url + 'UserAccount/GetDeptUserList', {
|
|
|
210
|
+ "deptid": deptid,
|
|
|
211
|
+ "token": $.cookie("token")
|
|
|
212
|
+ }, function(result) {
|
|
|
213
|
+ if(result.state.toLowerCase() == "success") {
|
|
|
214
|
+ $(result.data).each(function(i, n) {
|
|
|
215
|
+ obj.append('<li itemid="' + n.F_UserId + '">' + n.F_UserName + '</li>');
|
|
|
216
|
+ })
|
|
167
|
217
|
|
|
168
|
|
- obj.find("li").click(function (event) {
|
|
169
|
|
- if (event) {
|
|
170
|
|
- event.stopPropagation();
|
|
171
|
|
- }
|
|
172
|
|
- $(this).parent().parent().parent().find("input").eq(0).val($(this).text());
|
|
173
|
|
- $(this).parent().parent().parent().find("input").eq(1).val($(this).attr("itemid"));
|
|
174
|
|
- $(this).parent().parent().hide();
|
|
175
|
|
- });
|
|
176
|
|
- }
|
|
177
|
|
- })
|
|
|
218
|
+ obj.find("li").click(function(event) {
|
|
|
219
|
+ if(event) {
|
|
|
220
|
+ event.stopPropagation();
|
|
|
221
|
+ }
|
|
|
222
|
+ $(this).parent().parent().parent().find("input").eq(0).val($(this).text());
|
|
|
223
|
+ $(this).parent().parent().parent().find("input").eq(1).val($(this).attr("itemid"));
|
|
|
224
|
+ $(this).parent().parent().hide();
|
|
|
225
|
+ });
|
|
|
226
|
+ }
|
|
|
227
|
+ })
|
|
178
|
228
|
}
|
|
179
|
229
|
|
|
180
|
230
|
//获取类型
|
|
181
|
231
|
function getLX(obj, type) {
|
|
182
|
|
- obj.empty();
|
|
183
|
|
- $.getJSON(huayi.config.callcenter_url+'Dictionary/GetDicValueListByFlag', { "flag": type, "token": $.cookie("token") }, function (result) {
|
|
184
|
|
- if (result.state.toLowerCase() == "success") {
|
|
185
|
|
- $(result.data).each(function (i, n) {
|
|
186
|
|
- obj.append('<li itemid="' + n.F_DictionaryValueId + '">' + n.F_Name + '</li>');
|
|
187
|
|
- })
|
|
|
232
|
+ obj.empty();
|
|
|
233
|
+ $.getJSON(huayi.config.callcenter_url + 'Dictionary/GetDicValueListByFlag', {
|
|
|
234
|
+ "flag": type,
|
|
|
235
|
+ "token": $.cookie("token")
|
|
|
236
|
+ }, function(result) {
|
|
|
237
|
+ if(result.state.toLowerCase() == "success") {
|
|
|
238
|
+ $(result.data).each(function(i, n) {
|
|
|
239
|
+ obj.append('<li itemid="' + n.F_DictionaryValueId + '">' + n.F_Name + '</li>');
|
|
|
240
|
+ })
|
|
188
|
241
|
|
|
189
|
|
- obj.find("li").click(function (event) {
|
|
190
|
|
- if (event) {
|
|
191
|
|
- event.stopPropagation();
|
|
192
|
|
- }
|
|
193
|
|
- $(this).parent().parent().parent().find("input").eq(0).val($(this).text());
|
|
194
|
|
- $(this).parent().parent().parent().find("input").eq(1).val($(this).attr("itemid"));
|
|
195
|
|
- $(this).parent().parent().hide();
|
|
196
|
|
- });
|
|
197
|
|
- }
|
|
198
|
|
- })
|
|
|
242
|
+ obj.find("li").click(function(event) {
|
|
|
243
|
+ if(event) {
|
|
|
244
|
+ event.stopPropagation();
|
|
|
245
|
+ }
|
|
|
246
|
+ $(this).parent().parent().parent().find("input").eq(0).val($(this).text());
|
|
|
247
|
+ $(this).parent().parent().parent().find("input").eq(1).val($(this).attr("itemid"));
|
|
|
248
|
+ $(this).parent().parent().hide();
|
|
|
249
|
+ });
|
|
|
250
|
+ }
|
|
|
251
|
+ })
|
|
199
|
252
|
}
|
|
200
|
253
|
|
|
201
|
254
|
/*tree下拉框效果*/
|
|
202
|
|
-$(".inpBox .tree").click(function () {
|
|
203
|
|
- if ($(this).parent().find(".addTree").is(":hidden")) {
|
|
204
|
|
- $(this).parent().find(".addTree").show();
|
|
205
|
|
- }
|
|
206
|
|
- else {
|
|
207
|
|
- $(this).parent().find(".addTree").hide();
|
|
208
|
|
- }
|
|
|
255
|
+$(".inpBox .tree").click(function() {
|
|
|
256
|
+ if($(this).parent().find(".addTree").is(":hidden")) {
|
|
|
257
|
+ $(this).parent().find(".addTree").show();
|
|
|
258
|
+ } else {
|
|
|
259
|
+ $(this).parent().find(".addTree").hide();
|
|
|
260
|
+ }
|
|
209
|
261
|
});
|
|
210
|
262
|
/*普通下拉框效果*/
|
|
211
|
|
-$(".inpBox .select").click(function () {
|
|
212
|
|
- if ($(this).parent().find(".xl_common").is(":hidden")) {
|
|
213
|
|
- $(this).parent().find(".xl_common").show();
|
|
214
|
|
- }
|
|
215
|
|
- else {
|
|
216
|
|
- $(this).parent().find(".xl_common").hide();
|
|
217
|
|
- }
|
|
|
263
|
+$(".inpBox .select").click(function() {
|
|
|
264
|
+ if($(this).parent().find(".xl_common").is(":hidden")) {
|
|
|
265
|
+ $(this).parent().find(".xl_common").show();
|
|
|
266
|
+ } else {
|
|
|
267
|
+ $(this).parent().find(".xl_common").hide();
|
|
|
268
|
+ }
|
|
218
|
269
|
});
|
|
219
|
|
-$(".xl").click(function () {
|
|
220
|
|
- if ($(this).parent().find(".addTree").is(":hidden")) {
|
|
221
|
|
- $(this).parent().find(".addTree").show();
|
|
222
|
|
- }
|
|
223
|
|
- else {
|
|
224
|
|
- $(this).parent().find(".addTree").hide();
|
|
225
|
|
- }
|
|
226
|
|
- if ($(this).parent().find(".xl_common").is(":hidden")) {
|
|
227
|
|
- $(this).parent().find(".xl_common").show();
|
|
228
|
|
- }
|
|
229
|
|
- else {
|
|
230
|
|
- $(this).parent().find(".xl_common").hide();
|
|
231
|
|
- }
|
|
|
270
|
+$(".xl").click(function() {
|
|
|
271
|
+ if($(this).parent().find(".addTree").is(":hidden")) {
|
|
|
272
|
+ $(this).parent().find(".addTree").show();
|
|
|
273
|
+ } else {
|
|
|
274
|
+ $(this).parent().find(".addTree").hide();
|
|
|
275
|
+ }
|
|
|
276
|
+ if($(this).parent().find(".xl_common").is(":hidden")) {
|
|
|
277
|
+ $(this).parent().find(".xl_common").show();
|
|
|
278
|
+ } else {
|
|
|
279
|
+ $(this).parent().find(".xl_common").hide();
|
|
|
280
|
+ }
|
|
232
|
281
|
});
|
|
233
|
|
-$(".inpBox").mouseleave(function () {
|
|
234
|
|
- $(this).children(".xl_common").hide();
|
|
235
|
|
- $(this).children(".addTree").hide();
|
|
|
282
|
+$(".inpBox").mouseleave(function() {
|
|
|
283
|
+ $(this).children(".xl_common").hide();
|
|
|
284
|
+ $(this).children(".addTree").hide();
|
|
236
|
285
|
})
|
|
237
|
286
|
//$('.xl_two').click(function() {
|
|
238
|
287
|
// var a = $(this).children(".xl_common");
|
|
|
@@ -249,22 +298,21 @@ $(".inpBox").mouseleave(function () {
|
|
249
|
298
|
// }
|
|
250
|
299
|
|
|
251
|
300
|
//*删除*/
|
|
252
|
|
-$(".inpBox").hover(function (event) {
|
|
|
301
|
+$(".inpBox").hover(function(event) {
|
|
253
|
302
|
$(this).children(".de_icon").show();
|
|
254
|
|
- event.stopPropagation();
|
|
255
|
|
-},function(){
|
|
|
303
|
+ event.stopPropagation();
|
|
|
304
|
+}, function() {
|
|
256
|
305
|
$(this).children(".de_icon").hide();
|
|
257
|
306
|
});
|
|
258
|
|
-$(".de_icon").click(function (event) {
|
|
259
|
|
- event.stopPropagation();
|
|
260
|
|
- $(this).siblings("input").eq(0).val("");
|
|
261
|
|
- $(this).siblings("input").eq(1).val("");
|
|
262
|
|
-
|
|
263
|
|
- if ($(this).siblings("div").find("ul").attr("id") == "zrbmtree") {
|
|
264
|
|
- getRY($(".zrid"), $("#zrbm").val());
|
|
265
|
|
- }
|
|
266
|
|
- if ($(this).siblings("div").find("ul").attr("id") == "clbmtree") {
|
|
267
|
|
- getRY($(".clid"), $("#clbm").val());
|
|
268
|
|
- }
|
|
269
|
|
-});
|
|
|
307
|
+$(".de_icon").click(function(event) {
|
|
|
308
|
+ event.stopPropagation();
|
|
|
309
|
+ $(this).siblings("input").eq(0).val("");
|
|
|
310
|
+ $(this).siblings("input").eq(1).val("");
|
|
270
|
311
|
|
|
|
312
|
+ if($(this).siblings("div").find("ul").attr("id") == "zrbmtree") {
|
|
|
313
|
+ getRY($(".zrid"), $("#zrbm").val());
|
|
|
314
|
+ }
|
|
|
315
|
+ if($(this).siblings("div").find("ul").attr("id") == "clbmtree") {
|
|
|
316
|
+ getRY($(".clid"), $("#clbm").val());
|
|
|
317
|
+ }
|
|
|
318
|
+});
|