miaofuhao 7 年 前
コミット
bab5bbafe5

+ 2 - 3
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>
@@ -31,7 +31,7 @@
31 31
 					<a href="javaScript:;" id="ReIndex">首页</a>&gt;
32 32
 					<a href="javaScript:;">报表分析</a>&gt;
33 33
 					<a href="javaScript:;">业务数据分析</a>&gt;
34
-					<a href="" style="color: #000;">投诉原因</a>
34
+					<a href="" style="color: #000;">工单类型</a>
35 35
 				</sapn>
36 36
 			</div>
37 37
 			<div class="dhRight">
@@ -120,7 +120,6 @@
120 120
 				$('.hu-tab li').click(function() {
121 121
 					$(this).addClass('active')
122 122
 						.siblings().removeClass('active');
123
-			
124 123
 					tabIndex = $(this).index();
125 124
 					$('.hu-content >div').eq(tabIndex).show()
126 125
 						.siblings().hide();

+ 295 - 0
CallCenterWeb.UI/ReportForm/workOrderComplainType.html

@@ -0,0 +1,295 @@
1
+<!DOCTYPE html>
2
+<html>
3
+
4
+	<head>
5
+		<meta charset="UTF-8">
6
+		<title>投诉类型</title>
7
+		<meta name="viewport" content="width=device-width, initial-scale=1.0">
8
+		<script src="../Script/Common/huayi.load.js"></script>
9
+		<script src="../Script/Common/huayi.config.js"></script>
10
+		<link rel="stylesheet" href="../js/layui/css/layui.css" />
11
+		<link rel="stylesheet" href="../js/select2/css/select2.min.css" />
12
+		<link rel="stylesheet" href="../css/init.css" />
13
+		<style>
14
+			.toolBox {
15
+				background: #f3f3f4;
16
+				height: 60px;
17
+				padding: 10px 20px;
18
+			}
19
+			
20
+			.th-content {
21
+				width: 90%;
22
+				margin: 0 auto;
23
+			}
24
+		</style>
25
+	</head>
26
+
27
+	<body class="gray-bg" style="background: #fefefe;">
28
+		<div class="daoHang clearfix">
29
+			<div class="dhLeft">
30
+				<sapn><i class="syIcon"></i>位置:
31
+					<a href="javaScript:;" id="ReIndex">首页</a>&gt;
32
+					<a href="javaScript:;">报表分析</a>&gt;
33
+					<a href="javaScript:;">业务数据分析</a>&gt;
34
+					<a href="" style="color: #000;">投诉类型</a>
35
+				</sapn>
36
+			</div>
37
+			<div class="dhRight">
38
+				<a href="#" title="刷新"><i class="fa fa-refresh"></i></a>
39
+			</div>
40
+		</div>
41
+		
42
+		<div class="toolBox">
43
+			<div class="th-bar clearfix">
44
+				<div class="pull-right">
45
+					<div class="form-inline">
46
+						<div class="time-box form-group">
47
+							<i class="tub fa fa-calendar"></i>
48
+							<input class="form-control" type="text" id="startTime" placeholder="请选择起止时间" style="width: 228px;">
49
+						</div>
50
+						<!--<div class="time-box form-group">
51
+							部门:
52
+							<select id="bumen">
53
+								<option value="">请选择</option>
54
+							</select>
55
+						</div>-->
56
+						<div class="pull-right">
57
+							<button class="btns search">搜索</button>
58
+							<a href="" class="btns export">导出</a>
59
+						</div>
60
+					</div>
61
+				</div>
62
+			</div>
63
+		</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" style="width: 80%; margin: 0 auto;">
79
+				<h2 style="text-align: center; margin-top: 20px; display: none;">投诉原因统计</h2>
80
+				<table class="layui-hide" id="t_callTotal"></table> 
81
+			</div>
82
+		</div>
83
+		<script src="../js/layui/layui.js"></script>
84
+		<script src="../js/echarts.min.js"></script>
85
+		<script src="../js/highcharts.js"></script>
86
+		<script src="../js/select2/js/select2.min.js"></script>
87
+		<script>
88
+			var token = $.cookie("token");
89
+			var stime = ''; //开始时间
90
+			var endtime = ''; //结束时间
91
+
92
+			$(document).ready(function() {
93
+				layui.use('laydate', function() {
94
+					var laydate = layui.laydate;
95
+					//日期
96
+					laydate.render({
97
+						elem: '#startTime',
98
+						range: '~',
99
+						theme: '#1ab394',
100
+						calendar: 'true'
101
+					});
102
+				});
103
+				helper.getDropList.getDept($('#bumen')); //获取部门
104
+
105
+				/*搜索*/
106
+				$(".search").click(function() {
107
+					stime = $('#startTime').val() && $('#startTime').val().split(' ~ ')[0];
108
+					endtime = $('#startTime').val() && $('#startTime').val().split(' ~ ')[1];
109
+					partOne();
110
+					//getTableDataList(); //获取表格数据
111
+				})
112
+				//导出
113
+				$('.export').click(function() {
114
+					stime = $('#startTime').val() && $('#startTime').val().split(' ~ ')[0];
115
+					endtime = $('#startTime').val() && $('#startTime').val().split(' ~ ')[1];
116
+					dcexcel(this);
117
+				});
118
+				
119
+				//tab切换
120
+				$('.hu-tab li').click(function() {
121
+					$(this).addClass('active')
122
+						.siblings().removeClass('active');
123
+			
124
+					tabIndex = $(this).index();
125
+					$('.hu-content >div').eq(tabIndex).show()
126
+						.siblings().hide();
127
+					loadDatas();	
128
+				});
129
+				
130
+
131
+			});
132
+			function loadDatas() {
133
+				if(tabIndex == 0) {
134
+					//tu(); //加载图形
135
+				} else if(tabIndex == 1) {
136
+					getDataList(); //加载表格
137
+				}
138
+			}
139
+			function dcexcel(obj) {
140
+				var url = huayi.config.callcenter_url + "Business/GetSmallTypeReport?isdc=1&token=" + token;
141
+				url += "&stime=" + stime + "&endtime=" + endtime;
142
+				obj.href = url;
143
+			}
144
+
145
+			
146
+			partOne();
147
+			//投诉举报汇总 part1
148
+			var quantity = echarts.init(document.getElementById('quantity'));
149
+			quantity.setOption({
150
+				tooltip: {
151
+					trigger: 'item',
152
+					formatter: "{a} <br/>{b} : {c} ({d}%)",
153
+					axisPointer: {
154
+						crossStyle: {
155
+							color: '#000'
156
+						}
157
+					}
158
+				},
159
+				legend: {
160
+					bottom: 'bottom',
161
+					data: [],
162
+					textStyle: {
163
+						color: '#000'
164
+					}
165
+				},
166
+				series: [{
167
+					name: '数据',
168
+					type: 'pie',
169
+					radius: '55%',
170
+					center: ['50%', '50%'],
171
+					data: [],
172
+					itemStyle: {
173
+						emphasis: {
174
+							shadowBlur: 10,
175
+							shadowOffsetX: 0,
176
+							shadowColor: 'rgba(0, 0, 0, 0.5)'
177
+						},
178
+						normal: {
179
+							label: {
180
+								show: true,
181
+								formatter: '{b} : {c} ({d}%)'
182
+							},
183
+							labelLine: {
184
+								show: true
185
+							}
186
+						}
187
+					},
188
+					label: {
189
+						normal: {
190
+							textStyle: {
191
+								color: '#000'
192
+							}
193
+						}
194
+					}
195
+				}]
196
+			});
197
+			
198
+			function getDataList() {
199
+				var loadindex = layer.load();
200
+				layui.use('table', function() {
201
+					var table = layui.table;
202
+					//方法级渲染
203
+					table.render({
204
+						elem: '#t_callTotal',
205
+						url: huayi.config.callcenter_url + "Business/GetSmallTypeReport",
206
+						method: 'get', //如果无需自定义HTTP类型,可不加该参数
207
+						skin: 'row', //line (行边框风格) row (列边框风格) nob (无边框风格)
208
+						even: true, //开启隔行背景
209
+						size: 'lg', //sm,lg尺寸的表格
210
+						where: {
211
+//							years: date,
212
+							dpt: $('#bumen').val(),
213
+							token: token
214
+						}, //如果无需传递额外参数,可不加该参数
215
+						//request: {}, //如果无需自定义请求参数,可不加该参数
216
+						response: {
217
+							statusName: 'state', //数据状态的字段名称,默认:code
218
+							statusCode: 'success', //成功的状态码,默认:0
219
+							msgName: 'message', //状态信息的字段名称,默认:msg
220
+							//countName: 'total', //数据总数的字段名称,默认:count
221
+							//dataName: 'rows', //数据列表的字段名称,默认:data
222
+						}, //如果无需自定义数据响应名称,可不加该参数
223
+						cols: [
224
+							[{
225
+								field: 'TypeName',
226
+								title: '投诉类型',
227
+								fixed: true,
228
+								align: 'center',
229
+								width: 200,
230
+							}, {
231
+								field: 'Count',
232
+								title: '数量',
233
+								align: 'center',
234
+								sort: true,
235
+								//width: '30%',
236
+							}]
237
+						],
238
+						height: 'full-230',
239
+						done:function(){
240
+							layer.close(loadindex);
241
+						}
242
+					});
243
+				});
244
+			}
245
+			function partOne() {
246
+				var index = layer.load(1, {
247
+					shade: [0.5, '#030303'] //0.1透明度的白色背景
248
+				});
249
+				$.ajax({
250
+					type: "get",
251
+					url: huayi.config.callcenter_url + "Business/GetSmallTypeReport",
252
+					async: true,
253
+					dataType: 'json',
254
+					data: {
255
+						token: token,
256
+						sdate: stime,
257
+						edate: endtime
258
+					},
259
+					success: function(data) {
260
+						if(data.state.toLowerCase() == 'success') {
261
+							layer.close(index);
262
+							var con = data.data;
263
+							var part_1_legend = [];
264
+							var part_1_ser = [];
265
+							$(con).each(function(i, n) {
266
+								part_1_legend.push(n.TypeName)
267
+								var part_1_obj = {};
268
+								part_1_obj.value = n.Count;
269
+								part_1_obj.name = n.TypeName;
270
+								part_1_ser.push(part_1_obj)
271
+								
272
+							})
273
+							
274
+							
275
+							quantity.setOption({
276
+								legend: {
277
+									data: part_1_legend
278
+								},
279
+								series: [{
280
+									data: part_1_ser
281
+								}]
282
+							})
283
+
284
+						}
285
+					}
286
+				});
287
+			}
288
+			$('.part1Btn').click(function() {
289
+				partOne()
290
+			})
291
+		</script>
292
+
293
+	</body>
294
+
295
+</html>

+ 103 - 58
CallCenterWeb.UI/WorkOrder/AddWorkOrder.html

@@ -198,45 +198,40 @@
198 198
 								</div>
199 199
 							</td>
200 200
 							
201
-							<th>购买日期:</th>
202
-							<td style="position: relative;">
203
-								<div class="time-box form-group">
204
-									<i class="tub fa fa-calendar"></i>
205
-									<input class="form-control search_time buyDate" type="text" placeholder="请选择时间">
206
-								</div>
207
-							</td>
208 201
 						</tr>
209 202
 						<tr>
203
+							
210 204
 							<th>产品名称:</th>
211 205
 							<td>
212 206
 								<div class="form-group">
213 207
 									<input type="text" class="form-control" id="productname" />
214 208
 								</div>
215 209
 							</td>
216
-							<th>购买地址:</th>
217
-							<td>
218
-								<div class="form-group">
219
-									<input type="text" class="form-control" id="buyAddress"/>
220
-								</div>
221
-							</td>
222
-							
223 210
 							<th>产品类别:</th>
224 211
 							<td style="position: relative;">
225 212
 								<div class="form-group">
226
-									<input type="text" class="form-control" id="productType"/>
213
+									<select name="" class="form-control productType1" id="productType">
214
+									
215
+									</select>
227 216
 								</div>
228 217
 							</td>
229
-						</tr>
230
-						<tr>
231 218
 							<th>生产批号:</th>
232 219
 							<td>
233 220
 								<div class="form-group">
234 221
 									<input type="text" class="form-control" id="batchNumber" />
235 222
 								</div>
236 223
 							</td>
224
+						</tr>
225
+						<tr>
237 226
 							
238
-							
239
-							<th>使用日期:</th>
227
+							<th>购买日期:</th>
228
+							<td style="position: relative;">
229
+								<div class="time-box form-group">
230
+									<i class="tub fa fa-calendar"></i>
231
+									<input class="form-control search_time buyDate" type="text" placeholder="请选择时间">
232
+								</div>
233
+							</td>
234
+							<th>食用日期:</th>
240 235
 							<td style="position: relative;">
241 236
 								<div class="time-box form-group">
242 237
 									<i class="tub fa fa-calendar"></i>
@@ -245,6 +240,12 @@
245 240
 							</td>
246 241
 						</tr>
247 242
 						<tr>
243
+							<th>购买地址:</th>
244
+							<td>
245
+								<div class="form-group">
246
+									<input type="text" class="form-control" id="buyAddress"/>
247
+								</div>
248
+							</td>
248 249
 							<th>工单来源:</th>
249 250
 							<td>
250 251
 								<div class="form-group">
@@ -262,39 +263,62 @@
262 263
 								</div>
263 264
 								
264 265
 							</td>
265
-							<th>区域:</th>
266
+						</tr>	
267
+						<tr class="complainDiv">
268
+							<th>投诉类型:</th>
266 269
 							<td>
267
-								<div class="time-box">
268
-									<i class="tub fa fa-caret-down areaDown" style="color: #676b6d;"></i>
269
-									<input class="form-control" type="text" id="typeclass1" readonly="readonly">
270
-									<input type="text" class="inps2">
271
-										<input type="text" class="inps3">
272
-										<input type="text" class="inps4">
273
-									<input type="hidden" id="typeclassId1" />
274
-									<div class="addTree1 treeList1">
275
-										<ul id="TreeDemo1" class="ztree">
276
-
277
-										</ul>
278
-									</div>
270
+								<div class="form-group">
271
+									<select name="" class="form-control complaintType">
272
+									</select>
279 273
 								</div>
280 274
 							</td>
281 275
 						</tr>
282 276
 						<tr>
277
+							
278
+							<th>样品寄回:</th>
279
+							<td style="position: relative;">
280
+								<select name="" class="form-control" id="sendBack">
281
+									<option value="0">否</option>
282
+									<option value="1">是</option>
283
+								</select>
284
+							</td>
283 285
 							<th>客诉专员:</th>
284 286
 							<td>
285 287
 								<div class="form-group">
286 288
 									<select name="" class="form-control" id="vipName">
287
-									
289
+										
288 290
 									</select>
289 291
 								</div>
290 292
 							</td>
293
+						</tr>				
294
+						<tr>
291 295
 							<th>专员电话:</th>
292 296
 							<td style="position: relative;">
293 297
 								<div class="form-group">
294 298
 									<input type="text" class="form-control" id="vipTel"/>
295 299
 								</div>
296 300
 							</td>
297
-							
301
+							<th>区域:</th>
302
+							<td style="position: relative;">
303
+								<div class="form-group">
304
+									<input type="text" class="form-control" id="areaInps"/>
305
+								</div>
306
+							</td>
307
+							<th>省市:</th>
308
+							<td>
309
+								<div class="time-box">
310
+									<i class="tub fa fa-caret-down areaDown" style="color: #676b6d;"></i>
311
+									<input class="form-control" type="text" id="typeclass1" readonly="readonly">
312
+									<input type="text" class="inps2">
313
+									<input type="text" class="inps3">
314
+									<input type="hidden" id="typeclassId1" />
315
+									<div class="addTree1 treeList1">
316
+										<ul id="TreeDemo1" class="ztree">
317
+
318
+										</ul>
319
+									</div>
320
+								</div>
321
+							</td>
298 322
 						</tr>
299 323
 						<tr>
300 324
 							<th>投诉事件描述:</th>
@@ -310,11 +334,11 @@
310 334
 					</tbody>
311 335
 				</table>
312 336
 
313
-				<!--市场部-->
337
+				<!--杜康组-->
314 338
 				<table class="market">
315 339
 					<tbody>
316 340
 						<tr>
317
-							<th>姓名:</th>
341
+							<th>客户:</th>
318 342
 							<td>
319 343
 								<div class="form-group">
320 344
 									<input type="text" class="form-control" id="name" />
@@ -326,40 +350,42 @@
326 350
 									<input type="text" class="form-control" id="tel" />
327 351
 								</div>
328 352
 							</td>
329
-							
353
+							<th>对接人:</th>
354
+							<td>
355
+								<div class="form-group">
356
+									<select name="" class="form-control" id="customerName">
357
+									
358
+									</select>
359
+								</div>
360
+							</td>
361
+						</tr>
362
+						<tr>
330 363
 							<th>区域:</th>
364
+							<td style="position: relative;">
365
+								<div class="form-group">
366
+									<input type="text" class="form-control" id="areaInps"/>
367
+								</div>
368
+							</td>
369
+							<th>省市:</th>
331 370
 							<td>
332 371
 								<div class="time-box">
333 372
 									<i class="tub fa fa-caret-down areaDown" style="color: #676b6d;"></i>
334 373
 									<input class="form-control" type="text" id="typeclass_market1" readonly="readonly">
335 374
 									<input type="text" class="inps2">
336
-										<input type="text" class="inps3">
337
-										<input type="text" class="inps4">
375
+									<input type="text" class="inps3">
338 376
 									<input type="hidden" id="typeclassId1" />
339 377
 									<div class="addTree1 treeList_market1">
340 378
 										<ul id="TreeDemo_market1" class="ztree">
341
-
342 379
 										</ul>
343 380
 									</div>
344 381
 								</div>
345 382
 							</td>
346
-						</tr>
347
-						<tr>
348
-							<th>客诉专员:</th>
349
-							<td>
350
-								<div class="form-group">
351
-									<select name="" class="form-control" id="customerName">
352
-									
353
-									</select>
354
-								</div>
355
-							</td>
356
-							<th>专员电话:</th>
383
+							<th>对接人电话:</th>
357 384
 							<td style="position: relative;">
358 385
 								<div class="form-group">
359
-									<input type="text" class="form-control" id="customerTel" disabled=""/>
386
+									<input type="text" class="form-control" id="customerTel"/>
360 387
 								</div>
361 388
 							</td>
362
-							
363 389
 						</tr>
364 390
 						<tr>
365 391
 							<th>问题分类:</th>
@@ -379,6 +405,21 @@
379 405
 									</select>
380 406
 								</div>
381 407
 							</td>
408
+							<th>购买地址:</th>
409
+							<td>
410
+								<div class="form-group">
411
+									<input type="text" class="form-control" id="buyAddress"/>
412
+								</div>
413
+							</td>
414
+						</tr>
415
+						<tr class="complainDiv">
416
+							<th>投诉类型:</th>
417
+							<td>
418
+								<div class="form-group">
419
+									<select name="" class="form-control complaintType">
420
+									</select>
421
+								</div>
422
+							</td>
382 423
 						</tr>
383 424
 						<tr>
384 425
 							<th>产品名称:</th>
@@ -387,18 +428,22 @@
387 428
 									<input type="text" class="form-control" id="productname" />
388 429
 								</div>
389 430
 							</td>
390
-							<th>生产批号:</th>
391
-							<td>
431
+							<th>产品类别:</th>
432
+							<td style="position: relative;">
392 433
 								<div class="form-group">
393
-									<input type="text" class="form-control" id="batchNumber" />
434
+									<select name="" class="form-control productType2" id="productType">
435
+									
436
+									</select>
394 437
 								</div>
395 438
 							</td>
396
-							<th>购买地址:</th>
439
+							<th>生产批号:</th>
397 440
 							<td>
398 441
 								<div class="form-group">
399
-									<input type="text" class="form-control" id="buyAddress"/>
442
+									<input type="text" class="form-control" id="batchNumber" />
400 443
 								</div>
401 444
 							</td>
445
+							
446
+							
402 447
 						</tr>
403 448
 						<tr>
404 449
 							<th>生产日期:</th>

+ 83 - 45
CallCenterWeb.UI/WorkOrder/WorkOrderDispose.html

@@ -1,6 +1,5 @@
1 1
 <!DOCTYPE html>
2 2
 <html>
3
-
4 3
 	<head>
5 4
 		<meta charset="UTF-8">
6 5
 		<title>待处理工单</title>
@@ -102,6 +101,11 @@
102 101
 									<option value="">请选择工单来源</option>
103 102
 								</select>
104 103
 							</div>
104
+							<div class="form-group">
105
+								<select class="form-control selectpicker" id="orderType" data-live-search="true">
106
+									<option value="">请选择工单类型</option>
107
+								</select>
108
+							</div>
105 109
 							<div class="time-box form-group">
106 110
 								<i class="tub fa fa-calendar"></i>
107 111
 								<input class="form-control search_time" type="text" id="greetingTimes" placeholder="请选择时间">
@@ -119,7 +123,7 @@
119 123
 					<div class="pull-right">
120 124
 						<button class="btns ss">搜索</button>
121 125
 						<!--<button class="btns gjss">高级搜索</button>-->
122
-						<!--<a class="btns" onclick="dcexcel(this)">导出</a>-->
126
+						<a class="btns" onclick="dcexcel(this)">导出</a>
123 127
 					</div>
124 128
 				</div>
125 129
 			</div>
@@ -130,12 +134,14 @@
130 134
 						<tr>
131 135
 							<th data-field="F_WorkOrderId" data-formatter="View" data-align="center">工单编号</th>
132 136
 							<th data-field="F_State" data-formatter="GetStateName" data-align="center">工单状态</th>
133
-							<th data-field="SourceName" data-align="center">工单来源</th>
134
-							<th data-field="TypeName" data-align="center">工单类型</th>
135 137
 							<th data-field="F_CusName" data-align="center" data-class="E73">姓名</th>
138
+							<th data-field="F_Area" data-align="center">区域</th>
139
+							<th data-field="F_Province" data-align="center">省</th>
140
+							<th data-field="F_City" data-align="center">市</th>
136 141
 							<th data-field="F_CusPhone" data-align="center">客户电话</th>
137
-							<th data-field="F_DealUser" data-align="center">受理人</th>
142
+							<th data-field="F_CreateUser" data-align="center">受理人</th>
138 143
 							<th data-field="F_CreateTime" data-align="center">创建时间</th>
144
+							<th data-field="F_VIPName" data-align="center">客诉专员</th>
139 145
 							<th data-field="F_Content" data-align="center" data-formatter="Detail" style="width:500px;">投诉事件描述</th>
140 146
 							<th data-field="F_WorkOrderId" data-formatter="Appoint" data-align="center">操作</th>
141 147
 						</tr>
@@ -149,12 +155,14 @@
149 155
 						<tr>
150 156
 							<th data-field="F_WorkOrderId" data-formatter="View" data-align="center">工单编号</th>
151 157
 							<th data-field="F_State" data-formatter="GetStateName" data-align="center">工单状态</th>
152
-							<th data-field="SourceName" data-align="center">工单来源</th>
153
-							<th data-field="TypeName" data-align="center">工单类型</th>
154 158
 							<th data-field="F_CusName" data-align="center" data-class="E73">姓名</th>
159
+							<th data-field="F_Area" data-align="center">区域</th>
160
+							<th data-field="F_Province" data-align="center">省</th>
161
+							<th data-field="F_City" data-align="center">市</th>
155 162
 							<th data-field="F_CusPhone" data-align="center">客户电话</th>
156
-							<th data-field="F_DealUser" data-align="center">受理人</th>
163
+							<th data-field="F_CreateUser" data-align="center">受理人</th>
157 164
 							<th data-field="F_CreateTime" data-align="center">创建时间</th>
165
+							<th data-field="F_VIPName" data-align="center">客诉专员</th>
158 166
 							<th data-field="F_Content" data-align="center" data-formatter="Detail" style="width:500px;">投诉事件描述</th>
159 167
 							<th data-field="F_WorkOrderId" data-formatter="Appoint" data-align="center">操作</th>
160 168
 						</tr>
@@ -165,7 +173,7 @@
165 173
 			<div class="ckxq  Hidens">
166 174
 				<ul class="clearfix ckxq_ul">
167 175
 					<li class="Active">工单详情</li>
168
-					<!--<li>处理记录</li>-->
176
+					<li>跟进记录</li>
169 177
 					<!--<li>催办记录</li>
170 178
                     <li>评论记录</li>-->
171 179
 					<span class="Closed">×</span>
@@ -183,12 +191,16 @@
183 191
 									<td>
184 192
 										<span id="xq_gdlx"></span>
185 193
 									</td>
186
-									<th>创建时间:</th>
194
+									<th>投诉类型:</th>
187 195
 									<td>
188
-										<span id="xq_cjsj"></span>
196
+										<span id="F_complaint"></span>
189 197
 									</td>
190 198
 								</tr>
191 199
 								<tr>
200
+									<th>创建时间:</th>
201
+									<td>
202
+										<span id="xq_cjsj"></span>
203
+									</td>
192 204
 									<th>工单状态:</th>
193 205
 									<td>
194 206
 										<span id="xq_gdzt"></span>
@@ -197,12 +209,13 @@
197 209
 									<td>
198 210
 										<span id="xq_khxm"></span>
199 211
 									</td>
212
+									
213
+								</tr>
214
+								<tr>
200 215
 									<th>客户电话:</th>
201 216
 									<td>
202 217
 										<span id="xq_khdh"></span>
203 218
 									</td>
204
-								</tr>
205
-								<tr>
206 219
 									<th>购买日期:</th>
207 220
 									<td>
208 221
 										<span id="buyDate"></span>
@@ -211,12 +224,13 @@
211 224
 									<td>
212 225
 										<span id="productName"></span>
213 226
 									</td>
227
+									
228
+								</tr>
229
+								<tr>
214 230
 									<th>购买地址:</th>
215 231
 									<td>
216 232
 										<span id="buyAddress"></span>
217 233
 									</td>
218
-								</tr>
219
-								<tr>
220 234
 									<th>产品类别:</th>
221 235
 									<td>
222 236
 										<span id="productType"></span>
@@ -225,12 +239,13 @@
225 239
 									<td>
226 240
 										<span id="batchNumber"></span>
227 241
 									</td>
242
+									
243
+								</tr>
244
+								<tr>
228 245
 									<th>使用日期:</th>
229 246
 									<td>
230 247
 										<span id="userDate"></span>
231 248
 									</td>
232
-								</tr>
233
-								<tr>
234 249
 									<th>区域:</th>
235 250
 									<td>
236 251
 										<span id="areaName"></span>
@@ -239,12 +254,14 @@
239 254
 									<td>
240 255
 										<span id="VipName"></span>
241 256
 									</td>
257
+									
258
+								</tr>
259
+								<tr>
242 260
 									<th>专员电话:</th>
243 261
 									<td>
244 262
 										<span id="F_VipPhone"></span>
245 263
 									</td>
246
-								</tr>
247
-								<tr>
264
+									
248 265
 									<th>样品寄回:</th>
249 266
 									<td>
250 267
 										<span id="F_IsBack"></span>
@@ -256,22 +273,14 @@
256 273
 										
257 274
 									</td>
258 275
 								</tr>
259
-								
260
-
261 276
 							</tbody>
262 277
 
263 278
 						</table>
264 279
 					</div>
280
+					
265 281
 				</div>
266 282
 				<div class="gdxq" style="display:none;">
267
-					<table id="cllist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
268
-						<thead>
269
-							<tr>
270
-								<th data-field="WorkOrderID" data-formatter="ComXQ">处理详情</th>
271
-								<th data-field="CreateTime">创建时间</th>
272
-							</tr>
273
-						</thead>
274
-					</table>
283
+					
275 284
 				</div>
276 285
 			</div>
277 286
 		</div>
@@ -323,26 +332,16 @@
323 332
 							<tr>
324 333
 								<th>处理状态:</th>
325 334
 								<td colspan="3">
326
-									<div>
327
-										<label style="font-weight: normal;">
328
-                                            <input type="radio" value="1" name="ltype" checked="checked" /> 结束
329
-                                        </label> &nbsp;&nbsp;&nbsp;&nbsp;
335
+									<div class="disposeST">
336
+										 
330 337
 									</div>
331 338
 								</td>
332 339
 							</tr>
333 340
 							<tr class="ns-2">
334 341
 								<th>响应状态:</th>
335 342
 								<td colspan="3">
336
-									<div>
337
-										<label style="font-weight: normal;">
338
-                                            <input type="radio" value="1" name="response" checked="checked" /> 及时
339
-                                        </label> &nbsp;&nbsp;&nbsp;&nbsp;
340
-                                        <label style="font-weight: normal;">
341
-                                            <input type="radio" value="2" name="response" checked="checked" /> 响应
342
-                                        </label> &nbsp;&nbsp;&nbsp;&nbsp;
343
-                                        <label style="font-weight: normal;">
344
-                                            <input type="radio" value="3" name="response" checked="checked" /> 未响应
345
-                                        </label> &nbsp;&nbsp;&nbsp;&nbsp;
343
+									<div class="responseST">
344
+										
346 345
 									</div>
347 346
 								</td>
348 347
 							</tr>
@@ -397,10 +396,45 @@
397 396
 				hideDiv();
398 397
 				function hideDiv(){
399 398
 					if(ns==2){
400
-						$(".ns-2").hide();
399
+						$(".ns-2").remove();
401 400
 					}
402 401
 				}
403
-				
402
+				//处理状态
403
+				dealState();
404
+				function dealState() {
405
+					$.get(huayi.config.callcenter_url + 'Dictionary/GetDicValueListByFlag', {
406
+						"token": $.cookie("token"),
407
+						flag: "CLZT"
408
+					}, function(result) {
409
+						result = $.parseJSON(result);
410
+						var Count = result.data;
411
+						$(Count).each(function(i, n) {
412
+                            $('<label style="font-weight: normal; margin-right: 15px;">'+
413
+                            '<input type="radio" value="' + n.F_DictionaryValueId
414
+							+ '" name="ltype"/>' + n.F_Name 
415
+							+ '</label>').appendTo($(".disposeST"));
416
+						})
417
+						$('.disposeST input:radio:first').attr('checked', 'checked');
418
+					});
419
+				}
420
+				//响应状态
421
+				responseState();
422
+				function responseState() {
423
+					$.get(huayi.config.callcenter_url + 'Dictionary/GetDicValueListByFlag', {
424
+						"token": $.cookie("token"),
425
+						flag: "XYZT"
426
+					}, function(result) {
427
+						result = $.parseJSON(result);
428
+						var Count = result.data;
429
+						$(Count).each(function(i, n) {
430
+							$('<label style="font-weight: normal; margin-right: 15px;">'+
431
+                            '<input type="radio" value="' + n.F_DictionaryValueId
432
+							+ '" name="response"/>' + n.F_Name 
433
+							+ '</label>').appendTo($(".responseST"));
434
+						})
435
+						$('.responseST input:radio:first').attr('checked', 'checked');
436
+					});
437
+				}
404 438
 				$("#clgd").click(function() {
405 439
 					var val = $("input[name='ltype']:checked").val();
406 440
 					
@@ -473,6 +507,8 @@
473 507
 							state: 0,
474 508
 							token: $.cookie("token"),
475 509
 							source: $('#orderSource').val(), //工单来源
510
+							type:$("#orderType").val(),
511
+							
476 512
 							key:$('#keyWord').val(), //内容关键字
477 513
 							workid:$('#orderNum').val(), //内容关键字
478 514
 							starttime: $('#greetingTimes').val() && $('#greetingTimes').val().split(' ~ ')[0], //开始时间
@@ -517,6 +553,7 @@
517 553
 							state: 0,
518 554
 							token: $.cookie("token"),
519 555
 							source: $('#orderSource').val(), //工单来源
556
+							type:$("#orderType").val(),
520 557
 							key:$('#keyWord').val(), //内容关键字
521 558
 							workid:$('#orderNum').val(), //内容关键字
522 559
 							starttime: $('#greetingTimes').val() && $('#greetingTimes').val().split(' ~ ')[0], //开始时间
@@ -541,6 +578,7 @@
541 578
 				if(stype == '1') {
542 579
 					url += "&typeclass=" + $("#typeclassId").val();//工单类型
543 580
 					url += "&type=" + $("#orderSource").val();//工单来源
581
+					
544 582
 					url += "&starttime=" + ($("#greetingTimes").val() && $("#greetingTimes").val().split(' ~ ')[0]);//开始时间
545 583
 					url += "&endtime=" + ($("#greetingTimes").val() && $("#greetingTimes").val().split(' ~ ')[1]);//结束时间
546 584
 					url += "&lddep=" + $("#comeCall_dep_input").val();//来电单位

+ 74 - 97
CallCenterWeb.UI/WorkOrder/WorkOrderParty.html

@@ -84,6 +84,7 @@
84 84
 			}
85 85
 			.RemoveC a {
86 86
 				display: inline-block;
87
+				
87 88
 			}
88 89
 		</style>
89 90
 
@@ -129,7 +130,7 @@
129 130
 					<div class="pull-right">
130 131
 						<button class="btns ss">搜索</button>
131 132
 						<!--<button class="btns gjss">高级搜索</button>-->
132
-						<!--<a class="btns" onclick="dcexcel(this)">导出</a>-->
133
+						<a class="btns" onclick="dcexcel(this)">导出</a>
133 134
 					</div>
134 135
 				</div>
135 136
 			</div>
@@ -140,12 +141,14 @@
140 141
 						<tr>
141 142
 							<th data-field="F_WorkOrderId" data-formatter="View" data-align="center">工单编号</th>
142 143
 							<th data-field="F_State" data-formatter="GetStateName" data-align="center">工单状态</th>
143
-							<th data-field="SourceName" data-align="center">工单来源</th>
144
-							<th data-field="TypeName" data-align="center">工单类型</th>
145 144
 							<th data-field="F_CusName" data-align="center" data-class="E73">姓名</th>
145
+							<th data-field="F_Area" data-align="center">区域</th>
146
+							<th data-field="F_Province" data-align="center">省</th>
147
+							<th data-field="F_City" data-align="center">市</th>
146 148
 							<th data-field="F_CusPhone" data-align="center">客户电话</th>
147
-							<th data-field="F_DealUser" data-align="center">受理人</th>
149
+							<th data-field="F_CreateUser" data-align="center">受理人</th>
148 150
 							<th data-field="F_CreateTime" data-align="center">创建时间</th>
151
+							<th data-field="F_VIPName" data-align="center">客诉专员</th>
149 152
 							<th data-field="F_Content" data-align="center" data-formatter="Detail" style="width:500px;">投诉事件描述</th>
150 153
 							<th data-field="F_WorkOrderId" data-formatter="Remove" data-align="center">操作</th>
151 154
 						</tr>
@@ -158,12 +161,14 @@
158 161
 						<tr>
159 162
 							<th data-field="F_WorkOrderId" data-formatter="View" data-align="center">工单编号</th>
160 163
 							<th data-field="F_State" data-formatter="GetStateName" data-align="center">工单状态</th>
161
-							<th data-field="SourceName" data-align="center">工单来源</th>
162
-							<th data-field="TypeName" data-align="center">工单类型</th>
163 164
 							<th data-field="F_CusName" data-align="center" data-class="E73">姓名</th>
165
+							<th data-field="F_Area" data-align="center">区域</th>
166
+							<th data-field="F_Province" data-align="center">省</th>
167
+							<th data-field="F_City" data-align="center">市</th>
164 168
 							<th data-field="F_CusPhone" data-align="center">客户电话</th>
165
-							<th data-field="F_DealUser" data-align="center">受理人</th>
169
+							<th data-field="F_CreateUser" data-align="center">受理人</th>
166 170
 							<th data-field="F_CreateTime" data-align="center">创建时间</th>
171
+							<th data-field="F_VIPName" data-align="center">客诉专员</th>
167 172
 							<th data-field="F_Content" data-align="center" data-formatter="Detail" style="width:500px;">投诉事件描述</th>
168 173
 							<th data-field="F_WorkOrderId" data-formatter="Remove" data-align="center">操作</th>
169 174
 						</tr>
@@ -174,7 +179,7 @@
174 179
 			<div class="ckxq  Hidens">
175 180
 				<ul class="clearfix ckxq_ul">
176 181
 					<li class="Active">工单详情</li>
177
-					<!--<li>处理记录</li>-->
182
+					<li>跟进记录</li>
178 183
 					<!--去掉-->
179 184
 					<!--<li>催办记录</li>
180 185
                 <li>评论记录</li>-->
@@ -193,12 +198,16 @@
193 198
 									<td>
194 199
 										<span id="xq_gdlx"></span>
195 200
 									</td>
196
-									<th>创建时间:</th>
201
+									<th>投诉类型:</th>
197 202
 									<td>
198
-										<span id="xq_cjsj"></span>
203
+										<span id="F_complaint"></span>
199 204
 									</td>
200 205
 								</tr>
201 206
 								<tr>
207
+									<th>创建时间:</th>
208
+									<td>
209
+										<span id="xq_cjsj"></span>
210
+									</td>
202 211
 									<th>工单状态:</th>
203 212
 									<td>
204 213
 										<span id="xq_gdzt"></span>
@@ -207,12 +216,13 @@
207 216
 									<td>
208 217
 										<span id="xq_khxm"></span>
209 218
 									</td>
219
+									
220
+								</tr>
221
+								<tr>
210 222
 									<th>客户电话:</th>
211 223
 									<td>
212 224
 										<span id="xq_khdh"></span>
213 225
 									</td>
214
-								</tr>
215
-								<tr>
216 226
 									<th>购买日期:</th>
217 227
 									<td>
218 228
 										<span id="buyDate"></span>
@@ -221,12 +231,13 @@
221 231
 									<td>
222 232
 										<span id="productName"></span>
223 233
 									</td>
234
+									
235
+								</tr>
236
+								<tr>
224 237
 									<th>购买地址:</th>
225 238
 									<td>
226 239
 										<span id="buyAddress"></span>
227 240
 									</td>
228
-								</tr>
229
-								<tr>
230 241
 									<th>产品类别:</th>
231 242
 									<td>
232 243
 										<span id="productType"></span>
@@ -235,12 +246,13 @@
235 246
 									<td>
236 247
 										<span id="batchNumber"></span>
237 248
 									</td>
249
+									
250
+								</tr>
251
+								<tr>
238 252
 									<th>使用日期:</th>
239 253
 									<td>
240 254
 										<span id="userDate"></span>
241 255
 									</td>
242
-								</tr>
243
-								<tr>
244 256
 									<th>区域:</th>
245 257
 									<td>
246 258
 										<span id="areaName"></span>
@@ -249,10 +261,18 @@
249 261
 									<td>
250 262
 										<span id="VipName"></span>
251 263
 									</td>
264
+									
265
+								</tr>
266
+								<tr>
252 267
 									<th>专员电话:</th>
253 268
 									<td>
254 269
 										<span id="F_VipPhone"></span>
255 270
 									</td>
271
+									
272
+									<th>样品寄回:</th>
273
+									<td>
274
+										<span id="F_IsBack"></span>
275
+									</td>
256 276
 								</tr>
257 277
 								<tr>
258 278
 									<th>事件描述:</th>
@@ -264,94 +284,51 @@
264 284
 
265 285
 						</table>
266 286
 					</div>
287
+					<div class="">
288
+						<table id="gdxq_table" border="0" class="table table-bordered  table-hover " style="width: 100%;">
289
+							<tbody class="tbodys">
290
+								<tr>
291
+									<th>处理费用:</th>
292
+									<td>
293
+										<span id="F_DealCost"></span>
294
+									</td>
295
+									
296
+									<th>处理状态:</th>
297
+									<td>
298
+										<span id="DealStateName"></span>
299
+									</td>
300
+									<th>响应状态:</th>
301
+									<td>
302
+										<span id="F_DealTimely"></span>
303
+									</td>
304
+								</tr>
305
+								<tr>
306
+									<th>处理结果:</th>
307
+									<td colspan="5" id="F_DealResult">
308
+										
309
+									</td>
310
+								</tr>
311
+								<tr>
312
+									
313
+									<th>客诉进展详述:</th>
314
+									<td colspan="5" id="F_DealDes">
315
+										
316
+									</td>
317
+								</tr>
318
+								
319
+									
320
+							</tbody>
321
+
322
+						</table>
323
+					</div>
267 324
 				</div>
268 325
 				<div class="gdxq" style="display:none;">
269
-					<table id="cllist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
270
-						<thead>
271
-							<tr>
272
-								<th data-field="WorkOrderID" data-formatter="ComXQ">处理详情</th>
273
-								<th data-field="Detail">处理内容</th>
274
-								<th data-field="CreateTime">创建时间</th>
275
-							</tr>
276
-						</thead>
277
-					</table>
326
+					
278 327
 				</div>
279 328
 			</div>
280 329
 		</div>
281 330
 
282 331
 		<div class="t-shade">
283
-			<!--高级搜索-->
284
-			<!--<div class="shade_k gjsu ">
285
-            <div class="shade_title">
286
-                <span>高级搜索<srong class="cknum"></srong></span>
287
-                <span class="setwin"><a>x</a></span>
288
-            </div>
289
-            <div class="shade_content">
290
-                <div class="dgxx_table size-13">
291
-                    <table class="_table1 table table-bordered  table-hover " border="0" cellspacing="0" cellpadding="0" style="width: 100%;">
292
-                        <tr>
293
-                            <th>工单编号:</th>
294
-                            <td colspan="3">
295
-                                <div class="inpBox">
296
-                                    <input type="text" class="inps " id="ss_gdbh" />
297
-                                </div>
298
-                            </td>
299
-                        </tr>
300
-                        <tr>
301
-                            <th>工单类型:</th>
302
-                            <td>
303
-                                <div class="inpBox">
304
-                                    <input type="text" class="inps select" value="--请选择--" readonly="readonly" />
305
-                                    <input type="hidden" class="inps " id="ss_gdlx" />
306
-                                    <i class="xl xl_two"></i>
307
-                                    <div class="xl_common">
308
-                                        <ul class="xl_box">
309
-                                            <li>--请选择--</li>
310
-                                            <li itemid="1">售前咨询</li>
311
-                                            <li itemid="2">报修服务</li>
312
-                                            <li itemid="3">投诉建议</li>
313
-                                        </ul>
314
-                                    </div>
315
-                                </div>
316
-                            </td>
317
-                            <th>坐席工号:</th>
318
-                            <td>
319
-                                <div class="inpBox">
320
-                                    <input type="text" class="inps " id="ss_zxgh" />
321
-                                </div>
322
-                            </td>
323
-                        </tr>
324
-                        <tr>
325
-                            <th>客户姓名:</th>
326
-                            <td>
327
-                                <div class="inpBox">
328
-                                    <input type="text" class="inps " id="ss_khxm" />
329
-                                </div>
330
-                            </td>
331
-
332
-                            <th>客户电话:</th>
333
-                            <td>
334
-                                <div class="inpBox">
335
-                                    <input type="text" class="inps " id="ss_khdh" />
336
-                                </div>
337
-                            </td>
338
-                        </tr>
339
-                        <tr>
340
-                            <th>工单内容:</th>
341
-                            <td colspan="3">
342
-                                <div class="inpBox">
343
-                                    <input type="text" class="inps " id="ss_gdnr" />
344
-                                </div>
345
-                            </td>
346
-                        </tr>
347
-                    </table>
348
-                </div>
349
-                <div class="clearfix wh_btn">
350
-                    <input type="button" value="搜索" class="btn-info" id="gjss" />
351
-                </div>
352
-            </div>
353
-        </div>
354
-     -->
355 332
 
356 333
 			<!--处理工单-->
357 334
 			<div class="shade_k clgd ">

+ 67 - 27
CallCenterWeb.UI/WorkOrder/WorkOrderSearch.html

@@ -118,7 +118,7 @@
118 118
 					<div class="pull-right">
119 119
 						<button class="btns ss">搜索</button>
120 120
 						<!--<button class="btns gjss">高级搜索</button>-->
121
-						<!--<a class="btns" onclick="dcexcel(this)">导出</a>-->
121
+						<a class="btns" onclick="dcexcel(this)">导出</a>
122 122
 					</div>
123 123
 				</div>
124 124
 			</div>
@@ -129,12 +129,14 @@
129 129
 						<tr>
130 130
 							<th data-field="F_WorkOrderId" data-formatter="View" data-align="center">工单编号</th>
131 131
 							<th data-field="F_State" data-formatter="GetStateName" data-align="center">工单状态</th>
132
-							<th data-field="SourceName" data-align="center">工单来源</th>
133
-							<th data-field="TypeName" data-align="center">工单类型</th>
134 132
 							<th data-field="F_CusName" data-align="center" data-class="E73">姓名</th>
133
+							<th data-field="F_Area" data-align="center">区域</th>
134
+							<th data-field="F_Province" data-align="center">省</th>
135
+							<th data-field="F_City" data-align="center">市</th>
135 136
 							<th data-field="F_CusPhone" data-align="center">客户电话</th>
136
-							<th data-field="F_DealUser" data-align="center">受理人</th>
137
+							<th data-field="F_CreateUser" data-align="center">受理人</th>
137 138
 							<th data-field="F_CreateTime" data-align="center">创建时间</th>
139
+							<th data-field="F_VIPName" data-align="center">客诉专员</th>
138 140
 							<th data-field="F_Content" data-align="center" data-formatter="Detail" style="width:500px;">投诉事件描述</th>
139 141
 							<th data-field="F_WorkOrderId" data-formatter="Search" data-align="center">操作</th>
140 142
 						</tr>
@@ -147,12 +149,14 @@
147 149
 						<tr>
148 150
 							<th data-field="F_WorkOrderId" data-formatter="View" data-align="center">工单编号</th>
149 151
 							<th data-field="F_State" data-formatter="GetStateName" data-align="center">工单状态</th>
150
-							<th data-field="SourceName" data-align="center">工单来源</th>
151
-							<th data-field="TypeName" data-align="center">工单类型</th>
152 152
 							<th data-field="F_CusName" data-align="center" data-class="E73">姓名</th>
153
+							<th data-field="F_Area" data-align="center">区域</th>
154
+							<th data-field="F_Province" data-align="center">省</th>
155
+							<th data-field="F_City" data-align="center">市</th>
153 156
 							<th data-field="F_CusPhone" data-align="center">客户电话</th>
154
-							<th data-field="F_DealUser" data-align="center">受理人</th>
157
+							<th data-field="F_CreateUser" data-align="center">受理人</th>
155 158
 							<th data-field="F_CreateTime" data-align="center">创建时间</th>
159
+							<th data-field="F_VIPName" data-align="center">客诉专员</th>
156 160
 							<th data-field="F_Content" data-align="center" data-formatter="Detail" style="width:500px;">投诉事件描述</th>
157 161
 							<th data-field="F_WorkOrderId" data-formatter="Search" data-align="center">操作</th>
158 162
 						</tr>
@@ -163,7 +167,7 @@
163 167
 			<div class="ckxq  Hidens">
164 168
 				<ul class="clearfix ckxq_ul">
165 169
 					<li class="Active">工单详情</li>
166
-					<!--<li>处理记录</li>-->
170
+					<li>跟进记录</li>
167 171
 					<!--<li>催办记录</li>
168 172
                 <li>评论记录</li>-->
169 173
 					<span class="Closed">×</span>
@@ -180,12 +184,16 @@
180 184
 									<td>
181 185
 										<span id="xq_gdlx"></span>
182 186
 									</td>
183
-									<th>创建时间:</th>
187
+									<th>投诉类型:</th>
184 188
 									<td>
185
-										<span id="xq_cjsj"></span>
189
+										<span id="F_complaint"></span>
186 190
 									</td>
187 191
 								</tr>
188 192
 								<tr>
193
+									<th>创建时间:</th>
194
+									<td>
195
+										<span id="xq_cjsj"></span>
196
+									</td>
189 197
 									<th>工单状态:</th>
190 198
 									<td>
191 199
 										<span id="xq_gdzt"></span>
@@ -194,12 +202,13 @@
194 202
 									<td>
195 203
 										<span id="xq_khxm"></span>
196 204
 									</td>
205
+									
206
+								</tr>
207
+								<tr>
197 208
 									<th>客户电话:</th>
198 209
 									<td>
199 210
 										<span id="xq_khdh"></span>
200 211
 									</td>
201
-								</tr>
202
-								<tr>
203 212
 									<th>购买日期:</th>
204 213
 									<td>
205 214
 										<span id="buyDate"></span>
@@ -208,12 +217,13 @@
208 217
 									<td>
209 218
 										<span id="productName"></span>
210 219
 									</td>
220
+									
221
+								</tr>
222
+								<tr>
211 223
 									<th>购买地址:</th>
212 224
 									<td>
213 225
 										<span id="buyAddress"></span>
214 226
 									</td>
215
-								</tr>
216
-								<tr>
217 227
 									<th>产品类别:</th>
218 228
 									<td>
219 229
 										<span id="productType"></span>
@@ -222,12 +232,13 @@
222 232
 									<td>
223 233
 										<span id="batchNumber"></span>
224 234
 									</td>
235
+									
236
+								</tr>
237
+								<tr>
225 238
 									<th>使用日期:</th>
226 239
 									<td>
227 240
 										<span id="userDate"></span>
228 241
 									</td>
229
-								</tr>
230
-								<tr>
231 242
 									<th>区域:</th>
232 243
 									<td>
233 244
 										<span id="areaName"></span>
@@ -236,32 +247,61 @@
236 247
 									<td>
237 248
 										<span id="VipName"></span>
238 249
 									</td>
250
+									
251
+								</tr>
252
+								<tr>
239 253
 									<th>专员电话:</th>
240 254
 									<td>
241 255
 										<span id="F_VipPhone"></span>
242 256
 									</td>
257
+									
258
+									<th>样品寄回:</th>
259
+									<td>
260
+										<span id="F_IsBack"></span>
261
+									</td>
243 262
 								</tr>
244 263
 								<tr>
245 264
 									<th>事件描述:</th>
246 265
 									<td colspan="5" id="conTent">
247
-										
248 266
 									</td>
249 267
 								</tr>
250 268
 						</tbody>
251
-
252 269
 					</table>
270
+					<div class="">
271
+						<table id="gdxq_table" border="0" class="table table-bordered  table-hover " style="width: 100%;">
272
+							<tbody class="tbodys">
273
+								<tr>
274
+									<th>处理费用:</th>
275
+									<td>
276
+										<span id="F_DealCost"></span>
277
+									</td>
278
+									
279
+									<th>处理状态:</th>
280
+									<td>
281
+										<span id="F_DealState"></span>
282
+									</td>
283
+									<th>响应状态:</th>
284
+									<td>
285
+										<span id="F_DealTimely"></span>
286
+									</td>
287
+								</tr>
288
+								<tr>
289
+									<th>处理结果:</th>
290
+									<td colspan="5" id="F_DealResult">
291
+									</td>
292
+								</tr>
293
+								<tr>
294
+									<th>客诉进展详述:</th>
295
+									<td colspan="5" id="F_DealDes">
296
+									</td>
297
+								</tr>
298
+							</tbody>
253 299
 
300
+						</table>
301
+					</div>	
254 302
 				</div>
255 303
 				<div class="gdxq" style="display:none;">
256
-					<table id="cllist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
257
-						<thead>
258
-							<tr>
259
-								<th data-field="WorkOrderID" data-formatter="ComXQ">处理详情</th>
260
-								<th data-field="Detail">处理内容</th>
261
-								<th data-field="CreateTime">创建时间</th>
262
-							</tr>
263
-						</thead>
264
-					</table>
304
+					
265 305
 				</div>
266 306
 			</div>
267 307
 		</div>

+ 113 - 69
CallCenterWeb.UI/WorkOrder/Xga.html

@@ -167,7 +167,9 @@
167 167
 
168 168
 	<body class="gray-bg">
169 169
 		<div class="clearfix wrapper wrapper-content animated fadeInRight">
170
+			
170 171
 			<div class="common">
172
+				
171 173
 				<!--客服部-->
172 174
 				<table class="customerService">
173 175
 					<tbody>
@@ -184,103 +186,122 @@
184 186
 									<input type="text" class="form-control" id="tel" />
185 187
 								</div>
186 188
 							</td>
187
-							
188
-							<th>购买日期:</th>
189
-							<td style="position: relative;">
190
-								<div class="time-box form-group">
191
-									<i class="tub fa fa-calendar"></i>
192
-									<input class="form-control search_time" type="text" id="buyDate" placeholder="请选择时间">
193
-								</div>
194
-							</td>
195 189
 						</tr>
196 190
 						<tr>
191
+							
197 192
 							<th>产品名称:</th>
198 193
 							<td>
199 194
 								<div class="form-group">
200 195
 									<input type="text" class="form-control" id="productname" />
201 196
 								</div>
202 197
 							</td>
203
-							<th>购买地址:</th>
204
-							<td>
205
-								<div class="form-group">
206
-									<input type="text" class="form-control" id="buyAddress"/>
207
-								</div>
208
-							</td>
209
-							
210 198
 							<th>产品类别:</th>
211 199
 							<td style="position: relative;">
212 200
 								<div class="form-group">
213
-									<input type="text" class="form-control" id="productType"/>
201
+									<select name="" class="form-control productType1" id="productType">
202
+									
203
+									</select>
214 204
 								</div>
215 205
 							</td>
216
-						</tr>
217
-						<tr>
218 206
 							<th>生产批号:</th>
219 207
 							<td>
220 208
 								<div class="form-group">
221 209
 									<input type="text" class="form-control" id="batchNumber" />
222 210
 								</div>
223 211
 							</td>
224
-							
225
-							
226
-							<th>使用日期:</th>
212
+						</tr>
213
+						
214
+						<tr>
215
+							<th>购买日期:</th>
227 216
 							<td style="position: relative;">
228 217
 								<div class="time-box form-group">
229 218
 									<i class="tub fa fa-calendar"></i>
230
-									<input class="form-control search_time" type="text" id="userDate" placeholder="请选择时间">
219
+									<input class="form-control search_time" id="buyDate" type="text" placeholder="请选择时间">
220
+								</div>
221
+							</td>
222
+							<th>食用日期:</th>
223
+							<td style="position: relative;">
224
+								<div class="time-box form-group">
225
+									<i class="tub fa fa-calendar"></i>
226
+									<input class="form-control search_time" id="userDate" type="text" placeholder="请选择时间">
231 227
 								</div>
232 228
 							</td>
233 229
 						</tr>
234 230
 						<tr>
231
+							<th>购买地址:</th>
232
+							<td>
233
+								<div class="form-group">
234
+									<input type="text" class="form-control" id="buyAddress"/>
235
+								</div>
236
+							</td>
235 237
 							<th>工单来源:</th>
236 238
 							<td>
237 239
 								<div class="form-group">
238 240
 									<select name="" class="form-control" id="DicValueList">
239
-										<option></option>
241
+									
240 242
 									</select>
241 243
 								</div>
242 244
 							</td>
243 245
 							<th>工单类型:</th>
244 246
 							<td>
245 247
 								<div class="form-group">
246
-									<select name="" class="form-control orderType1">
247
-									
248
+									<select name="" class="form-control" id="orderType1">
248 249
 									</select>
249 250
 								</div>
250 251
 							</td>
251
-							<th>区域:</th>
252
+						</tr>
253
+						<tr class="complainDiv">
254
+							<th>投诉类型:</th>
252 255
 							<td>
253
-								<div class="time-box">
254
-									<i class="tub fa fa-caret-down areaDown" style="color: #676b6d;"></i>
255
-									<input class="form-control" type="text" id="typeclass1" readonly="readonly">
256
-									<input type="text" class="inps2">
257
-										<input type="text" class="inps3">
258
-										<input type="text" class="inps4">
259
-									<input type="hidden" id="typeclassId1" />
260
-									<div class="addTree1 treeList1">
261
-										<ul id="TreeDemo1" class="ztree">
262
-
263
-										</ul>
264
-									</div>
256
+								<div class="form-group">
257
+									<select name="" class="form-control complaintType">
258
+									</select>
265 259
 								</div>
266 260
 							</td>
267 261
 						</tr>
268 262
 						<tr>
263
+							<th>样品寄回:</th>
264
+							<td style="position: relative;">
265
+								<select name="" class="form-control" id="sendBack">
266
+									<option value="0">否</option>
267
+									<option value="1">是</option>
268
+								</select>
269
+							</td>
269 270
 							<th>客诉专员:</th>
270 271
 							<td>
271 272
 								<div class="form-group">
272 273
 									<select name="" class="form-control" id="vipName">
273
-										<option></option>
274 274
 									</select>
275 275
 								</div>
276 276
 							</td>
277
+						</tr>
278
+						<tr>
277 279
 							<th>专员电话:</th>
278 280
 							<td style="position: relative;">
279 281
 								<div class="form-group">
280
-									<input type="text" class="form-control" id="vipTel" disabled=""/>
282
+									<input type="text" class="form-control" id="vipTel"/>
283
+								</div>
284
+							</td>
285
+							<th>区域:</th>
286
+							<td style="position: relative;">
287
+								<div class="form-group">
288
+									<input type="text" class="form-control" id="areaInps"/>
289
+								</div>
290
+							</td>
291
+							<th>省市:</th>
292
+							<td>
293
+								<div class="time-box">
294
+									<i class="tub fa fa-caret-down areaDown" style="color: #676b6d;"></i>
295
+									<input class="form-control" type="text" id="typeclass1" readonly="readonly">
296
+									<input type="text" class="inps2">
297
+									<input type="text" class="inps3">
298
+									<input type="hidden" id="typeclassId1" />
299
+									<div class="addTree1 treeList1">
300
+										<ul id="TreeDemo1" class="ztree">
301
+										</ul>
302
+									</div>
281 303
 								</div>
282 304
 							</td>
283
-							
284 305
 						</tr>
285 306
 						<tr>
286 307
 							<th>投诉事件描述:</th>
@@ -300,7 +321,7 @@
300 321
 				<table class="market">
301 322
 					<tbody>
302 323
 						<tr>
303
-							<th>姓名:</th>
324
+							<th>客户:</th>
304 325
 							<td>
305 326
 								<div class="form-group">
306 327
 									<input type="text" class="form-control" id="name" />
@@ -312,54 +333,73 @@
312 333
 									<input type="text" class="form-control" id="tel" />
313 334
 								</div>
314 335
 							</td>
336
+							<th>对接人:</th>
337
+							<td>
338
+								<div class="form-group">
339
+									<select name="" class="form-control" id="customerName">
340
+									
341
+									</select>
342
+								</div>
343
+							</td>
344
+						</tr>
345
+						<tr>
315 346
 							<th>区域:</th>
347
+							<td style="position: relative;">
348
+								<div class="form-group">
349
+									<input type="text" class="form-control" id="areaInps"/>
350
+								</div>
351
+							</td>
352
+							<th>省市:</th>
316 353
 							<td>
317 354
 								<div class="time-box">
318 355
 									<i class="tub fa fa-caret-down areaDown" style="color: #676b6d;"></i>
319
-									<input class="form-control" type="text" id="typeclass1" readonly="readonly">
356
+									<input class="form-control" type="text" id="typeclass_market1" readonly="readonly">
320 357
 									<input type="text" class="inps2">
321
-										<input type="text" class="inps3">
322
-										<input type="text" class="inps4">
358
+									<input type="text" class="inps3">
323 359
 									<input type="hidden" id="typeclassId1" />
324
-									<div class="addTree1 treeList1">
325
-										<ul id="TreeDemo1" class="ztree">
326
-
360
+									<div class="addTree1 treeList_market1">
361
+										<ul id="TreeDemo_market1" class="ztree">
327 362
 										</ul>
328 363
 									</div>
329 364
 								</div>
330 365
 							</td>
366
+							<th>对接人电话:</th>
367
+							<td style="position: relative;">
368
+								<div class="form-group">
369
+									<input type="text" class="form-control" id="customerTel"/>
370
+								</div>
371
+							</td>
331 372
 						</tr>
332 373
 						<tr>
333
-							<th>客诉专员:</th>
374
+							<th>问题分类:</th>
334 375
 							<td>
335 376
 								<div class="form-group">
336
-									<select name="" class="form-control" id="customerName">
337
-										<option></option>
377
+									<select name="" class="form-control orderType2">
378
+									
338 379
 									</select>
339 380
 								</div>
381
+								
340 382
 							</td>
341
-							<th>专员电话:</th>
342
-							<td style="position: relative;">
343
-								<div class="form-group">
344
-									<input type="text" class="form-control" id="customerTel" disabled=""/>
345
-								</div>
346
-							</td>
347
-							
348
-						</tr>
349
-						<tr>
350 383
 							<th>工单来源:</th>
351 384
 							<td>
352 385
 								<div class="form-group">
353 386
 									<select name="" class="form-control" id="DicValueList">
354
-										<option></option>
387
+									
355 388
 									</select>
356 389
 								</div>
357 390
 							</td>
358
-							<th>问题分类:</th>
391
+							<th>购买地址:</th>
359 392
 							<td>
360 393
 								<div class="form-group">
361
-									<select name="" class="form-control orderType2">
362
-									
394
+									<input type="text" class="form-control" id="buyAddress"/>
395
+								</div>
396
+							</td>
397
+						</tr>
398
+						<tr class="complainDiv">
399
+							<th>投诉类型:</th>
400
+							<td>
401
+								<div class="form-group">
402
+									<select name="" class="form-control complaintType">
363 403
 									</select>
364 404
 								</div>
365 405
 							</td>
@@ -371,18 +411,22 @@
371 411
 									<input type="text" class="form-control" id="productname" />
372 412
 								</div>
373 413
 							</td>
374
-							<th>生产批号:</th>
375
-							<td>
414
+							<th>产品类别:</th>
415
+							<td style="position: relative;">
376 416
 								<div class="form-group">
377
-									<input type="text" class="form-control" id="batchNumber" />
417
+									<select name="" class="form-control productType2" id="productType">
418
+									
419
+									</select>
378 420
 								</div>
379 421
 							</td>
380
-							<th>购买地址:</th>
422
+							<th>生产批号:</th>
381 423
 							<td>
382 424
 								<div class="form-group">
383
-									<input type="text" class="form-control" id="buyAddress"/>
425
+									<input type="text" class="form-control" id="batchNumber" />
384 426
 								</div>
385 427
 							</td>
428
+							
429
+							
386 430
 						</tr>
387 431
 						
388 432
 						<tr>

+ 123 - 0
CallCenterWeb.UI/WorkOrder/followOrder.html

@@ -0,0 +1,123 @@
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
+		<script src="../Script/Common/huayi.http.js"></script>
11
+		<link href="../css/WorkOrder/Search.css" rel="stylesheet">
12
+		<link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
13
+		<link href="../js/bootstrap-select/css/bootstrap-select.css" rel="stylesheet" />
14
+		<link rel="stylesheet" href="../css/WorkOrder/jquery.editable-select.css" />
15
+			<link rel="stylesheet" href="../js/comboSelect/combo.select.css" />
16
+		<link href="../css/init.css" rel="stylesheet" />
17
+		<title>跟进工单</title>
18
+		<style>
19
+			.boxCon {
20
+				width: 100%;
21
+				
22
+				text-align: center;
23
+				padding: 10px 15px;
24
+				height: auto;
25
+				overflow-y: auto;
26
+			}
27
+			
28
+			.boxCon>div {
29
+				padding: 15px 0;
30
+			}
31
+			
32
+			.boxCon table th {
33
+				padding: 5px 8px 5px 0;
34
+				text-align: right;
35
+				width: 32%;
36
+			}
37
+			
38
+			.boxCon table td {
39
+				padding: 6px 0 5px 10px;
40
+				text-align: left;
41
+				color: #717171;
42
+				line-height: 200%;
43
+			}
44
+			.boxCon table td input{
45
+				width: 50%;
46
+			}
47
+			.boxCon table td textarea{
48
+				width: 80%;
49
+			}
50
+		</style>
51
+	</head>
52
+
53
+	<body class="gray-bg" style="background: #FFFFFF;">
54
+		<div class="clearfix wrapper wrapper-content animated fadeInRight">
55
+			<div class="boxCon">
56
+				<table>
57
+					<tbody>
58
+						<tr>
59
+							<th>跟进业务:</th>
60
+							<td>
61
+								<div class="form-group">
62
+									<input type="text" class="form-control" id="VoIP" />
63
+								</div>
64
+							</td>
65
+						</tr>
66
+						<tr>
67
+							<th>投诉事件描述:</th>
68
+							<td colspan="5">
69
+								<textarea name="" rows="5" cols="" placeholder="" id="content"></textarea>
70
+							</td>
71
+						</tr>
72
+						<tr>
73
+							<td colspan="6" style="text-align: center;">
74
+								<button class="btns customerSubmit">保&nbsp;存</button>
75
+							</td>
76
+						</tr>
77
+					</tbody>
78
+				</table>
79
+			</div>
80
+		</div>
81
+
82
+		<script src="../js/zTree/jquery.ztree.core.js"></script>
83
+		<script src="../js/kindeditor/kindeditor.js"></script>
84
+		<script src="../js/kindeditor/lang/zh_CN.js"></script>
85
+		<script src="../js/bootstrap-select/js/bootstrap-select.js"></script>
86
+		<script src="../js/comboSelect/jquery.combo.select.js"></script>
87
+		<script src="../js/laydate/laydate.js"></script>
88
+		<script src="../js/WorkOrder/jquery.editable-select.js"></script>
89
+		<script type="text/javascript">
90
+			var id = helper.request.queryString("id");
91
+			
92
+			$('.customerSubmit').click(function() {
93
+				follow();
94
+			});
95
+			function follow() {
96
+				$.ajax({
97
+					type: "post",
98
+					url: huayi.config.callcenter_url + "WorkOrder/FllowWorkOrder",
99
+					dataType: 'json',
100
+					async: true,
101
+					data: {
102
+						token: $.cookie("token"),
103
+						workid: id,
104
+						title: $('#VoIP').val(), //姓名
105
+						content:$('#content').val(), //事件描述     
106
+					},
107
+					success: function(data) {
108
+						if(data.state.toLowerCase() == 'success') {
109
+							layer.msg("保存成功!");
110
+							var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
111
+							parent.layer.close(index); //再执行关闭
112
+							parent.$('#workorderlist').bootstrapTable('refresh');
113
+							parent.layer.msg("修改成功!");
114
+							//clear();
115
+						}
116
+					}
117
+				});
118
+			
119
+			}
120
+		</script>
121
+	</body>
122
+
123
+</html>

+ 120 - 41
CallCenterWeb.UI/callScreen/call.js

@@ -121,6 +121,43 @@ $.getJSON(huayi.config.callcenter_url + 'CallInScreen/GetPhoneLocation', {
121 121
 		//$(".ldlocation").text(result.data);
122 122
 	}
123 123
 })
124
+
125
+//产品类别
126
+getProductType();
127
+function getProductType() {
128
+	$.get(huayi.config.callcenter_url + 'Dictionary/GetDicValueListByFlag', {
129
+		"token": $.cookie("token"),
130
+		flag: "CPLB"
131
+	}, function(result) {
132
+		result = $.parseJSON(result);
133
+		var Count = result.data;
134
+		$(Count).each(function(i, n) {
135
+		
136
+			$('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($(".productType1"));
137
+		
138
+			$('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($(".productType2"));
139
+			
140
+		})
141
+	
142
+	});
143
+}
144
+//投诉类型
145
+complaintType();
146
+function complaintType() {
147
+	$.get(huayi.config.callcenter_url + 'Dictionary/GetDicValueListByFlag', {
148
+		"token": $.cookie("token"),
149
+		flag: "TSLX"
150
+	}, function(result) {
151
+		result = $.parseJSON(result);
152
+		var Count = result.data;
153
+		$(Count).each(function(i, n) {
154
+			$('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($(".complaintType1"));
155
+			$('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($(".complaintType2"));
156
+
157
+		})
158
+	
159
+	});
160
+}
124 161
 //客诉专员
125 162
 ComplaintVip();
126 163
 function ComplaintVip() {
@@ -139,12 +176,21 @@ function ComplaintVip() {
139 176
 			$('<option value="">全部</option>').appendTo($("#vipName"));
140 177
 			$('<option value="">全部</option>').appendTo($("#vipNamem"));
141 178
 			$(Count).each(function(i, n) {
179
+				
180
+				
142 181
 				$('<option value="' + n.F_Id 
143
-				+ '"  index="'+n.F_Phone+'">' + n.F_Name 
144
-				+ '</option>').appendTo($("#vipName"));
182
+					+ '"  index="'+n.F_Phone
183
+					+'" areaText="'+n.F_Area
184
+					+'" province="'+n.F_Province
185
+					+'" city="'+n.F_City+'">' + n.F_Name
186
+					+ '</option>').appendTo($("#vipName"));
187
+					
145 188
 				$('<option value="' + n.F_Id 
146
-				+ '"  index="'+n.F_Phone+'">' + n.F_Name 
147
-				+ '</option>').appendTo($("#vipNamem"));
189
+					+ '"  index="'+n.F_Phone
190
+					+'" areaText="'+n.F_Area
191
+					+'" province="'+n.F_Province
192
+					+'" city="'+n.F_City+'">' + n.F_Name
193
+					+ '</option>').appendTo($("#vipNamem"));
148 194
 			})
149 195
 		}
150 196
 	});
@@ -152,9 +198,17 @@ function ComplaintVip() {
152 198
 //获取专员手机号
153 199
 $("#vipName").change(function() {
154 200
 	$("#vipTel").val($("#vipName option:selected").attr("index"));
201
+	$("#areaInps1").val($("#vipName option:selected").attr("areaText"));
202
+	$("#typeclass_market1").val($("#vipName option:selected").attr("province")+"/"+$("#vipName option:selected").attr("city"));
203
+	$(".inps2").val($("#vipName option:selected").attr("province"));
204
+	$(".inps3").val($("#vipName option:selected").attr("city"));
155 205
 });
156 206
 $("#vipNamem").change(function() {
157 207
 	$("#vipTelm").val($("#vipNamem option:selected").attr("index"));
208
+	$("#areaInpsm").val($("#vipNamem option:selected").attr("areaText"));
209
+	$("#typeclass_market1m").val($("#vipNamem option:selected").attr("province")+"/"+$("#vipNamem option:selected").attr("city"));
210
+	$(".inps2").val($("#vipNamem option:selected").attr("province"));
211
+	$(".inps3").val($("#vipNamem option:selected").attr("city"));
158 212
 });
159 213
 //区域
160 214
 getOrderType1();
@@ -191,16 +245,15 @@ function changeTreeClick(event, treeId, treeNode) {
191 245
 	chanId=treeNode.F_Id;
192 246
 	changeName = treeNode.F_AreaName;
193 247
 	areaParent=treeNode.getPath();
194
-	if (areaParent[2]) {
248
+	if (areaParent[1]) {
249
+		
195 250
 		areaParent1=areaParent[0].F_AreaName
196 251
 		areaParent2=areaParent[1].F_AreaName
197
-		areaParent3=areaParent[2].F_AreaName
198
-		$('#typeclass1').val(areaParent1+"/"+areaParent2+"/"+areaParent3);
199
-		$('#typeclass_market1').val(areaParent1+"/"+areaParent2+"/"+areaParent3);
200
-		$('#typeclass_market1m').val(areaParent1+"/"+areaParent2+"/"+areaParent3);
252
+		$('#typeclass1').val(areaParent1+"/"+areaParent2);
253
+		$('#typeclass_market1').val(areaParent1+"/"+areaParent2);
254
+		$('#typeclass_market1m').val(areaParent1+"/"+areaParent2);
201 255
 		$('.inps2').val(areaParent1);
202 256
 		$('.inps3').val(areaParent2);
203
-		$('.inps4').val(areaParent3);
204 257
 	}else{
205 258
 		layer.msg("请选择最下级菜单");
206 259
 	}
@@ -208,10 +261,15 @@ function changeTreeClick(event, treeId, treeNode) {
208 261
 	
209 262
 };
210 263
 $('.areaDown').click(function() {
211
-	if($('.treeList1').css('display') == 'block') {
212
-		$('.treeList1').css('display', 'none')
264
+	if($('.TreeDemo_market1').css('display') == 'block') {
265
+		$('.TreeDemo_market1').css('display', 'none')
213 266
 	} else {
214
-		$('.treeList1').css('display', 'block')
267
+		$('.TreeDemo_market1').css('display', 'block')
268
+	}
269
+	if($('.TreeDemo_market1m').css('display') == 'block') {
270
+		$('.TreeDemo_market1m').css('display', 'none')
271
+	} else {
272
+		$('.TreeDemo_market1m').css('display', 'block')
215 273
 	}
216 274
 })
217 275
 $('#typeclass1').click(function() {
@@ -347,7 +405,7 @@ $(".col-sm-3").mouseleave(function() {
347 405
 	$(".ztree").parent().hide();
348 406
 })
349 407
 
350
-//市场部创建工单
408
+//杜康创建工单
351 409
 $(".addts").click(function() {
352 410
 //	var marketName = $("#marketName").val();
353 411
 //	var marketTel = $("#marketTel").val();
@@ -368,19 +426,21 @@ $(".addts").click(function() {
368 426
 			token: $.cookie("token"),
369 427
 			cusname: $('#name').val(), //姓名
370 428
 			cusphone: $('#tel').val(), //号码
371
-			area: $('.inps2').val(), //区域
429
+			area: $('#areaInps1').val(), //区域
372 430
 			vipid: $('#vipName').val(), //专员id     
373 431
 			vipphone: $('#vipTel').val(), //专员号码     
374 432
 			source: $('#DicValueList').val(), //工单来源
375 433
 			productname: $('#productname').val(), //产品名称
434
+			producttype: $('#productType').val(), //产品类别   
376 435
 			batchnumber: $('#batchNumber').val(), //生产批号     
377 436
 			buyaddress: $('#buyAddress').val(), //购买地址  
378
-			productdate: $('#proDuctdate').val(),
437
+			smalltype:$(".complaintType1").val(), //投诉类型
438
+			productdate: $('#proDuctdate').val(), //生产日期
379 439
 			buydate: $('#buyDate').val(), //购买日期
380
-			userdate: $('.userDate').val(), //使用日期  userDate  
440
+			userdate: $('#userDate').val(), //使用日期  userDate  
381 441
 			type: $('.orderType2').val(), //工单类型id
382
-			province: $('.inps3').val(), //省
383
-			city: $('.inps4').val(), //市
442
+			province: $('.inps2').val(), //省
443
+			city: $('.inps3').val(), //市
384 444
 			content:$('#content').val(), //事件描述     
385 445
 			isback:$("#sendBack").val(),
386 446
 			callid: $("#CallID").val()
@@ -389,8 +449,8 @@ $(".addts").click(function() {
389 449
 			if(data.state.toLowerCase() == 'success') {
390 450
 				layer.msg("保存成功!");
391 451
 				loadOld();
392
-				$('#name').val(""); //姓名
393
-				$('.inps2').val(''); //区域
452
+				
453
+				$('#areaInpsm').val(''); //区域
394 454
 				$('#vipName').val(''); //专员id     
395 455
 				$('#vipTel').val(''); //专员号码     
396 456
 				$('#DicValueList').val(''); //工单来源
@@ -463,12 +523,13 @@ $(".add_").click(function() {
463 523
 			buyaddress: $('#buyAddressm').val(), //购买地址  
464 524
 			producttype: $('#productTypem').val(), //产品类别   
465 525
 			batchnumber: $('#batchNumberm').val(), //生产批号     
526
+			smalltype:$(".complaintType2").val(), //投诉类型
466 527
 			userdate: $('#userDatem').val(), //使用日期    
467 528
 			source: $('#DicValueListm').val(), //工单来源
468 529
 			type: $('.orderType2').val(), //工单类型id
469
-			area: $('.inps2').val(), //区域
470
-			province: $('.inps3').val(), //省
471
-			city: $('.inps4').val(), //市
530
+			area: $('#areaInpsm').val(), //区域
531
+			province: $('.inps2').val(), //省
532
+			city: $('.inps3').val(), //市
472 533
 			content:$('#contentm').val(), //事件描述     
473 534
 			vipid: $('#vipNamem').val(), //专员id     
474 535
 			vipphone: $('#vipTelm').val(), //专员号码     
@@ -478,7 +539,8 @@ $(".add_").click(function() {
478 539
 			if(data.state.toLowerCase() == 'success') {
479 540
 				loadOld();
480 541
 				layer.msg("保存成功!");
481
-				$('#namem').val(""); //姓名
542
+				$("#typeclass_market1m").val("");
543
+				$('#areaInpsm').val("");
482 544
 				$('#buyDatem').val(""); //购买日期
483 545
 				$('#productnamem').val(""); //产品名称
484 546
 				$('#buyAddressm').val(""); //购买地址  
@@ -518,9 +580,12 @@ $.ajax({
518 580
 				$("#name").val(result.rows[0].F_Name);
519 581
 				$("#khid").val(result.rows[0].F_Id);
520 582
 				$('.ldname').val(result.rows[0].F_Name); //客户姓名
583
+				$("#areaInps").val(result.rows[0].F_Area)
521 584
 				console.log(result.rows[0].F_Province);
522 585
 				if(result.rows[0].F_Province){
523
-						$(".countryName").val(result.rows[0].F_Area+result.rows[0].F_Province+result.rows[0].F_City); //省份
586
+						$(".countryName").val(result.rows[0].F_Province+"-"+result.rows[0].F_City); //省份
587
+						$(".inps2").val(result.rows[0].F_Province);
588
+						$(".inps3").val(result.rows[0].F_City);
524 589
 				}else{
525 590
 					$(".countryName").val('');
526 591
 				}
@@ -545,6 +610,7 @@ $('.edit').click(function() {
545 610
 	$('.save').show();
546 611
 	$('.cancel').show();
547 612
 	$(".time-box_flbox").show();
613
+	$("#typeclass1").val($(".countryName").val())
548 614
 	$('.edit').hide();
549 615
 	$('.khzl tbody>tr>td input').attr('readonly', false);
550 616
 	$('.khzl tbody>tr>td input').css('border-bottom', "1px solid #b3b3b3");
@@ -580,9 +646,9 @@ $(".save").click(function() {
580 646
 		id: KHid,
581 647
 		type:1,
582 648
 		name: khmc,
583
-		area: $('.inps2').val(), //区域
584
-		province: $('.inps3').val(), //省份
585
-		city: $('.inps4').val(), //城市
649
+		area: $('#areaInps').val(), //区域
650
+		province: $('.inps2').val(), //省份
651
+		city: $('.inps3').val(), //城市
586 652
 		customerindustry: testInput2, //来电单位
587 653
 		tel: tel1,
588 654
 		"token": $.cookie("token")
@@ -603,7 +669,10 @@ $(".save").click(function() {
603 669
 			$("#marketTel").val(tel1);
604 670
 			$("#lddepr").val(testInput2);
605 671
 			$("#callCustomer").val(khmc); //客户姓名
672
+			$("#name").val(khmc);
673
+			$("#namem").val(khmc);
606 674
 			$("#Tel").val(tel1); //联系电话
675
+			$("#telm").val(tel1); //联系电话
607 676
 			$("#lddep").val(testInput2); //来电单位
608 677
 		}
609 678
 	})
@@ -1020,17 +1089,11 @@ $.ajax({
1020 1089
 	success: function(res) {
1021 1090
 		if(res.state == "success") {
1022 1091
 			console.log(res.data);
1023
-			$('<option value="">全部</option>').appendTo($("#DicValueList"));
1024
-			$('<option value="">全部</option>').appendTo($("#DicValueListm"));
1092
+//			$('<option value="">全部</option>').appendTo($("#DicValueList"));
1093
+//			$('<option value="">全部</option>').appendTo($("#DicValueListm"));
1025 1094
 			$(res.data).each(function(i, n) {
1026
-				if(n.F_DictionaryValueId == "468") {
1027
-					$('<option value="' + n.F_DictionaryValueId + '" selected="selected">' + n.F_Name + '</option>').appendTo($("#DicValueList"));
1028
-					$('<option value="' + n.F_DictionaryValueId + '" selected="selected">' + n.F_Name + '</option>').appendTo($("#DicValueListm"));
1029
-				} else {
1030
-					$('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($("#DicValueList"));
1031
-					$('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($("#DicValueListm"));
1032
-				}
1033
-
1095
+				$('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($("#DicValueList"));
1096
+				$('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($("#DicValueListm"));
1034 1097
 			})
1035 1098
 		}
1036 1099
 
@@ -1060,8 +1123,24 @@ function getOrderType() {
1060 1123
 	
1061 1124
 	});
1062 1125
 }
1063
-
1064
-
1126
+$(".orderType1").change(function() {
1127
+	if($(".orderType1 option:selected").text()=="咨询"){
1128
+		$(".complainDiv").hide();
1129
+		$(".complaintType1").val("");
1130
+	}else{
1131
+		$(".complainDiv").show();
1132
+	}
1133
+	
1134
+});
1135
+$(".orderType2").change(function() {
1136
+	if($(".orderType2 option:selected").text()=="咨询"){
1137
+		$(".complainDiv").hide();
1138
+		$(".complaintType2").val("");
1139
+	}else{
1140
+		$(".complainDiv").show();
1141
+	}
1142
+	
1143
+});
1065 1144
 $("#citySel").click(function() {
1066 1145
 	if($(".menuContent").is(":hidden")) {
1067 1146
 		$(".menuContent").show();

+ 106 - 52
CallCenterWeb.UI/callScreen/callScreen.html

@@ -567,6 +567,13 @@
567 567
 							</td>
568 568
 						</tr>
569 569
 						<tr>
570
+							<th>区域:</th>
571
+							<td>
572
+								<input type="text" value="" id="areaInps"/>
573
+								<input type="hidden" value="" id="khid" />
574
+							</td>
575
+						</tr>
576
+						<tr>
570 577
 							<th>省份:</th>
571 578
 							<td>
572 579
 								<input type="text" value="" class="countryName" autocomplete="off" />
@@ -595,7 +602,10 @@
595 602
 						</tr>
596 603
 						<tr>
597 604
 							<td></td>
598
-							<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>
605
+							<td>
606
+								<span class="edit"><i class="bianji edi"></i><a class="khbtn">编辑</a></span>
607
+								<span class="save"> <i class="bianji sav"></i><a class="khbtn">保存</a></span>
608
+								<span class="cancel"><i class="bianji canc"></i><a class="khbtn">取消</a></span></td>
599 609
 						</tr>
600 610
 					</table>
601 611
 				</div>
@@ -676,7 +686,7 @@
676 686
 									<table class="market">
677 687
 										<tbody>
678 688
 											<tr>
679
-												<th>姓名:</th>
689
+												<th>客户:</th>
680 690
 												<td>
681 691
 													<div class="form-group">
682 692
 														<input type="text" class="form-control" id="name" />
@@ -688,15 +698,37 @@
688 698
 														<input type="text" class="form-control" id="tel" />
689 699
 													</div>
690 700
 												</td>
701
+												<th>对接人:</th>
702
+												<td>
703
+													<div class="form-group">
704
+														<select name="" class="form-control" id="vipName">
691 705
 
706
+														</select>
707
+													</div>
708
+												</td>
709
+												
710
+											</tr>
711
+											<tr>
712
+												
713
+												<th>对接人电话:</th>
714
+												<td style="position: relative;">
715
+													<div class="form-group">
716
+														<input type="text" class="form-control" id="vipTel" />
717
+													</div>
718
+												</td>
692 719
 												<th>区域:</th>
720
+												<td style="position: relative;">
721
+													<div class="form-group">
722
+														<input type="text" class="form-control" id="areaInps1"/>
723
+													</div>
724
+												</td>
725
+												<th>省市:</th>
693 726
 												<td>
694 727
 													<div class="form-group" style="position: relative;">
695 728
 														<i class="tub fa fa-caret-down areaDown" style="color: #676b6d;"></i>
696 729
 														<input class="form-control" type="text" id="typeclass_market1" readonly="readonly">
697 730
 														<input type="text" class="inps2">
698 731
 														<input type="text" class="inps3">
699
-														<input type="text" class="inps4">
700 732
 														<input type="hidden" id="typeclassId1" />
701 733
 														<div class="addTree1 treeList_market1">
702 734
 															<ul id="TreeDemo_market1" class="ztree">
@@ -707,37 +739,37 @@
707 739
 												</td>
708 740
 											</tr>
709 741
 											<tr>
710
-												<th>客诉专员:</th>
742
+												<th>问题分类:</th>
711 743
 												<td>
712 744
 													<div class="form-group">
713
-														<select name="" class="form-control" id="vipName">
745
+														<select name="" class="form-control orderType1">
714 746
 
715 747
 														</select>
716 748
 													</div>
749
+
717 750
 												</td>
718
-												<th>专员电话:</th>
719
-												<td style="position: relative;">
751
+												<th>工单来源:</th>
752
+												<td>
720 753
 													<div class="form-group">
721
-														<input type="text" class="form-control" id="vipTel" />
754
+														<select name="" class="form-control" id="DicValueList">
755
+
756
+														</select>
722 757
 													</div>
723 758
 												</td>
724
-
725
-											</tr>
726
-											<tr>
727
-												<th>问题分类:</th>
728
-												<td>
759
+												<th>产品类别:</th>
760
+												<td style="position: relative;">
729 761
 													<div class="form-group">
730
-														<select name="" class="form-control orderType2">
731
-
762
+														<select name="" class="form-control productType1" id="productType">
763
+														
732 764
 														</select>
733 765
 													</div>
734
-
735 766
 												</td>
736
-												<th>工单来源:</th>
767
+											</tr>
768
+											<tr class="complainDiv">
769
+												<th>投诉类型:</th>
737 770
 												<td>
738 771
 													<div class="form-group">
739
-														<select name="" class="form-control" id="DicValueList">
740
-
772
+														<select name="" class="form-control complaintType1">
741 773
 														</select>
742 774
 													</div>
743 775
 												</td>
@@ -830,13 +862,6 @@
830 862
 														<input type="text" class="form-control" id="telm" autocomplete="off" />
831 863
 													</div>
832 864
 												</td>
833
-
834
-												<th>购买日期:</th>
835
-												<td style="position: relative;">
836
-													<div class="time-box form-group">
837
-														<input type="text" id="buyDatem" class="laydate-icon" autocomplete="off" />
838
-													</div>
839
-												</td>
840 865
 											</tr>
841 866
 											<tr>
842 867
 												<th>产品名称:</th>
@@ -845,29 +870,29 @@
845 870
 														<input type="text" class="form-control" id="productnamem" autocomplete="off" />
846 871
 													</div>
847 872
 												</td>
848
-												<th>购买地址:</th>
849
-												<td>
850
-													<div class="form-group">
851
-														<input type="text" class="form-control" id="buyAddressm" autocomplete="off" />
852
-													</div>
853
-												</td>
854
-
855 873
 												<th>产品类别:</th>
856 874
 												<td style="position: relative;">
857 875
 													<div class="form-group">
858
-														<input type="text" class="form-control" id="productTypem" autocomplete="off" />
876
+														<select name="" class="form-control productType2" id="productTypem">
877
+														
878
+														</select>
859 879
 													</div>
860 880
 												</td>
861
-											</tr>
862
-											<tr>
863 881
 												<th>生产批号:</th>
864 882
 												<td>
865 883
 													<div class="form-group">
866 884
 														<input type="text" class="form-control" id="batchNumberm" autocomplete="off" />
867 885
 													</div>
868 886
 												</td>
869
-
870
-												<th>使用日期:</th>
887
+											</tr>
888
+											<tr>
889
+												<th>购买日期:</th>
890
+												<td style="position: relative;">
891
+													<div class="time-box form-group">
892
+														<input type="text" id="buyDatem" class="laydate-icon" autocomplete="off" />
893
+													</div>
894
+												</td>
895
+												<th>食用日期:</th>
871 896
 												<td style="position: relative;">
872 897
 													<div class="time-box form-group">
873 898
 														<input type="text" id="userDatem" class="laydate-icon" autocomplete="off" />
@@ -875,6 +900,12 @@
875 900
 												</td>
876 901
 											</tr>
877 902
 											<tr>
903
+												<th>购买地址:</th>
904
+												<td>
905
+													<div class="form-group">
906
+														<input type="text" class="form-control" id="buyAddressm" autocomplete="off" />
907
+													</div>
908
+												</td>
878 909
 												<th>工单来源:</th>
879 910
 												<td>
880 911
 													<div class="form-group">
@@ -892,24 +923,24 @@
892 923
 													</div>
893 924
 
894 925
 												</td>
895
-												<th>区域:</th>
926
+											</tr>
927
+											<tr class="complainDiv">
928
+												<th>投诉类型:</th>
896 929
 												<td>
897
-													<div class="form-group" style="position: relative;">
898
-														<i class="tub fa fa-caret-down areaDown" style="color: #676b6d;"></i>
899
-														<input class="form-control" type="text" id="typeclass_market1m" readonly="readonly" autocomplete="off">
900
-														<input type="text" class="inps2">
901
-														<input type="text" class="inps3">
902
-														<input type="text" class="inps4">
903
-														<input type="hidden" id="typeclassId1" />
904
-														<div class="addTree1 TreeDemo_market1m">
905
-															<ul id="TreeDemo_market1m" class="ztree">
906
-
907
-															</ul>
908
-														</div>
930
+													<div class="form-group">
931
+														<select name="" class="form-control complaintType2">
932
+														</select>
909 933
 													</div>
910 934
 												</td>
911 935
 											</tr>
912 936
 											<tr>
937
+												<th>样品寄回:</th>
938
+												<td style="position: relative;">
939
+													<select name="" class="form-control" id="sendBack">
940
+														<option value="0">否</option>
941
+														<option value="1">是</option>
942
+													</select>
943
+												</td>
913 944
 												<th>客诉专员:</th>
914 945
 												<td>
915 946
 													<div class="form-group">
@@ -918,13 +949,36 @@
918 949
 														</select>
919 950
 													</div>
920 951
 												</td>
952
+												
953
+											</tr>
954
+											<tr>
921 955
 												<th>专员电话:</th>
922 956
 												<td style="position: relative;">
923 957
 													<div class="form-group">
924 958
 														<input type="text" class="form-control" id="vipTelm" />
925 959
 													</div>
926 960
 												</td>
927
-
961
+												<th>区域:</th>
962
+												<td style="position: relative;">
963
+													<div class="form-group">
964
+														<input type="text" class="form-control" id="areaInpsm"/>
965
+													</div>
966
+												</td>
967
+												<th>省市:</th>
968
+												<td>
969
+													<div class="form-group" style="position: relative;">
970
+														<i class="tub fa fa-caret-down areaDown" style="color: #676b6d;"></i>
971
+														<input class="form-control" type="text" id="typeclass_market1m" readonly="readonly" autocomplete="off">
972
+														<input type="text" class="inps2">
973
+														<input type="text" class="inps3">
974
+														<input type="text" class="inps4">
975
+														<input type="hidden" id="typeclassId1" />
976
+														<div class="addTree1 TreeDemo_market1m">
977
+															<ul id="TreeDemo_market1m" class="ztree">
978
+															</ul>
979
+														</div>
980
+													</div>
981
+												</td>
928 982
 											</tr>
929 983
 											<tr>
930 984
 												<th>投诉事件描述:</th>

+ 96 - 45
CallCenterWeb.UI/js/WorkOrder/AddWorkOrder.js

@@ -30,7 +30,6 @@ $.ajax({
30 30
 });
31 31
 
32 32
 $(document).ready(function() {
33
-	
34 33
 	laydate.render({
35 34
 		elem: '.userDate',
36 35
 		theme: '#1ab394',
@@ -57,7 +56,12 @@ $(document).ready(function() {
57 56
 	getOrderSource();
58 57
 	//工单类型
59 58
 	getOrderType();
60
-	//工单类型
59
+	//投诉类型
60
+	complaintType();
61
+	//产品类别
62
+	getProductType();
63
+	
64
+	//区域
61 65
 	getOrderType1();
62 66
 	//工单状态
63 67
 	getOrderState();
@@ -107,31 +111,71 @@ function getOrderType() {
107 111
 		flag: "GDLX"
108 112
 	}, function(result) {
109 113
 		result = $.parseJSON(result);
110
-				
111 114
 		var Count = result.data;
112
-	
113 115
 		$(Count).each(function(i, n) {
114 116
 			
115 117
 			if(ns==1){
116
-				if(n.F_DictionaryValueId == "468") {
117
-					$('<option value="' + n.F_DictionaryValueId + '" selected="selected">' + n.F_Name + '</option>').appendTo($(".orderType1"));
118
-				} else {
119
-					$('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($(".orderType1"));
120
-				}
118
+				$('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($(".orderType1"));
121 119
 			}else if(ns==2){
122
-				
123
-				if(n.F_DictionaryValueId == "468") {
124
-					$('<option value="' + n.F_DictionaryValueId + '" selected="selected">' + n.F_Name + '</option>').appendTo($(".orderType2"));
125
-				} else {
126
-					$('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($(".orderType2"));
127
-				}
120
+				$('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($(".orderType2"));
128 121
 			}
129 122
 			
123
+		
124
+		})
125
+	
126
+	});
127
+}
128
+$(".orderType1").change(function() {
129
+	if($(".orderType1 option:selected").text()=="咨询"){
130
+		$(".complainDiv").hide();
131
+	}else{
132
+		$(".complainDiv").show();
133
+	}
134
+	
135
+});
136
+$(".orderType2").change(function() {
137
+	if($(".orderType2 option:selected").text()=="咨询"){
138
+		$(".complainDiv").hide();
139
+	}else{
140
+		$(".complainDiv").show();
141
+	}
142
+	
143
+});
144
+//工单类型
145
+function complaintType() {
146
+	$.get(huayi.config.callcenter_url + 'Dictionary/GetDicValueListByFlag', {
147
+		"token": $.cookie("token"),
148
+		flag: "TSLX"
149
+	}, function(result) {
150
+		result = $.parseJSON(result);
151
+		var Count = result.data;
152
+		$(Count).each(function(i, n) {
153
+			$('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($(".complaintType"));
130 154
 
131 155
 		})
132 156
 	
133 157
 	});
134 158
 }
159
+//产品类别
160
+function getProductType() {
161
+	$.get(huayi.config.callcenter_url + 'Dictionary/GetDicValueListByFlag', {
162
+		"token": $.cookie("token"),
163
+		flag: "CPLB"
164
+	}, function(result) {
165
+		result = $.parseJSON(result);
166
+		var Count = result.data;
167
+		$(Count).each(function(i, n) {
168
+			if(ns==1){
169
+				$('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($(".productType1"));
170
+			}else if(ns==2){
171
+				$('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($(".productType2"));
172
+			}
173
+		})
174
+		
175
+	
176
+	});
177
+}
178
+
135 179
 //区域
136 180
 function getOrderType1() {
137 181
 	$.get(huayi.config.callcenter_url + 'Area/GetAreaList', {
@@ -165,15 +209,15 @@ function changeTreeClick(event, treeId, treeNode) {
165 209
 	chanId=treeNode.F_Id;
166 210
 	changeName = treeNode.F_AreaName;
167 211
 	areaParent=treeNode.getPath();
168
-	if (areaParent[2]) {
212
+	if (areaParent[1]) {
169 213
 		areaParent1=areaParent[0].F_AreaName
170 214
 		areaParent2=areaParent[1].F_AreaName
171
-		areaParent3=areaParent[2].F_AreaName
172
-		$('#typeclass1').val(areaParent1+"/"+areaParent2+"/"+areaParent3);
173
-		$('#typeclass_market1').val(areaParent1+"/"+areaParent2+"/"+areaParent3);
215
+		
216
+		$('#typeclass1').val(areaParent1+"/"+areaParent2);
217
+		$('#typeclass_market1').val(areaParent1+"/"+areaParent2);
174 218
 		$('.inps2').val(areaParent1);
175 219
 		$('.inps3').val(areaParent2);
176
-		$('.inps4').val(areaParent3);
220
+		
177 221
 	}else{
178 222
 		layer.msg("请选择最下级菜单");
179 223
 	}
@@ -214,13 +258,9 @@ function getOrderState() {
214 258
 		success: function(res) {
215 259
 			if(res.state == "success") {
216 260
 				//console.log(res.data);
217
-				$('<option value="">全部</option>').appendTo($("#State"));
218 261
 				$(res.data).each(function(i, n) {
219
-					if(n.F_DictionaryValueId == '472') {
220
-						$('<option value="' + n.F_DictionaryValueId + '" selected="selected">' + n.F_Name + '</option>').appendTo($("#State"));
221
-					} else {
222
-						$('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($("#State"));
223
-					}
262
+					
263
+					$('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($("#State"));
224 264
 				})
225 265
 				//              		
226 266
 			}
@@ -241,16 +281,9 @@ function getOrderSource(obj) {
241 281
 		},
242 282
 		success: function(data) {
243 283
 			var Count = data.data;
244
-			$('<option value="">全部</option>').appendTo($("#DicValueList"));
245 284
 			$(Count).each(function(i, n) {
246
-				if(n.F_DictionaryValueId == "468") {
247
-					$('<option value="' + n.F_DictionaryValueId + '" selected="selected">' + n.F_Name + '</option>').appendTo($("#DicValueList"));
248
-					$('<option value="' + n.F_DictionaryValueId + '" selected="selected">' + n.F_Name + '</option>').appendTo($("#DicValueList_market"));
249
-				} else {
250
-					$('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($("#DicValueList"));
251
-					$('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($("#DicValueList_market"));
252
-				}
253
-
285
+				$('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($("#DicValueList"));
286
+				$('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($("#DicValueList_market"));
254 287
 			})
255 288
 		}
256 289
 	});
@@ -274,14 +307,20 @@ function ComplaintVip() {
274 307
 				$('<option value="">全部</option>').appendTo($("#vipName"));
275 308
 				$(Count).each(function(i, n) {
276 309
 					$('<option value="' + n.F_Id 
277
-					+ '"  index="'+n.F_Phone+'">' + n.F_Name 
310
+					+ '"  index="'+n.F_Phone
311
+					+'" areaText="'+n.F_Area
312
+					+'" province="'+n.F_Province
313
+					+'" city="'+n.F_City+'">' + n.F_Name
278 314
 					+ '</option>').appendTo($("#vipName"));
279 315
 				})
316
+				
280 317
 			} else if(ns==2){
281
-				$('<option value="">全部</option>').appendTo($("#customerName"));
282 318
 				$(Count).each(function(i, n) {
283 319
 					$('<option value="' + n.F_Id 
284
-					+ '"  index="'+n.F_Phone+'">' + n.F_Name 
320
+					+ '"  index="'+n.F_Phone
321
+					+'" areaText="'+n.F_Area
322
+					+'" province="'+n.F_Province
323
+					+'" city="'+n.F_City+'">' + n.F_Name
285 324
 					+ '</option>').appendTo($("#customerName"));
286 325
 				})
287 326
 			}
@@ -292,9 +331,18 @@ function ComplaintVip() {
292 331
 //获取专员手机号
293 332
 $("#vipName").change(function() {
294 333
 	$("#vipTel").val($("#vipName option:selected").attr("index"));
334
+	$("#areaInps").val($("#vipName option:selected").attr("areaText"));
335
+	$("#typeclass1").val($("#vipName option:selected").attr("province")+"/"+$("#vipName option:selected").attr("city"));
336
+	$(".inps2").val($("#vipName option:selected").attr("province"));
337
+	$(".inps3").val($("#vipName option:selected").attr("city"));
338
+	
295 339
 });
296 340
 $("#customerName").change(function() {
297 341
 	$("#customerTel").val($("#customerName option:selected").attr("index"));
342
+	$("#areaInps").val($("#customerName option:selected").attr("areaText"));
343
+	$("#typeclass_market1").val($("#customerName option:selected").attr("province")+"/"+$("#customerName option:selected").attr("city"));
344
+	$(".inps2").val($("#customerName option:selected").attr("province"));
345
+	$(".inps3").val($("#customerName option:selected").attr("city"));
298 346
 });
299 347
 var orderType
300 348
 var staffId
@@ -363,9 +411,10 @@ function saveCustomer() {
363 411
 			userdate: $('.userDate').val(), //使用日期  userDate  
364 412
 			source: $('#DicValueList').val(), //工单来源
365 413
 			type: orderType, //工单类型id
366
-			area: $('.inps2').val(), //区域
367
-			province: $('.inps3').val(), //省
368
-			city: $('.inps4').val(), //市
414
+			smalltype:$(".complaintType").val(), //投诉类型
415
+			area: $('#areaInps').val(), //区域
416
+			province: $('.inps2').val(), //省
417
+			city: $('.inps3').val(), //市
369 418
 			content:$('#content').val(), //事件描述     
370 419
 			vipid: staffId, //专员id     
371 420
 			vipphone: stafftel, //专员号码     
@@ -383,7 +432,7 @@ function saveCustomer() {
383 432
 	});
384 433
 
385 434
 }
386
-// 市场部保存
435
+// 杜康组保存
387 436
 function saveMarket() {
388 437
 	if (ns==1) {
389 438
 		orderType=$('.orderType1').val();
@@ -407,19 +456,21 @@ function saveMarket() {
407 456
 			token: $.cookie("token"),
408 457
 			cusname: $('#name').val(), //姓名
409 458
 			cusphone: $('#tel').val(), //号码
410
-			area: $('.inps2').val(), //区域
459
+			area: $('#areaInps').val(), //区域
411 460
 			vipid: staffId, //专员id     
412 461
 			vipphone: stafftel, //专员号码     
413 462
 			source: $('#DicValueList').val(), //工单来源
414 463
 			productname: $('#productname').val(), //产品名称
464
+			producttype: $('#productType').val(), //产品类别   
465
+			smalltype:$(".complaintType").val(), //投诉类型
415 466
 			batchnumber: $('#batchNumber').val(), //生产批号     
416 467
 			buyaddress: $('#buyAddress').val(), //购买地址  
417 468
 			productdate: $('#proDuctdate').val(),
418 469
 			buydate: $('.buyDate').val(), //购买日期
419 470
 			userdate: $('.userDate').val(), //使用日期  userDate  
420 471
 			type: orderType, //工单类型id
421
-			province: $('.inps3').val(), //省
422
-			city: $('.inps4').val(), //市
472
+			province: $('.inps2').val(), //省
473
+			city: $('.inps3').val(), //市
423 474
 			content:$('#content').val(), //事件描述     
424 475
 			isback:$("#sendBack").val(),
425 476
 			callid: $("#CallID").val()

+ 68 - 49
CallCenterWeb.UI/js/WorkOrder/WorkOrder.js

@@ -56,9 +56,9 @@ $(document).ready(function() {
56 56
 		var i = $(this).index();
57 57
 		$(".gdxq").hide();
58 58
 		$(".gdxq").eq(i).show();
59
-		if(i > 0) {
60
-			cljl(i);
61
-		}
59
+//		if(i > 0) {
60
+//			cljl(i);
61
+//		}
62 62
 	});
63 63
 	$(".Closed").click(function() {
64 64
 		$(".ckxq").addClass("Hidens");
@@ -127,6 +127,8 @@ $(document).ready(function() {
127 127
 	getOrderType();
128 128
 	//工单来源
129 129
 	getOrderSource()
130
+	//工单类型
131
+	getOrderTypeSel()
130 132
 	//	//反馈单位 、来电单位
131 133
 	$('#comeCall_dep').comboSelect();
132 134
 	$('#comeCall_deps').comboSelect();
@@ -222,7 +224,26 @@ function getOrderSource() {
222 224
 		}
223 225
 	});
224 226
 }
225
-
227
+//工单类型
228
+function getOrderTypeSel() {
229
+	$.ajax({
230
+		type: "get",
231
+		url: huayi.config.callcenter_url + "Dictionary/GetDicValueListByFlag",
232
+		dataType: 'json',
233
+		async: true,
234
+		data: {
235
+			token: $.cookie("token"),
236
+			flag: "GDLX"
237
+		},
238
+		success: function(data) {
239
+			var Count = data.data;
240
+			$(Count).each(function(i, n) {
241
+				$("<option value='" + n.F_DictionaryValueId + "'>" + n.F_Name + "</option>").appendTo($("#orderType"));
242
+			})
243
+			$('#orderType').selectpicker('refresh');
244
+		}
245
+	});
246
+}
226 247
 //编辑器配置
227 248
 KindEditor.ready(function(K) {
228 249
 	window.changeEditor = K.create('#cl_gdnr'); //修改弹出框编辑器
@@ -310,75 +331,60 @@ function xq() {
310 331
 				$("#xq_gdzt").html(GetStateName(data.F_State)); //工单状态
311 332
 				$("#xq_khxm").text(data.F_CusName); //客户姓名
312 333
 				$("#xq_khdh").text(data.F_CusPhone); //客户电话
313
-				
314 334
 				$("#buyDate").text(data.F_BuyDate); //购买日期
315 335
 				$("#productName").text(data.F_ProductName); //产品名称
316 336
 				$("#buyAddress").text(data.F_BuyAddress); //购买地址
317
-				$("#productType").text(data.F_ProductType); //产品类别
337
+				$("#productType").text(data.ProductTypeName); //产品类别
318 338
 				$("#batchNumber").text(data.F_BatchNumber); //生产批号
319 339
 				$("#userDate").text(data.F_UserDate); //使用日期
340
+				$("#F_complaint").text(data.SmallTypeName); //投诉类型
320 341
 				$("#areaName").text(data.F_Area+"-"+data.F_Province+"-"+data.F_City); //区域
321 342
 				$("#VipName").text(data.F_VIPName); //专员姓名
322 343
 				$("#F_VipPhone").text(data.F_VIPPhone); //专员电话
323 344
 				$("#conTent").text(data.F_Content); //专员电话
324 345
 				
346
+				$("#F_DealCost").text(data.F_DealCost); //处理费用
347
+				$("#DealStateName").text(data.DealStateName); //处理状态
348
+				$("#F_DealTimely").text(data.DealTimelyName); //响应状态
349
+				$("#F_DealResult").text(data.F_DealResult); //处理结果
350
+				$("#F_DealDes").text(data.F_DealDes); //客诉进展详述
325 351
 				
326 352
 				$(".gdxq").eq(0).find(".allbc").remove();
327 353
 				if(result.data.gcdata.length > 0) {
328 354
 					var html = '<div class="allbc">补充记录' +
329 355
 						'<table class="table table-hover table-striped"><thead><tr><th><div class="th-inner">补充人</div></th>' +
330 356
 						'<th><div class="th-inner">补充详情</div></th><th><div class="th-inner">创建时间</div></th></tr></thead><tbody>';
331
-
332 357
 					$(result.data.gcdata).each(function(i, n) {
333 358
 						html += '<tr><td>' + n.F_CreateUser + '</td><td>' + n.F_Message + '</td><td>' + n.F_CreateTime + '</td></tr>';
334 359
 					})
335 360
 					html += '</tbody></table></div>';
336 361
 					$(".gdxq").eq(0).append($(html));
337 362
 				}
363
+				$(".gdxq").eq(1).find(".allbc").remove();
364
+				if(result.data.gjdata.length > 0) {
365
+					var html = '<div class="allbc">' +
366
+						'<table class="table table-hover table-striped"><thead><tr>'+
367
+						'<th><div class="th-inner">跟进人</div></th>' +
368
+						'<th><div class="th-inner">跟进业务</div></th>'+
369
+						'<th><div class="th-inner">跟进内容</div></th><th>'+
370
+						'<div class="th-inner">创建时间</div></th></tr></thead><tbody>';
371
+					$(result.data.gjdata).each(function(i, n) {
372
+						html += '<tr><td>' + n.F_CreateUser 
373
+						+ '</td><td>' + n.F_Title + '</td><td>' 
374
+						+ n.F_Content + '</td><td>' 
375
+						+ n.F_CreateTime + '</td></tr>';
376
+					})
377
+					html += '</tbody></table></div>';
378
+					$(".gdxq").eq(1).append($(html));
379
+				}else{
380
+					var html = '<div class="allbc" style="text-align: center;">暂无跟进记录</div>'
381
+					$(".gdxq").eq(1).append($(html));
382
+				}
338 383
 			}
339 384
 		}
340 385
 	})
341 386
 }
342 387
 
343
-function cljl(type) {
344
-	//先销毁表格
345
-	var table = $(".gdxq").eq(type).find("table");
346
-	table.bootstrapTable('destroy');
347
-	//初始化表格,动态从服务器加载数据
348
-	table.bootstrapTable({
349
-		method: "get", //使用get请求到服务器获取数据
350
-		url: huayi.config.callcenter_url + "WorkOrder/GetItemList", //获取数据的Servlet地址
351
-		contentType: 'application/x-www-form-urlencoded',
352
-		striped: true, //表格显示条纹
353
-		pagination: true, //启动分页
354
-		pageSize: 10, //每页显示的记录数
355
-		pageNumber: 1, //当前第几页
356
-		pageList: [10, 20, 50, 100], //记录数可选列表
357
-		search: false, //是否启用查询
358
-		showColumns: false, //显示下拉框勾选要显示的列
359
-		showRefresh: false, //显示刷新按钮
360
-		sidePagination: "server", //表示服务端请求
361
-		//设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
362
-		//设置为limit可以获取limit, offset, search, sort, order
363
-		queryParamsType: "undefined",
364
-		queryParams: function queryParams(params) { //设置查询参数
365
-			var param = {
366
-				page: params.pageNumber,
367
-				pagesize: params.pageSize,
368
-				type: type,
369
-				id: selid,
370
-				token: $.cookie("token")
371
-			};
372
-			return param;
373
-		},
374
-		onLoadSuccess: function() { //加载成功时执行
375
-			//layer.msg("加载成功");
376
-		},
377
-		onLoadError: function() { //加载失败时执行
378
-			//layer.msg("加载数据失败", { time: 1500, icon: 2 });
379
-		}
380
-	});
381
-}
382 388
 
383 389
 function GetTypeName(val) {
384 390
 	var str = '';
@@ -506,7 +512,8 @@ function Dispose(val, row) {
506 512
 function czhtml(val, row, str) {
507 513
 	return '<div class="imgs" ><a  onclick= TK("' + row.F_WorkOrderId 
508 514
 	+ '") >复制模板</a><a  onclick= TZ("' + row.F_WorkOrderId
509
-	+ '") >修改</a><a class="xg" onclick="getOrderDetail(\'' + val 
515
+	+ '") >修改</a><a  onclick= GJ("' + row.F_WorkOrderId
516
+	+ '") >跟进</a><a class="xg" onclick="getOrderDetail(\'' + val 
510 517
 	+ '\',\'' + row.TypeClassName 
511 518
 	+ '\')">' + str + '</a></div>';
512 519
 }
@@ -576,7 +583,7 @@ $('.modify').click(function() {
576 583
 		//              content: 'addZhiShiKuManger.html?addId=' + id + '&addPid='+ pid +'&addName='+ name +''
577 584
 	});
578 585
 })
579
-//
586
+//修改工单
580 587
 function TZ(val) {
581 588
 	var id = val;
582 589
 	layer.open({
@@ -588,7 +595,19 @@ function TZ(val) {
588 595
 		//              content: 'addZhiShiKuManger.html?addId=' + id + '&addPid='+ pid +'&addName='+ name +''
589 596
 	});
590 597
 }
591
-
598
+//跟进工单
599
+function GJ(val) {
600
+	var id = val;
601
+	layer.open({
602
+		type: 2,
603
+		title: '修改工单',
604
+		maxmin: true, //开启最大化最小化按钮
605
+		area: ['80%', '90%'],
606
+		content: '../WorkOrder/followOrder.html?id=' + id
607
+		//              content: 'addZhiShiKuManger.html?addId=' + id + '&addPid='+ pid +'&addName='+ name +''
608
+	});
609
+}
610
+//复制模板
592 611
 function TK(val) {
593 612
 	var id = val;
594 613
 	layer.open({

+ 151 - 66
CallCenterWeb.UI/js/WorkOrder/xgWork.js

@@ -11,7 +11,7 @@ laydate.render({
11 11
 	//min: 0,
12 12
 });
13 13
 laydate.render({
14
-	elem: '#buyAddress',
14
+	elem: '#buyDate',
15 15
 	theme: '#1ab394',
16 16
 	calendar: 'true'
17 17
 	//type: 'datetime',
@@ -58,11 +58,6 @@ $('#testInput2').comboSelect();
58 58
 $('#testInput3').comboSelect();
59 59
 $('#testInput4').comboSelect();
60 60
 $(function() {
61
-	GDLY(); //工单来源
62
-	State(); //工单状态
63
-	getOrderType(); //工单类型
64
-	getOrderType1();
65
-	ComplaintVip();//客诉专员
66 61
 	//保存
67 62
 	$('.customerSubmit').click(function() {
68 63
 		saveCustomer();
@@ -74,7 +69,7 @@ $(function() {
74 69
 })
75 70
 //编辑器配置
76 71
 KindEditor.ready(function(K) {
77
-	XQ();
72
+//	XQ();
78 73
 })
79 74
 //编辑器配置
80 75
 KindEditor.ready(function(K) {
@@ -83,6 +78,14 @@ KindEditor.ready(function(K) {
83 78
 })
84 79
 //			XQ();
85 80
 //		})
81
+XQ();
82
+GDLY(); //工单来源
83
+State(); //工单状态
84
+getProductType(); //产品类别
85
+getOrderType(); //工单类型
86
+getOrderType1();
87
+ComplaintVip();//客诉专员
88
+complaintType();// 投诉类型
86 89
 
87 90
 //工单状态
88 91
 function State() {
@@ -97,6 +100,7 @@ function State() {
97 100
 		dataType: "json",
98 101
 		success: function(res) {
99 102
 			if(res.state == "success") {
103
+				$('<option value="">全部</option>').appendTo($("#State"));
100 104
 				$(res.data).each(function(i, n) {
101 105
 					$('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($("#State"));
102 106
 				})
@@ -106,13 +110,66 @@ function State() {
106 110
 		}
107 111
 	})
108 112
 }
113
+//工单类型
114
+function complaintType() {
115
+	$.get(huayi.config.callcenter_url + 'Dictionary/GetDicValueListByFlag', {
116
+		"token": $.cookie("token"),
117
+		flag: "TSLX"
118
+	}, function(result) {
119
+		result = $.parseJSON(result);
120
+		var Count = result.data;
121
+		$('<option value="">全部</option>').appendTo($(".complaintType"));
122
+		$(Count).each(function(i, n) {
123
+			$('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($(".complaintType"));
124
+
125
+		})
126
+	
127
+	});
128
+}
129
+//产品类别
130
+function getProductType() {
131
+	$.get(huayi.config.callcenter_url + 'Dictionary/GetDicValueListByFlag', {
132
+		"token": $.cookie("token"),
133
+		flag: "CPLB"
134
+	}, function(result) {
135
+		result = $.parseJSON(result);
136
+		var Count = result.data;
137
+		$('<option value="">全部</option>').appendTo($(".productType1"));
138
+		$(Count).each(function(i, n) {
139
+			if(ns==1){
140
+				$('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($(".productType1"));
141
+			}else if(ns==2){
142
+				$('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($(".productType2"));
143
+			}
144
+		})
145
+	
146
+	});
147
+}
148
+
149
+
150
+$("#orderType1").change(function() {
151
+	if($("#orderType1 option:selected").text()=="咨询"){
152
+		$(".complainDiv").hide();
153
+	}else{
154
+		$(".complainDiv").show();
155
+	}
156
+	
157
+});
158
+$(".orderType2").change(function() {
159
+	if($(".orderType2 option:selected").text()=="咨询"){
160
+		$(".complainDiv").hide();
161
+	}else{
162
+		$(".complainDiv").show();
163
+	}
164
+	
165
+});
109 166
 //客诉专员
110 167
 function ComplaintVip() {
111 168
 	var customerType;
112 169
 	if(ns==1){
113 170
 		customerType=2
114 171
 	}else if(ns==2){
115
-		customerType=1
172
+		customerType=2
116 173
 	}
117 174
 	$.ajax({
118 175
 		type: "get",
@@ -127,19 +184,34 @@ function ComplaintVip() {
127 184
 			
128 185
 			var Count = data.data;
129 186
 			if (ns==1) {
130
-				
187
+				$('<option value="">全部</option>').appendTo($("#vipName"));
131 188
 				$(Count).each(function(i, n) {
132 189
 					$('<option value="' + n.F_Id 
133
-					+ '"  index="'+n.F_Phone+'">' + n.F_Name 
190
+					+ '"  index="'+n.F_Phone
191
+					+'" areaText="'+n.F_Area
192
+					+'" province="'+n.F_Province
193
+					+'" city="'+n.F_City+'">' + n.F_Name
134 194
 					+ '</option>').appendTo($("#vipName"));
135 195
 				})
196
+				$("#vipTel").val($("#vipName option:selected").attr("index"));
197
+				$("#areaInps").val($("#vipName option:selected").attr("areaText"));
198
+				$("#typeclass1").val($("#vipName option:selected").attr("province")+"/"+$("#vipName option:selected").attr("city"));
199
+				$(".inps2").val($("#vipName option:selected").attr("province"));
200
+				$(".inps3").val($("#vipName option:selected").attr("city"));
136 201
 			} else if(ns==2){
137
-				
138 202
 				$(Count).each(function(i, n) {
139 203
 					$('<option value="' + n.F_Id 
140
-					+ '"  index="'+n.F_Phone+'">' + n.F_Name 
204
+					+ '"  index="'+n.F_Phone
205
+					+'" areaText="'+n.F_Area
206
+					+'" province="'+n.F_Province
207
+					+'" city="'+n.F_City+'">' + n.F_Name
141 208
 					+ '</option>').appendTo($("#customerName"));
142 209
 				})
210
+				$("#customerTel").val($("#customerName option:selected").attr("index"));
211
+				$("#areaInps").val($("#customerName option:selected").attr("areaText"));
212
+				$("#typeclass_market1").val($("#customerName option:selected").attr("province")+"/"+$("#customerName option:selected").attr("city"));
213
+				$(".inps2").val($("#customerName option:selected").attr("province"));
214
+				$(".inps3").val($("#customerName option:selected").attr("city"));
143 215
 			}
144 216
 			
145 217
 		}
@@ -148,9 +220,18 @@ function ComplaintVip() {
148 220
 //获取专员手机号
149 221
 $("#vipName").change(function() {
150 222
 	$("#vipTel").val($("#vipName option:selected").attr("index"));
223
+	$("#areaInps").val($("#vipName option:selected").attr("areaText"));
224
+	$("#typeclass1").val($("#vipName option:selected").attr("province")+"/"+$("#vipName option:selected").attr("city"));
225
+	$(".inps2").val($("#vipName option:selected").attr("province"));
226
+	$(".inps3").val($("#vipName option:selected").attr("city"));
227
+	
151 228
 });
152 229
 $("#customerName").change(function() {
153 230
 	$("#customerTel").val($("#customerName option:selected").attr("index"));
231
+	$("#areaInps").val($("#customerName option:selected").attr("areaText"));
232
+	$("#typeclass_market1").val($("#customerName option:selected").attr("province")+"/"+$("#customerName option:selected").attr("city"));
233
+	$(".inps2").val($("#customerName option:selected").attr("province"));
234
+	$(".inps3").val($("#customerName option:selected").attr("city"));
154 235
 });
155 236
 //工单来源
156 237
 function GDLY() {
@@ -179,7 +260,28 @@ function GDLY() {
179 260
 		}
180 261
 	});
181 262
 }
263
+//工单类型
264
+function getOrderType() {
265
+	$.get(huayi.config.callcenter_url + 'Dictionary/GetDicValueListByFlag', {
266
+		"token": $.cookie("token"),
267
+		flag: "GDLX"
268
+	}, function(result) {
269
+		result = $.parseJSON(result);
270
+		var Count = result.data;
271
+		//$("#orderType1").empty();
272
+		$('<option value="">全部</option>').appendTo($("#orderType1"));
273
+		$(Count).each(function(i, n) {
274
+			if(ns==1){
275
+				$('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($("#orderType1"));
276
+			}else if(ns==2){
277
+				$('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($(".orderType2"));
278
+			}
279
+			
182 280
 
281
+		})
282
+	
283
+	});
284
+}
183 285
 //获取详情
184 286
 function XQ() {
185 287
 	$.ajax({
@@ -199,58 +301,41 @@ function XQ() {
199 301
 				$('#tel').val(data.F_CusPhone); //号码
200 302
 				$('#proDuctdate').val(data.F_ProductDate); //购买日期
201 303
 				$('#buyDate').val(data.F_BuyDate); //购买日期
304
+				$('.complaintType option:selected').text(data.SmallTypeName); //工单来源 
305
+				$('.complaintType').val(data.F_SmallType)
306
+				$('#orderType1 option:selected').text(data.TypeName); //工单类型 
307
+				$('#orderType1').val(data.F_Type); //工单类型ID
202 308
 				$('#productname').val(data.F_ProductName); //产品名称 
203 309
 				$('#buyAddress').val(data.F_BuyAddress); //购买地址   data.
204
-				$('#productType').val(data.F_ProductType); //产品类别   
310
+				$('#productType option:selected').text(data.ProductTypeName); //产品类别 
311
+				$('#productType').val(data.F_ProductType); //产品类别ID   
205 312
 				$('#batchNumber').val(data.F_BatchNumber); //生产批号     
206 313
 				$('#userDate').val(data.F_UserDate); //使用日期  
207 314
 				$('#DicValueList option:selected').text(data.SourceName); //工单来源 
315
+				$('#DicValueList').val(data.F_Source); //工单来源 
316
+				
208 317
 				$('#typeclass').val(data.TypeName); //工单类型id 
209
-				$('#typeclass1').val(data.F_Area+"/"+data.F_Province+"/"+data.F_City); //区域  
210
-				$('.inps2').val(data.F_Area); //区域  
211
-				$('.inps3').val(data.F_Province); //省   
212
-				$('.inps4').val(data.F_City); //市 
318
+				$("#areaInps").val(data.F_Area);
319
+				$('#typeclass1').val(data.F_Province+"/"+data.F_City); //区域  
320
+				$('.inps2').val(data.F_Province); //省   
321
+				$('.inps3').val(data.F_City); //市 
213 322
 				$('#content').val(data.F_Content); //事件描述     
214 323
 				$('#vipName option:selected').text(data.F_VIPName); //专员姓名    
215 324
 				$('#vipTel').val(data.F_VIPPhone); //专员号码     
216 325
 				$('#customerName option:selected').text(data.F_VIPName); //专员姓名    
217 326
 				$('#customerTel').val(data.F_VIPPhone); //专员号码     
327
+					if($("#orderType1 option:selected").text()=="咨询"){
328
+						
329
+						$(".complainDiv").hide();
330
+					}else{
331
+						
332
+						$(".complainDiv").show();
333
+					}
218 334
 			}
219 335
 		}
220 336
 	});
221 337
 }
222
-//工单类型
223
-function getOrderType() {
224
-	$.get(huayi.config.callcenter_url + 'Dictionary/GetDicValueListByFlag', {
225
-		"token": $.cookie("token"),
226
-		flag: "GDLX"
227
-	}, function(result) {
228
-		result = $.parseJSON(result);
229
-				
230
-		var Count = result.data;
231
-	
232
-		$(Count).each(function(i, n) {
233
-			
234
-			if(ns==1){
235
-				if(n.F_DictionaryValueId == "468") {
236
-					$('<option value="' + n.F_DictionaryValueId + '" selected="selected">' + n.F_Name + '</option>').appendTo($(".orderType1"));
237
-				} else {
238
-					$('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($(".orderType1"));
239
-				}
240
-			}else if(ns==2){
241
-				
242
-				if(n.F_DictionaryValueId == "468") {
243
-					$('<option value="' + n.F_DictionaryValueId + '" selected="selected">' + n.F_Name + '</option>').appendTo($(".orderType2"));
244
-				} else {
245
-					$('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($(".orderType2"));
246
-				}
247
-			}
248
-			
249 338
 
250
-		})
251
-	
252
-	});
253
-}
254 339
 //区域
255 340
 function getOrderType1() {
256 341
 	$.get(huayi.config.callcenter_url + 'Area/GetAreaList', {
@@ -283,15 +368,13 @@ function changeTreeClick1(event, treeId, treeNode) {
283 368
 	chanId = treeNode.F_Id;
284 369
 	changeName = treeNode.F_AreaName;
285 370
 	areaParent = treeNode.getPath();
286
-	if(areaParent[2]) {
371
+	if(areaParent[1]) {
287 372
 		areaParent1 = areaParent[0].F_AreaName
288 373
 		areaParent2 = areaParent[1].F_AreaName
289
-		areaParent3 = areaParent[2].F_AreaName
290
-		$('#typeclass1').val(areaParent1 + "/" + areaParent2 + "/" + areaParent3);
291
-		$('#typeclass_market1').val(areaParent1 + "/" + areaParent2 + "/" + areaParent3);
374
+		$('#typeclass1').val(areaParent1 + "/" + areaParent2 );
375
+		$('#typeclass_market1').val(areaParent1 + "/" + areaParent2);
292 376
 		$('.inps2').val(areaParent1);
293 377
 		$('.inps3').val(areaParent2);
294
-		$('.inps4').val(areaParent3);
295 378
 	} else {
296 379
 		layer.msg("请选择最下级菜单");
297 380
 	}
@@ -319,6 +402,7 @@ $('.treeList_market1').mouseleave(function() {
319 402
 })
320 403
 //客服部保存
321 404
 function saveCustomer() {
405
+	
322 406
 	$.ajax({
323 407
 		type: "post",
324 408
 		url: huayi.config.callcenter_url + "WorkOrder/EditWorkOrder",
@@ -336,10 +420,11 @@ function saveCustomer() {
336 420
 			batchnumber: $('#batchNumber').val(), //生产批号     
337 421
 			userdate: $('#userDate').val(), //使用日期  userDate  
338 422
 			source: $('#DicValueList').val(), //工单来源
339
-			type: $('.orderType1').val(), //工单类型id
340
-			area: $('.inps2').val(), //区域
341
-			province: $('.inps3').val(), //省
342
-			city: $('.inps4').val(), //市
423
+			type: $('#orderType1').val(), //工单类型id
424
+			smalltype:$(".complaintType").val(),
425
+			area: $('#areaInps').val(), //区域
426
+			province: $('.inps2').val(), //省
427
+			city: $('.inps3').val(), //市
343 428
 			content:$('#content').val(), //事件描述     
344 429
 			vipid: $('#vipName').val(), //专员号码     
345 430
 			vipphone: $('#vipTel').val(), //专员号码     
@@ -358,9 +443,8 @@ function saveCustomer() {
358 443
 	});
359 444
 
360 445
 }
361
-//市场部保存
446
+//杜康组保存
362 447
 function saveMarket() {
363
-	alert("dfd");
364 448
 	if($('#name_market').val() == '') {
365 449
 		layer.confirm('请输入姓名!', {
366 450
 			icon: 2,
@@ -392,19 +476,21 @@ function saveMarket() {
392 476
 			workid: id,
393 477
 			cusname: $('#name').val(), //姓名
394 478
 			cusphone: $('#tel').val(), //号码
395
-			area: $('.inps2').val(), //区域
479
+			area: $('#areaInps').val(), //区域
396 480
 			vipid: $("#customerName").val(), //专员id     
397 481
 			vipphone:$("#customerTel").val(), //专员号码     
398 482
 			source: $('#DicValueList').val(), //工单来源
483
+			producttype: $('#productType').val(), //产品类别
484
+			smalltype:$(".complaintType").val(),
399 485
 			productname: $('#productname').val(), //产品名称
400 486
 			batchnumber: $('#batchNumber').val(), //生产批号     
401 487
 			buyaddress: $('#buyAddress').val(), //购买地址  
402
-			productdate: $('#proDuctdate').val(),
403
-			buydate: $('.buyDate').val(), //购买日期
404
-			userdate: $('.userDate').val(), //使用日期  userDate  
488
+			productdate: $('#proDuctdate').val(), //生产日期
489
+			buydate: $('#buyDate').val(), //购买日期
490
+			userdate: $('#userDate').val(), //使用日期  userDate  
405 491
 			type: $('.orderType2').val(), //工单类型id
406
-			province: $('.inps3').val(), //省
407
-			city: $('.inps4').val(), //市
492
+			province: $('.inps2').val(), //省
493
+			city: $('.inps3').val(), //市
408 494
 			content:$('#content').val(), //事件描述     
409 495
 			isback:$("#sendBack").val(),
410 496
 			callid: $("#CallID").val()
@@ -431,7 +517,6 @@ function clear() {
431 517
 		$('#testInput2_input').val(''); //反馈单位
432 518
 		$('#orderSource').val(''); //工单来源
433 519
 		$('#typeclassId').val(''); //工单类型id
434
-
435 520
 		$('#State').val(''); //工单状态id   
436 521
 		$('#express').val(''); //快递信息     
437 522
 		$('#remark1').val(''); //备注一     

+ 7 - 2
CallCenterWeb.UI/keHuManager/addCommissFile.html

@@ -43,14 +43,19 @@
43 43
 							</td>
44 44
 						</tr>
45 45
 						<tr>
46
-							<th>区域:</th>
46
+							<th>区域: </th>
47
+							<td>
48
+								<input type="text" id="areaInps"  style="padding-left: 10px;" />
49
+							</td>
50
+						</tr>
51
+						<tr>
52
+							<th>省市:</th>
47 53
 							<td>
48 54
 								<div class="form-inline addJsz_select_cus">
49 55
 									<div class="form-group">
50 56
 										<input type="text" class="inps inps1"  style="width: 180px;"/>
51 57
 										<input type="text" class="inps2">
52 58
 										<input type="text" class="inps3">
53
-										<input type="text" class="inps4">
54 59
 										<i class="xl xl_one"></i>
55 60
 										<div class="addTree xlAdd">
56 61
 											<ul id="addTreeDemo" class="ztree">

+ 6 - 1
CallCenterWeb.UI/keHuManager/addCustomerFile.html

@@ -42,6 +42,12 @@
42 42
 							</td>
43 43
 						</tr>
44 44
 						<tr>
45
+							<th>区域: </th>
46
+							<td>
47
+								<input type="text" id="areaInps"  style="padding-left: 10px;" />
48
+							</td>
49
+						</tr>
50
+						<tr>
45 51
 							<th>区域:</th>
46 52
 							<td>
47 53
 								<div class="form-inline addJsz_select_cus">
@@ -49,7 +55,6 @@
49 55
 										<input type="text" class="inps inps1"  style="width: 180px;"/>
50 56
 										<input type="text" class="inps2">
51 57
 										<input type="text" class="inps3">
52
-										<input type="text" class="inps4">
53 58
 										<i class="xl xl_one"></i>
54 59
 										<div class="addTree xlAdd">
55 60
 											<ul id="addTreeDemo" class="ztree">

+ 10 - 15
CallCenterWeb.UI/keHuManager/js/addCommissioner.js

@@ -21,19 +21,14 @@ $(document).ready(function() {
21 21
 			});
22 22
 			return;
23 23
 		}
24
-		if(!reg.test($.trim($(".mobile").val()))) {
25
-			layer.confirm('请输入正确的联系电话', {
26
-				btn: ['确定']
27
-			});
28
-			return;
29
-		}
24
+		
30 25
 		
31 26
 		$.post(huayi.config.callcenter_url + 'Customer/AddCustomer', {
32 27
 			id:id,
33 28
 			type:2,
34
-			area: $('.inps2').val(),
35
-			province: $('.inps3').val(),
36
-			city: $('.inps4').val(),
29
+			area: $('#areaInps').val(),
30
+			province: $('.inps2').val(),
31
+			city: $('.inps3').val(),
37 32
 			tel: $('.mobile').val(),
38 33
 			name: $('.Customer').val(),
39 34
 			"token": $.cookie("token")
@@ -64,10 +59,10 @@ $(document).ready(function() {
64 59
 					$("#customerType option:selected").text("专员");
65 60
 				}
66 61
 				$("#testInput4").val(con.F_CustomerIndustry);
67
-				$(".inps1").val(con.F_Area+"/"+con.F_Province+"/"+con.F_City);
62
+				$("#areaInps").val(con.F_Area);
63
+				$(".inps1").val(con.F_Province+"/"+con.F_City);
68 64
 				$(".inps2").val(con.F_Area);
69 65
 				$(".inps3").val(con.F_Province);
70
-				$(".inps4").val(con.F_City);
71 66
 				$(".mobile").val(con.F_Phone);
72 67
 				$(".Customer").val(con.F_Name);
73 68
 			}
@@ -111,14 +106,14 @@ function addTreeClick(event, treeId, treeNode) {
111 106
 		addPid=treeNode.F_Id;
112 107
 		xlName = treeNode.F_AreaName;
113 108
 		areaParent=treeNode.getPath();
114
-		if (areaParent[2]) {
109
+		if (areaParent[1]) {
115 110
 			areaParent1=areaParent[0].F_AreaName
116 111
 			areaParent2=areaParent[1].F_AreaName
117
-			areaParent3=areaParent[2].F_AreaName
118
-			$('.inps1').val(areaParent1+"/"+areaParent2+"/"+areaParent3);
112
+			$('#typeclass1').val(areaParent1+"/"+areaParent2);
113
+			$('#typeclass_market1').val(areaParent1+"/"+areaParent2);
114
+			$('.inps1').val(areaParent1+"/"+areaParent2);
119 115
 			$('.inps2').val(areaParent1);
120 116
 			$('.inps3').val(areaParent2);
121
-			$('.inps4').val(areaParent3);
122 117
 		}else{
123 118
 			layer.msg("请选择最下级菜单");
124 119
 		}

+ 10 - 15
CallCenterWeb.UI/keHuManager/js/addCustomer.js

@@ -21,19 +21,14 @@ $(document).ready(function() {
21 21
 			});
22 22
 			return;
23 23
 		}
24
-		if(!reg.test($.trim($(".mobile").val()))) {
25
-			layer.confirm('请输入正确的联系电话', {
26
-				btn: ['确定']
27
-			});
28
-			return;
29
-		}
24
+		
30 25
 		
31 26
 		$.post(huayi.config.callcenter_url + 'Customer/AddCustomer', {
32 27
 			id:id,
33 28
 			type:1,
34
-			area: $('.inps2').val(),
35
-			province: $('.inps3').val(),
36
-			city: $('.inps4').val(),
29
+			area: $('#areaInps').val(),
30
+			province: $('.inps2').val(),
31
+			city: $('.inps3').val(),
37 32
 			tel: $('.mobile').val(),
38 33
 			name: $('.Customer').val(),
39 34
 			"token": $.cookie("token")
@@ -63,10 +58,10 @@ $(document).ready(function() {
63 58
 					$("#customerType option:selected").text("专员");
64 59
 				}
65 60
 				$("#testInput4").val(con.F_CustomerIndustry);
66
-				$(".inps1").val(con.F_Area+"/"+con.F_Province+"/"+con.F_City);
61
+				$("#areaInps").val(con.F_Area);
62
+				$(".inps1").val(con.F_Province+"/"+con.F_City);
67 63
 				$(".inps2").val(con.F_Area);
68 64
 				$(".inps3").val(con.F_Province);
69
-				$(".inps4").val(con.F_City);
70 65
 				$(".mobile").val(con.F_Phone);
71 66
 				$(".Customer").val(con.F_Name);
72 67
 			}
@@ -110,14 +105,14 @@ function addTreeClick(event, treeId, treeNode) {
110 105
 		addPid=treeNode.F_Id;
111 106
 		xlName = treeNode.F_AreaName;
112 107
 		areaParent=treeNode.getPath();
113
-		if (areaParent[2]) {
108
+		if (areaParent[1]) {
114 109
 			areaParent1=areaParent[0].F_AreaName
115 110
 			areaParent2=areaParent[1].F_AreaName
116
-			areaParent3=areaParent[2].F_AreaName
117
-			$('.inps1').val(areaParent1+"/"+areaParent2+"/"+areaParent3);
111
+			$('#typeclass1').val(areaParent1+"/"+areaParent2);
112
+			$('#typeclass_market1').val(areaParent1+"/"+areaParent2);
113
+			$('.inps1').val(areaParent1+"/"+areaParent2);
118 114
 			$('.inps2').val(areaParent1);
119 115
 			$('.inps3').val(areaParent2);
120
-			$('.inps4').val(areaParent3);
121 116
 		}else{
122 117
 			layer.msg("请选择最下级菜单");
123 118
 		}

+ 0 - 8
CallCenterWeb.UI/login.html

@@ -102,22 +102,14 @@
102 102
                                 	记住密码
103 103
                             </label>
104 104
                         </div>
105
-                        <!--<div class="fpassword">
106
-                            <a href="#" title="忘记密码">忘记秘密?</a>
107
-                        </div>-->
108 105
                     </div>
109 106
                     <div class="btns" type="button">登录</div>
110
-                    <!--<div class="fregister">
111
-                        <span>还没有账号?</span>
112
-                        <a href="#" title="立即注册">立即注册&gt;&gt;</a>
113
-                    </div>-->
114 107
                     <div class="signfooter">
115 108
                         <a href="ExeWork/LeCallCenterSetup.exe">下载客户端|</a>
116 109
                         <a href="ExeWork/Microsoft.NET4.5.2.exe">下载安装环境|</a>
117 110
                         <a href="ExeWork/vc_redist.x86.exe">安装包异常补充包</a>
118 111
                     </div>
119 112
                 </div>
120
-
121 113
             </div>
122 114
         </div>
123 115
     </div>

+ 44 - 14
CallCenterWeb.UI/widgets.html

@@ -417,7 +417,7 @@
417 417
                     <b class="rowTitle">工单信息</b>
418 418
                     <div style="margin-top: 30px; width: 100%;">
419 419
                         <div class="col-md-3 clear">
420
-                            <div class="widgets  p-xl  ss" id="hx" style="height: 300px;">
420
+                            <div class="widgets  p-xl  ss" id="hx" style="height: 280px; width: 200px; margin: 0 auto;">
421 421
                                 <!--<div style="margin-bottom: 50px;">
422 422
                                 <h2 class="text-center">
423 423
                                     <span class="lazur size-14">总计</span>
@@ -447,7 +447,6 @@
447 447
                                             </div>
448 448
                                         </div>
449 449
                                     </div>
450
-
451 450
                                 </div>
452 451
                                 <div class="col-sm-4" style="margin-right: 5px;">
453 452
                                     <div class="row bc min-padding bg-yellow">
@@ -483,7 +482,7 @@
483 482
                 <div class="ibox float-e-margins mt">
484 483
                     <div class="ibox-content">
485 484
                         <div class="flot-chart">
486
-                            <div class="flot-chart-content" id="flot-pie-chart" style="height: 300px;width: 110%;"></div>
485
+                            <div class="flot-chart-content" id="flot-pie-chart" style="height: 300px;width: 100%;"></div>
487 486
                         </div>
488 487
                     </div>
489 488
                 </div>
@@ -544,19 +543,39 @@
544 543
         //图一
545 544
         var myChart1 = echarts.init(document.getElementById('flot-pie-chart'));
546 545
         var option1 = {
547
-
548
-            tooltip: {},
546
+			title: {
547
+						text: '今日每小时的总通话量和接通量',
548
+						x: 'left',
549
+						textStyle: {
550
+							color: '#333',
551
+							fontWeight: '500',
552
+							fontSize: 18
553
+						},
554
+					},
555
+			legend: {
556
+						orient: 'horizontal',
557
+						x: 'right',
558
+						top: 20,
559
+						data: ['总通话量', '接通量']
560
+					},		
561
+            tooltip: {
562
+            	trigger: 'item',
563
+				formatter: "{b}点,{a}为{c}通"
564
+            },
549 565
 
550 566
             xAxis: {
567
+            	name: '时间',
551 568
                 data: ["01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24",],
552 569
                 axisLabel: {
553 570
                     interval: 0,//横轴信息全部显示
554 571
                     rotate: -0,//-30度角倾斜显示
555 572
                 }
556 573
             },
557
-            yAxis: {},
574
+            yAxis: {
575
+            	name: '数量'
576
+            },
558 577
             series: [{
559
-                name: '业绩',
578
+            	name: '总通话量',
560 579
                 type: 'bar',
561 580
                 itemStyle: {
562 581
                     normal: {
@@ -567,7 +586,7 @@
567 586
                 barMaxWidth: '100',
568 587
                 data: [51, 30, 40, 25, 80, 40, 42, 86, 50, 26, 12, 30, 55, 15, 18, 55, 28, 26, 50, 46, 98, 66, 50, 85]
569 588
             }, {
570
-                name: '量',
589
+                name: '接通量',
571 590
                 type: 'bar',
572 591
                 itemStyle: {
573 592
                     normal: {
@@ -582,6 +601,7 @@
582 601
         function telhour() {
583 602
             $.getJSON(huayi.config.callcenter_url + 'Index/GetTelRecordsByHour', { "token": $.cookie("token") }, function (result) {
584 603
                 if (result.state.toLowerCase() == "success") {
604
+                	
585 605
                     option1.series[0].data = result.data.total;
586 606
                     option1.series[1].data = result.data.count;
587 607
                     myChart1.setOption(option1);
@@ -673,7 +693,7 @@
673 693
         //图2
674 694
         var myChart2 = echarts.init(document.getElementById('hx'));
675 695
         var option2 = {
676
-
696
+			color: ['#67aefe', '#ea76dd'],
677 697
             title: {
678 698
                 text: '总计',
679 699
                 subtext: '10000',
@@ -684,7 +704,12 @@
684 704
                     fontSize: 16
685 705
                 }
686 706
             },
687
-            color: ['#bf8bd5', '#68cbcf'],
707
+           legend: {
708
+						orient: 'horizontal',
709
+						x: 'center',
710
+						bottom: 50,
711
+						data: ['今日完成量', '今日待完成量']
712
+					},
688 713
             series: [{
689 714
                 type: 'pie',
690 715
                 radius: ['50%', '80%'],
@@ -710,10 +735,15 @@
710 735
                         show: false
711 736
                     }
712 737
                 },
713
-                data: [
714
-                    { value: 335, name: '直接访问' },
715
-                    { value: 210, name: '邮件营销' }
716
-                ]
738
+                data: [{
739
+						value: 0,
740
+						name: '今日完成量'
741
+					}, {
742
+						value: 100,
743
+						name: '今日待完成量'
744
+					},
745
+
746
+				]
717 747
             }]
718 748
         };
719 749
         function worktotal() {