Browse Source

修改 客户档案;

fanlongfei 7 years ago
parent
commit
7106ade680

+ 1 - 1
CallCenterWeb.UI/OutboundMessage/LookMessage.html

@@ -35,7 +35,7 @@
35 35
 						<li>
36 36
 							<label for="country">乡镇:</label>
37 37
 							<select id="country" class="form-control">
38
-								<option value="">请选择乡镇</option>
38
+								<option value="0">请选择乡镇</option>
39 39
 							</select>
40 40
 						</li>
41 41
 						<li>

+ 2 - 0
CallCenterWeb.UI/OutboundMessage/MyTask.html

@@ -51,6 +51,8 @@
51 51
 						<tr>
52 52
 							<th data-field="state" data-checkbox="true"></th>
53 53
 							<th data-field="F_Phone" data-align="center" data-formatter="Code">号码</th>
54
+							<th data-field="F_CusName" data-align="center">姓名</th>
55
+							<th data-field="ExpandVchField12" data-align="center">地址</th>
54 56
 							<th data-field="F_UserName" data-align="center">分配坐席</th>
55 57
 							<th data-field="F_HJJGName" data-align="center">呼叫结果</th>
56 58
 						</tr>

+ 4 - 0
CallCenterWeb.UI/OutboundMessage/MyTaskResult.html

@@ -57,6 +57,9 @@
57 57
 							<th data-formatter="formatterOperation" data-align="center">操作</th>
58 58
 							<!--<th data-field="state" data-checkbox="true"></th>-->
59 59
 							<th data-field="F_Phone" data-align="center" data-formatter="Code">号码</th>
60
+							<th data-field="F_CusName" data-align="center">姓名</th>
61
+							<th data-field="ExpandVchField4" data-align="center">乡镇</th>
62
+							<th data-field="ExpandVchField3" data-align="center">住址</th>
60 63
 							<th data-field="F_UserName" data-align="center">分配坐席</th>
61 64
 							<th data-field="F_HJJGName" data-align="center">呼叫结果</th>
62 65
 							<!--<th data-field="F_YHFKName" data-align="center">用户反馈</th>-->
@@ -175,6 +178,7 @@
175 178
 					type: 2,
176 179
 					content: "../commonHtml/orderModel.html?tid=" + tid, //iframe的url,no代表不显示滚动条
177 180
 					title: '新建工单',
181
+					maxmin: true,
178 182
 					area: ['86%', '88%'], //宽高
179 183
 				});
180 184
 			}

+ 4 - 11
CallCenterWeb.UI/OutboundMessage/TaskResult.html

@@ -9,16 +9,6 @@
9 9
 		<script src="../Script/Common/huayi.config.js"></script>
10 10
 		<link href="../css/Table/table1.css" rel="stylesheet" />
11 11
 		<link href="../css/init.css" rel="stylesheet" />
12
-		<style>
13
-			table td {
14
-				word-break: break-all;
15
-				word-wrap: break-word;
16
-			}
17
-			
18
-			table th {
19
-				min-width: 120px;
20
-			}
21
-		</style>
22 12
 	</head>
23 13
 
24 14
 	<body class="gray-bg">
@@ -61,12 +51,14 @@
61 51
 							<th data-formatter="formatterOperation" data-align="center">操作</th>
62 52
 							<!--<th data-field="state" data-checkbox="true"></th>-->
63 53
 							<th data-field="F_Phone" data-align="center" data-formatter="Code">号码</th>
54
+							<th data-field="F_CusName" data-align="center">姓名</th>
55
+							<th data-field="ExpandVchField4" data-align="center">乡镇</th>
56
+							<th data-field="ExpandVchField3" data-align="center">住址</th>
64 57
 							<th data-field="F_UserName" data-align="center">分配坐席</th>
65 58
 							<th data-field="F_HJJGName" data-align="center">呼叫结果</th>
66 59
 							<!--<th data-field="F_YHFKName" data-align="center">用户反馈</th>-->
67 60
 						</tr>
68 61
 					</thead>
69
-					<tbody id="tbody"></tbody>
70 62
 				</table>
71 63
 			</div>
72 64
 		</div>
@@ -205,6 +197,7 @@
205 197
 					type: 2,
206 198
 					content: "../commonHtml/orderModel.html?tid=" + tid, //iframe的url,no代表不显示滚动条
207 199
 					title: '新建工单',
200
+					maxmin: true,
208 201
 					area: ['86%', '88%'], //宽高
209 202
 				});
210 203
 			}

+ 1 - 0
CallCenterWeb.UI/OutboundMessage/wxQueResult.html

@@ -125,6 +125,7 @@
125 125
 					type: 2,
126 126
 					content: "../commonHtml/orderModel.html?tid=" + tid, //iframe的url,no代表不显示滚动条
127 127
 					title: '新建工单',
128
+					maxmin: true,
128 129
 					area: ['86%', '88%'], //宽高
129 130
 				});
130 131
 			}

+ 1 - 1
CallCenterWeb.UI/WorkOrder/WorkOrderParty.html

@@ -48,7 +48,7 @@
48 48
 							<li>客户名称:<input class="photo x-color inputs" type="text" id="name" /></li>
49 49
 							<li>客户电话:<input class="photo x-color inputs" type="text" id="tel" /></li>
50 50
 							<li>反映问题关键字:<input class="photo x-color inputs" type="text" id="ss_gdnr" /></li>
51
-							<li>时间:<input class=" x-color  laydate-icon" type="text" id="STime" style="width: 240px;" /></li>
51
+							<li>时间:<input class="x-color laydate-icon" type="text" id="STime" style="width: 240px;" /></li>
52 52
 							<li>
53 53
 								<a class="sc_btn btns ss">搜索</a>
54 54
 							</li>

+ 920 - 0
CallCenterWeb.UI/callScreen/备份call.js

@@ -0,0 +1,920 @@
1
+//来电弹屏
2
+
3
+laydate.render({
4
+	elem: '#old_startTime',
5
+	calendar: 'true',
6
+	theme: '#1ab394'
7
+});
8
+
9
+laydate.render({
10
+	elem: '#old_endTime',
11
+	calendar: 'true',
12
+	theme: '#1ab394'
13
+});
14
+laydate.render({
15
+	elem: '#con_startTime',
16
+	calendar: 'true',
17
+	theme: '#1ab394'
18
+});
19
+
20
+laydate.render({
21
+	elem: '#con_endTime',
22
+	calendar: 'true',
23
+	theme: '#1ab394'
24
+});
25
+//弹屏右侧切换效果
26
+$(".ldtp-cr ul.ld-service li").click(function() {
27
+	$(this).addClass("cr-click").siblings().removeClass("cr-click");
28
+	loadOld();
29
+});
30
+$('.pre-add').click(function() {
31
+	var par = $(this).parent().parent();
32
+	par.hide().siblings().show();
33
+})
34
+//来电时传输的数据
35
+var Number = helper.request.queryString("Number");
36
+var CallID = helper.request.queryString("CallID");
37
+$(".ldhm").val(Number);
38
+$(".hidTel").val(Number);
39
+$(".tel").text(Number);
40
+$(".ldtime").text(top.getNowFormatDate());
41
+$(".thsc").text("00:00");
42
+$(".hidCallID").val(CallID);
43
+$("#zxdh_").val(Number);
44
+$("#tsdh").val(Number);
45
+$(".thsc").text("00:00");
46
+//获取电话所属地
47
+$.getJSON(huayi.config.callcenter_url + 'CallInScreen/GetPhoneLocation', {
48
+	"tel": $(".hidTel").val(),
49
+	"token": $.cookie("token")
50
+}, function(result) {
51
+	if(result.state.toLowerCase() == "success") {
52
+		$(".khgsd").text(result.data);
53
+		$(".ldlocation").text(result.data);
54
+	}
55
+})
56
+//获取信息
57
+$.getJSON(huayi.config.callcenter_url + 'UserAccount/GetNowUser', {
58
+	"token": $.cookie("token")
59
+}, function(result) {
60
+	if(result.state.toLowerCase() == "success") {
61
+		console.log(result);
62
+
63
+		if(result.data.role) {
64
+			console.log(result.data);
65
+			UserCode = result.data.user.F_UserCode;
66
+
67
+		}
68
+
69
+	}
70
+})
71
+
72
+//获取客户信息
73
+$(".ldtel").text($(".hidTel").val());
74
+$("#tsdh").val($(".hidTel").val());
75
+$(".ldtel1").val($(".hidTel").val());
76
+$.getJSON(huayi.config.callcenter_url + 'CallInScreen/GetCustomerByTel', {
77
+	"tel": $(".hidTel").val(),
78
+	"token": $.cookie("token")
79
+}, function(result) {
80
+	if(result.state.toLowerCase() == "success") {
81
+		if(result.data.length > 0) {
82
+			$("#zxr_").val(result.data[0].F_CustomerName);
83
+			$("#tskh").val(result.data[0].F_CustomerName);
84
+			$("#khid").val(result.data[0].F_CustomerId);
85
+			$(".khbh").val(result.data[0].F_CustomerCode);
86
+			$(".ldtel1").val(result.data[0].F_Telephone);
87
+			$(".ldtel2").val(result.data[0].F_Mobile);
88
+			$(".ldtel3").val(result.data[0].F_ChargeTelephone);
89
+
90
+		}
91
+	}
92
+})
93
+
94
+var timestamp = Date.parse(new Date());
95
+loadOld();
96
+
97
+$('.head-pic .lahei .la-before').show();
98
+//触发来电类型第一个 点击;
99
+$("#dicValueList li:first-child").find("label").trigger('click');
100
+$('.head-pic .lahei .la-after').hide();
101
+
102
+function clearInter() {
103
+	clearInterval(timer);
104
+}
105
+
106
+//通话中执行变化
107
+var timer, n = 0;
108
+
109
+function calling() {
110
+	$(".td-call").show();
111
+	n = 0;
112
+	clearInterval(timer);
113
+	timer = setInterval(function() {
114
+		n++;
115
+		var m = parseInt(n / 60 % 60);
116
+		var s = parseInt(n % 60);
117
+		//          var thsc=toDub(m) + ":" + toDub(s);
118
+		$(".thsc").text(toDub(m) + ":" + toDub(s));
119
+	}, 1000);
120
+
121
+}
122
+
123
+function toDub(i) {
124
+	return i < 10 ? "0" + i : "" + i;
125
+}
126
+//最大化 最小化效果
127
+//最小化
128
+//  $('.minClosed').click(function () {
129
+//      $('.ldtp-con').removeClass('fadeInDown');
130
+//      $('.ldtp-con').addClass('fadeOutUp');
131
+//      $('.ldtp-con').css("display", "none");
132
+//      $('.maxOpen').show();
133
+//      $('.maxOpen').addClass('fadeInDown');
134
+//  });
135
+
136
+//最大化
137
+//  $('.maxOpen').click(function () {
138
+//      //触发来电类型第一个 点击;测试用
139
+//      //$("#dicValueList li:first-child").find("label").trigger('click');
140
+//      $('.ldtp-con').removeClass('fadeOutUp');
141
+//      $('.ldtp-con').addClass('fadeInDown');
142
+//      $('.ldtp-con').css("display", "block");
143
+//      $('.maxOpen').hide();
144
+//      $('.maxOpen').removeClass('fadeInDown');
145
+//      $('.maxOpen').addClass('fadeInDown');
146
+//      $('.first').removeClass('first');
147
+//      $('.ldtp-con').addClass('first');
148
+//
149
+//  })
150
+//关闭弹框
151
+//  $(".Bacha").click(function () {
152
+//      //清除来电类型样式
153
+//      //debugger;
154
+//      $('#dicValueList li').find("label").removeClass('checkedDept');
155
+//      $('.ldtp-con').removeClass('fadeInDown');
156
+//      $('.ldtp-con').addClass('fadeOutUp');
157
+//      $('.ldtp-con').css("display", "none");
158
+//      Clean();
159
+//      top.obj.Type = "SayFree";
160
+//      top.Send();
161
+//  })
162
+//顶部小头像
163
+//  var little_pic = $('.head-pic .hp-box img').attr("src");
164
+//  $('.maxOpen li .photo img').attr("src", little_pic);
165
+//点击左侧菜单来电弹屏显示
166
+//  $('.tantan').click(function () {
167
+//      $('.maxOpen').trigger("click");
168
+//      $('.head-pic .lahei .la-before').show();
169
+//      $('.head-pic .lahei .la-after').hide();
170
+//
171
+//  })
172
+
173
+//点击挂断
174
+$('.head-pic .td-call .take').click(function() {
175
+	//      top.obj.Type = "DropCall";
176
+	////    top.obj.Type = "TurnIvr";
177
+	//      top.obj.AgentID = $.cookie("zx_user");
178
+	//      top.obj.AgentExten = $.cookie("extno");
179
+	//      top.obj.IvrName = "MYD";
180
+	//      top.obj.IvrPos = "1";
181
+	//     	top.Send();
182
+
183
+	top.obj.Type = "DropCall";
184
+	top.Send();
185
+
186
+});
187
+
188
+//点击拉黑事件				
189
+$('.head-pic .lahei .la-before').click(function() {
190
+	if(!$(".hidTel").val()) {
191
+		layer.confirm('来电号码为空!', {
192
+			btn: ['确定']
193
+		});
194
+		return;
195
+	}
196
+	$("#time-word").val('');
197
+	$('.ldtp-con .hei-list').show();
198
+
199
+})
200
+//拉黑输入框事件
201
+$('.hei-list .bacha').click(function() {
202
+	$('.ldtp-con .hei-list').hide();
203
+	$("#time-word").val('');
204
+
205
+})
206
+var reg = /^\+?[1-9][0-9]*$/;
207
+
208
+$('#bc').click(function() {
209
+	var n = $("#time-word").val();
210
+	var val = $("input[name='time']:checked").val();
211
+	if(n) {
212
+		if(!(reg.test(n))) {
213
+			layer.confirm('请输入整数时间!', {
214
+				btn: ['确定']
215
+			});
216
+			return;
217
+		}
218
+	} else {
219
+		if(val == '4') {
220
+			n = 0;
221
+		} else {
222
+			layer.confirm('请输入整数时间!', {
223
+				btn: ['确定']
224
+			});
225
+			return;
226
+		}
227
+	}
228
+	$.post(huayi.config.callcenter_url + 'CallInScreen/AddBlack', {
229
+		tel: $(".hidTel").val(),
230
+		num: n,
231
+		type: val,
232
+		"token": $.cookie("token")
233
+	}, function(result) {
234
+		result = $.parseJSON(result);
235
+		if(result.state.toLowerCase() == "success") {
236
+
237
+			layer.msg("拉入黑名单成功");
238
+
239
+			$('.la-shichang .blackTime').html(result.data);
240
+			//$('.ldtp-con .hei-list').removeClass('bounceIn');
241
+			//$('.ldtp-con .hei-list').addClass('bounceOutUp');
242
+			$('.ldtp-con .hei-list').hide();
243
+			$('.head-pic .lahei .la-before').hide();
244
+			$('.head-pic .lahei .la-after').show();
245
+			$('.head-pic .lahei .retur').show();
246
+		}
247
+	})
248
+})
249
+
250
+$('.la-after').click(function() {
251
+	if(!$(".hidTel").val()) {
252
+		layer.confirm('来电号码为空!', {
253
+			btn: ['确定']
254
+		});
255
+		return;
256
+	}
257
+
258
+	$("#time-word").val('');
259
+	$('.ldtp-con .hei-list').show();
260
+	$('.ldtp-con .hei-list').removeClass('bounceOutUp');
261
+	$('.ldtp-con .hei-list').addClass('bounceIn');
262
+})
263
+$('.head-pic .lahei .retur').click(function() {
264
+	$.getJSON(huayi.config.callcenter_url + 'CallInScreen/DelBlack', {
265
+		tel: $(".hidTel").val(),
266
+		"token": $.cookie("token")
267
+	}, function(result) {
268
+		if(result.state.toLowerCase() == "success") {
269
+			layer.msg("取消黑名单成功");
270
+			$('.head-pic .lahei .retur').hide();
271
+			$('.head-pic .lahei .la-after').hide();
272
+			$('.head-pic .lahei .la-before').show();
273
+		}
274
+	})
275
+})
276
+
277
+//创建投诉工单
278
+$(".addt_").click(function() {
279
+	Statess = 0
280
+	var value = $(' input[name="banli"]:checked ').val();
281
+	if(!$("#cusname").val()) {
282
+		layer.msg("请输入投诉人姓名");
283
+	} else if(!$("#cusphone").val()) {
284
+		layer.msg("请输入投诉电话");
285
+	} else if(!$("#title").val()) {
286
+		layer.msg("请输入标题");
287
+	} else if(!$("#content").val()) {
288
+		layer.msg("请输入内容");
289
+	} else if(!$("#keys").val()) {
290
+		layer.msg("请选择主题词");
291
+	} else if(!$("#sourcearea").val()) {
292
+		layer.msg("请选择事发区域");
293
+	} else if(value == 1 && !$('#result').val()) {
294
+		layer.msg("请输入直办内容");
295
+
296
+	} else {
297
+		Adds();
298
+	}
299
+})
300
+
301
+$(".add_").click(function() {
302
+	var tskh = $("#zxr_").val(); //咨询人:
303
+	var tsdh = $("#zxdh_").val(); //咨询电话
304
+	var cont = $("#zxnr_").val(); //咨询内容
305
+	var clcont = $("#clnr_").val(); //内容
306
+	var type = "1";
307
+	if(!clcont) {
308
+		layer.confirm('请输入处理内容!', {
309
+			btn: ['确定']
310
+		});
311
+		return;
312
+	}
313
+
314
+	$.post(huayi.config.callcenter_url + 'CallInScreen/AddWorkOrder', {
315
+		tskh: tskh,
316
+		tsdh: tsdh,
317
+		cont: cont,
318
+		clcont: clcont,
319
+		type: type,
320
+		"token": $.cookie("token")
321
+	}, function(result) {
322
+		result = $.parseJSON(result);
323
+		if(result.state.toLowerCase() == "success") {
324
+			loadOld();
325
+			$("#zxr_").val(''); //咨询人:
326
+			$("#zxdh_").val(''); //咨询电话
327
+			$("#zxnr_").val(''); //咨询内容
328
+			$("#clnr_").val(''); //内容
329
+			layer.msg("创建工单成功");
330
+		}
331
+	})
332
+})
333
+
334
+//创建投诉工单
335
+$(".addts").click(function() {
336
+	var tslx = $("#tslx").val();
337
+	var tskh = $("#tskh").val();
338
+	var tsdh = $("#tsdh").val();
339
+	var zrbm = $("#zrbm").val();
340
+	var zrid = $("#zrid").val();
341
+	var clbm = $("#clbm").val();
342
+	var clid = $("#clid").val();
343
+	var khid = $("#khid").val();
344
+	var type = "3";
345
+	var cont = $("#cont").val();
346
+	var callid = $(".hidCallID").val();
347
+
348
+	if(!tslx) {
349
+		layer.confirm('请选择投诉类型!', {
350
+			btn: ['确定']
351
+		});
352
+		return;
353
+	}
354
+	if(!tskh) {
355
+		layer.confirm('请输入客户名称!', {
356
+			btn: ['确定']
357
+		});
358
+		return;
359
+	}
360
+	if(!tsdh) {
361
+		layer.confirm('请输入客户电话!', {
362
+			btn: ['确定']
363
+		});
364
+		return;
365
+	}
366
+	if(!cont) {
367
+		layer.confirm('请输入工单内容!', {
368
+			btn: ['确定']
369
+		});
370
+		return;
371
+	}
372
+
373
+	$.post(huayi.config.callcenter_url + 'CallInScreen/AddWorkOrder', {
374
+		tslx: tslx,
375
+		tskh: tskh,
376
+		tsdh: tsdh,
377
+		zrbm: zrbm,
378
+		zrid: zrid,
379
+		khid: khid,
380
+		clbm: clbm,
381
+		clid: clid,
382
+		type: type,
383
+		cont: cont,
384
+		callid: callid,
385
+		"token": $.cookie("token")
386
+	}, function(result) {
387
+		result = $.parseJSON(result);
388
+		if(result.state.toLowerCase() == "success") {
389
+			loadOld();
390
+			$("#zrbmname").val("");
391
+			$("#zrbm").val("");
392
+			$("#zrid").empty()
393
+			$("#clbmname").val("");
394
+			$("#clbm").val("");
395
+			$("#clid").empty()
396
+			$("#cont").val("");
397
+
398
+			layer.msg("创建工单成功");
399
+		}
400
+	})
401
+
402
+})
403
+
404
+function Adds() {
405
+	var callid = $(".hidCallID").val();
406
+	$.ajax({
407
+		type: "post",
408
+		url: huayi.config.callcenter_url + "/WorkOrder/AddWorkOrder",
409
+		dataType: 'json',
410
+		async: true,
411
+		data: {
412
+			cusname: $("#cusname").val(), //=投诉人姓名
413
+			cussex: $("#cussex").val(),
414
+			cusphone: $("#cusphone").val(), //=投诉人电话
415
+			email: $("#email").val(),
416
+			zipcode: $("#zipcode").val(),
417
+			conphone: $("#conphone").val(),
418
+			title: $("#title").val(),
419
+			content: $("#content").val(),
420
+			callid: callid,
421
+			// 						files:$("#file").val(),//(多个用英文逗号,隔开)
422
+			sourcearea: $("#sourcearea").val(), //=事发地域id
423
+			sourceaddress: $('#sourceaddress').val(), //=事发详细地址
424
+			source: 1, //=来源
425
+			isresult: $(' input[name="banli"]:checked ').val(), //=(0转办1直办)
426
+			result: $('#result').val(),
427
+			keys: $("#keys").val(), //=关键词id(多个用英文逗号,隔开)				
428
+			type: $("#type").val(), //=类型			
429
+			isprotect: $(' input[name="mj"]:checked ').val(), //=(0普通1保密)
430
+			level: $('#level').val(), //=(1普通2紧急)
431
+			issubmit: Statess, //=(0保存1保存并提交)
432
+			token: $.cookie("token")
433
+		},
434
+		success: function(data) {
435
+			$(".ldtp-cr ul.ld-service li").eq(2).trigger("click");
436
+			//$(".hidCallID").val("");
437
+			layer.msg("操作成功");
438
+			Clean();
439
+
440
+		}
441
+	})
442
+}
443
+//客户资料
444
+$('.khzl tbody>tr>td input').attr('readonly', true);
445
+$('.save').hide();
446
+$('.cancel').hide();
447
+$('.edit').click(function() {
448
+	$('.save').show();
449
+	$('.cancel').show();
450
+	$('.edit').hide();
451
+	$('.khzl tbody>tr>td input').attr('readonly', false);
452
+	$('.khzl tbody>tr>td input').css('border-bottom', "1px solid #b3b3b3");
453
+})
454
+$('.cancel').click(function() {
455
+	$('.khzl tbody>tr>td input').attr('readonly', true);
456
+	$('.khzl tbody>tr>td input').css('border', "0");
457
+	$('.save').hide();
458
+	$('.cancel').hide();
459
+	$('.edit').show();
460
+})
461
+//保存客户
462
+$(".save").click(function() {
463
+	var khid = $("#khid").val();
464
+	var khmc = $(".khmc").val();
465
+	var khbh = $(".khbh").val();
466
+	var tel1 = $(".ldtel1").val();
467
+	var tel2 = $(".ldtel2").val();
468
+	var tel3 = $(".ldtel3").val();
469
+
470
+	if(!khmc) {
471
+		layer.confirm('请输入客户名称!', {
472
+			btn: ['确定']
473
+		});
474
+		return;
475
+	}
476
+	$.post(huayi.config.callcenter_url + 'Customer/AddCustomer', {
477
+		cid: khid,
478
+		name: khmc,
479
+		code: khbh,
480
+		mobile: tel1,
481
+		telphone: tel2,
482
+		chargetelephone: tel3,
483
+		"token": $.cookie("token")
484
+	}, function(result) {
485
+		result = $.parseJSON(result);
486
+		if(result.state.toLowerCase() == "success") {
487
+			$("#khid").val(result.data);
488
+			$("#tskh").val(khmc);
489
+			layer.msg("保存成功");
490
+			$('.save').hide();
491
+			$('.cancel').hide();
492
+			$('.edit').show();
493
+		}
494
+	})
495
+})
496
+
497
+//知识库查询
498
+$(".searIcon").click(function() {
499
+	loadZSK();
500
+})
501
+//历史记录查询
502
+$(".searchbtn").click(function() {
503
+	loadOld();
504
+})
505
+//新增记录
506
+$(".addjl").click(function() {
507
+	var type = $(".ldtp-cr ul.ld-service .cr-click").attr("itemtype");
508
+	if(type == '3') {
509
+		$(".addgd").show();
510
+		$(".tbold").hide();
511
+	} else if(type == '1') {
512
+		$(".zxbg").show();
513
+		$(".tbold").hide();
514
+
515
+	}
516
+})
517
+//加载部门人员
518
+$("#zrbmname").click(function() {
519
+	if($(".zrbmmenu").is(":hidden")) {
520
+		$(".zrbmmenu").show();
521
+	} else {
522
+		$(".zrbmmenu").hide();
523
+	}
524
+})
525
+$("#clbmname").click(function() {
526
+	if($(".clbmmenu").is(":hidden")) {
527
+		$(".clbmmenu").show();
528
+	} else {
529
+		$(".clbmmenu").hide();
530
+	}
531
+})
532
+$(".col-sm-3").mouseleave(function() {
533
+	$(".ztree").parent().hide();
534
+})
535
+
536
+//获取知识库
537
+loadZSK();
538
+
539
+function loadZSK() {
540
+	$.getJSON(huayi.config.callcenter_url + 'CallInScreen/GetZSKList', {
541
+		"keywords": $(".search").val(),
542
+		"token": $.cookie("token")
543
+	}, function(result) {
544
+		if(result.state.toLowerCase() == "success") {
545
+			$(".ldcr-bottom .detail-con ul").empty();
546
+			$(result.data).each(function(i, n) {
547
+				var html = '<li>' +
548
+					'   <div class="zhishi-title clearfix">' +
549
+					'	    <a href="javascript:void(0);" >' + n.F_Title + '</a>' +
550
+					'	    <em >' + n.F_CreateOn + '</em>' +
551
+					'   </div>' +
552
+					'   <div class="explancon">' +
553
+					n.F_Content +
554
+					'   </div>' +
555
+					'</li>';
556
+				$(html).appendTo($(".ldcr-bottom .detail-con ul")).find(".zhishi-title").click(function(event) {
557
+					event.stopPropagation();
558
+					if($(this).hasClass("active")) {
559
+						$(this).removeClass("active")
560
+					} else {
561
+						$(".zhishi-title").removeClass("active");
562
+						$(this).addClass("active");
563
+					}
564
+				})
565
+			})
566
+		}
567
+	})
568
+
569
+}
570
+$('input:radio[name="banli"]').change(function() {
571
+	if($(this).val() == '1') {
572
+		$(".Nows_box").show();
573
+	} else {
574
+		$(".Nows_box").hide();
575
+	}
576
+})
577
+QY($("#sourcearea"));
578
+LB($("#type"));
579
+ZT($("#keys"));
580
+
581
+//通知公告
582
+function QY(obj) {
583
+	obj.empty();
584
+	obj.append('<option selected="selected" value="">请选择</option>');
585
+	$.getJSON(huayi.config.callcenter_url + "Area/GetAreaListById", {
586
+		"token": $.cookie("token"),
587
+	}, function(data) {
588
+		if(data.state.toLowerCase() == "success") {
589
+			var content = data.data;
590
+			$(content).each(function(i, n) {
591
+				$("<option value='" + n.F_AreaId + "'>" + n.F_AreaName + "</option>").appendTo(obj);
592
+			})
593
+		}
594
+	})
595
+}
596
+//来源
597
+function LY(obj) {
598
+	obj.empty();
599
+	$.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
600
+		"token": $.cookie("token"),
601
+		id: 1
602
+	}, function(data) {
603
+		if(data.state.toLowerCase() == "success") {
604
+			var content = data.data;
605
+			$(content).each(function(i, n) {
606
+				$("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
607
+			})
608
+		}
609
+	})
610
+}
611
+//类别
612
+function LB(obj) {
613
+	obj.empty();
614
+	$.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
615
+		"token": $.cookie("token"),
616
+		id: 2
617
+	}, function(data) {
618
+		if(data.state.toLowerCase() == "success") {
619
+			var content = data.data;
620
+			$(content).each(function(i, n) {
621
+				$("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
622
+			})
623
+		}
624
+	})
625
+}
626
+//主题
627
+function ZT(obj) {
628
+	obj.empty();
629
+	$.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
630
+		"token": $.cookie("token"),
631
+		id: 3
632
+	}, function(data) {
633
+		if(data.state.toLowerCase() == "success") {
634
+			var content = data.data;
635
+			$(content).each(function(i, n) {
636
+				$("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
637
+			})
638
+		}
639
+	})
640
+}
641
+
642
+//获取历史记录
643
+loadOld()
644
+
645
+function loadOld() {
646
+	$(".addgd").hide();
647
+	$(".tbold").show();
648
+	$(".zxbg").hide();
649
+	var type = $(".ldtp-cr ul.ld-service .cr-click").attr("itemtype");
650
+	if(type != '0') {
651
+		$(".complain").hide();
652
+		$(".complain").eq(1).show();
653
+		//先销毁表格
654
+		$('#orderlist').bootstrapTable('destroy');
655
+		//初始化表格,动态从服务器加载数据
656
+		$("#orderlist").bootstrapTable({
657
+			method: "get", //使用get请求到服务器获取数据
658
+			url: huayi.config.callcenter_url + "WorkOrder/GetListAll", //获取数据的Servlet地址
659
+			striped: true, //表格显示条纹
660
+			pagination: true, //启动分页
661
+			pageSize: 5, //每页显示的记录数
662
+			pageNumber: 1, //当前第几页
663
+			pageList: [5, 10, 50, 100], //记录数可选列表
664
+			contentType: 'application/x-www-form-urlencoded',
665
+			search: false, //是否启用查询
666
+			showColumns: false, //显示下拉框勾选要显示的列
667
+			showRefresh: false, //显示刷新按钮
668
+			sidePagination: "server", //表示服务端请求
669
+			//设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
670
+			//设置为limit可以获取limit, offset, search, sort, order
671
+			queryParamsType: "undefined",
672
+			queryParams: function queryParams(params) { //设置查询参数
673
+				var param = {
674
+					page: params.pageNumber,
675
+					pagesize: params.pageSize,
676
+					tel: $(".hidTel").val(),
677
+					type: type,
678
+					starttime: $("#con_startTime").val(),
679
+					endtime: $("#con_endTime").val(),
680
+					token: $.cookie("token")
681
+				};
682
+				return param;
683
+			},
684
+			onLoadSuccess: function() { //加载成功时执行
685
+				//layer.msg("加载成功");
686
+			},
687
+			onLoadError: function() { //加载失败时执行
688
+				//layer.msg("加载数据失败", { time: 1500, icon: 2 });
689
+			}
690
+		});
691
+	} else {
692
+		$(".complain").hide();
693
+		$(".complain").eq(0).show();
694
+		//先销毁表格
695
+		$('#oldlist').bootstrapTable('destroy');
696
+		//初始化表格,动态从服务器加载数据
697
+		$("#oldlist").bootstrapTable({
698
+			method: "get", //使用get请求到服务器获取数据
699
+			url: huayi.config.callcenter_url + "CallInScreen/GetOldList", //获取数据的Servlet地址
700
+			striped: true, //表格显示条纹
701
+			pagination: true, //启动分页
702
+			pageSize: 5, //每页显示的记录数
703
+			pageNumber: 1, //当前第几页
704
+			pageList: [5, 10, 50, 100], //记录数可选列表
705
+			contentType: 'application/x-www-form-urlencoded',
706
+			search: false, //是否启用查询
707
+			showColumns: false, //显示下拉框勾选要显示的列
708
+			showRefresh: false, //显示刷新按钮
709
+			sidePagination: "server", //表示服务端请求
710
+			//设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
711
+			//设置为limit可以获取limit, offset, search, sort, order
712
+			queryParamsType: "undefined",
713
+			queryParams: function queryParams(params) { //设置查询参数
714
+				var param = {
715
+					page: params.pageNumber,
716
+					pagesize: params.pageSize,
717
+					tel: $(".hidTel").val(),
718
+					starttime: $("#old_startTime").val(),
719
+					endtime: $("#old_endTime").val(),
720
+					token: $.cookie("token")
721
+				};
722
+				return param;
723
+			},
724
+			onLoadSuccess: function() { //加载成功时执行
725
+				//layer.msg("加载成功");
726
+			},
727
+			onLoadError: function() { //加载失败时执行
728
+				//layer.msg("加载数据失败", { time: 1500, icon: 2 });
729
+			}
730
+		});
731
+	}
732
+	if(type == '3') {
733
+		getLX($("#tslx"), "TSLX");
734
+		getBM($("#zrbmtree"));
735
+		getBM($("#clbmtree"));
736
+	}
737
+}
738
+
739
+function GetCallState(val) {
740
+	if(val == '1') {
741
+		return '已接通';
742
+	} else {
743
+		return '未接通';
744
+	}
745
+}
746
+
747
+//音频
748
+function setCode(val) {
749
+	if(val) {
750
+		return '<div class="imgs" style="cursor: pointer;">' +
751
+			'<img src="../img/vice.png" alt="" onclick= ck(this) item="' + val + '" />' +
752
+			'</div>';
753
+	} else {
754
+		return '';
755
+	}
756
+}
757
+//录音
758
+function ck(val) {
759
+	var path = $(val).attr("item");
760
+	$(".t-shade").addClass("cx");
761
+	$(".Ly_box").empty();
762
+	$(".down").attr("href", path);
763
+	$('<audio style="width: 100%;"class=" " src="' + path + '" loop="loop" controls="controls" ></audio>').appendTo(".Ly_box");
764
+}
765
+
766
+function GetDealState(val) {
767
+	if(val == '1') {
768
+		return '已处理';
769
+	} else {
770
+		return '未处理';
771
+	}
772
+}
773
+
774
+function GetStateName(val) {
775
+	var str = '';
776
+	switch(val + '') {
777
+		case '0':
778
+			str = "待指派";
779
+			break;
780
+		case '1':
781
+			str = "处理中";
782
+			break;
783
+		case '2':
784
+			str = "已完结";
785
+			break;
786
+	}
787
+	return str;
788
+}
789
+
790
+function GetLink(val) {
791
+	if(val) {
792
+		return '<a onclick="ckxq(' + val + ')">' + val + '</a>';
793
+	} else {
794
+		return '';
795
+	}
796
+}
797
+//查看详情
798
+function ckxq(str) {
799
+	layer.open({
800
+		type: 2,
801
+		content: "CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
802
+		title: '工单详情',
803
+		area: ['85%', '80%'], //宽高
804
+	});
805
+}
806
+//截取字符串
807
+function GetCont(val) {
808
+	if(val) {
809
+		var str = '<div '
810
+		if(val.length > 10) {
811
+			str = str + ' title="' + val + '" ';
812
+			val = val.substr(0, 10) + "...";
813
+		}
814
+		return str + '>' + val + '</div>';
815
+	} else {
816
+		return '';
817
+	}
818
+}
819
+//清空
820
+function Clean() {
821
+	//左侧
822
+	//debugger;
823
+	$('.ldname').val(''); //投诉人
824
+	$('#khid').val('');
825
+	$('.tsdh').val(''); //投诉电话
826
+	$('.ldlocation').text('未知'); //归属地
827
+	$('.lxr').val(''); //联系人
828
+	$('.lxdh').val(''); //联系电话
829
+	$('.postcode').val(''); //邮编
830
+	$('.email').val(''); //email
831
+	$('.ldtime').val(''); //来电时间
832
+	//右侧
833
+	$("#cusname").val(''); //=投诉人姓名
834
+	$("#cussex").val('');
835
+	$("#cusphone").val(''); //=投诉人电话
836
+	$("#email").val('');
837
+	$("#zipcode").val('');
838
+	$("#conphone").val('');
839
+	$("#title").val('');
840
+	$("#content").val('');
841
+	$("#sourcearea").val(); //=事发地域id
842
+	$('#sourceaddress').val(''); //=事发详细地址
843
+	$("input[name='baomi'][value='1']").prop("checked", true); //=(0转办1直办)
844
+	$("#type option:first").prop("selected", 'selected');
845
+	$("#level option:first").prop("selected", 'selected');
846
+	$("#keys option:first").prop("selected", 'selected');
847
+	$("#sourcearea option:first").prop("selected", 'selected');
848
+	$('#result').val('');
849
+
850
+}
851
+
852
+//获取类型
853
+function getLX(obj, type) {
854
+	obj.empty();
855
+	$.getJSON(huayi.config.callcenter_url + 'Dictionary/GetDicValueListByFlag', {
856
+		"flag": type,
857
+		"token": $.cookie("token")
858
+	}, function(result) {
859
+		if(result.state.toLowerCase() == "success") {
860
+			$(result.data).each(function(i, n) {
861
+				obj.append('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>');
862
+			})
863
+		}
864
+	})
865
+}
866
+//获取部门
867
+var setting = {
868
+	data: {
869
+		key: {
870
+			name: "F_DeptName"
871
+		},
872
+		simpleData: {
873
+			enable: true,
874
+			idKey: "F_DeptId",
875
+			pIdKey: "F_ParentId",
876
+			rootPId: 0
877
+		}
878
+	},
879
+	callback: {
880
+		onClick: zTreeOnClick
881
+	}
882
+};
883
+
884
+function getBM(obj) {
885
+	$.getJSON(huayi.config.callcenter_url + 'Department/GetAllList', {
886
+		"token": $.cookie("token")
887
+	}, function(result) {
888
+		if(result.state.toLowerCase() == "success") {
889
+			$.fn.zTree.init(obj, setting, result.data);
890
+		}
891
+	})
892
+}
893
+
894
+function zTreeOnClick(event, treeId, treeNode) {
895
+	var obj = $("#" + event.data.treeId).parent();
896
+	obj.parent().find("input").eq(0).val(treeNode.F_DeptName);
897
+	obj.parent().find("input").eq(1).val(treeNode.F_DeptId);
898
+	obj.hide();
899
+	if(event.data.treeId == "zrbmtree") {
900
+		getRY($("#zrid"), $("#zrbm").val());
901
+	}
902
+	if(event.data.treeId == "clbmtree") {
903
+		getRY($("#clid"), $("#clbm").val());
904
+	}
905
+};
906
+//获取人员
907
+function getRY(obj, deptid) {
908
+	obj.empty();
909
+	obj.append('<option value="">--请选择--</option>');
910
+	$.getJSON(huayi.config.callcenter_url + 'UserAccount/GetDeptUserList', {
911
+		"deptid": deptid,
912
+		"token": $.cookie("token")
913
+	}, function(result) {
914
+		if(result.state.toLowerCase() == "success") {
915
+			$(result.data).each(function(i, n) {
916
+				obj.append('<option value="' + n.F_UserId + '">' + n.F_UserName + '</option>');
917
+			})
918
+		}
919
+	})
920
+}

+ 611 - 0
CallCenterWeb.UI/callScreen/备份callScreen.html

@@ -0,0 +1,611 @@
1
+<!DOCTYPE html>
2
+<html>
3
+
4
+	<head>
5
+		<meta charset="UTF-8">
6
+		<title>来电弹屏</title>
7
+		<script src="../Script/Common/huayi.load.js"></script>
8
+		<script src="../Script/Common/huayi.config.js"></script>
9
+		<link rel="stylesheet" href="./css/call.css" />
10
+		<style>
11
+			body,
12
+			html,
13
+			.wrapper {
14
+				height: 100%;
15
+			}
16
+			
17
+			.ldtp-con {
18
+				display: block;
19
+			}
20
+			
21
+			.minBacha {
22
+				position: absolute;
23
+				top: 0;
24
+				right: 80px;
25
+				z-index: 10;
26
+				overflow: hidden;
27
+			}
28
+			
29
+			.minBacha>div {
30
+				float: left;
31
+				height: 35px;
32
+				width: 35px;
33
+				margin-left: 2px;
34
+			}
35
+			
36
+			.minBacha>div a {
37
+				display: block;
38
+				height: 100%;
39
+				width: 100%;
40
+				text-align: center;
41
+				background-position: center center;
42
+				background-color: #2f4050;
43
+				opacity: .5;
44
+			}
45
+			
46
+			.minBacha>div a:hover {
47
+				opacity: 1;
48
+			}
49
+			
50
+			.minClosed>a {
51
+				background: url("./../img/min.png") no-repeat;
52
+			}
53
+			
54
+			.Bacha>a {
55
+				background: url("./../img/gb.png") no-repeat;
56
+			}
57
+			
58
+			.lblcount {
59
+				position: absolute;
60
+				right: 5px;
61
+				top: 7px;
62
+			}
63
+			
64
+			.first {
65
+				z-index: 1000;
66
+			}
67
+			
68
+			.khzl {
69
+				font-size: 12px;
70
+				border: 0;
71
+				margin: 35px auto;
72
+				color: #fff;
73
+			}
74
+			
75
+			.khzl tr {
76
+				border: 0;
77
+			}
78
+			
79
+			.khzl th {
80
+				padding: 5px 8px 5px 0;
81
+				text-align: right;
82
+				width: 40%;
83
+				font-weight: normal;
84
+				border: 0;
85
+			}
86
+			
87
+			.khzl tbody>tr>td,
88
+			.khzl tbody>tr>th {
89
+				border: 0;
90
+			}
91
+			
92
+			.khzl tbody>tr>td input {
93
+				border: 0;
94
+				outline: none;
95
+				background: #243747;
96
+				padding-left: 5px;
97
+				width: 100%;
98
+			}
99
+			
100
+			.khbtn {
101
+				/*background: #97a0a8;*/
102
+				color: #1ab394;
103
+				font-size: 14px;
104
+				vertical-align: middle;
105
+			}
106
+			
107
+			.hei-list {
108
+				width: 400px;
109
+				margin: 0 auto;
110
+			}
111
+			
112
+			.heiTop {
113
+				height: 35px;
114
+				background: #1ab394;
115
+				color: #fff;
116
+				line-height: 35px;
117
+				padding: 0 15px;
118
+				border-top-left-radius: 3px;
119
+				border-top-right-radius: 3px;
120
+			}
121
+			
122
+			.heiTop .htl {
123
+				float: left;
124
+				margin: 0;
125
+			}
126
+			
127
+			.heiTop .bacha {
128
+				float: right;
129
+				font-size: 18px;
130
+				cursor: pointer;
131
+				margin: 0;
132
+			}
133
+			
134
+			.heiCon {
135
+				width: 100%;
136
+				background: #fff;
137
+				text-align: center;
138
+				padding: 25px 15px;
139
+				height: auto;
140
+				overflow-y: auto;
141
+				border: 1px solid #eee;
142
+			}
143
+			
144
+			#time-word {
145
+				border: 1px solid #1ab394;
146
+				padding: 5px 0 5px 10px;
147
+				width: 120px;
148
+				outline: none;
149
+				color: #000;
150
+			}
151
+			
152
+			.chooses {
153
+				margin-top: 10px;
154
+			}
155
+			
156
+			.btns {
157
+				background: #1ab394;
158
+				color: #fff;
159
+				padding: 3px 10px;
160
+				outline: none;
161
+				font-size: 12px;
162
+				margin-left: 15px;
163
+				border: 0;
164
+				border-radius: 3px;
165
+				box-sizing: border-box;
166
+			}
167
+			
168
+			.bianji {
169
+				display: inline-block;
170
+				height: 16px;
171
+				width: 16px;
172
+				vertical-align: middle;
173
+				margin-right: 5px;
174
+			}
175
+			
176
+			.bianji.edi {
177
+				background: url(./../img/xgai.png) no-repeat;
178
+			}
179
+			
180
+			.bianji.sav {
181
+				background: url(./../img/bbc.png) no-repeat;
182
+			}
183
+			
184
+			.bianji.canc {
185
+				background: url(./../img/quxi.png) no-repeat;
186
+			}
187
+			
188
+			.t-shade {
189
+				position: fixed;
190
+				top: 0;
191
+				left: 0;
192
+				width: 100%;
193
+				height: 100%;
194
+				background: rgba(0, 0, 0, 0.48);
195
+				z-index: 10004;
196
+				display: none;
197
+			}
198
+			
199
+			.shade_k {
200
+				z-index: 10005;
201
+				width: 40%;
202
+				margin: 10% auto;
203
+				background-color: #fff;
204
+				box-shadow: 1px 1px 50px rgba(0, 0, 0, .3);
205
+				border-radius: 5px;
206
+			}
207
+			
208
+			.shade_title {
209
+				padding: 0 80px 0 20px;
210
+				height: 42px;
211
+				line-height: 42px;
212
+				border-bottom: 1px solid #eee;
213
+				font-size: 16px;
214
+				color: #FFFFFF;
215
+				overflow: hidden;
216
+				background-color: rgb(26, 179, 148);
217
+				border-radius: 2px 2px 0 0;
218
+				position: relative;
219
+			}
220
+			
221
+			.setwin {
222
+				position: absolute;
223
+				right: 15px;
224
+				top: 5px;
225
+				font-size: 20px;
226
+				line-height: initial;
227
+			}
228
+			
229
+			.setwin a {
230
+				font-size: 20px;
231
+				color: #fff;
232
+			}
233
+			
234
+			.shade_content {
235
+				overflow-y: auto;
236
+				position: relative;
237
+				padding-bottom: 50px;
238
+				padding: 10px;
239
+			}
240
+			
241
+			.ldcr-bottom .detail-con ul li .active a {
242
+				color: #f95a83 !important;
243
+			}
244
+			
245
+			.ldcr-bottom .detail-con ul li .active+.explancon {
246
+				display: block !important;
247
+			}
248
+			
249
+			.searchbtn {
250
+				width: 2.5em;
251
+				height: 24px;
252
+				border-radius: 5px;
253
+				position: absolute;
254
+				background-color: #01a1cb;
255
+				background-image: url(./../img/searIcon.png);
256
+				background-repeat: no-repeat;
257
+				background-position: center center;
258
+				cursor: pointer;
259
+			}
260
+		</style>
261
+	</head>
262
+
263
+	<body class="gray-bg">
264
+
265
+		<div class="wrapper wrapper-content animated fadeInRight">
266
+			<!--来电弹屏开始-->
267
+			<div class="ldtp-con clearfix animated fadeInDown ">
268
+				<!--左侧内容-->
269
+				<!--黑名单弹出内容-->
270
+				<!--<div class="hei-list ">
271
+		            <i class="bacha">X</i>
272
+		            <form class="form-inline">
273
+		
274
+		
275
+		                <label class="radio-inline">
276
+		                <input type="radio" name="time" value="1" checked="checked"> 天
277
+		            </label>
278
+		                <label class="radio-inline">
279
+		                <input type="radio" name="time" value="2"> 时
280
+		            </label>
281
+		                <label class="radio-inline">
282
+		                <input type="radio" name="time" value="3">分
283
+		            </label>
284
+		                <label class="radio-inline">
285
+		                <input type="radio" name="time" value="4">永久
286
+		            </label>
287
+		                <label class="radio-inline">
288
+		                <input type="button" id="bc" value="保存">
289
+		            </label>
290
+		            </form>
291
+		
292
+		        </div>-->
293
+				<div class="hei-list">
294
+					<div class="heiTop clearFix">
295
+						<p class="htl">黑名单</p>
296
+						<p class="bacha" title="关闭">x</p>
297
+					</div>
298
+					<div class="heiCon">
299
+						<div class="heit">
300
+							<span style="font-size: 14px;">输入拉黑时长:</span>
301
+							<input type="text" id="time-word" />
302
+						</div>
303
+						<div class="chooses">
304
+
305
+							<label class="radio-inline">
306
+		                        <input type="radio" name="time" value="1" checked="checked" style="margin-top: 3px;"> 天
307
+		                    </label>
308
+							<label class="radio-inline">
309
+		                        <input type="radio" name="time" value="2" style="margin-top: 3px;" />时
310
+		                    </label>
311
+							<label class="radio-inline">
312
+		                        <input type="radio" name="time" value="3" style="margin-top: 3px;" />分
313
+		                    </label>
314
+							<label class="radio-inline">
315
+		                        <input type="radio" name="time" value="4" style="margin-top: 3px;" />永久
316
+		                    </label>
317
+
318
+						</div>
319
+						<p style="margin-top: 15px;"><button id="bc" class="btns">保存</button></p>
320
+					</div>
321
+
322
+				</div>
323
+
324
+				<!--最小化按钮-->
325
+				<!--<div class="minClosed">
326
+		            <a href="javaScript:;" title="最小化"></a>
327
+		        </div>-->
328
+				<!--左侧内容-->
329
+				<div class="ldtp-cl col-sm-3">
330
+					<div class="head-pic">
331
+						<div class="hp-box">
332
+							<img src="./../img/txpic.png" alt="头像好像去了外星球!" style="width: 100%;height: 100%;" />
333
+							<input type="hidden" class="hidTel" value="" />
334
+							<input type="hidden" class="hidCallID" />
335
+						</div>
336
+						<ul>
337
+							<li><span style="font-size: 25px;" class="tel"></span></li>
338
+							<li><span style="font-size: 15px;" class="khgsd"></span></li>
339
+							<!--<li class="nikeName"><i></i><span class="ldname">未知</span><i></i></li>-->
340
+							<li style="color: #4cd964;">当前通话时长:<span class="thsc">00:00</span></li>
341
+							<li class="lahei">
342
+								<div class="la-before"><i class="push"></i> 移至黑名单</div>
343
+								<div class="la-after" style="display: none;">
344
+									<p class="la-time">拉黑时间:<span>2017/05/13</span></p>
345
+									<p class="la-shichang">拉黑截止时间:<span class="blackTime"></span></p>
346
+								</div>
347
+								<div class="retur" style="display: none;"><i class="qxlh"></i> 取消黑名单</div>
348
+							</li>
349
+							<li class="td-call clearfix" style="display:none;">
350
+								<a class="take" style="float:none;" href="javascript:;"><i></i></a>
351
+								<!--<a class="drop" href="javascript:;"><i></i></a>-->
352
+							</li>
353
+						</ul>
354
+					</div>
355
+					<!--<ul class="come-detail">
356
+		                <li>姓名:<span class="ldname">未知</span></li>
357
+		                <li>归属地:<span class="ldlocation">未知</span></li>
358
+		                <li>联系电话1:<span class="ldtel1"></span></li>
359
+		                <li>联系电话2:<span class="ldtel2"></span></li>
360
+		                <li>联系电话3:<span class="ldtel3"></span></li>
361
+		                <li>售后负责人:<span>孙嘉一</span></li>
362
+		                <li>来电时间:<span class="ldtime"></span></li>
363
+		            </ul>-->
364
+					<table class="table khzl">
365
+						<tr>
366
+							<th>姓名:</th>
367
+							<td><input type="text" value="未知" class="ldname khmc" /><input type="hidden" value="" id="khid" /></td>
368
+						</tr>
369
+						<tr>
370
+							<th>客户编号:</th>
371
+							<td><input type="text" value="" class="khbh" /></td>
372
+						</tr>
373
+						<tr>
374
+							<th>归属地:</th>
375
+							<td><span class="ldlocation" style="padding-left: 5px;">未知</span></td>
376
+						</tr>
377
+						<tr>
378
+							<th>联系电话1:</th>
379
+							<td><input type="text" value="" class="ldtel1" /></td>
380
+						</tr>
381
+						<tr>
382
+							<th>联系电话2:</th>
383
+							<td><input type="text" value="" class="ldtel2" /></td>
384
+						</tr>
385
+						<tr>
386
+							<th>联系电话2:</th>
387
+							<td><input type="text" value="" class="ldtel3" /></td>
388
+						</tr>
389
+						<tr>
390
+							<th>来电时间:</th>
391
+							<td><span class="ldtime" style="padding-left: 5px;"></span></td>
392
+						</tr>
393
+						<tr>
394
+							<td></td>
395
+							<td><span class="edit"><i class="bianji edi"></i><a class="khbtn">编辑</a></span><span class="save"> <i class="bianji sav"></i><a class="khbtn">保存</a></span><span class="cancel"><i class="bianji canc"></i><a class="khbtn">取消</a></span></td>
396
+						</tr>
397
+					</table>
398
+				</div>
399
+				<!--右侧内容-->
400
+
401
+				<div class="ldtp-cr col-sm-9">
402
+					<ul class="ld-service clearfix">
403
+						<li style="border-bottom:1px solid #243747;" itemtype="0" class="cr-click">历史记录</li>
404
+						<li style="border-bottom:1px solid #69cbd0;" itemtype="1">咨询</li>
405
+						<!--<--<li style="border-bottom:1px solid #f95a83;" itemtype="2">保修服务</li>-->
406
+						<li style="border-bottom:1px solid #243747;" itemtype="3">投诉建议</li>
407
+					</ul>
408
+					<div class="ld-sercon">
409
+						<div class="complain" style="display:block;">
410
+							<div class="ld-sercon-con clearfix">
411
+								<div class="Ps-chaxun">
412
+									<span>查询: <input type="text" id="old_startTime" class="laydate-icon" />&nbsp;——&nbsp;<input type="text" id="old_endTime" class="laydate-icon" /></span>
413
+
414
+									<span class="searchbtn"></span>
415
+								</div>
416
+								<div class="table-responsive col-sm-12 tbold" style="padding-left: 0;">
417
+									<table id="oldlist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
418
+										<thead>
419
+											<tr>
420
+												<th data-field="CallNumber">电话号码</th>
421
+												<th data-field="CallState" data-formatter="GetCallState">呼叫状态</th>
422
+												<!--<th data-field="IsDeal" data-formatter="GetDealState">是否处理</th>-->
423
+												<th data-field="UserCode">坐席工号</th>
424
+												<th data-field="UserName">坐席姓名</th>
425
+												<th data-field="BeginTime">开始时间</th>
426
+												<th data-field="TalkStartTime">通话开始时间</th>
427
+												<th data-field="TalkEndTime">通话结束时间</th>
428
+												<th data-field="TalkLongTime">通话时长(s)</th>
429
+												<th data-field="FilePath" data-formatter="setCode">录音</th>
430
+											</tr>
431
+										</thead>
432
+										<tbody class="list"></tbody>
433
+									</table>
434
+								</div>
435
+							</div>
436
+
437
+						</div>
438
+						<div class="complain" style="display:none;">
439
+							<div class="ld-sercon-con clearfix">
440
+								<div class="Ps-chaxun">
441
+									<span>查询: <input type="text" id="con_startTime" class="laydate-icon" />&nbsp;——&nbsp;<input type="text" id="con_endTime" class="laydate-icon" /></span>
442
+
443
+									<span class="searchbtn"></span>
444
+									<span class="addjl g" style="margin-left:5em;">新增工单</span>
445
+								</div>
446
+								<div id="zxlbs" class="table-responsive col-sm-12 tbold" style="padding-left: 0;">
447
+
448
+									<table id="orderlist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
449
+										<thead>
450
+											<tr>
451
+												<th data-field="WorkOrderID">工单编号</th>
452
+												<th data-field="State" data-formatter="GetStateName">工单状态</th>
453
+												<th data-field="Customer">客户姓名</th>
454
+												<th data-field="CustomerTel">客户电话</th>
455
+												<th data-field="Detail" data-formatter="GetCont">工单内容</th>
456
+												<th data-field="CreateUser">坐席工号</th>
457
+												<th data-field="CreateTime">创建时间</th>
458
+											</tr>
459
+										</thead>
460
+										<tbody class="list"></tbody>
461
+									</table>
462
+								</div>
463
+							</div>
464
+							<div class="Pre-second second-con addgd" style="display:none;">
465
+								<form>
466
+									<div class="form-group clearfix">
467
+										<span class="col-sm-1">
468
+		                                    投诉类型:
469
+		                                </span>
470
+										<span class="col-sm-3">
471
+		                                    <select id="tslx">
472
+		                                        <option selected="selected" value=""></option>
473
+		                                    </select>
474
+		                                </span>
475
+										<span class="col-sm-1">
476
+		                                    投诉客户:
477
+		                                </span>
478
+										<span class="col-sm-3">
479
+		                                    <input type="text" id="tskh" />
480
+		                                </span>
481
+										<span class="col-sm-1">
482
+		                                    联系电话:
483
+		                                </span>
484
+										<span class="col-sm-3">
485
+		                                    <input type="text" id="tsdh" />
486
+		                                </span>
487
+									</div>
488
+									<div class="form-group clearfix">
489
+										<span class="col-sm-1">
490
+		                                    投诉部门:
491
+		                                </span>
492
+										<span class="col-sm-3">
493
+		                                    <!--<select name="" id="zrbm"></select>-->
494
+		                                    <input type="text" id="zrbmname" readonly="readonly" />
495
+		                                    <input type="hidden" id="zrbm" />
496
+		                                    <div class="zrbmmenu" style="display: none; position: absolute;  z-index: 100;">
497
+		                                        <ul id="zrbmtree" class="ztree"></ul>
498
+		                                    </div>
499
+		                                </span>
500
+										<span class="col-sm-1">
501
+		                                    被投诉人:
502
+		                                </span>
503
+										<span class="col-sm-3">
504
+		                                    <select name="" id="zrid">
505
+		                                        <option selected="selected" value=""></option>
506
+		                                    </select>
507
+		                                </span>
508
+									</div>
509
+									<div class="form-group clearfix">
510
+										<span class="col-sm-1">
511
+		                                    接收部门:
512
+		                                </span>
513
+										<span class="col-sm-3">
514
+		                                    <!--<select name="" id="clbm"></select>-->
515
+		                                    <input type="text" id="clbmname" readonly="readonly" />
516
+		                                    <input type="hidden" id="clbm" />
517
+		                                    <div class="clbmmenu" style="display: none; position: absolute;  z-index: 100;">
518
+		                                        <ul id="clbmtree" class="ztree"></ul>
519
+		                                    </div>
520
+		                                </span>
521
+										<span class="col-sm-1">
522
+		                                    接收人:
523
+		                                </span>
524
+										<span class="col-sm-3">
525
+		                                    <select name="" id="clid">
526
+		                                        <option selected="selected" value=""></option>
527
+		                                    </select>
528
+		                                </span>
529
+									</div>
530
+									<div class="form-group clearfix">
531
+										<span class="col-sm-1">咨询内容:</span>
532
+										<span class="col-sm-11">
533
+		                                    <textarea rows="5" id="cont"></textarea>
534
+		                                </span>
535
+									</div>
536
+									<!--<div class="form-group" style="padding-left: 15px;">
537
+		                                <span>解答内容:</span>
538
+		                                <textarea rows="5"></textarea>
539
+		                            </div>-->
540
+									<div class="bton addts">创建</div>
541
+								</form>
542
+							</div>
543
+							<div class="Pre-second second-con zxbg " style="display: none;">
544
+								<form>
545
+
546
+									<div class="form-group clearfix">
547
+										<span class="col-sm-1">
548
+		                                    咨询人:
549
+		                                </span>
550
+										<span class="col-sm-3">
551
+		                                    <input type="text" id="zxr_" />
552
+		                                </span>
553
+										<span class="col-sm-1">
554
+		                                    咨询电话:
555
+		                                </span>
556
+										<span class="col-sm-3">
557
+		                                    <input type="text" id="zxdh_" />
558
+		                                </span>
559
+									</div>
560
+
561
+									<div class="form-group clearfix">
562
+										<span class="col-sm-1">咨询内容:</span>
563
+										<span class="col-sm-11">
564
+		                                    <textarea rows="5" id="zxnr_" style="resize: none;"></textarea>
565
+		                                </span>
566
+									</div>
567
+									<div class="form-group clearfix">
568
+										<span class="col-sm-1">处理内容:</span>
569
+										<span class="col-sm-11">
570
+		                                    <textarea rows="5" style="resize: none;" id="clnr_"></textarea>
571
+		                                </span>
572
+
573
+									</div>
574
+									<div class="bton add_">创建</div>
575
+								</form>
576
+							</div>
577
+						</div>
578
+					</div>
579
+					<!--右侧下方内容区-->
580
+					<div class="ldcr-bottom" style="margin-top:10px;">
581
+						<div class="ldcrb-top clearfix">
582
+							<ul class="clearfix">
583
+								<li style="border-bottom:1px solid #69cbd0; background: #000;color: #fff;">知识库</li>
584
+								<!--<li style="border-bottom:1px solid #f95a83;border-top:1px solid #000;border-right:1px solid #000;">更多内容</li>-->
585
+							</ul>
586
+							<div class="ld-search">
587
+								<div class="sear-inp">
588
+									<input type="text" class="search" placeholder="搜索问题、内容或者标题" />
589
+								</div>
590
+								<div class="searIcon">
591
+								</div>
592
+							</div>
593
+						</div>
594
+						<div class="detail-con">
595
+							<ul></ul>
596
+						</div>
597
+					</div>
598
+				</div>
599
+			</div>
600
+
601
+			<!--来电弹屏结束-->
602
+
603
+		</div>
604
+		<script src="../js/bootstrap-table.js"></script>
605
+		<script src="../js/bootstrap-table-zh-CN.js"></script>
606
+		<script src="../js/laydate/laydate.js"></script>
607
+		<script src="../js/main.js?v=1.5"></script>
608
+		<script src="call.js"></script>
609
+	</body>
610
+
611
+</html>

+ 76 - 0
CallCenterWeb.UI/commonHtml/addOrEditCustomer.html

@@ -0,0 +1,76 @@
1
+<!DOCTYPE html>
2
+<html>
3
+
4
+	<head>
5
+		<meta charset="UTF-8">
6
+		<meta name="viewport" content="width=device-width, initial-scale=1.0">
7
+		<link href="../css/init.css" rel="stylesheet" />
8
+		<script src="../Script/Common/huayi.load.js"></script>
9
+		<script src="../Script/Common/huayi.config.js"></script>
10
+		<title>添加或编辑客户档案</title>
11
+		<style>
12
+			.add_edit_cus{
13
+				margin: 20px;
14
+			}
15
+			.add_edit_cus ul{
16
+				padding-left: 0;
17
+			}
18
+			.add_edit_cus li{
19
+				list-style: none;
20
+			}
21
+			
22
+			.add_edit_cus textarea {
23
+				resize: none;
24
+				width: 100%;
25
+			}
26
+			
27
+			.text-red {
28
+				color: red;
29
+				vertical-align: middle;
30
+				font-size: 20px;
31
+				padding: 2px;
32
+			}
33
+			.btn{
34
+				width: 200px;
35
+			}
36
+		</style>
37
+	</head>
38
+
39
+	<body>
40
+
41
+		<div class="container add_edit_cus">
42
+			<ul class="form-horizontal clearfix">
43
+				<li class="form-group">
44
+					<label for="t_name"><b class="text-red">*</b>客户姓名:</label>
45
+					<input id="t_name" class="form-control" type="text" placeholder="请输入客户姓名" autocomplete="off" />
46
+				</li>
47
+				<li class="form-group">
48
+					<label for="t_mobile">手机号:</label>
49
+					<input id="t_mobile" class="form-control" type="text" placeholder="请输入手机号" autocomplete="off" />
50
+				</li>
51
+				<li class="form-group">
52
+					<label for="t_tel">电话:</label>
53
+					<input id="t_tel" class="form-control" type="text" placeholder="请输入电话" autocomplete="off" />
54
+				</li>
55
+				<li class="form-group">
56
+					<label for="t_county">乡镇:</label>
57
+					<select class="form-control" id="t_county">
58
+						<option value="0">请选择乡镇</option>
59
+					</select>
60
+				</li>
61
+
62
+				<li class="form-group">
63
+					<label for="t_address">地址:</label>
64
+					<input type="text" id="t_address" placeholder="请输入地址" class="form-control"  />
65
+				</li>
66
+			</ul>
67
+			<div class="form-group clearfix">
68
+				<div class="text-center">
69
+					<button class="btn btn-primary" id="btn_save" type="button">保存</button>
70
+				</div>
71
+			</div>
72
+		</div>
73
+		<script src="js/addOrEditCustomer.js"></script>
74
+	</body>
75
+
76
+</html>

+ 84 - 0
CallCenterWeb.UI/commonHtml/js/addOrEditCustomer.js

@@ -0,0 +1,84 @@
1
+/**
2
+ * 增加或编辑客户档案
3
+ * */
4
+
5
+$(document).ready(function() {
6
+	var cid = helper.request.queryString("cid");
7
+	//获取乡镇下拉
8
+	helper.getDropList.getlistDropByDic($('#t_county'), 'JBDW').then(function() {
9
+		if(cid) {
10
+			getCustomer(cid); //获取信息
11
+		}
12
+	});
13
+	//保存
14
+	$('#btn_save').on('click', saveCustomer);
15
+});
16
+
17
+//添加或编辑保存
18
+function saveCustomer() {
19
+	var telreg = /^\d{0,12}$/;
20
+	var cid = helper.request.queryString("cid");
21
+	if(!$.trim($('#t_name').val())) {
22
+		layer.confirm('请输入客户姓名!', {
23
+			icon: 2,
24
+			btn: ['确定']
25
+		});
26
+		return;
27
+	}
28
+	if($.trim($('#t_mobile').val())){
29
+		if(!telreg.test($.trim($('#t_mobile').val()))) {
30
+			layer.confirm('请输入正确的手机号!', {
31
+				icon: 2,
32
+				btn: ['确定']
33
+			});
34
+			return;
35
+		}
36
+	}
37
+	if($.trim($('#t_tel').val())){
38
+		if(!telreg.test($.trim($('#t_tel').val()))) {
39
+			layer.confirm('请输入正确的号码!', {
40
+				icon: 2,
41
+				btn: ['确定']
42
+			});
43
+			return;
44
+		}
45
+	}
46
+	$.post(huayi.config.callcenter_url + "Customer/AddCustomer", {
47
+		id: cid, //int	否	修改时不需要,默认为0
48
+		cusname: $('#t_name').val(), //	string	是	姓名
49
+		mobile: $('#t_mobile').val(),//	string	否	手机号
50
+		telphone: $('#t_tel').val(),//	string	否	电话
51
+		address: $('#t_address').val(),//	string	否	住址
52
+		countryid: $('#t_county').val(),//	int	否	乡镇id 默认为0
53
+		token: $.cookie("token")
54
+	}, function(result) {
55
+		result = $.parseJSON(result);
56
+		if(result.state.toLowerCase() == "success") {
57
+			var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
58
+			parent.layer.close(index); //再执行关闭
59
+			parent.initTable();
60
+			parent.layer.msg("保存成功");
61
+		}
62
+	});
63
+}
64
+
65
+//获取信息
66
+function getCustomer(cid) {
67
+	$.getJSON(huayi.config.callcenter_url + 'Customer/GetCustomer', {
68
+		cid: cid,
69
+		token: $.cookie("token")
70
+	}, function(result) {
71
+		if(result.state.toLowerCase() == "success") {
72
+			var res = result.data;
73
+			if(res) {
74
+				$('#t_name').val(res.cusname); //姓名
75
+				$("#t_mobile").val(res.mobile); //手机号
76
+				$("#t_tel").val(res.telphone); //电话
77
+				$("#t_address").val(res.address); //地址
78
+				$('#t_county').val(res.countryid);//	int	否	乡镇id 默认为0
79
+			}
80
+			
81
+		}
82
+	})
83
+
84
+}

+ 1 - 1
CallCenterWeb.UI/commonHtml/printPreview.html

@@ -16,7 +16,7 @@
16 16
 		<!--startprint1-->
17 17
 		<div id="printPreview">
18 18
 			<div class="alignC headerAlign">
19
-				<h2>息县公众安全感满意度工作中心<br>反映问题登记表</h2>
19
+				<h2>息县公众安全感满意度调查中心<br>反映问题登记表</h2>
20 20
 				<h3>
21 21
             		<div>工单编号: <span class="t_workOrders"></span></div>
22 22
             	</h3>

+ 1 - 1
CallCenterWeb.UI/css/init.css

@@ -70,7 +70,7 @@
70 70
 	padding: 2px 2PX 2PX 10PX;
71 71
 	height: 27px;
72 72
 	border: 1px solid #ebebeb;
73
-	color: #1ab394;
73
+	/*color: #1ab394;*/
74 74
 	outline: none;
75 75
 	vertical-align: middle;
76 76
 }

+ 23 - 286
CallCenterWeb.UI/keHuManager/ContactPersonManger.html

@@ -4,313 +4,50 @@
4 4
 	<head>
5 5
 		<meta charset="UTF-8">
6 6
 		<script src="../Script/Common/huayi.load.js"></script>
7
-    	<script src="../Script/Common/huayi.config.js"></script>
8
-		<link rel="stylesheet" href="../css/laydate/need/laydate.css" />
7
+		<script src="../Script/Common/huayi.config.js"></script>
9 8
 		<link rel="stylesheet" href="../css/init.css" />
10 9
 		<title>客户管理</title>
11
-		<style>
12
-			.clearfix:after {
13
-				content: "";
14
-				display: block;
15
-				clear: both;
16
-			}
17
-			
18
-			.toolBar {
19
-				padding: 15px 0;
20
-				border-bottom: 1px solid #ccc;
21
-				margin-bottom: 25px;
22
-				padding-right: 45px;
23
-			}
24
-			
25
-			.toolBar input {
26
-				width: 128px;
27
-				padding: 2px 2PX 2PX 10PX;
28
-				height: 28px;
29
-				border: 1px solid #ebebeb;
30
-				color: #1ab394;
31
-				outline: none;
32
-				vertical-align: middle;
33
-			}
34
-			.model {
35
-				position: fixed;
36
-				top: 0;
37
-				right: 0;
38
-				bottom: 0;
39
-				left: 0;
40
-				height: 100%;
41
-				width: 100%;
42
-				background: rgba(0, 0, 0, 0.48);
43
-				z-index: 100;
44
-				display: none;
45
-			}
46
-			.delModel .box{
47
-				width: 22%;
48
-			}
49
-			
50
-			.box {
51
-				width: 30%;
52
-				margin: 0 auto;
53
-				margin-top: 5%;
54
-			}
55
-			
56
-			.box .btop {
57
-				height: 35px;
58
-				background: #1ab394;
59
-				color: #fff;
60
-				line-height: 35px;
61
-				padding: 0 15px;
62
-				/*margin-bottom: 15px;*/
63
-			}
64
-			
65
-			.box .btop p.btl {
66
-				float: left;
67
-				margin: 0;
68
-			}
69
-			
70
-			.box .btop p.btr {
71
-				float: right;
72
-				cursor: pointer;
73
-				margin: 0;
74
-				font-size: 20px;
75
-			}
76
-			
77
-			.box>input {
78
-				display: block;
79
-				height: 34px;
80
-				padding: 6px 12px;
81
-				font-size: 14px;
82
-				line-height: 1.42857143;
83
-				color: #555;
84
-				background-color: #fff;
85
-				background-image: none;
86
-				border: 1px solid #ccc;
87
-				border-radius: 4px;
88
-				margin: 35px auto;
89
-			}
90
-			
91
-			.boxCon {
92
-				width: 100%;
93
-				background: #fff;
94
-				text-align: center;
95
-				padding: 10px 15px;
96
-				height: auto;
97
-				overflow-y: auto;
98
-			}
99
-			
100
-			.boxCon>div {
101
-				padding: 15px 0;
102
-			}
103
-				.boxCon table th {
104
-				padding: 5px 8px 5px 0;
105
-				text-align: right;
106
-				    width: 32%;
107
-			}
108
-			
109
-			.boxCon table td {
110
-				padding: 6px 0 5px 10px;
111
-				text-align: left;
112
-				color: #717171;
113
-				line-height: 200%;
114
-			}
115
-			.kong{
116
-				display: none;
117
-			}
118
-					.Ctime {
119
-    width: 15px;
120
-    height: 15px;
121
-    border-radius: 50%;
122
-    background: lightseagreen;
123
-    display: inline-block;
124
-    vertical-align: text-bottom;
125
-    margin-right: 5px;
126
-}
127
-.Vtime{
128
-	 width: 15px;
129
-    height: 15px;
130
-    border-radius: 50%;
131
-    background: #ccc;
132
-    display: inline-block;
133
-    vertical-align: text-bottom;
134
-    margin-right: 5px;
135
-}
136
-.Stime{
137
-	 width: 15px;
138
-    height: 15px;
139
-    border-radius: 50%;
140
-    background: red;
141
-    display: inline-block;
142
-    vertical-align: text-bottom;
143
-    margin-right: 5px;
144
-}
145
-.xg{
146
-	margin-right: 5px;
147
-}
148
-.fr{
149
-	float: right;
150
-}
151
-.fl{
152
-	float: left;
153
-}
154
-            .container-fluid {
155
-                height:1000px;
156
-            }
157
-		</style>
158 10
 	</head>
159 11
 
160 12
 	<body>
161
-		<div class="container-fluid">
13
+		<div class="container-fluid wrapper wrapper-content animated fadeInRight">
162 14
 			<div class="daoHang clearfix">
163 15
 				<div class="dhLeft">
164
-					<sapn><i class="syIcon"></i>位置:<a href="../index.html">首页</a>&gt;<a href="javaScript:;">客户管理</a>&gt;<a href="" style="color: #000;">客户档案管理</a></sapn>
16
+					<sapn><i class="syIcon"></i>位置:
17
+						<a href="../index.html">首页</a>&gt;
18
+						<a href="javaScript:;">客户管理</a>&gt;
19
+						<a href="" style="color: #000;">客户档案管理</a>
20
+					</sapn>
165 21
 				</div>
166 22
 			</div>
167
-			<div class="fr" style="margin-bottom: 20px; text-align: right;">			
168
-                    <p>
169
-                        <input class="fl" type="file" id="upFile" name="upFile" />
170
-                        <a class="btns fr" id="aa">导入</a>
171
-                        </p>
172
-                </div>
173 23
 			<div class="toolBar clearfix" style="margin-top: 20px;">
174
-				<div class="toolLeft"  style="float: left;">
175
-				<button class="btns add">添加</button>
176
-				<button class="btns change">修改</button>
177
-				<button class="btns del">删除</button>
178
-				</div>
179
-				<div class="toolRight" style="float: right;">
180
-					<span>操作人名称:<input type="text" class="czName" /></span>
181
-					<span>登录时间:<input type="text" class="laydate-icon loginTime" id="startTime"/></span>
182
-					<button class="btns search">搜索</button>
24
+				<div class="toolRight pull-left">
25
+					<span>姓名:<input type="text" id="btn_name" /></span>
26
+					<span>手机号或电话:<input type="text" id="btn_tel"/></span>
27
+					<span>时间:<input type="text" id="startTime" style="width: 200px;"/></span>
28
+					<button class="btns" id="sc_btns">搜索</button>
29
+					<button class="btns" onclick="btn_add()">添加</button>
183 30
 				</div>
184 31
 			</div>
185 32
 			<div class="tableBox">
186 33
 				<table id="table1" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
187 34
 					<thead>
188 35
 						<tr>
189
-								<th data-field="state" data-checkbox="true" data-align="center" ></th>
190
-
191
-							<th data-field="F_CustomerName" data-align="center">客户名称</th>
192
-							<th data-field="F_Mobile" data-align="center">联系电话1</th>
193
-							<th data-field="F_Address" data-align="center">地址</th>
194
-							<th data-field="F_AutoFlag" data-align="center" data-formatter="F_AutoFlag">自动标记</th>
195
-							<th data-field="F_Result" data-align="center">结果统计</th>
36
+							<!--<th data-field="state" data-checkbox="true" data-align="center"></th>-->
37
+							<th data-field="" data-formatter="setCode" data-align="center">编号</th>
38
+							<th data-field="cusname" data-align="center">客户姓名</th>
39
+							<th data-field="mobile" data-align="center">手机号</th>
40
+							<th data-field="telphone" data-align="center">电话</th>
41
+							<th data-field="country" data-align="center">乡镇</th>
42
+							<th data-field="address" data-align="center">地址</th>
43
+							<th data-formatter="formatterOperation" data-align="center">操作</th>
196 44
 						</tr>
197 45
 					</thead>
198
-
199 46
 				</table>
200 47
 			</div>
201
-
202
-		</div>
203
-	<!--添加弹出内容-->
204
-		<div class="model addModel">
205
-			<div class="box">
206
-				<div class="btop clearfix">
207
-					<p class="btl">添加客户信息</p>
208
-					<p class="btr addBtr" title="关闭">X</p>
209
-				</div>
210
-				<div class="boxCon">
211
-					<table>
212
-						<tbody>
213
-							<tr>
214
-								<th>客户名称: </th>
215
-								<td colspan="3"><input type="text" class="add_name"  /><span class="kong addJsz_kong" style="color: red;">*角色值不允许为空</span></td>
216
-							</tr>
217
-							<tr>
218
-								<th>客户编号: </th>
219
-								<td colspan="3"><input type="text" class="add_code"  /><span class="kong addJsz_kong" style="color: red;">*角色值不允许为空</span></td>
220
-							</tr>
221
-							<tr>
222
-								<th>联系电话: </th>
223
-								<td colspan="3"><input type="text" class="add_ph1"  /><span class="kong addJsz_kong" style="color: red;">*角色值不允许为空</span></td>
224
-							</tr>
225
-							<tr>
226
-								<th>地址: </th>
227
-								<td colspan="3"><input type="text" class="caddr"  /><span class="kong addJsz_kong" style="color: red;">*角色值不允许为空</span></td>
228
-							</tr>
229
-							<tr>
230
-								<th>统计结果: </th>
231
-								<td colspan="3"><input type="text" class="cresult"  /><span class="kong addJsz_kong" style="color: red;">*角色值不允许为空</span></td>
232
-							</tr>
233
-							<tr>
234
-								<th>标记: </th>
235
-								<td colspan="3">
236
-									
237
-									<input type="radio" name="autoflag" value="1"/>
238
-									<label for="">有效</label>
239
-									
240
-									<input type="radio" name="autoflag" value="2"/>
241
-									<label for="">无效</label>
242
-								</td>
243
-							</tr>
244
-						</tbody>
245
-					</table>
246
-					<div style="text-align: center;"><button class="btns addCun">保存</button></div>
247
-				</div>
248
-			</div>
249
-		</div>
250
-	<!--修改弹出内容-->
251
-		<div class="model changeModel">
252
-			<div class="box">
253
-				<div class="btop clearfix">
254
-					<p class="btl">添加客户信息</p>
255
-					<p class="btr changeBtr" title="关闭">X</p>
256
-				</div>
257
-				<div class="boxCon">
258
-					<table>
259
-						<tbody>
260
-							<tr>
261
-								<th>客户名称: </th>
262
-								<td colspan="3"><input type="text" class="change_name"  /><span class="kong addJsz_kong" style="color: red;">*角色值不允许为空</span></td>
263
-							</tr>
264
-							<tr>
265
-								<th>客户编号: </th>
266
-								<td colspan="3"><input type="text" class="change_code"  /><span class="kong addJsz_kong" style="color: red;">*角色值不允许为空</span></td>
267
-							</tr>
268
-							<tr>
269
-								<th>联系电话: </th>
270
-								<td colspan="3"><input type="text" class="change_ph1"  /><span class="kong addJsz_kong" style="color: red;">*角色值不允许为空</span></td>
271
-							</tr>
272
-							<tr>
273
-								<th>地址: </th>
274
-								<td colspan="3"><input type="text" class="change_caddr"  /><span class="kong addJsz_kong" style="color: red;">*角色值不允许为空</span></td>
275
-							</tr>
276
-							<tr>
277
-								<th>统计结果: </th>
278
-								<td colspan="3"><input type="text" class="change_cresult"  /><span class="kong addJsz_kong" style="color: red;">*角色值不允许为空</span></td>
279
-							</tr>
280
-							<tr>
281
-								<th>标记: </th>
282
-								<td colspan="3">
283
-									
284
-									<input type="radio" name="change_autoflag" value="1"/>
285
-									<label for="">有效</label>
286
-									
287
-									<input type="radio" name="change_autoflag" value="2"/>
288
-									<label for="">无效</label>
289
-								</td>
290
-							</tr>
291
-						</tbody>
292
-					</table>
293
-					<div style="text-align: center;"><button class="btns changeCun">保存</button></div>
294
-				</div>
295
-			</div>
296 48
 		</div>
297
-		<!--删除弹出内容-->
298
-		<div class="model delModel">
299
-			<div class="box">
300
-				<div class="btop clearfix">
301
-					<p class="btl"><span>删除参数信息</span></p>
302
-					<p class="btr delBtr" title="关闭">X</p>
303
-				</div>
304
-				<div class="boxCon" style="height: 135px;">
305
-					<p style="font-size: 16px;text-align: center;">您确定要删除选择的记录吗?</p>
306
-					<p style="margin-top: 30px;"><button class="btns sure">确定</button>
307
-						<button class="btns return">取消</button></p>
308
-				</div>
309
-			</div>
310
-		</div>
311
-
312
-		<script src="../css/laydate/laydate.js"></script>
49
+		<script src="../js/laydate/laydate.js"></script>
313 50
 		<script src="./js/keHuManger.js"></script>
314
-		<script src="../js/visit/ajaxfileupload.js"></script>
315 51
 	</body>
52
+
316 53
 </html>

+ 76 - 204
CallCenterWeb.UI/keHuManager/js/keHuManger.js

@@ -1,197 +1,27 @@
1
+/**
2
+ * 客户档案管理
3
+ * */
4
+
1 5
 var table = $('#table1');
2 6
 var token = $.cookie("token");
3
-laydate.skin('molv');
4
-laydate({
5
-	elem: '#startTime',
6
-	event: 'focus',
7
-	format: 'YYYY-MM-DD', // 分隔符可以任意定义,该例子表示只显示年月
8
-});
9
-$('.search').click(function() {
10
-	initTable(token);
11
-})
12
-$("#aa").click(function() {
13
-	ajaxFileUpload();
14
-});
15
-
16
-function ajaxFileUpload() {
17
-	$.ajaxFileUpload({
18
-		url: huayi.config.callcenter_url + 'Customer/CustomerInput', //用于文件上传的服务器端请求地址
19
-		secureuri: false, //是否需要安全协议,一般设置为false
20
-		fileElementId: 'upFile', //文件上传域的ID
21
-		dataType: 'json', //返回值类型 一般设置为json
22
-		data: {
23
-			token: $.cookie("token")
24
-		},
25
-		success: function(data) //服务器成功响应处理函数
26
-		{
27
-			layer.msg("导入成功");
28
-			initTable(token);
29
-		}
30
-
31
-	})
32
-	return false;
33
-}
34
-//==================添加功能开始================================
35
-$('.add').click(function() {
36
-	$('.addModel').css('display', 'block');
37
-})
38
-//关闭按钮
39
-$('.addBtr').click(function() {
40
-	$('.addModel').css('display', 'none');
41
-})
42
-//保存按钮
43
-$('.addCun').click(function() {
44
-	var khmc = $(".add_name").val();
45
-	var khbh = $(".add_code").val();
46
-	var tel1 = $(".add_ph1").val();
47
-
48
-	$.post(huayi.config.callcenter_url + 'Customer/AddCustomer', {
49
-		name: khmc,
50
-		code: khbh,
51
-		mobile: tel1,
52
-		autoflag: $(' input[name="autoflag"]:checked ').val(),
53
-		caddr: $(".caddr").val(),
54
-		cresult: $(".cresult").val(),
55
-		"token": $.cookie("token")
56
-	}, function(result) {
57
-		result = $.parseJSON(result);
58
-		if(result.state.toLowerCase() == "success") {
59
-			$("#khid").val(result.data);
60
-			layer.msg("添加成功");
61
-			$(".add_name").val('');
62
-			$(".add_code").val('');
63
-			$(".add_ph1").val('');
64
-			$(".add_ph2").val('');
65
-			$(".add_ph3").val('');
66
-			table.bootstrapTable('refresh');
67
-		}
68
-	})
69
-	$('.addModel').css('display', 'none');
70
-})
71
-//******************添加功能结束********************************
72
-//==================修改功能开始================================
73
-var did;
74
-$('.change').click(function() {
75
-	var ids = $.map(table.bootstrapTable('getSelections'), function(row) {
76
-		return row.F_CustomerId;
7
+$(function() {
8
+	
9
+	laydate.render({
10
+		elem: '#startTime',
11
+		theme: '#1ab394',
12
+		range: '~',
13
+		calendar: true
77 14
 	});
78
-	did = ids.toString();
79
-	console.log(did);
80
-	if(ids.length <= 0) {
81
-		layer.confirm('请选择要修改的行!', {
82
-			btn: ['确定']
83
-		});
84
-		return;
85
-	} else {
86
-		$('.changeModel').css('display', 'block');
87
-		$.get(huayi.config.callcenter_url + 'Customer/GetCustomer', {
88
-			cid: did,
89
-			"token": $.cookie("token")
90
-		}, function(result) {
91
-			result = $.parseJSON(result);
92
-			if(result.state.toLowerCase() == "success") {
93
-				var con = result.data;
94
-				console.log(con);
95
-				$(".change_name").val(con.F_CustomerName);
96
-				$(".change_code").val(con.F_CustomerCode);
97
-				$(".change_ph1").val(con.F_Mobile);
98
-				$(".change_caddr").val(con.F_Address);
99
-				$(".change_cresult").val(con.F_Result);
100
-				$(' input[name="change_autoflag"][value="' + con.F_AutoFlag + '"]').prop("checked", "checked");
101
-			}
102
-		})
103
-	}
104
-})
105
-
106
-//关闭按钮
107
-$('.changeBtr').click(function() {
108
-	$('.changeModel').css('display', 'none');
109
-})
110
-//保存按钮
111
-$('.changeCun').click(function() {
112
-	var khmc = $(".change_name").val();
113
-	var khbh = $(".change_code").val();
114
-	var tel1 = $(".change_ph1").val();
115
-	if(!khmc) {
116
-		layer.confirm('请输入客户名称!', {
117
-			btn: ['确定']
118
-		});
119
-		return;
120
-	}
121
-	$.post(huayi.config.callcenter_url + 'Customer/AddCustomer', {
122
-		cid: did,
123
-		name: khmc,
124
-		code: khbh,
125
-		mobile: tel1,
126
-		autoflag: $(' input[name="change_autoflag"]:checked ').val(),
127
-		caddr: $(".change_caddr").val(),
128
-		cresult: $(".change_cresult").val(),
129
-		"token": $.cookie("token")
130
-	}, function(result) {
131
-		result = $.parseJSON(result);
132
-		if(result.state.toLowerCase() == "success") {
133
-			layer.msg("修改成功");
134
-			table.bootstrapTable('refresh');
135
-		}
136
-	})
137
-	$('.changeModel').css('display', 'none');
138
-})
139
-//******************修改功能结束********************************
140
-
141
-//==================删除功能开始================================
142
-//删除按钮
143
-var delid;
144
-$('.del').click(function() {
145
-	var ids = $.map(table.bootstrapTable('getSelections'), function(row) {
146
-		return row.F_CustomerId;
147
-	});
148
-	delid = ids.toString();
149
-	if(ids.length <= 0) {
150
-		layer.confirm('请选择要删除的行!', {
151
-			btn: ['确定']
152
-		});
153
-		return;
154
-	} else {
155
-		$('.delModel').css('display', 'block');
156
-	}
157
-
158
-})
159
-//关闭按钮
160
-$('.delBtr').click(function() {
161
-	$('.delModel').css('display', 'none');
162
-})
163
-//取消按钮
164
-$('.return').click(function() {
165
-	$('.delModel').css('display', 'none');
166
-})
167
-//确认按钮
168
-$('.sure').click(function() {
169
-	$('.delModel').css('display', 'none');
170
-	del(delid);
171
-})
172
-
173
-function del(delid) {
174
-	$.ajax({
175
-		type: "post",
176
-		url: huayi.config.callcenter_url + "Customer/DelCustomer",
177
-		async: true,
178
-		dataType: "json",
179
-		data: {
180
-			token: token,
181
-			ids: delid
182
-		},
183
-		success: function(data) {
184
-			if(data.state.toLowerCase() == 'success') {
185
-				layer.msg("删除成功!");
186
-				table.bootstrapTable('refresh');
187
-			}
188
-		}
15
+	
16
+	initTable();
17
+	
18
+	$('#sc_btns').click(function() {
19
+		initTable();
189 20
 	});
190
-}
191
-//*****************删除功能结束****************************
192
-initTable(token);
21
+	
22
+});
193 23
 
194
-function initTable(token) {
24
+function initTable() {
195 25
 	//先销毁表格
196 26
 	table.bootstrapTable('destroy');
197 27
 	//初始化表格,动态从服务器加载数据
@@ -199,7 +29,6 @@ function initTable(token) {
199 29
 		method: "get", //使用get请求到服务器获取数据
200 30
 		url: huayi.config.callcenter_url + "Customer/GetList", //获取数据的Servlet地址
201 31
 		contentType: 'application/x-www-form-urlencoded',
202
-		//			url: "kehu.json", //获取数据的Servlet地址
203 32
 		striped: true, //表格显示条纹
204 33
 		pagination: true, //启动分页
205 34
 		pageSize: 10, //每页显示的记录数
@@ -214,11 +43,13 @@ function initTable(token) {
214 43
 		queryParamsType: "undefined",
215 44
 		queryParams: function queryParams(params) { //设置查询参数
216 45
 			var param = {
217
-				page: params.pageNumber,
218
-				pagesize: params.pageSize,
46
+				page: params.pageNumber, //int	否	条数,默认为10
47
+				pagesize: params.pageSize,//int	否	页码,默认为1
48
+				name: $('#btn_name').val(),//	string	否	姓名,可模糊查询
49
+				tel: $('#btn_tel').val(),	//string	否	手机号或电话
50
+				starttime: $('#startTime').val() && $('#startTime').val().split(' ~ ')[0],	//string	否	开始时间
51
+				endtime: $('#startTime').val() && $('#startTime').val().split(' ~ ')[1],	//string	否	结束时间
219 52
 				token: token,
220
-				name: $('.czName').val(), //操作人名称
221
-				logindate: $('.loginTime').val() //登录时间
222 53
 			};
223 54
 			return param;
224 55
 		},
@@ -230,20 +61,61 @@ function initTable(token) {
230 61
 		}
231 62
 	});
232 63
 }
233
-
64
+//格式化编号
234 65
 function setCode(val, row, index) {
235
-	//		return index + 1;
66
+	//return index + 1;
236 67
 	var page = table.bootstrapTable("getPageCode");
237 68
 	return page.pageSize * (page.pageNumber - 1) + index + 1;
238 69
 }
239 70
 
240
-function F_AutoFlag(val, row, index) {
241
-
242
-	if(val == 1) {
71
+//格式化操作
72
+function formatterOperation(val, row) {
73
+	return '<div class="imgs">'+
74
+				'<a class="xg" href="javascript:;" onclick= btn_edit("' + row.id + '")>编辑</a>'+
75
+				'<a class="xg" href="javascript:;" onclick= btn_delete("' + row.id + '")>删除</a>'+
76
+			'</div>';
77
+}
243 78
 
244
-		return '<span class="Vtime" ></span><span class="xg" >无效</span><span class="Ctime" ></span><span class="xg" >有效</span>';
245
-	} else if(val == 2) {
246
-		return '<span class="Stime" ></span><span class="xg" >无效</span><span class="Vtime" ></span><span class="xg" >有效</span>';
247
-	}
248
-	return '<span class="Vtime" ></span><span class="xg" >无效</span><span class="Vtime" ></span><span class="xg" >有效</span>';
79
+//添加
80
+function btn_add() {
81
+	layer.open({
82
+		type: 2,
83
+		content: "../commonHtml/addOrEditCustomer.html", //iframe的url,no代表不显示滚动条
84
+		title: '添加客户档案',
85
+		//maxmin: true,
86
+		area: ['650px', '356px'], //宽高
87
+//		btn: ['确定', '取消'],
88
+//		yes: function(index, layero) {
89
+//			debugger
90
+//		}
91
+	});
92
+}
93
+//编辑
94
+function btn_edit(cid) {
95
+	layer.open({
96
+		type: 2,
97
+		content: "../commonHtml/addOrEditCustomer.html?cid=" + cid, //iframe的url,no代表不显示滚动条
98
+		title: '编辑客户档案',
99
+		//maxmin: true,
100
+		area: ['650px', '356px'], //宽高
101
+		
102
+	});
103
+}
104
+//删除
105
+function btn_delete(cid) {
106
+	layer.confirm('您确定要删除当前客户吗?', {
107
+		btn: ['确定', '取消'],
108
+		yes: function(index, layero) {
109
+			$.post(huayi.config.callcenter_url + "Customer/DelCustomer", {
110
+				ids: cid,
111
+				token: token,
112
+			}, function(result) {
113
+				result = JSON.parse(result);
114
+				if(result.state.toLowerCase() == "success") {
115
+					layer.msg("删除成功");
116
+					table.bootstrapTable('refresh');
117
+				}
118
+			})
119
+		},
120
+	});
249 121
 }

+ 0 - 379
CallCenterWeb.UI/keHuManager/kehu.json

@@ -1,379 +0,0 @@
1
-{
2
-	
3
-		"state": "success",
4
-		"message": "成功",
5
-		"rows": [
6
-			{
7
-				"F_CustomerId": 3309,
8
-				"F_CustomerName": "周星驰",
9
-				"F_CustomerCode": "5555",
10
-				"F_CustomerEName": "",
11
-				"F_CustomerPym": null,
12
-				"F_Layer": null,
13
-				"F_CustomerLayer": null,
14
-				"F_CategoryId": 0,
15
-				"F_TradeId": 0,
16
-				"F_RegionId": null,
17
-				"F_IndustryId": 0,
18
-				"F_Address": null,
19
-				"F_Url": null,
20
-				"F_Telephone": "",
21
-				"F_Mobile": "15555555555",
22
-				"F_Fax": null,
23
-				"F_Email": null,
24
-				"F_Website": null,
25
-				"F_PostCode": null,
26
-				"F_ScaleResume": null,
27
-				"F_BusinessProfile": null,
28
-				"F_BusinessLicenseID": null,
29
-				"F_TaxID": null,
30
-				"F_OpeningBank": null,
31
-				"F_BankAccount": null,
32
-				"F_LegalRepresentative": null,
33
-				"F_LegalRepresentativeCardID": null,
34
-				"F_Nature": null,
35
-				"F_Kind": null,
36
-				"F_CustomerType": null,
37
-				"F_MainProduct": null,
38
-				"F_CustomerFrom": null,
39
-				"F_TrackInfo": null,
40
-				"F_TrackState": null,
41
-				"F_ImportDegree": null,
42
-				"F_IntentProduct": null,
43
-				"F_CreateBy": 1421,
44
-				"F_CreatedOn": "2017-07-05 14:54:23",
45
-				"F_ModifyBy": 0,
46
-				"F_ModifiedOn": null,
47
-				"F_DeleteFlag": 0,
48
-				"F_StatusCode": 0,
49
-				"F_ServiceDept": null,
50
-				"F_ChargeName": null,
51
-				"F_ChargeTelephone": "",
52
-				"F_Province": null,
53
-				"F_ProductLine": null,
54
-				"F_ChargeDept": null,
55
-				"F_AfterSaleName": null,
56
-				"F_CustomerNature": null,
57
-				"F_CustomerClass": null,
58
-				"F_CustomerIndustry": null,
59
-				"F_RelationShipClass": null,
60
-				"F_CurrentVersion": null,
61
-				"F_SystemStartTime": null,
62
-				"F_QualityGuaranteeEndTime": null,
63
-				"F_AfterSaleTelephone": null,
64
-				"F_Notes": null,
65
-				"F_SystemType": null,
66
-				"F_City": null,
67
-				"F_CustomerStatus": null,
68
-				"F_DeviceCount": null,
69
-				"F_MaintenanceType": null,
70
-				"F_ERPCustomerCode": null,
71
-				"F_ServiceDeptID": null,
72
-				"F_ProductLineID": null,
73
-				"F_AfterSaleNameID": null,
74
-				"F_CustomerNatureID": null,
75
-				"F_CustomerClassID": null,
76
-				"F_RelationShipClassID": null,
77
-				"F_CityID": null,
78
-				"p_id": 1,
79
-				"n_id": "3309"
80
-			}, {
81
-				"F_CustomerId": 3308,
82
-				"F_CustomerName": "测试测试",
83
-				"F_CustomerCode": "4444",
84
-				"F_CustomerEName": "",
85
-				"F_CustomerPym": null,
86
-				"F_Layer": null,
87
-				"F_CustomerLayer": null,
88
-				"F_CategoryId": 0,
89
-				"F_TradeId": 0,
90
-				"F_RegionId": null,
91
-				"F_IndustryId": 0,
92
-				"F_Address": null,
93
-				"F_Url": null,
94
-				"F_Telephone": "",
95
-				"F_Mobile": "15444444444",
96
-				"F_Fax": null,
97
-				"F_Email": null,
98
-				"F_Website": null,
99
-				"F_PostCode": null,
100
-				"F_ScaleResume": null,
101
-				"F_BusinessProfile": null,
102
-				"F_BusinessLicenseID": null,
103
-				"F_TaxID": null,
104
-				"F_OpeningBank": null,
105
-				"F_BankAccount": null,
106
-				"F_LegalRepresentative": null,
107
-				"F_LegalRepresentativeCardID": null,
108
-				"F_Nature": null,
109
-				"F_Kind": null,
110
-				"F_CustomerType": null,
111
-				"F_MainProduct": null,
112
-				"F_CustomerFrom": null,
113
-				"F_TrackInfo": null,
114
-				"F_TrackState": null,
115
-				"F_ImportDegree": null,
116
-				"F_IntentProduct": null,
117
-				"F_CreateBy": 1421,
118
-				"F_CreatedOn": "2017-07-05 14:46:53",
119
-				"F_ModifyBy": 0,
120
-				"F_ModifiedOn": null,
121
-				"F_DeleteFlag": 0,
122
-				"F_StatusCode": 0,
123
-				"F_ServiceDept": null,
124
-				"F_ChargeName": null,
125
-				"F_ChargeTelephone": "",
126
-				"F_Province": null,
127
-				"F_ProductLine": null,
128
-				"F_ChargeDept": null,
129
-				"F_AfterSaleName": null,
130
-				"F_CustomerNature": null,
131
-				"F_CustomerClass": null,
132
-				"F_CustomerIndustry": null,
133
-				"F_RelationShipClass": null,
134
-				"F_CurrentVersion": null,
135
-				"F_SystemStartTime": null,
136
-				"F_QualityGuaranteeEndTime": null,
137
-				"F_AfterSaleTelephone": null,
138
-				"F_Notes": null,
139
-				"F_SystemType": null,
140
-				"F_City": null,
141
-				"F_CustomerStatus": null,
142
-				"F_DeviceCount": null,
143
-				"F_MaintenanceType": null,
144
-				"F_ERPCustomerCode": null,
145
-				"F_ServiceDeptID": null,
146
-				"F_ProductLineID": null,
147
-				"F_AfterSaleNameID": null,
148
-				"F_CustomerNatureID": null,
149
-				"F_CustomerClassID": null,
150
-				"F_RelationShipClassID": null,
151
-				"F_CityID": null,
152
-				"p_id": 2,
153
-				"n_id": "3308"
154
-			}, {
155
-				"F_CustomerId": 3307,
156
-				"F_CustomerName": "王五",
157
-				"F_CustomerCode": "141414",
158
-				"F_CustomerEName": "",
159
-				"F_CustomerPym": null,
160
-				"F_Layer": null,
161
-				"F_CustomerLayer": null,
162
-				"F_CategoryId": 0,
163
-				"F_TradeId": 0,
164
-				"F_RegionId": null,
165
-				"F_IndustryId": 0,
166
-				"F_Address": null,
167
-				"F_Url": null,
168
-				"F_Telephone": "",
169
-				"F_Mobile": "15512341234",
170
-				"F_Fax": null,
171
-				"F_Email": null,
172
-				"F_Website": null,
173
-				"F_PostCode": null,
174
-				"F_ScaleResume": null,
175
-				"F_BusinessProfile": null,
176
-				"F_BusinessLicenseID": null,
177
-				"F_TaxID": null,
178
-				"F_OpeningBank": null,
179
-				"F_BankAccount": null,
180
-				"F_LegalRepresentative": null,
181
-				"F_LegalRepresentativeCardID": null,
182
-				"F_Nature": null,
183
-				"F_Kind": null,
184
-				"F_CustomerType": null,
185
-				"F_MainProduct": null,
186
-				"F_CustomerFrom": null,
187
-				"F_TrackInfo": null,
188
-				"F_TrackState": null,
189
-				"F_ImportDegree": null,
190
-				"F_IntentProduct": null,
191
-				"F_CreateBy": 1421,
192
-				"F_CreatedOn": "2017-06-30 08:55:48",
193
-				"F_ModifyBy": 0,
194
-				"F_ModifiedOn": null,
195
-				"F_DeleteFlag": 0,
196
-				"F_StatusCode": 0,
197
-				"F_ServiceDept": null,
198
-				"F_ChargeName": null,
199
-				"F_ChargeTelephone": "",
200
-				"F_Province": null,
201
-				"F_ProductLine": null,
202
-				"F_ChargeDept": null,
203
-				"F_AfterSaleName": null,
204
-				"F_CustomerNature": null,
205
-				"F_CustomerClass": null,
206
-				"F_CustomerIndustry": null,
207
-				"F_RelationShipClass": null,
208
-				"F_CurrentVersion": null,
209
-				"F_SystemStartTime": null,
210
-				"F_QualityGuaranteeEndTime": null,
211
-				"F_AfterSaleTelephone": null,
212
-				"F_Notes": null,
213
-				"F_SystemType": null,
214
-				"F_City": null,
215
-				"F_CustomerStatus": null,
216
-				"F_DeviceCount": null,
217
-				"F_MaintenanceType": null,
218
-				"F_ERPCustomerCode": null,
219
-				"F_ServiceDeptID": null,
220
-				"F_ProductLineID": null,
221
-				"F_AfterSaleNameID": null,
222
-				"F_CustomerNatureID": null,
223
-				"F_CustomerClassID": null,
224
-				"F_RelationShipClassID": null,
225
-				"F_CityID": null,
226
-				"p_id": 3,
227
-				"n_id": "3307"
228
-			}, {
229
-				"F_CustomerId": 3306,
230
-				"F_CustomerName": "去玩儿",
231
-				"F_CustomerCode": "111",
232
-				"F_CustomerEName": "",
233
-				"F_CustomerPym": null,
234
-				"F_Layer": null,
235
-				"F_CustomerLayer": null,
236
-				"F_CategoryId": 0,
237
-				"F_TradeId": 0,
238
-				"F_RegionId": null,
239
-				"F_IndustryId": 0,
240
-				"F_Address": null,
241
-				"F_Url": null,
242
-				"F_Telephone": "",
243
-				"F_Mobile": "13311111111",
244
-				"F_Fax": null,
245
-				"F_Email": null,
246
-				"F_Website": null,
247
-				"F_PostCode": null,
248
-				"F_ScaleResume": null,
249
-				"F_BusinessProfile": null,
250
-				"F_BusinessLicenseID": null,
251
-				"F_TaxID": null,
252
-				"F_OpeningBank": null,
253
-				"F_BankAccount": null,
254
-				"F_LegalRepresentative": null,
255
-				"F_LegalRepresentativeCardID": null,
256
-				"F_Nature": null,
257
-				"F_Kind": null,
258
-				"F_CustomerType": null,
259
-				"F_MainProduct": null,
260
-				"F_CustomerFrom": null,
261
-				"F_TrackInfo": null,
262
-				"F_TrackState": null,
263
-				"F_ImportDegree": null,
264
-				"F_IntentProduct": null,
265
-				"F_CreateBy": 1421,
266
-				"F_CreatedOn": "2017-06-29 10:34:00",
267
-				"F_ModifyBy": 0,
268
-				"F_ModifiedOn": null,
269
-				"F_DeleteFlag": 0,
270
-				"F_StatusCode": 0,
271
-				"F_ServiceDept": null,
272
-				"F_ChargeName": null,
273
-				"F_ChargeTelephone": "",
274
-				"F_Province": null,
275
-				"F_ProductLine": null,
276
-				"F_ChargeDept": null,
277
-				"F_AfterSaleName": null,
278
-				"F_CustomerNature": null,
279
-				"F_CustomerClass": null,
280
-				"F_CustomerIndustry": null,
281
-				"F_RelationShipClass": null,
282
-				"F_CurrentVersion": null,
283
-				"F_SystemStartTime": null,
284
-				"F_QualityGuaranteeEndTime": null,
285
-				"F_AfterSaleTelephone": null,
286
-				"F_Notes": null,
287
-				"F_SystemType": null,
288
-				"F_City": null,
289
-				"F_CustomerStatus": null,
290
-				"F_DeviceCount": null,
291
-				"F_MaintenanceType": null,
292
-				"F_ERPCustomerCode": null,
293
-				"F_ServiceDeptID": null,
294
-				"F_ProductLineID": null,
295
-				"F_AfterSaleNameID": null,
296
-				"F_CustomerNatureID": null,
297
-				"F_CustomerClassID": null,
298
-				"F_RelationShipClassID": null,
299
-				"F_CityID": null,
300
-				"p_id": 4,
301
-				"n_id": "3306"
302
-			}, {
303
-				"F_CustomerId": 3305,
304
-				"F_CustomerName": "测试测试",
305
-				"F_CustomerCode": "1234",
306
-				"F_CustomerEName": "",
307
-				"F_CustomerPym": null,
308
-				"F_Layer": null,
309
-				"F_CustomerLayer": null,
310
-				"F_CategoryId": 0,
311
-				"F_TradeId": 0,
312
-				"F_RegionId": null,
313
-				"F_IndustryId": 0,
314
-				"F_Address": null,
315
-				"F_Url": null,
316
-				"F_Telephone": "15800000000",
317
-				"F_Mobile": "",
318
-				"F_Fax": null,
319
-				"F_Email": null,
320
-				"F_Website": null,
321
-				"F_PostCode": null,
322
-				"F_ScaleResume": null,
323
-				"F_BusinessProfile": null,
324
-				"F_BusinessLicenseID": null,
325
-				"F_TaxID": null,
326
-				"F_OpeningBank": null,
327
-				"F_BankAccount": null,
328
-				"F_LegalRepresentative": null,
329
-				"F_LegalRepresentativeCardID": null,
330
-				"F_Nature": null,
331
-				"F_Kind": null,
332
-				"F_CustomerType": null,
333
-				"F_MainProduct": null,
334
-				"F_CustomerFrom": null,
335
-				"F_TrackInfo": null,
336
-				"F_TrackState": null,
337
-				"F_ImportDegree": null,
338
-				"F_IntentProduct": null,
339
-				"F_CreateBy": 1421,
340
-				"F_CreatedOn": "2017-06-29 09:01:57",
341
-				"F_ModifyBy": 0,
342
-				"F_ModifiedOn": null,
343
-				"F_DeleteFlag": 0,
344
-				"F_StatusCode": 0,
345
-				"F_ServiceDept": null,
346
-				"F_ChargeName": null,
347
-				"F_ChargeTelephone": "",
348
-				"F_Province": null,
349
-				"F_ProductLine": null,
350
-				"F_ChargeDept": null,
351
-				"F_AfterSaleName": null,
352
-				"F_CustomerNature": null,
353
-				"F_CustomerClass": null,
354
-				"F_CustomerIndustry": null,
355
-				"F_RelationShipClass": null,
356
-				"F_CurrentVersion": null,
357
-				"F_SystemStartTime": null,
358
-				"F_QualityGuaranteeEndTime": null,
359
-				"F_AfterSaleTelephone": null,
360
-				"F_Notes": null,
361
-				"F_SystemType": null,
362
-				"F_City": null,
363
-				"F_CustomerStatus": null,
364
-				"F_DeviceCount": null,
365
-				"F_MaintenanceType": null,
366
-				"F_ERPCustomerCode": null,
367
-				"F_ServiceDeptID": null,
368
-				"F_ProductLineID": null,
369
-				"F_AfterSaleNameID": null,
370
-				"F_CustomerNatureID": null,
371
-				"F_CustomerClassID": null,
372
-				"F_RelationShipClassID": null,
373
-				"F_CityID": null,
374
-				"p_id": 5,
375
-				"n_id": "3305"
376
-			}
377
-		],
378
-		"total": 9
379
-	}

+ 75 - 55
CallCenterWeb.UI/reportAnalysis/callTime.html

@@ -287,60 +287,81 @@
287 287
 										})(),
288 288
 									},
289 289
 									series: (function() {
290
-										var sres = [],
291
-											sres1 = [],
292
-											sres2 = [],
293
-											sres3 = [],
294
-											sres4 = [],
295
-											sres5 = [],
296
-											sres6 = [],
297
-											sres7 = [],
298
-											sres8 = [],
299
-											sres9 = [];
300
-										var sobj = [{
301
-												data: sres,
302
-											},
303
-											{
304
-												data: sres1,
305
-											},
306
-											{
307
-												data: sres2,
308
-											},
309
-											{
310
-												data: sres3,
311
-											},
312
-											{
313
-												data: sres4,
314
-											},
315
-											{
316
-												data: sres5,
317
-											},
318
-											{
319
-												data: sres6,
320
-											},
321
-											{
322
-												data: sres7,
323
-											},
324
-											{
325
-												data: sres8,
326
-											},
327
-											{
328
-												data: sres9,
329
-											},
330
-										];
331
-										for(var i = 0; i < tbodyCon.length; i++) {
332
-											sres.push(tbodyCon[i].呼入次数);
333
-											sres1.push(tbodyCon[i].呼入时长);
334
-											sres2.push(tbodyCon[i].呼入未接通次数);
335
-											sres3.push(tbodyCon[i].呼出次数);
336
-											sres4.push(tbodyCon[i].呼出时长);
337
-											sres5.push(tbodyCon[i].呼出未接通次数);
338
-											sres6.push(tbodyCon[i].振铃时长);
339
-											sres7.push(tbodyCon[i].接通总次数);
340
-											sres8.push(tbodyCon[i].通话总时长);
341
-											sres9.push(tbodyCon[i].平均通话总时长);
342
-										}
343
-										return sobj;
290
+											var formatterArr = function(tarr, prames) {
291
+												var newArr = [];
292
+												$.each(tarr, function(i, v) {
293
+													$.each(v, function(j, k) {
294
+														if(j == prames) {
295
+															newArr.push(k);
296
+														}
297
+													});
298
+												});
299
+												return {
300
+													name: prames,
301
+													data: newArr
302
+												};
303
+											}
304
+	
305
+											return [formatterArr(tbodyCon, "呼入次数"), formatterArr(tbodyCon, "呼入时长"), formatterArr(tbodyCon, "呼入未接通次数"),
306
+												formatterArr(tbodyCon, "呼出次数"), formatterArr(tbodyCon, "呼出时长"), formatterArr(tbodyCon, "呼出未接通次数"),
307
+												formatterArr(tbodyCon, "振铃时长"), formatterArr(tbodyCon, "接通总次数"), formatterArr(tbodyCon, "通话总时长"),
308
+												formatterArr(tbodyCon, "平均通话总时长")
309
+											]
310
+
311
+/*											var sres = [],
312
+												sres1 = [],
313
+												sres2 = [],
314
+												sres3 = [],
315
+												sres4 = [],
316
+												sres5 = [],
317
+												sres6 = [],
318
+												sres7 = [],
319
+												sres8 = [],
320
+												sres9 = [];
321
+											var sobj = [{
322
+													data: sres,
323
+												},
324
+												{
325
+													data: sres1,
326
+												},
327
+												{
328
+													data: sres2,
329
+												},
330
+												{
331
+													data: sres3,
332
+												},
333
+												{
334
+													data: sres4,
335
+												},
336
+												{
337
+													data: sres5,
338
+												},
339
+												{
340
+													data: sres6,
341
+												},
342
+												{
343
+													data: sres7,
344
+												},
345
+												{
346
+													data: sres8,
347
+												},
348
+												{
349
+													data: sres9,
350
+												},
351
+											];
352
+											for(var i = 0; i < tbodyCon.length; i++) {
353
+												sres.push(tbodyCon[i].呼入次数);
354
+												sres1.push(tbodyCon[i].呼入时长);
355
+												sres2.push(tbodyCon[i].呼入未接通次数);
356
+												sres3.push(tbodyCon[i].呼出次数);
357
+												sres4.push(tbodyCon[i].呼出时长);
358
+												sres5.push(tbodyCon[i].呼出未接通次数);
359
+												sres6.push(tbodyCon[i].振铃时长);
360
+												sres7.push(tbodyCon[i].接通总次数);
361
+												sres8.push(tbodyCon[i].通话总时长);
362
+												sres9.push(tbodyCon[i].平均通话总时长);
363
+											}
364
+											return sobj;*/
344 365
 									})(),
345 366
 								});
346 367
 								//填充表格数据
@@ -359,7 +380,6 @@
359 380
 					});
360 381
 
361 382
 			}
362
-
363 383
 			//获取表头数据和图形legend
364 384
 			function getColumnList() {
365 385
 				$.ajax({

+ 62 - 60
CallCenterWeb.WeChat/WeChart/html/index.html

@@ -1,6 +1,5 @@
1 1
 <!doctype html>
2 2
 <html lang="en" class="feedback">
3
-
4 3
 	<head>
5 4
 		<meta charset="UTF-8" />
6 5
 		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
@@ -9,27 +8,46 @@
9 8
 		<link rel="stylesheet" type="text/css" href="../css/feedback-page.css" />
10 9
 		<link rel="stylesheet" href="../css/webuploader.css" />
11 10
 		<link rel="stylesheet" type="text/css" href="../css/Common.css" />
12
-		
13
-		<style>
14
-.mui-input-row label{
15
-	    padding: 11px 3px;
16
-	    text-align: right;
17
-	        width: 28%;
18
-}
19
-.mui-input-row label~input{
20
-	width: 71%;
21
-}
22
-.Phone{
23
-	display: block;
24
-    line-height: 65px;
25
-    text-align: center;
26
-}
27 11
 
12
+		<style>
13
+			.mui-input-row label {
14
+				padding: 11px 3px;
15
+				text-align: right;
16
+				width: 28%;
17
+			}
18
+			
19
+			.mui-input-row label~input {
20
+				width: 71%;
21
+			}
22
+			
23
+			.Phone {
24
+				display: block;
25
+				line-height: 65px;
26
+				text-align: center;
27
+			}
28 28
 		</style>
29 29
 	</head>
30 30
 
31 31
 	<body>
32
+			
32 33
 		<div class="mui-content">
34
+			<form class="mui-input-group" method="post" enctype="multipart/form-data" id="uploadForm">
35
+				<div class="mui-input-row">
36
+					<label>客户姓名:</label>
37
+					<input type="text" class="mui-input-clear" id="Username" placeholder="请输入客户姓名">
38
+				</div>
39
+				<div class="mui-input-row">
40
+					<label>电话:</label>
41
+					<input type="text" class="mui-input-clear" id="Phone" placeholder="请输入电话">
42
+				</div>
43
+				
44
+				
45
+				<div class="mui-input-row">
46
+					<label>地址:</label>
47
+					<input type="text" class="mui-input-clear" id="t_address" placeholder="请输入地址">
48
+				</div>
49
+
50
+			</form>
33 51
 			<div class="row mui-input-row">
34 52
 				<textarea id='question' class="mui-input-clear question" placeholder="请详细描述你的问题和意见..."></textarea>
35 53
 			</div>
@@ -38,63 +56,47 @@
38 56
 				</div>
39 57
 			</div>
40 58
 			<div class="row image-list">
41
-
59
+				
42 60
 			</div>
43
-			<form class="mui-input-group" method="post" enctype="multipart/form-data" id="uploadForm">
44
-
45
-				<div class="mui-input-row">
46
-					<label>联系人:</label>
47
-					<input type="text" class="mui-input-clear" id="Username" placeholder="">
48
-				</div>
49
-				<div class="mui-input-row">
50
-					<label>联系电话:</label>
51
-					<input type="text" class="mui-input-clear" id="Phone" placeholder="">
52
-				</div>
53
-
54
-			</form>
55 61
 			<div class="mui-button-row" id="Btns-box">
56 62
 				<button type="button" id="submit" class="mui-btn mui-btn-primary" onclick="return false;">提交</button>&nbsp;&nbsp;
57 63
 			</div>
58 64
 		</div>
59 65
 		<script src="../js/zepto.js"></script>
60
-		
61 66
 		<script src="../js/jquery.min.js"></script>
62 67
 		<script src="../Script/Common/huayi.config.js"></script>
63 68
 		<script src="../Script/Common/huayi.http.js"></script>
64 69
 		<script src="../js/mui.min.js"></script>
65 70
 		<script src="../js/webuploader.min.js"></script>
66
-		<!--<script src="../js/feedback-page.js"></script>-->
67 71
 		<script type="text/javascript">
68 72
 			mui.init();
69 73
 			var openid = helper.cookies.get("openid");
70 74
 			console.log(openid);
71 75
 			var files;
72
-			var Str='';
76
+			var Str = '';
73 77
 			var str_ary;
74 78
 			var reg = /,$/gi;
75
-			$("#submit").on('tap', function() {			
79
+			$("#submit").on('tap', function() {
76 80
 				$(".file-item").each(function(i, n) {
77 81
 					var a = $(n).attr("upload-index");
78
-					if(a){
82
+					if(a) {
79 83
 						Str += a + ',';
80
-						
84
+
81 85
 					}
82
-				
83
-//					str_ary = Str.split("ed")[1];
84
-//					files = Str.split("ed")[1].replace(reg, "");
85
-					str_ary=Str.substring(0,Str.length-1);
86
+
87
+					//					str_ary = Str.split("ed")[1];
88
+					//					files = Str.split("ed")[1].replace(reg, "");
89
+					str_ary = Str.substring(0, Str.length - 1);
86 90
 				})
87
-					
88
-		 		console.log(str_ary);
91
+
92
+				console.log(str_ary);
89 93
 				if(!$("#question").val()) {
90 94
 					mui.toast("工单内容不能为空");
91
-				}else if(!$("#Username").val()){
95
+				} else if(!$("#Username").val()) {
92 96
 					mui.toast("联系人不能为空");
93
-				} 
94
-				else if(!(/^1[3|4|5|8][0-9]\d{4,8}$/.test($("#Phone").val()))){
97
+				} else if(!(/^1[3|4|5|8][0-9]\d{4,8}$/.test($("#Phone").val()))) {
95 98
 					mui.toast("输入正确的手机号");
96
-				}
97
-				else {
99
+				} else {
98 100
 					$.ajax({
99 101
 						type: "post",
100 102
 						url: huayi.config.callcenter_url + 'WxLogin/AddWorkOrder',
@@ -106,7 +108,7 @@
106 108
 							content: $("#question").val(), //信息内容
107 109
 							files: str_ary,
108 110
 							openid: 'oKOqcv31fh76rtNmJDjKc39oIsfA' //微信openid
109
-//					openid:openid
111
+							//					openid:openid
110 112
 						},
111 113
 						success: function(data) {
112 114
 							if(data.state == "success") {
@@ -114,7 +116,7 @@
114 116
 								mui.toast("添加成功");
115 117
 								location.href = "WorkList.html";
116 118
 							} else {
117
-									files='';
119
+								files = '';
118 120
 								mui.alert(data.message);
119 121
 							}
120 122
 						}
@@ -128,14 +130,14 @@
128 130
 				$("#Phone").val('');
129 131
 				$("#question").val('');
130 132
 			}
131
-//			// 图片上传demo
133
+			//			// 图片上传demo
132 134
 			var applicationPath = window.applicationPath === "" ? "" : window.applicationPath || "../../";
133 135
 			var $ = jQuery;
134 136
 			var $ = jQuery,
135 137
 				$list = $('#image-list'),
136 138
 				// 优化retina, 在retina下这个值是2
137 139
 				ratio = window.devicePixelRatio || 1,
138
-//				// 缩略图大小
140
+				//				// 缩略图大小
139 141
 				thumbnailWidth = 50 * ratio,
140 142
 				thumbnailHeight = 50 * ratio,
141 143
 
@@ -152,21 +154,21 @@
152 154
 
153 155
 					// 文件接收服务端。
154 156
 					//server: 'http://192.168.4.18:4120/WxLogin/UpdateFile',
155
-					server: huayi.config.callcenter_url+'/WxLogin/UpLoadProcess',
157
+					server: huayi.config.callcenter_url + '/WxLogin/UpLoadProcess',
156 158
 					// 选择文件的按钮。可选。
157 159
 					// 内部根据当前运行是创建,可能是input元素,也可能是flash.
158 160
 					pick: '#filePicker',
159 161
 					// 图片数量限制
160
-//				fileNumLimit: 4,
162
+					//				fileNumLimit: 4,
161 163
 					//可以重复上传
162
-					 duplicate :true ,
164
+					duplicate: true,
163 165
 					// 只允许选择文件,可选。
164
-//					accept: {
165
-//						title: 'Images',
166
-//						extensions: 'gif,jpg,jpeg,bmp,png',
167
-//						mimeTypes: 'image/*'
168
-//					},
169
-   					resize: false
166
+					//					accept: {
167
+					//						title: 'Images',
168
+					//						extensions: 'gif,jpg,jpeg,bmp,png',
169
+					//						mimeTypes: 'image/*'
170
+					//					},
171
+					resize: false
170 172
 				});
171 173
 				//上传图片提示
172 174
 				uploader.on('error', function(handler) {
@@ -194,7 +196,7 @@
194 196
 					// 创建缩略图
195 197
 					uploader.makeThumb(file, function(error, src) {
196 198
 						if(error) {
197
-							$img.replaceWith('<span class="Phone">' + file.ext+ '</span>');
199
+							$img.replaceWith('<span class="Phone">' + file.ext + '</span>');
198 200
 							return;
199 201
 						}
200 202