Browse Source

思念修改

miaofuhao 7 years ago
parent
commit
68bceeb3f4

+ 87 - 57
CallCenterWeb.UI/ReportForm/workOrderComplain.html

@@ -3,7 +3,7 @@
3 3
 
4 4
 	<head>
5 5
 		<meta charset="UTF-8">
6
-		<title>工单来源</title>
6
+		<title>投诉原因</title>
7 7
 		<meta name="viewport" content="width=device-width, initial-scale=1.0">
8 8
 		<script src="../Script/Common/huayi.load.js"></script>
9 9
 		<script src="../Script/Common/huayi.config.js"></script>
@@ -38,7 +38,7 @@
38 38
 				<a href="#" title="刷新"><i class="fa fa-refresh"></i></a>
39 39
 			</div>
40 40
 		</div>
41
-
41
+		
42 42
 		<div class="toolBox">
43 43
 			<div class="th-bar clearfix">
44 44
 				<div class="pull-right">
@@ -61,8 +61,24 @@
61 61
 				</div>
62 62
 			</div>
63 63
 		</div>
64
-		<div class="th-content">
65
-			<div id="quantity" style="width: 100%;height: 500px;"></div>
64
+		<ul class="nav nav-tabs hu-tab">
65
+			<li role="presentation" class="active">
66
+				<a href="javascript:;">图形</a>
67
+			</li>
68
+			<li role="presentation">
69
+				<a href="javascript:;">表格</a>
70
+			</li>
71
+
72
+		</ul>
73
+		<div class="hu-content">
74
+			<div class="hu-con-right">
75
+				<h2 style="text-align: center; margin-top: 20px;">数据饼状图</h2>
76
+				<div id="quantity" style="width: 100%;height: 500px;"></div>
77
+			</div>
78
+			<div class="hu-con-left">
79
+				<h2 style="text-align: center; margin-top: 20px; display: none;">投诉原因统计</h2>
80
+				<table class="layui-hide" id="t_callTotal"></table> 
81
+			</div>
66 82
 		</div>
67 83
 		<script src="../js/layui/layui.js"></script>
68 84
 		<script src="../js/echarts.min.js"></script>
@@ -93,6 +109,17 @@
93 109
 					partOne();
94 110
 					//getTableDataList(); //获取表格数据
95 111
 				})
112
+				//tab切换
113
+				$('.hu-tab li').click(function() {
114
+					$(this).addClass('active')
115
+						.siblings().removeClass('active');
116
+			
117
+					tabIndex = $(this).index();
118
+					$('.hu-content >div').eq(tabIndex).show()
119
+						.siblings().hide();
120
+					loadDatas();	
121
+				});
122
+				
96 123
 //				//导出
97 124
 //				$('.export').click(function() {
98 125
 //					stime = $('#startTime').val() && $('#startTime').val().split(' ~ ')[0];
@@ -101,64 +128,20 @@
101 128
 //				});
102 129
 
103 130
 			});
104
-
131
+			function loadDatas() {
132
+				if(tabIndex == 0) {
133
+					//tu(); //加载图形
134
+				} else if(tabIndex == 1) {
135
+					getDataList(); //加载表格
136
+				}
137
+			}
105 138
 			function dcexcel(obj) {
106 139
 				var url = huayi.config.callcenter_url + "GDLY/ExportExcel?token=" + token;
107 140
 				url += "&stime=" + stime + "&endtime=" + endtime + "&dpt=" + $('#bumen').val();
108 141
 				obj.href = url;
109 142
 			}
110 143
 
111
-			//投诉举报汇总 part1
112
-			var quantity = echarts.init(document.getElementById('quantity'));
113
-			quantity.setOption({
114
-				tooltip: {
115
-					trigger: 'item',
116
-					formatter: "{a} <br/>{b} : {c} ({d}%)",
117
-					axisPointer: {
118
-						crossStyle: {
119
-							color: '#fff'
120
-						}
121
-					}
122
-				},
123
-				legend: {
124
-					//      orient: 'vertical',
125
-					bottom: 'bottom',
126
-					data: [],
127
-					textStyle: {
128
-						color: '#fff'
129
-					}
130
-				},
131
-				series: [{
132
-					name: '数据',
133
-					type: 'pie',
134
-					radius: '55%',
135
-					center: ['50%', '50%'],
136
-					data: [],
137
-					itemStyle: {
138
-						emphasis: {
139
-							shadowBlur: 10,
140
-							shadowOffsetX: 0,
141
-							shadowColor: 'rgba(0, 0, 0, 0.5)'
142
-						},
143
-						normal: {
144
-							label: {
145
-								show: true,
146
-								formatter: '{b} : {c} ({d}%)'
147
-							},
148
-							labelLine: {
149
-								show: true
150
-							}
151
-						}
152
-					},
153
-					label: {
154
-						normal: {
155
-							textStyle: {
156
-								color: '#fff'
157
-							}
158
-						}
159
-					}
160
-				}]
161
-			});
144
+			
162 145
 			partOne();
163 146
 			//投诉举报汇总 part1
164 147
 			var quantity = echarts.init(document.getElementById('quantity'));
@@ -210,7 +193,54 @@
210 193
 					}
211 194
 				}]
212 195
 			});
213
-
196
+			
197
+			function getDataList() {
198
+				var loadindex = layer.load();
199
+				layui.use('table', function() {
200
+					var table = layui.table;
201
+					//方法级渲染
202
+					table.render({
203
+						elem: '#t_callTotal',
204
+						url: huayi.config.callcenter_url + "Business/GetTypeReport",
205
+						method: 'get', //如果无需自定义HTTP类型,可不加该参数
206
+						skin: 'row', //line (行边框风格) row (列边框风格) nob (无边框风格)
207
+						even: true, //开启隔行背景
208
+						size: 'lg', //sm,lg尺寸的表格
209
+						where: {
210
+//							years: date,
211
+							dpt: $('#bumen').val(),
212
+							token: token
213
+						}, //如果无需传递额外参数,可不加该参数
214
+						//request: {}, //如果无需自定义请求参数,可不加该参数
215
+						response: {
216
+							statusName: 'state', //数据状态的字段名称,默认:code
217
+							statusCode: 'success', //成功的状态码,默认:0
218
+							msgName: 'message', //状态信息的字段名称,默认:msg
219
+							//countName: 'total', //数据总数的字段名称,默认:count
220
+							//dataName: 'rows', //数据列表的字段名称,默认:data
221
+						}, //如果无需自定义数据响应名称,可不加该参数
222
+						cols: [
223
+							[{
224
+								field: 'TypeName',
225
+								title: '投诉类型',
226
+								fixed: true,
227
+								align: 'center',
228
+								width: 200,
229
+							}, {
230
+								field: 'Count',
231
+								title: '数量',
232
+								align: 'center',
233
+								sort: true,
234
+								//width: '30%',
235
+							}]
236
+						],
237
+						height: 'full-230',
238
+						done:function(){
239
+							layer.close(loadindex);
240
+						}
241
+					});
242
+				});
243
+			}
214 244
 			function partOne() {
215 245
 				var index = layer.load(1, {
216 246
 					shade: [0.5, '#030303'] //0.1透明度的白色背景

+ 11 - 2
CallCenterWeb.UI/WorkOrder/AddWorkOrder.html

@@ -181,7 +181,7 @@
181 181
 		</div>
182 182
 		<div class="clearfix wrapper wrapper-content animated fadeInRight">
183 183
 			<div class="common">
184
-				<!--客服部-->
184
+				<!--思念组-->
185 185
 				<table class="customerService">
186 186
 					<tbody>
187 187
 						<tr>
@@ -291,7 +291,7 @@
291 291
 							<th>专员电话:</th>
292 292
 							<td style="position: relative;">
293 293
 								<div class="form-group">
294
-									<input type="text" class="form-control" id="vipTel" disabled=""/>
294
+									<input type="text" class="form-control" id="vipTel"/>
295 295
 								</div>
296 296
 							</td>
297 297
 							
@@ -424,6 +424,15 @@
424 424
 							</td>
425 425
 						</tr>
426 426
 						<tr>
427
+							<th>样品寄回:</th>
428
+							<td style="position: relative;">
429
+								<select name="" class="form-control" id="sendBack">
430
+									<option value="0">否</option>
431
+									<option value="1">是</option>
432
+								</select>
433
+							</td>
434
+						</tr>
435
+						<tr>
427 436
 							<th>投诉事件描述:</th>
428 437
 							<td colspan="5">
429 438
 								<textarea name="" rows="5" cols="" placeholder="" id="content"></textarea>

+ 19 - 30
CallCenterWeb.UI/WorkOrder/WorkOrderDispose.html

@@ -245,6 +245,12 @@
245 245
 									</td>
246 246
 								</tr>
247 247
 								<tr>
248
+									<th>样品寄回:</th>
249
+									<td>
250
+										<span id="F_IsBack"></span>
251
+									</td>
252
+								</tr>
253
+								<tr>
248 254
 									<th>事件描述:</th>
249 255
 									<td colspan="5" id="conTent">
250 256
 										
@@ -267,31 +273,6 @@
267 273
 						</thead>
268 274
 					</table>
269 275
 				</div>
270
-				<!--<div class="gdxq" style="display:none;">
271
-                    <table id="cblist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
272
-                        <thead>
273
-                            <tr>
274
-                                <th data-field="CreateUserName">催办人</th>
275
-                                <th data-field="ToDeptName">被催办部门</th>
276
-                                <th data-field="ToUserName">被催办人</th>
277
-                                <th data-field="Detail">催办详情</th>
278
-                                <th data-field="CreateTime">创建时间</th>
279
-                            </tr>
280
-                        </thead>
281
-                    </table>
282
-                </div>
283
-
284
-                <div class="gdxq" style="display:none;">
285
-                    <table id="pllist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
286
-                        <thead>
287
-                            <tr>
288
-                                <th data-field="CreateUserName">评论人</th>
289
-                                <th data-field="Detail">评论详情</th>
290
-                                <th data-field="CreateTime">创建时间</th>
291
-                            </tr>
292
-                        </thead>
293
-                    </table>
294
-                </div>-->
295 276
 			</div>
296 277
 		</div>
297 278
 
@@ -340,7 +321,7 @@
340 321
 								</td>
341 322
 							</tr>
342 323
 							<tr>
343
-								<th>处理方式:</th>
324
+								<th>处理状态:</th>
344 325
 								<td colspan="3">
345 326
 									<div>
346 327
 										<label style="font-weight: normal;">
@@ -366,6 +347,14 @@
366 347
 								</td>
367 348
 							</tr>
368 349
 							<tr>
350
+								<th>处理结果:</th>
351
+								<td colspan="5">
352
+									<div>
353
+										<textarea id="dealCont" name="" rows="3" style="width:100%;"></textarea>
354
+									</div>
355
+								</td>
356
+							</tr>
357
+							<tr>
369 358
 								<th>客诉进展详述:</th>
370 359
 								<td colspan="5">
371 360
 									<div>
@@ -434,9 +423,9 @@
434 423
 					$.post(huayi.config.callcenter_url + 'WorkOrder/DealWorkOrder', {
435 424
 						workid: zpid,
436 425
 						dealcost: dealCost*1,	//处理费用
437
-						dealresult:	val,//处理结果
438
-						dealdes: $("#cont").val(),	//客诉进展详述		 				
439
-//						dealstate:	//处理状态
426
+						dealresult:$("#dealCont").val(),//处理结果
427
+						dealdes: $("#cont").val(),	//客诉进展详述	
428
+						dealstate:val,	//处理状态
440 429
 						dealtimely:valRes,		//及时响应
441 430
 						"token": $.cookie("token")
442 431
 					}, function(result) {
@@ -584,7 +573,7 @@
584 573
 				},
585 574
 				success: function(data) {
586 575
 					if(data.state.toLowerCase() == 'success') {
587
-						if(data.data.groname == '客服组') {
576
+						if(data.data.groname == '思念组') {
588 577
 							$('#ce').show();
589 578
 							ns = 1;
590 579
 							$('.BZ').removeClass("Hidens");

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

@@ -619,7 +619,7 @@
619 619
 				},
620 620
 				success: function(data) {
621 621
 					if(data.state.toLowerCase() == 'success') {
622
-						if(data.data.groname == '客服组') {
622
+						if(data.data.groname == '思念组') {
623 623
 							$('#ce').show();
624 624
 							ns = 1;
625 625
 							$('.BZ').removeClass("Hidens");

+ 9 - 0
CallCenterWeb.UI/WorkOrder/Xga.html

@@ -409,6 +409,15 @@
409 409
 							</td>
410 410
 						</tr>
411 411
 						<tr>
412
+							<th>样品寄回:</th>
413
+							<td style="position: relative;">
414
+								<select name="" class="form-control" id="sendBack">
415
+									<option value="0">否</option>
416
+									<option value="1">是</option>
417
+								</select>
418
+							</td>
419
+						</tr>
420
+						<tr>
412 421
 							<th>投诉事件描述:</th>
413 422
 							<td colspan="5">
414 423
 								<textarea name="" rows="5" cols="" placeholder="" id="content"></textarea>

+ 4 - 5
CallCenterWeb.UI/js/WorkOrder/AddWorkOrder.js

@@ -14,7 +14,7 @@ $.ajax({
14 14
 	},
15 15
 	success: function(data) {
16 16
 		if(data.state.toLowerCase() == 'success') {
17
-			if(data.data.groname == '客服组') {
17
+			if(data.data.groname == '思念组') {
18 18
 				//console.log(data.data.groname)
19 19
 				$('.customerService').show();
20 20
 				$('.market').remove();
@@ -24,6 +24,7 @@ $.ajax({
24 24
 				$('.customerService').remove();
25 25
 				ns = 2;
26 26
 			}
27
+			
27 28
 		}
28 29
 	}
29 30
 });
@@ -299,7 +300,7 @@ var orderType
299 300
 var staffId
300 301
 var stafftel
301 302
 
302
-//客服部保存
303
+//思念组保存
303 304
 function saveCustomer() {
304 305
 	if($('#name').val() == '') {
305 306
 		layer.confirm('请输入姓名!', {
@@ -384,13 +385,11 @@ function saveCustomer() {
384 385
 }
385 386
 // 市场部保存
386 387
 function saveMarket() {
387
-	
388 388
 	if (ns==1) {
389 389
 		orderType=$('.orderType1').val();
390 390
 		staffId=$('#vipName').val();
391 391
 		stafftel=$('#vipTel').val();
392 392
 	} else if(ns==2){
393
-		
394 393
 		orderType=$('.orderType2').val();
395 394
 		staffId=$('#customerName').val();
396 395
 		stafftel=$('#customerTel').val();
@@ -422,7 +421,7 @@ function saveMarket() {
422 421
 			province: $('.inps3').val(), //省
423 422
 			city: $('.inps4').val(), //市
424 423
 			content:$('#content').val(), //事件描述     
425
-			
424
+			isback:$("#sendBack").val(),
426 425
 			callid: $("#CallID").val()
427 426
 		},
428 427
 		success: function(data) {

+ 7 - 0
CallCenterWeb.UI/js/WorkOrder/WorkOrder.js

@@ -291,6 +291,7 @@ if(val) {
291 291
 }
292 292
 
293 293
 function xq() {
294
+	
294 295
 	$.getJSON(huayi.config.callcenter_url + 'WorkOrder/GetWorkOrder', {
295 296
 		"workid": selid,
296 297
 		"token": $.cookie("token")
@@ -298,6 +299,11 @@ function xq() {
298 299
 		if(result.state.toLowerCase() == "success") {
299 300
 			if(result.data.data.length > 0) {
300 301
 				var data = result.data.data[0];
302
+				if (data.F_IsBack==0) {
303
+					$("#F_IsBack").text("否"); //是否寄回
304
+				}else{
305
+					$("#F_IsBack").text("是"); //是否寄回
306
+				}
301 307
 				$("#xq_gdbh").text(data.F_WorkOrderId); //工单编号
302 308
 				$("#xq_gdlx").text(data.TypeName); //工单类型
303 309
 				$("#xq_cjsj").text(data.F_CreateTime); //创建时间
@@ -316,6 +322,7 @@ function xq() {
316 322
 				$("#F_VipPhone").text(data.F_VIPPhone); //专员电话
317 323
 				$("#conTent").text(data.F_Content); //专员电话
318 324
 				
325
+				
319 326
 				$(".gdxq").eq(0).find(".allbc").remove();
320 327
 				if(result.data.gcdata.length > 0) {
321 328
 					var html = '<div class="allbc">补充记录' +

+ 2 - 1
CallCenterWeb.UI/js/WorkOrder/xgWork.js

@@ -36,7 +36,7 @@ $.ajax({
36 36
 	},
37 37
 	success: function(data) {
38 38
 		if(data.state.toLowerCase() == 'success') {
39
-			if(data.data.groname == '客服组') {
39
+			if(data.data.groname == '思念组') {
40 40
 				$('.customerService').show();
41 41
 				$('.market').remove();
42 42
 				ns = 1;
@@ -406,6 +406,7 @@ function saveMarket() {
406 406
 			province: $('.inps3').val(), //省
407 407
 			city: $('.inps4').val(), //市
408 408
 			content:$('#content').val(), //事件描述     
409
+			isback:$("#sendBack").val(),
409 410
 			callid: $("#CallID").val()
410 411
 		},
411 412
 		success: function(data) {

+ 0 - 2
CallCenterWeb.UI/keHuManager/ContactPersonManger.html

@@ -73,9 +73,7 @@
73 73
 				</table>
74 74
 			</div>
75 75
 		</div>
76
-		
77 76
 		<script src="../css/laydate/laydate.js"></script>
78
-		<script src="province.js"></script>
79 77
 		<script src="../js/bootstrap-select/js/bootstrap-select.js"></script>
80 78
 		<script src="../js/comboSelect/jquery.combo.select.js"></script>
81 79
 		<script src="./js/keHuManger.js"></script>

+ 73 - 0
CallCenterWeb.UI/keHuManager/addCommissFile.html

@@ -0,0 +1,73 @@
1
+<!DOCTYPE html>
2
+<html>
3
+
4
+	<head>
5
+		<meta charset="UTF-8">
6
+		<script src="../Script/Common/huayi.load.js"></script>
7
+		<script src="../Script/Common/huayi.config.js"></script>
8
+		<link href="../js/bootstrap-select/css/bootstrap-select.css" rel="stylesheet" />
9
+		<link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
10
+		<link rel="stylesheet" href="../css/init.css" />
11
+		<link rel="stylesheet" href="css/kehuManger.css" />
12
+		<title></title>
13
+	</head>
14
+	<body>
15
+		<div class="container-fluid">
16
+			<div class="boxCon">
17
+				<table>
18
+					<tbody>
19
+						
20
+						<!--<tr>
21
+							<th>客户类型: </th>
22
+							<td>
23
+								<div class="form-group addJsz_select_cus">
24
+									<select class="form-control" id="customerType" data-live-search="true">
25
+										<option value="1">客户</option>
26
+										<option value="2">专员</option>
27
+									</select>
28
+									<span class="addJsz_kong addJsz_posi">*</span>
29
+								</div>
30
+							</td>
31
+						</tr>-->
32
+						<tr>
33
+							<th>客户名称: </th>
34
+							<td>
35
+								<input type="text" class="Customer"  style="padding-left: 10px;"/>
36
+								<span class="addJsz_kong" style="color: red;">*</span>
37
+							</td>
38
+						</tr>
39
+						<tr>
40
+							<th>电话: </th>
41
+							<td>
42
+								<input type="text" class="mobile"  style="padding-left: 10px;" />
43
+							</td>
44
+						</tr>
45
+						<tr>
46
+							<th>区域:</th>
47
+							<td>
48
+								<div class="form-inline addJsz_select_cus">
49
+									<div class="form-group">
50
+										<input type="text" class="inps inps1"  style="width: 180px;"/>
51
+										<input type="text" class="inps2">
52
+										<input type="text" class="inps3">
53
+										<input type="text" class="inps4">
54
+										<i class="xl xl_one"></i>
55
+										<div class="addTree xlAdd">
56
+											<ul id="addTreeDemo" class="ztree">
57
+											</ul>
58
+										</div>
59
+									</div>
60
+								</div>
61
+							</td>
62
+						</tr>
63
+					</tbody>
64
+				</table>
65
+				<div style="text-align: center;"><button class="btns addCun">保存</button></div>
66
+			</div>
67
+		</div>
68
+		
69
+		<script src="../js/bootstrap-select/js/bootstrap-select.js"></script>
70
+		<script src="../js/zTree/jquery.ztree.core.js"></script>
71
+		<script src="js/addCommissioner.js"></script>
72
+	</body>
73
+</html>

+ 2 - 3
CallCenterWeb.UI/keHuManager/addCustomerFile.html

@@ -16,8 +16,7 @@
16 16
 			<div class="boxCon">
17 17
 				<table>
18 18
 					<tbody>
19
-						
20
-						<tr>
19
+						<!--<tr>
21 20
 							<th>客户类型: </th>
22 21
 							<td>
23 22
 								<div class="form-group addJsz_select_cus">
@@ -28,7 +27,7 @@
28 27
 									<span class="addJsz_kong addJsz_posi">*</span>
29 28
 								</div>
30 29
 							</td>
31
-						</tr>
30
+						</tr>-->
32 31
 						<tr>
33 32
 							<th>客户名称: </th>
34 33
 							<td>

+ 83 - 0
CallCenterWeb.UI/keHuManager/commissioner.html

@@ -0,0 +1,83 @@
1
+<!DOCTYPE html>
2
+<html>
3
+
4
+	<head>
5
+		<meta charset="UTF-8">
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" />
9
+		<link href="../js/bootstrap-select/css/bootstrap-select.css" rel="stylesheet" />
10
+		<link rel="stylesheet" href="../css/init.css" />
11
+		<link rel="stylesheet" href="../js/comboSelect/combo.select.css" />
12
+		<link rel="stylesheet" href="css/kehuManger.css" />
13
+		<title>客户管理</title>
14
+	</head>
15
+	<body class="gray-bg">
16
+		<div class="daoHang clearfix">
17
+			<div class="dhLeft">
18
+				<sapn><i class="syIcon"></i>位置:
19
+					<a href="javaScript:;" id="ReIndex">首页</a>&gt;
20
+					<a href="javaScript:;">客户管理</a>&gt;
21
+					<a href="" class="nowPosition">客户档案管理</a>
22
+				</sapn>
23
+			</div>
24
+			<div class="dhRight">
25
+				<a href="#" title="刷新"><i class="fa fa-refresh"></i></a>
26
+			</div>
27
+		</div>
28
+		<div class="wrapper wrapper-content animated fadeInRight">
29
+
30
+			<div class="toolBox">
31
+				<div class="th-bar clearfix">
32
+					<div class="pull-left">
33
+						<div class="form-inline">
34
+							<div class="form-group">
35
+								<input type="text" class="form-control contact_name" placeholder="请输入联系人" />
36
+							</div>
37
+							<div class="form-group">
38
+								<input type="text" class="form-control phone" placeholder="请输入电话" />
39
+							</div>
40
+							<div class="form-group">
41
+								<button class="btns search">搜索</button>
42
+							</div>
43
+						</div>
44
+
45
+						<span style="display:none">登录时间:<input type="text" class="laydate-icon loginTime" id="startTime"/></span>
46
+					</div>
47
+					<div class="pull-right">
48
+						
49
+						<button class="btns add ">添加</button>
50
+						<button class="btns change">修改</button>
51
+						<button class="btns del">删除</button>&nbsp;
52
+						<input id="btndr" type="button" class="btns" value="导入" />
53
+						<input type="file" name="upFile" id="upFile" accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel" style="display: none;">
54
+						<a id="excelMod" class="btns" title="点击下载模板" href="javascript:void(0)" onclick="ExcelMod()" style="text-decoration:underline">文件模板</a>
55
+					</div>
56
+				</div>
57
+
58
+			</div>
59
+			<div class="tableBox">
60
+				<table id="table1" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
61
+					<thead>
62
+						<tr>
63
+							<th data-field="state" data-checkbox="true" data-align="center"></th>
64
+							<th data-align="center" data-formatter="setCode">编号</th>
65
+							<!--<th data-field="F_Area" data-align="center" data-formatter="customType">客户类型</th>-->
66
+							<th data-field="F_Area" data-align="center">大区</th>
67
+							<th data-field="F_Province" data-align="center">省份</th>
68
+							<th data-field="F_City" data-align="center">城市</th>
69
+							<th data-field="F_Name" data-align="center">姓名</th>
70
+							<th data-field="F_Phone" data-align="center">电话</th>
71
+						</tr>
72
+					</thead>
73
+				</table>
74
+			</div>
75
+		</div>
76
+		
77
+		<script src="../css/laydate/laydate.js"></script>
78
+		<script src="../js/bootstrap-select/js/bootstrap-select.js"></script>
79
+		<script src="../js/comboSelect/jquery.combo.select.js"></script>
80
+		<script src="js/commissioner.js"></script>
81
+	</body>
82
+
83
+</html>

+ 135 - 0
CallCenterWeb.UI/keHuManager/js/addCommissioner.js

@@ -0,0 +1,135 @@
1
+var token = $.cookie("token");
2
+var id = helper.request.queryString("ids");
3
+$(document).ready(function() {
4
+	var regBox = {
5
+		//regMobile: /^1(3|4|5|7|8)\d{9}$/    //手机
6
+		regMobOrTel: /^(\(\d{3,4}\)|\d{3,4}-|\s)?\d{7,14}$/
7
+	}
8
+	//保存按钮
9
+	$('.addCun').click(function() {
10
+		var tel = $(".mobile").val();
11
+		var reg = /^((13[0-9])|(14[5|7])|(15([0-3]|[5-9]))|(18[0,5-9]))\d{8}$|^0\d{2,3}-?\d{7,8}$/;
12
+		if($('#customer_name').val() == '') {
13
+			layer.confirm('请选择客户名称!', {
14
+				btn: ['确定']
15
+			});
16
+			return;
17
+		}
18
+		if($('#province').val() == '') {
19
+			layer.confirm('请选择省份!', {
20
+				btn: ['确定']
21
+			});
22
+			return;
23
+		}
24
+		if(!reg.test($.trim($(".mobile").val()))) {
25
+			layer.confirm('请输入正确的联系电话', {
26
+				btn: ['确定']
27
+			});
28
+			return;
29
+		}
30
+		
31
+		$.post(huayi.config.callcenter_url + 'Customer/AddCustomer', {
32
+			id:id,
33
+			type:2,
34
+			area: $('.inps2').val(),
35
+			province: $('.inps3').val(),
36
+			city: $('.inps4').val(),
37
+			tel: $('.mobile').val(),
38
+			name: $('.Customer').val(),
39
+			"token": $.cookie("token")
40
+		}, function(result) {
41
+			result = $.parseJSON(result);
42
+			if(result.state.toLowerCase() == "success") {
43
+				debugger
44
+				$("#activess").val(result.data);
45
+				var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
46
+				parent.layer.close(index); //再执行关闭
47
+				parent.layer.msg("添加成功!");
48
+				parent.table.bootstrapTable('refresh');
49
+			}
50
+		})
51
+
52
+	})
53
+	if(id) {
54
+		$.get(huayi.config.callcenter_url + 'Customer/GetCustomer', {
55
+			id: id,
56
+			"token": $.cookie("token")
57
+		}, function(result) {
58
+			result = $.parseJSON(result);
59
+			if(result.state.toLowerCase() == "success") {
60
+				var con = result.data;
61
+				if (con.F_Type==1) {
62
+					$("#customerType option:selected").text("客户");
63
+				} else{
64
+					$("#customerType option:selected").text("专员");
65
+				}
66
+				$("#testInput4").val(con.F_CustomerIndustry);
67
+				$(".inps1").val(con.F_Area+"/"+con.F_Province+"/"+con.F_City);
68
+				$(".inps2").val(con.F_Area);
69
+				$(".inps3").val(con.F_Province);
70
+				$(".inps4").val(con.F_City);
71
+				$(".mobile").val(con.F_Phone);
72
+				$(".Customer").val(con.F_Name);
73
+			}
74
+		})
75
+
76
+	}
77
+
78
+})
79
+//区域
80
+//添加内容下拉
81
+$('.inps1').focus(function() {
82
+	$('.xlAdd').css('display', 'block')
83
+})
84
+$('.xl_one').click(function() {
85
+	if($('.xlAdd').css('display') == 'block') {
86
+		$('.xlAdd').css('display', 'none')
87
+	} else {
88
+		$('.xlAdd').css('display', 'block')
89
+	}
90
+})
91
+$('.addTree').mouseleave(function() {
92
+	$(this).css('display', 'none')
93
+})
94
+var setting1 = {
95
+	data: {
96
+		key: {
97
+			name: "F_AreaName"
98
+		},
99
+		simpleData: {
100
+			enable: true,
101
+			idKey: "F_Id",
102
+			pIdKey: "F_ParentId",
103
+			rootPId: 0
104
+		}
105
+	},
106
+	callback: {
107
+		onClick: addTreeClick
108
+	}
109
+};
110
+function addTreeClick(event, treeId, treeNode) {
111
+		addPid=treeNode.F_Id;
112
+		xlName = treeNode.F_AreaName;
113
+		areaParent=treeNode.getPath();
114
+		if (areaParent[2]) {
115
+			areaParent1=areaParent[0].F_AreaName
116
+			areaParent2=areaParent[1].F_AreaName
117
+			areaParent3=areaParent[2].F_AreaName
118
+			$('.inps1').val(areaParent1+"/"+areaParent2+"/"+areaParent3);
119
+			$('.inps2').val(areaParent1);
120
+			$('.inps3').val(areaParent2);
121
+			$('.inps4').val(areaParent3);
122
+		}else{
123
+			layer.msg("请选择最下级菜单");
124
+		}
125
+		
126
+};
127
+treeCont();
128
+function treeCont() {
129
+	$.get(huayi.config.callcenter_url + 'Area/GetAreaList', {
130
+		"token": $.cookie("token"),
131
+	}, function(result) {
132
+		result = $.parseJSON(result);
133
+		$.fn.zTree.init($("#addTreeDemo"), setting1, result.data); //实例化树形图
134
+	});
135
+}

+ 1 - 1
CallCenterWeb.UI/keHuManager/js/addCustomer.js

@@ -30,7 +30,7 @@ $(document).ready(function() {
30 30
 		
31 31
 		$.post(huayi.config.callcenter_url + 'Customer/AddCustomer', {
32 32
 			id:id,
33
-			type:$("#customerType").val(),
33
+			type:1,
34 34
 			area: $('.inps2').val(),
35 35
 			province: $('.inps3').val(),
36 36
 			city: $('.inps4').val(),

+ 218 - 0
CallCenterWeb.UI/keHuManager/js/commissioner.js

@@ -0,0 +1,218 @@
1
+var table = $('#table1');
2
+var token = $.cookie("token");
3
+laydate.skin('molv');
4
+laydate({
5
+    elem: '#startTime',
6
+    event: 'focus',
7
+    format: 'YYYY-MM-DD', // 分隔符可以任意定义,该例子表示只显示年月
8
+});
9
+
10
+
11
+$('.search').click(function () {
12
+    initTable(token);
13
+})
14
+//添加
15
+$('.add').click(function () {
16
+    layer.open({
17
+        type: 2,
18
+        title: '添加客户信息',
19
+        maxmin: true, //开启最大化最小化按钮
20
+        area: ['50%', '50%'],
21
+        content: 'addCommissFile.html'
22
+        //content: 'addZhiShiKuManger.html?addId=' + id + '&addPid='+ pid +'&addName='+ name +''
23
+    });
24
+})
25
+
26
+//修改
27
+var did;
28
+$('.change').click(function () {
29
+    var ids = $.map(table.bootstrapTable('getSelections'), function (row) {
30
+        return row.F_Id;
31
+    });
32
+    did = ids.toString();
33
+    if (ids.length != 1) {
34
+        layer.confirm('请选择一行进行修改!', {
35
+            btn: ['确定']
36
+        });
37
+        return;
38
+    } else {
39
+        layer.open({
40
+            type: 2,
41
+            title: '修改客户信息',
42
+            maxmin: true, //开启最大化最小化按钮
43
+            area: ['50%', '50%'],
44
+            //              content: 'addCustomerFile.html'
45
+            content: 'addCustomerFile.html?ids=' + did
46
+        });
47
+
48
+
49
+    }
50
+})
51
+
52
+//删除
53
+var delid;
54
+$('.del').click(function () {
55
+    var ids = $.map(table.bootstrapTable('getSelections'), function (row) {
56
+        return row.F_Id;
57
+    });
58
+    delid = ids;
59
+    if (ids.length <= 0) {
60
+        layer.confirm('请选择要删除的行!', {
61
+            btn: ['确定']
62
+        });
63
+        return;
64
+    } else {
65
+        var laye = layer.confirm('您确定要删除吗?', {
66
+            btn: ['确定', '取消'] //可以无限个按钮
67
+        }, function () {
68
+            //按钮【按钮一】的回调
69
+            $.ajax({
70
+                type: "post",
71
+                url: huayi.config.callcenter_url + "Customer/DelCustomer",
72
+                async: true,
73
+                dataType: "json",
74
+                data: {
75
+                    token: token,
76
+                    ids: delid
77
+                },
78
+                success: function (data) {
79
+                    if (data.state.toLowerCase() == 'success') {
80
+                        layer.msg("删除成功!");
81
+                        table.bootstrapTable('refresh');
82
+                    }
83
+                }
84
+            });
85
+        }, function (index) {
86
+            //按钮【按钮二】的回调
87
+            layer.close(laye)
88
+        });
89
+
90
+    }
91
+
92
+})
93
+//列表
94
+initTable(token);
95
+function initTable(token) {
96
+    //先销毁表格
97
+    table.bootstrapTable('destroy');
98
+    //初始化表格,动态从服务器加载数据
99
+    table.bootstrapTable({
100
+        method: "get", //使用get请求到服务器获取数据
101
+        url: huayi.config.callcenter_url + "Customer/GetList", //获取数据的Servlet地址
102
+        contentType: 'application/x-www-form-urlencoded',
103
+        //			url: "kehu.json", //获取数据的Servlet地址
104
+        striped: true, //表格显示条纹
105
+        pagination: true, //启动分页
106
+        pageSize: 10, //每页显示的记录数
107
+        pageNumber: 1, //当前第几页
108
+        pageList: [10, 15, 20, 50, 100], //记录数可选列表
109
+        search: false, //是否启用查询
110
+        showColumns: false, //显示下拉框勾选要显示的列
111
+        showRefresh: false, //显示刷新按钮
112
+        sidePagination: "server", //表示服务端请求
113
+        //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
114
+        //设置为limit可以获取limit, offset, search, sort, order
115
+        queryParamsType: "undefined",
116
+        queryParams: function queryParams(params) { //设置查询参数
117
+            var param = {
118
+                page: params.pageNumber,
119
+                pagesize: params.pageSize,
120
+                type:2,
121
+                token: token,
122
+                name: $('.contact_name').val(), //联系人
123
+                tel: $('.phone').val(), //电话
124
+                //logindate: $('.loginTime').val() //登录时间
125
+            };
126
+            return param;
127
+        },
128
+        onLoadSuccess: function () { //加载成功时执行
129
+            //layer.msg("加载成功");
130
+        },
131
+        onLoadError: function () { //加载失败时执行
132
+            //layer.msg("加载数据失败", { time: 1500, icon: 2 });
133
+        }
134
+    });
135
+}
136
+
137
+function setCode(val, row, index) {
138
+    //		return index + 1;
139
+    var page = table.bootstrapTable("getPageCode");
140
+    return page.pageSize * (page.pageNumber - 1) + index + 1;
141
+}
142
+//客户类型
143
+function customType(val,row) {
144
+	if(val == 1) {
145
+		return '<span>客户</span>';
146
+	} else {
147
+		return '<span>专员</span>';
148
+	}
149
+}
150
+var regBox = {
151
+    //regEmail: /^([A-Za-z0-9_\.-]+)@([\dA-Za-z_\.-]+)\.([A-Za-z_\.-]{2,6})$/,  //邮箱
152
+    //regEmail: /@/,    //邮箱
153
+    //regName: /^[a-z0-9_-]{3,16}$/,    //用户名
154
+    //regMobile: /^1(3|4|5|7|8)\d{9}$/    //手机
155
+    //regTel: /^0[\d]{2,3}-[\d]{7,8}$/,
156
+    //regData: /^[0-9]*$/ //数字
157
+    regMobOrTel: /^(\(\d{3,4}\)|\d{3,4}-|\s)?\d{7,14}$/
158
+}
159
+//判断
160
+function Isnullorempty(selstr) {
161
+    if (selstr == null || selstr == "" || selstr == undefined || selstr == "null" || selstr == "undefined" || parseFloat(selstr) <= 0) {
162
+        return true;
163
+    } else {
164
+        return false;
165
+    }
166
+}
167
+
168
+//上传文件
169
+
170
+$("#btndr").click(function () {
171
+    $("#upFile").trigger("click");
172
+})
173
+$("#upFile").change(function () {
174
+    upload();
175
+})
176
+
177
+function ExcelMod() {
178
+	window.location.href = huayi.config.callcenter_url + 'Customer/DownTemplate?token='+token;
179
+	
180
+}
181
+
182
+
183
+
184
+//上传文件
185
+function upload() {
186
+    if (document.getElementById("upFile").files.length > 0) {
187
+        var formData = new FormData();
188
+        formData.append("upFile", document.getElementById("upFile").files[0]);
189
+        formData.append("token", $.cookie("token"));
190
+        $.ajax({
191
+            url: huayi.config.callcenter_url + "Customer/ExportExcel",
192
+            type: "POST",
193
+            data: formData,
194
+            contentType: false,
195
+            processData: false,
196
+            success: function (result) {
197
+                document.getElementById("upFile").outerHTML = document.getElementById("upFile").outerHTML;
198
+                $("#upFile").change(function () {
199
+                    upload();
200
+                });
201
+                var r = $.parseJSON(result);
202
+                if (r.state.toLowerCase() == "success") {
203
+                	layer.msg("导入成功");
204
+                	initTable(token);
205
+                   
206
+                }
207
+            }
208
+        });
209
+    } else {
210
+        layer.confirm('请上传文件!', {
211
+            btn: ['确定']
212
+        });
213
+    }
214
+}
215
+
216
+
217
+
218
+

+ 2 - 11
CallCenterWeb.UI/keHuManager/js/keHuManger.js

@@ -6,17 +6,7 @@ laydate({
6 6
     event: 'focus',
7 7
     format: 'YYYY-MM-DD', // 分隔符可以任意定义,该例子表示只显示年月
8 8
 });
9
-//省份
10
-getProvince()
11
-function getProvince() {
12
-    var Count = geo.provinces;
13
-    var arr=[]
14
-    $(Count).each(function (i, n) {
15
-        $("<option value='" + n.provinceName + "'>" + n.provinceName + "</option>").appendTo($("#province"));
16
-        arr.push(n.provinceName);
17
-    })
18
-    $('#province').selectpicker('refresh');
19
-}
9
+
20 10
 
21 11
 
22 12
 $('.search').click(function () {
@@ -128,6 +118,7 @@ function initTable(token) {
128 118
             var param = {
129 119
                 page: params.pageNumber,
130 120
                 pagesize: params.pageSize,
121
+                type:1,
131 122
                 token: token,
132 123
                 name: $('.contact_name').val(), //联系人
133 124
                 tel: $('.phone').val(), //电话

File diff suppressed because it is too large
+ 0 - 2178
CallCenterWeb.UI/keHuManager/province.js


File diff suppressed because it is too large
+ 0 - 2178
CallCenterWeb.UI/keHuManager/province.json


+ 0 - 1
CallCenterWeb.UI/login.html

@@ -94,7 +94,6 @@
94 94
                         <input class="form-control" type="password" placeholder="请输入您的密码" id="password" autocomplete="off">
95 95
                         <i class="ts password_ts"></i>
96 96
                     </div>
97
-
98 97
                     <div class="clearfix singin_rpassword">
99 98
                         <div class="rpassword">
100 99
                             <label for="rpassword">