liuyifan 5 vuotta sitten
vanhempi
commit
20bf6489e4

+ 1 - 1
CallCenterWeb.UI/Script/Common/huayi.config.js

@@ -5,7 +5,7 @@ huayi.config = {
5 5
    //callcenter_url: "http://localhost:7456/",//生产环境 前端Web站IP和端口
6 6
    // callcenter_url: "http://192.168.4.18:4687/",//生产环境 前端Web站IP和端口
7 7
     callcenter_url: "http://192.168.8.20:1026/",//生产环境 前端Web站IP和端口
8
-    socket_ip: "192.168.8.4",//WebSocket通讯ip
8
+    socket_ip: "192.168.8.7",//WebSocket通讯ip
9 9
     socket_port: "8081",    //WebSocket通讯端口
10 10
     menuworktime: 1000 * 60,    //菜单工单数量刷新间隔
11 11
     indextime: 1000 * 60 * 2         //首页报表刷新间隔

+ 95 - 15
CallCenterWeb.UI/callScreen/call.js

@@ -1,8 +1,13 @@
1 1
 
2 2
 //来电时传输的数据
3
-var Number = helper.request.queryString("Number");
3
+// var Number = helper.request.queryString("Number");
4
+var Number = "345";
5
+
4 6
 var CallID = helper.request.queryString("CallID");
5 7
 $(document).ready(function () {
8
+    //获取省
9
+    getProvinceCounty($("#customerProvince"), 0, "请选择省")
10
+
6 11
     //来电弹屏
7 12
     // laydate.skin('molv'); 
8 13
     laydate({
@@ -75,6 +80,13 @@ $(document).ready(function () {
75 80
                             $("#shengshi").val(result.data.F_Province + "/" + result.data.F_City); //省份
76 81
                             $('.khprovince').val(result.data.F_Province);
77 82
                             $('.khcity').val(result.data.F_City);
83
+                            $("#customerProvince option:selected").text(result.data.F_Province)
84
+                            $("#customerProvince option:selected").val(result.data.F_Province)
85
+                            $("#customerCity option:selected").text(result.data.F_City)
86
+                            $("#customerCity option:selected").val(result.data.F_City)
87
+                            $("#customerCounty option:selected").text(result.data.F_County)
88
+                            $("#customerCounty option:selected").val(result.data.F_County)
89
+                            $("#customerAddress").val(result.data.F_Address)
78 90
                         } else {
79 91
                             $("#shengshi").val('');
80 92
                         }
@@ -262,12 +274,20 @@ $(document).ready(function () {
262 274
             });
263 275
             return;
264 276
         }
277
+        if (!$(".ldtel1").val()) {
278
+            layer.confirm('请输客户入电话!', {
279
+                btn: ['确定']
280
+            });
281
+            return;
282
+        }
265 283
         $.post(huayi.config.callcenter_url + 'Customer/SaveCustomer', {
266 284
             id: $("#khid").val(),
267 285
             type: 1,
268 286
             name: $(".khmc").val(),
269
-            province: $('.khprovince').val(), //省份
270
-            city: $('.khcity').val(), //城市
287
+            province: $("#customerProvince option:selected").text() === "请选择省" ? "" : $("#customerProvince option:selected").text(),
288
+            city: $("#customerCity option:selected").text() === "请选择市" ? "" : $("#customerCity option:selected").text(),
289
+            country: $("#customerCounty option:selected").text() === "请选择县/区" ? "" : $("#customerCounty option:selected").text(),
290
+            address: $("#customerAddress").val(),
271 291
             tel: $(".ldtel1").val(),
272 292
             sex: $("#customerSex").val(),
273 293
             "token": $.cookie("token")
@@ -284,8 +304,10 @@ $(document).ready(function () {
284 304
                 $("#formName").val($(".khmc").val());//姓名
285 305
                 $("#formTel").val($(".ldtel1").val());//电话
286 306
                 $("#formSex").val($("#customerSex").val());//性别
287
-                $("#formProvince").val($('.khprovince').val());//省
288
-                $("#formCity").val($('.khcity').val());//市
307
+                $("#formProvince option:selected").text($('#customerProvince option:selected').text());//省
308
+                $("#formCity option:selected").text($('#customerCity option:selected').text());//市
309
+                $("#formCounty option:selected").text($('#customerCounty option:selected').text());//县/区
310
+                $("#formAddress").val($('#customerAddress').val());//详细地址
289 311
             }
290 312
         })
291 313
     })
@@ -442,6 +464,36 @@ function loadOld() {
442 464
     }
443 465
 }
444 466
 
467
+//格式化历史记录内处理方式
468
+function formatterDealType(val, row) {
469
+	//处理方式0:IVR处理1骚扰电话2自助服务3转值班电话4留言5呼损6人工处理
470
+	var str = '-';
471
+	switch(val) {
472
+		case 0:
473
+			str = 'IVR处理';
474
+			break;
475
+		case 1:
476
+			str = '骚扰电话';
477
+			break;
478
+		case 2:
479
+			str = '自助服务';
480
+			break;
481
+		case 3:
482
+			str = '转值班电话';
483
+			break;
484
+		case 4:
485
+			str = '留言';
486
+			break;
487
+		case 5:
488
+			str = '呼损';
489
+			break;
490
+		case 6:
491
+			str = '人工处理';
492
+			break;
493
+	}
494
+	return str;
495
+}
496
+
445 497
 // 工单编号
446 498
 function View(val, row) {
447 499
     return '<div class="imgs" ><a class="view" onclick= btn_register_details("' + row.F_ID + '") >' + val + '</a></div>';
@@ -571,13 +623,13 @@ function changeTreeClick1(event, treeId, treeNode) {
571 623
 };
572 624
 //清空
573 625
 function Clean() {
574
-    $('#formName').val('');
575
-    $('#formTel').val('');
576
-    $('#formSex').val('');
577
-    $('#formProvince').val('');
578
-    $('#formCity').val('');
579
-    $('#formCounty').val('');
580
-    $('#formAddress').val('');
626
+    // $('#formName').val('');
627
+    // $('#formTel').val('');
628
+    // $('#formSex').val('');
629
+    // $('#formProvince').val('');
630
+    // $('#formCity').val('');
631
+    // $('#formCounty').val('');
632
+    // $('#formAddress').val('');
581 633
     $('#formComplainedUnit').val('');
582 634
     $('#formRegistrationContent').val('');
583 635
     $('#formRegistrationRemark').val('');
@@ -585,8 +637,8 @@ function Clean() {
585 637
 
586 638
 //保存
587 639
 function saveCustomer() {
588
-    if (!$(".khid").val()) {
589
-        layer.confirm('请先保存用户基本信息!', {
640
+    if (!$("#khid").val()) {
641
+        layer.confirm('请先保存用户档案!', {
590 642
             btn: ['确定']
591 643
         });
592 644
         return;
@@ -621,4 +673,32 @@ function saveCustomer() {
621 673
             }
622 674
         }
623 675
     });
624
-}
676
+}
677
+
678
+/* 
679
+    获取 省 市 县/区
680
+    parameter:
681
+        pid     int
682
+*/
683
+function getProvinceCounty(element, pid, text) {
684
+    element.empty();
685
+    element.append('<option value="">'+ text +'</option>');
686
+	$.getJSON(huayi.config.callcenter_url + "RegionCategory/GetCountyList", {
687
+		"token": $.cookie("token"),
688
+		pid: pid,
689
+	}, function (data) {
690
+		if (data.state.toLowerCase() == "success") {
691
+			var content = data.data;
692
+			$(content).each(function (i, n) {
693
+            	element.append("<option value='" + n.F_RegionId + "'>" + n.F_RegionName + "</option>");
694
+			})
695
+		}
696
+	})
697
+}
698
+
699
+$("#customerProvince").on('change',function(){
700
+	getProvinceCounty($("#customerCity"), $("#customerProvince").val(), "请选择市");
701
+});
702
+$("#customerCity").on('change',function(){
703
+	getProvinceCounty($("#customerCounty"), $("#customerCity").val(), "请选择县/区");
704
+});

+ 34 - 1
CallCenterWeb.UI/callScreen/callScreen.html

@@ -532,6 +532,36 @@
532 532
                                     <option value="女">女</option>
533 533
                                 </select>
534 534
                             </td>
535
+                        </tr>
536
+                        <tr>
537
+							<th>省:</th>
538
+							<td>
539
+                                <select class="form-control" id="customerProvince">
540
+                                    <option value ="">请选择省</option>
541
+                                </select>
542
+                            </td>
543
+						</tr>
544
+                        <tr>
545
+							<th>市:</th>
546
+							<td>
547
+                                <select class="form-control" id="customerCity">
548
+                                    <option value ="">请选择市</option>
549
+                                </select>
550
+                            </td>
551
+						</tr>
552
+                        <tr>
553
+							<th>县:</th>
554
+							<td>
555
+                                <select class="form-control" id="customerCounty">
556
+                                    <option value ="">请选择县/区</option>
557
+                                </select>
558
+                            </td>
559
+						</tr>
560
+                        <tr>
561
+							<th>详细地址:</th>
562
+							<td>
563
+                                <input type="text" value="" id="customerAddress" />
564
+                            </td>
535 565
 						</tr>
536 566
 						<tr>
537 567
 							<th>归属地:</th>
@@ -607,7 +637,10 @@
607 637
                                                 <th>性别:</th>
608 638
                                                 <td>
609 639
                                                     <div class="form-group">
610
-                                                        <input type="text" class="form-control" id="formSex" disabled="disabled" />
640
+                                                        <select class="form-control" id="formSex" disabled="disabled">
641
+                                                            <option value="男">男</option>
642
+                                                            <option value="女">女</option>
643
+                                                        </select>
611 644
                                                     </div>
612 645
                                                 </td>
613 646
                                             </tr>

BIN
CallCenterWeb.UI/img/xx_bg_04.png


+ 1 - 1
CallCenterWeb.UI/index.html

@@ -960,7 +960,7 @@
960 960
                 <ul>
961 961
                     <li class="top13" style="width: 100%;"></li>
962 962
                 </ul>
963
-                <span class="fr">Copyright © 加一信息 All Rights Reserved</span>
963
+                <!-- <span class="fr">Copyright © 加一信息 All Rights Reserved</span> -->
964 964
 
965 965
             </div>
966 966
         </div>

+ 10 - 1
CallCenterWeb.UI/keHuManager/archivesManage/js/archivesManage.js

@@ -230,4 +230,13 @@ $("#searchProvince").on('change',function(){
230 230
 });
231 231
 $("#searchCity").on('change',function(){
232 232
 	getProvinceCounty($("#searchCounty"), $("#searchCity").val(), "请选择县/区");
233
-});
233
+});
234
+
235
+// 按回车搜索
236
+document.onkeydown = function (e) {
237
+    var theEvent = window.event || e;
238
+    var code = theEvent.keyCode || theEvent.which || theEvent.charCode;
239
+    if (code == 13) {
240
+        initTable(token);
241
+    }
242
+}

+ 2 - 2
CallCenterWeb.UI/login.html

@@ -30,7 +30,7 @@
30 30
         <div class="row clearfix mainCon">
31 31
             <div class="mainCon_left col-sm-7">
32 32
                 <div class="img_box">
33
-                    <img src="img/xx_bg_03.png" alt="" style="vertical-align: middle;display: inline-block; width: 95%;" />
33
+                    <img src="img/xx_bg_04.png" alt="" style="vertical-align: middle;display: inline-block; width: 95%;" />
34 34
                     <span class="center"></span>
35 35
                 </div>
36 36
             </div>
@@ -85,7 +85,7 @@
85 85
             <a href="ExeWork/Microsoft.NET4.0.exe">下载安装环境</a> | 
86 86
             <a href="ExeWork/vcredist_x86.exe">安装异常补充包</a> | 
87 87
             技术服务热线:400-637-1311</div> -->
88
-            <p class="Copy" style="margin-top: 13px;">Copyright©2010-2020  加一科技 版权所有 版本号 <span class="version"></span></p>
88
+            <!-- <p class="Copy" style="margin-top: 13px;">Copyright©2010-2020  加一科技 版权所有 版本号 <span class="version"></span></p> -->
89 89
         </div>
90 90
         <span class="center"></span>
91 91
     </div>

+ 317 - 0
CallCenterWeb.UI/registrationManagement/registrationList/addRegistrationList.html

@@ -0,0 +1,317 @@
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
+		<script src="../../Script/Common/huayi.load.js"></script>
8
+		<script src="../../Script/Common/huayi.config.js"></script>
9
+		<link rel="stylesheet" href="../../css/WorkOrder/Search.css">
10
+		<link rel="stylesheet"  href="../../js/bootstrap-select/css/bootstrap-select.css"/>
11
+		<link rel="stylesheet" href="../../css/WorkOrder/jquery.editable-select.css" />
12
+		<link rel="stylesheet" href="../../js/comboSelect/combo.select.css" />
13
+		<link rel="stylesheet"  href="../../css/init.css"/>
14
+		<title>手工制单</title>
15
+		<style>
16
+			ul li {
17
+				float: initial;
18
+				list-style: none;
19
+			}
20
+			
21
+			.common {
22
+				width: 100%;
23
+				text-align: center;
24
+				padding: 10px 15px;
25
+			}
26
+			
27
+			.common table {
28
+				width: 100%;
29
+			}
30
+			
31
+			.common table th {
32
+				padding: 5px 8px 5px 0;
33
+				text-align: right;
34
+				/* width: 20%;*/
35
+			}
36
+			
37
+			.common table td {
38
+				padding: 6px 0 5px 10px;
39
+				text-align: left;
40
+				color: #717171;
41
+				line-height: 200%;
42
+			}
43
+			
44
+			.common table td textarea {
45
+				width: 100%;
46
+				vertical-align: middle;
47
+				resize: none;
48
+				outline: none;
49
+			}
50
+			
51
+			.time-box {
52
+				display: inline-block;
53
+				position: relative;
54
+				width: 100%;
55
+			}
56
+			
57
+			i.tub {
58
+				position: absolute;
59
+				right: 8px;
60
+				top: 8px;
61
+				font-size: 18px;
62
+				color: #00a0ca;
63
+			}
64
+			
65
+			.treeList {
66
+				top: 34px!important;
67
+				border: 1px solid #e5e6e7!important;
68
+				border-top: 0;
69
+				height: auto!important;
70
+			}
71
+			
72
+			#TreeDemo li {
73
+				float: initial;
74
+			}
75
+			
76
+			#typeclass {
77
+				background: #fff;
78
+			}
79
+			.treeList1 {
80
+				top: 34px!important;
81
+				border: 1px solid #e5e6e7!important;
82
+				border-top: 0;
83
+				height: auto!important;
84
+			}
85
+			.addTree1 {
86
+			    background: #fff;
87
+			    position: absolute;
88
+			    width: 100%;
89
+			    border: 1px solid darkgrey;
90
+			    right: 0;
91
+			    top: 26px;
92
+			    z-index: 10;
93
+			    display: none;
94
+			    height: 100px;
95
+			    overflow-y: auto;
96
+			}
97
+			.form-group {
98
+				margin-bottom: 0;
99
+			}
100
+			
101
+			.bootstrap-select>.dropdown-toggle.bs-placeholder {
102
+				background-color: #ffffff!important;
103
+				border-color: #e5e6e7!important;
104
+			}
105
+			
106
+			.filter-option {
107
+				color: #676b6d;
108
+			}
109
+			
110
+			.bootstrap-select>.dropdown-toggle.btn-default {
111
+				background-color: #ffffff!important;
112
+				border-color: #e5e6e7!important;
113
+				color: #555;
114
+			}
115
+			
116
+			.testInput-list {
117
+				position: absolute;
118
+				z-index: 999;
119
+				border: 1px solid rgb(204, 204, 204);
120
+				background-color: rgb(255, 255, 255);
121
+				z-index: 99999;
122
+				padding-left: 0;
123
+				width: 97.6%;
124
+				display: none;
125
+				height: 400px;
126
+				overflow-y: auto;
127
+			}
128
+			
129
+			.testInput-list li {
130
+				padding: 5px;
131
+			}
132
+			
133
+			.testInput-list li:hover {
134
+				background-color: #E43926;
135
+				color: #fff;
136
+			}
137
+						
138
+			.ke-container {
139
+				width: 100%!important;
140
+			}
141
+			button[disabled]{
142
+				background-color: #999;
143
+			}
144
+			.complainDiv2{
145
+				display: none;
146
+			}
147
+			.r_order_type {
148
+				text-align: left;
149
+			}
150
+			
151
+			.radio-inline {
152
+				padding-left: 2px;
153
+			}
154
+			.radio-input{
155
+				vertical-align: -2px;
156
+			}
157
+			
158
+			#formRegistrationType{
159
+                width: 100%;
160
+			}
161
+			#isAssign{
162
+				width: 100%;
163
+			}
164
+			#isOver{
165
+				width: 100%;
166
+			}
167
+			.workOrderTypeSpotCheck{
168
+				display: none;
169
+			}
170
+            #formRegistrationType input[type="radio"] {
171
+                margin-top: 5px
172
+            }
173
+            #formRegistrationType label {
174
+                margin-right: 20px
175
+            }
176
+		</style>
177
+	</head>
178
+
179
+	<body class="gray-bg">
180
+		<div class="daoHang clearfix" style="margin-bottom: 20px;">
181
+			<div class="dhLeft">
182
+				<sapn><i class="syIcon"></i>位置:
183
+					<a href="javaScript:;" id="ReIndex">首页</a>&gt;
184
+					<a href="javaScript:;">工单管理</a>&gt;
185
+					<a href="" class="nowPosition">手工制单</a>
186
+				</sapn>
187
+			</div>
188
+		</div>
189
+		<div class="clearfix wrapper wrapper-content animated fadeInRight">
190
+			<div class="common">
191
+				<table class="customerService">
192
+                    <tbody>
193
+                        <tr>
194
+                            <th>电话:</th>
195
+                            <td>
196
+                                <div class="form-group">
197
+                                    <input type="text" class="form-control" id="formTel" />
198
+                                </div>
199
+                            </td>
200
+                            <td colspan="" style="text-align: center;">
201
+                                <button class="btns btnArchives">获取用户档案</button>
202
+                            </td>
203
+                        </tr>
204
+                    	<tr>
205
+							<th>工单类型:</th>
206
+                            <td>
207
+                                <div id="formRegistrationType" class="col-md-6 r_order_type">
208
+                                    <label class="radio-inline">
209
+                                        <input type="radio" name="type" value="1" checked="checked" >咨询
210
+                                     </label>
211
+                                    <label class="radio-inline">
212
+                                       <input type="radio" name="type" value="2" >投诉
213
+                                    </label>
214
+                                    <label class="radio-inline">
215
+                                       <input type="radio" name="type" value="3" >求助
216
+                                    </label>
217
+                                    <label class="radio-inline">
218
+                                        <input type="radio" name="type" value="4" >其他
219
+                                     </label>
220
+                                </div>
221
+                            </td>
222
+                        </tr>
223
+                        <tr>
224
+                            <th>姓名:</th>
225
+                            <td>
226
+                                <div class="form-group">
227
+                                    <input type="text" class="form-control" id="formName" disabled="disabled" />
228
+                                </div>
229
+                            </td>
230
+                            <!-- <th>电话:</th>
231
+                            <td>
232
+                                <div class="form-group">
233
+                                    <input type="text" class="form-control" id="formTel" disabled="disabled" />
234
+                                </div>
235
+                            </td> -->
236
+                            <th>性别:</th>
237
+                            <td>
238
+                                <div class="form-group">
239
+                                    <select class="form-control" id="formSex" disabled="disabled">
240
+                                        <option value="男">男</option>
241
+                                        <option value="女">女</option>
242
+                                    </select>
243
+                                </div>
244
+                            </td>
245
+                        </tr>
246
+                        <tr>
247
+                            <th>省:</th>
248
+                            <td>
249
+                                <div class="form-group">
250
+                                    <select class="form-control" id="formProvince" disabled="disabled">
251
+                                        <option value="">请选择省</option>
252
+                                    </select>
253
+                                </div>
254
+                            </td>
255
+                            <th>市:</th>
256
+                            <td>
257
+                                <div class="form-group">
258
+                                    <select class="form-control" id="formCity" disabled="disabled">
259
+                                        <option value="">请选择市</option>
260
+                                    </select>
261
+                                </div>
262
+                            </td>
263
+                            <th>县/区:</th>
264
+                            <td>
265
+                                <div class="form-group">
266
+                                    <select class="form-control" id="formCounty" disabled="disabled">
267
+                                        <option value="">请选择县/区</option>
268
+                                    </select>
269
+                                </div>
270
+                            </td>
271
+                        </tr>
272
+                        <tr>
273
+                            <th>详细地址</th>
274
+                            <td>
275
+                                <div class="form-group">
276
+                                    <input type="text" class="form-control" id="formAddress" disabled="disabled" />
277
+                                </div>
278
+                            </td>
279
+                        </tr>
280
+                        <tr>
281
+                            <th>被投诉单位:</th>
282
+                            <td>
283
+                                <div class="form-group">
284
+                                    <input type="text" class="form-control" id="formComplainedUnit" />
285
+                                </div>
286
+                            </td>
287
+                        </tr>
288
+                        <tr>
289
+                            <th>登记内容/投诉事项:</th>
290
+                            <td colspan="8">
291
+                                <textarea name="" rows="4" cols="" placeholder="" id="formRegistrationContent" style="margin-top:10px;"></textarea>
292
+                            </td>
293
+                        </tr>
294
+                        <tr>
295
+                            <th>备注:</th>
296
+                            <td colspan="8">
297
+                                <textarea name="" rows="4" cols="" placeholder="" id="formRegistrationRemark" style="margin-top:10px;"></textarea>
298
+                            </td>
299
+                        </tr>
300
+                        <tr>
301
+                            <td colspan="8" style="text-align: center;">
302
+                                <button class="btns customerSubmit">保存</button>
303
+                            </td>
304
+                        </tr>
305
+                    </tbody>
306
+                </table>
307
+			</div>
308
+        </div>
309
+		<script src="../../js/bootstrap-select/js/bootstrap-select.js"></script>
310
+		<script src="../../js/WorkOrder/jquery.editable-select.js"></script>
311
+		<script src="../../js/comboSelect/jquery.combo.select.js"></script>
312
+        <script src="../../js/laydate/laydate.js"></script>
313
+		<script src="./js/registrationList.js"></script>
314
+		<script src="./js/addRegistrationList.js"></script>
315
+	</body>
316
+
317
+</html>

+ 84 - 0
CallCenterWeb.UI/registrationManagement/registrationList/js/addRegistrationList.js

@@ -0,0 +1,84 @@
1
+var token = $.cookie("token");
2
+var id = helper.request.queryString("ids");
3
+var cusid;
4
+$(document).ready(function() {
5
+    getRegisterDetail()
6
+})
7
+
8
+//获取用户档案
9
+$(".btnArchives").click(function() {
10
+    $.ajax({
11
+        type: "get",
12
+        url: huayi.config.callcenter_url + "Customer/GetCustomerByTel",
13
+        dataType: 'json',
14
+        async: false,
15
+        data: {
16
+            token: $.cookie("token"),
17
+            tel: $("#formTel").val(),
18
+        },
19
+        success: function (result) {
20
+            if (result.state.toLowerCase() == "success") {
21
+                if (result.data != null) {
22
+                    cusid = result.data.F_Id;
23
+                    $("#formName").val(result.data.F_Name);
24
+                    $("#formSex").val(result.data.F_Sex)
25
+                    $("#formProvince option:selected").text(result.data.F_Province)
26
+                    $("#formProvince option:selected").val(result.data.F_Province)
27
+                    $("#formCity option:selected").text(result.data.F_City)
28
+                    $("#formCity option:selected").val(result.data.F_City)
29
+                    $("#formCounty option:selected").text(result.data.F_County)
30
+                    $("#formCounty option:selected").val(result.data.F_County)
31
+                    $("#formAddress").val(result.data.F_Address)
32
+                } else {
33
+                    layer.confirm('没有获取到用户档案!', {
34
+                        btn: ['确定']
35
+                    });
36
+                }
37
+            } else {
38
+            }
39
+        }
40
+    })
41
+
42
+})
43
+
44
+//保存按钮
45
+$('.customerSubmit').click(function() {
46
+    if (!cusid) {
47
+        layer.confirm('请先获取用户档案!', {
48
+            btn: ['确定']
49
+        });
50
+        return;
51
+    }
52
+    $.post(huayi.config.callcenter_url + 'RegRecords/Save', {
53
+        "token": $.cookie("token"),
54
+        id:id,
55
+        token: $.cookie("token"),
56
+        cusid: cusid, //档案id
57
+        direction: 0, // 0来电,1去电
58
+        type: $('#formRegistrationType input[name="type"]:checked').val(), //登记类型
59
+        complained: $("#formComplainedUnit").val(), //被投诉单位
60
+        content: $("#formRegistrationContent").val(), //登记内容/投诉事项
61
+        remark: $("#formRegistrationRemark").val(), //备注
62
+    }, function(result) {
63
+        result = $.parseJSON(result);
64
+        if(result.state.toLowerCase() == "success") {
65
+            parent.layer.msg("保存成功!");
66
+            Clean()
67
+        }
68
+    })
69
+})
70
+
71
+
72
+//清空
73
+function Clean() {
74
+    $('#formName').val('');
75
+    $('#formTel').val('');
76
+    $('#formSex').val('');
77
+    $('#formProvince').val('');
78
+    $('#formCity').val('');
79
+    $('#formCounty').val('');
80
+    $('#formAddress').val('');
81
+    $('#formComplainedUnit').val('');
82
+    $('#formRegistrationContent').val('');
83
+    $('#formRegistrationRemark').val('');
84
+}

+ 0 - 12
CallCenterWeb.UI/registrationManagement/registrationList/js/edit.js

@@ -7,18 +7,6 @@ $(document).ready(function() {
7 7
 
8 8
 //保存按钮
9 9
 $('.customerSubmit').click(function() {
10
-    if($('#customer_layer').val() == '') {
11
-        layer.confirm('请输入客户姓名!', {
12
-            btn: ['确定']
13
-        });
14
-        return;
15
-    }
16
-    if($('#customer_bedept').val() == '') {
17
-        layer.confirm('请输入客户电话!', {
18
-            btn: ['确定']
19
-        });
20
-        return;
21
-    }
22 10
     $.post(huayi.config.callcenter_url + 'RegRecords/Save', {
23 11
         "token": $.cookie("token"),
24 12
         id:id,

+ 65 - 3
CallCenterWeb.UI/registrationManagement/registrationList/js/registrationList.js

@@ -13,6 +13,8 @@ $(document).ready(function(){
13 13
     $(".search").click(function() {
14 14
         initTable()
15 15
     })
16
+    // getProvinceCounty($("#searchProvince"), 0, "请选择省")
17
+    getFounder($("#searchFounder"))
16 18
 });
17 19
 
18 20
 
@@ -41,8 +43,10 @@ function initTable() {
41 43
         queryParams: function queryParams(params) { //设置查询参数
42 44
             var param = {
43 45
                 token: $.cookie("token"),
44
-                key: $("#searchKeyword").val(), //工单编号
45
-                direction: $("#searchDirection").val(), //方向
46
+                key: $("#searchKeyword").val().replace(/\s+/g, ""),//工单编号
47
+                direction: $("#searchDirection").val(),//方向
48
+                type: $("#searchRegistrationType").val(),//登记类型
49
+                usercode: $("#searchFounder").val(),//创建人
46 50
                 pageindex: params.pageNumber, //页码
47 51
                 pagesize: params.pageSize, //条数
48 52
             };
@@ -68,6 +72,13 @@ function formatterRegisterType(val, row) {
68 72
     return formatterRegisterTypeArr[val]
69 73
 }
70 74
 
75
+//呼叫方向
76
+function formatterRegisterDirection(val, row) {
77
+    var formatterRegisterDirectionArr = ["呼入", "呼出"]
78
+    return formatterRegisterDirectionArr[val]
79
+}
80
+
81
+
71 82
 function formatterOperating(val, row) {
72 83
     return '<ul class="tool_downs">' +
73 84
 		'<li><a href="javascript:;" class="aBtn" authorize="yes" id="HY_edit_' + row.F_ID + '" onclick="btn_edit(\'' + row.F_ID + '\')" title="修改">修改</a></li>' +
@@ -120,4 +131,55 @@ function btn_delete (id) {
120 131
         //按钮【按钮二】的回调
121 132
         layer.close(laye)
122 133
     });
123
-}
134
+}
135
+
136
+/* 
137
+    获取 省 市 县/区
138
+    parameter:
139
+        pid     int
140
+*/
141
+function getProvinceCounty(element, pid, text) {
142
+    element.empty();
143
+    element.append('<option value="">'+ text +'</option>');
144
+	$.getJSON(huayi.config.callcenter_url + "RegionCategory/GetCountyList", {
145
+		"token": $.cookie("token"),
146
+		pid: pid,
147
+	}, function (data) {
148
+		if (data.state.toLowerCase() == "success") {
149
+			var content = data.data;
150
+			$(content).each(function (i, n) {
151
+            	element.append("<option value='" + n.F_RegionId + "'>" + n.F_RegionName + "</option>");
152
+			})
153
+		}
154
+	})
155
+}
156
+
157
+$("#searchProvince").on('change',function(){
158
+	getProvinceCounty($("#searchCity"), $("#searchProvince").val(), "请选择市");
159
+});
160
+$("#searchCity").on('change',function(){
161
+	getProvinceCounty($("#searchCounty"), $("#searchCity").val(), "请选择县/区");
162
+});
163
+
164
+//创建人
165
+function getFounder(element) {
166
+    element.empty();
167
+    element.append('<option value="">请选择创建人</option>');
168
+	$.getJSON(huayi.config.callcenter_url + "UserAccount/GetSeatList", {
169
+        "token": $.cookie("token"),
170
+	}, function (data) {
171
+        var content = data.data;
172
+        $(content).each(function (i, n) {
173
+            element.append("<option value='" + n.F_UserCode + "'>" + n.F_UserName + "</option>");
174
+        })
175
+	})
176
+}
177
+
178
+// 按回车搜索
179
+document.onkeydown = function (e) {
180
+    var theEvent = window.event || e;
181
+    var code = theEvent.keyCode || theEvent.which || theEvent.charCode;
182
+    if (code == 13) {
183
+        initTable();
184
+    }
185
+}

+ 37 - 6
CallCenterWeb.UI/registrationManagement/registrationList/registrationList.html

@@ -52,15 +52,44 @@
52 52
 				<div class="pull-left">
53 53
 					<div class="form-inline clearfix">
54 54
 						<div class="form-group">
55
-							<input class="form-control" type="text" id="searchKeyword" placeholder="关键字">
55
+							<input class="form-control" type="text" id="searchKeyword" placeholder="请输入被投诉单位,登记内容" style="width: 220px">
56 56
                         </div>
57 57
                         <div class="form-group">
58 58
 							<select class="form-control" id="searchDirection">
59
-                                <option value="-11">请选择方向</option>
60
-								<option value="0">来电</option>
61
-								<option value="1">去电</option>
59
+                                <option value="-11">请选择呼叫方向</option>
60
+								<option value="0">呼入</option>
61
+								<option value="1">呼出</option>
62 62
 							</select>
63
-						</div>
63
+                        </div>
64
+                        <!-- <div class="form-group">
65
+                            <select class="form-control" id="searchProvince">
66
+                                <option value ="">请选择省</option>
67
+                            </select>
68
+                        </div>
69
+                        <div class="form-group">
70
+                            <select class="form-control" id="searchCity">
71
+                                <option value ="">请选择市</option>
72
+                            </select>
73
+                        </div>
74
+                        <div class="form-group">
75
+                            <select class="form-control" id="searchCounty">
76
+                                <option value ="">请选择县/区</option>
77
+                            </select>
78
+                        </div> -->
79
+                        <div class="form-group">
80
+                            <select class="form-control" id="searchRegistrationType">
81
+                                <option value ="">请选择登记类型</option>
82
+                                <option value ="1">咨询</option>
83
+                                <option value ="2">投诉</option>
84
+                                <option value ="3">求助</option>
85
+                                <option value ="4">其他</option>
86
+                            </select>
87
+                        </div>
88
+                        <div class="form-group">
89
+                            <select class="form-control" id="searchFounder">
90
+                                <option value ="">请选择创建人</option>
91
+                            </select>
92
+                        </div>
64 93
 						<div class="form-group btn-position">
65 94
 							<button class="btns search">搜索</button>
66 95
 						</div>
@@ -75,7 +104,9 @@
75 104
 							<th data-field="CusName" data-align="center">姓名</th>
76 105
 							<th data-field="CusPhone" data-align="center">联系电话</th>
77 106
                             <th data-field="F_Type" data-align="center" data-formatter="formatterRegisterType" >登记类型</th>
78
-							<th data-field="F_Content" data-align="center">登记内容</th>
107
+							<th data-field="F_Complained" data-align="center">被投诉单位</th>
108
+                            <th data-field="F_Content" data-align="center">登记内容</th>
109
+							<th data-field="F_Direction" data-align="center" data-formatter="formatterRegisterDirection">呼叫方向</th>
79 110
                             <th data-field="CreateByName" data-align="center">创建人</th>
80 111
 							<th data-field="F_Remark" data-align="center">备注</th>
81 112
 							<th data-field="F_CreateOn" data-align="center">创建时间</th>

+ 25 - 21
CallCenterWeb.UI/widgets.html

@@ -404,7 +404,7 @@
404 404
                             <i class="fa iconfont fa-4x bg_wj">&#xe61f;</i>
405 405
                         </div>
406 406
                         <div class="col-xs-9 text-left mins-left">
407
-                            <h2 class="size-16 jg min_bottom"> 未接来电</h2>
407
+                            <h2 class="size-16 jg min_bottom"> 今日未接</h2>
408 408
                             <h2 class="font-bold size-15 min_bottom">26</h2>
409 409
                         </div>
410 410
                     </div>
@@ -414,7 +414,7 @@
414 414
         <div class="row">
415 415
             <div class="col-sm-8  " style="width: 60%;">
416 416
                 <div class="left_box rows num_box">
417
-                    <b class="rowTitle">工单信息</b>
417
+                    <b class="rowTitle">登记信息</b>
418 418
                     <div style="margin-top: 30px; width: 100%;">
419 419
                         <div class="col-md-3 clear">
420 420
                             <div class="widgets  p-xl  ss" id="hx" style="height: 280px; width: 200px; margin: 0 auto;">
@@ -431,7 +431,7 @@
431 431
                             <div class="widgets  p-xl  border_left" style="margin-top: 60px;">
432 432
                                 <div class="col-sm-4" style="margin-right: 5px;">
433 433
                                     <div class="row bc min-padding bg-blues">
434
-                                        <h3 class="ff"><span>300</span>单</h3>
434
+                                        <h3 class="ff"><span>10</span>单</h3>
435 435
                                         <div class="progress">
436 436
                                             <div class="progress-bar progress-bar-ff" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 30%;">
437 437
                                             </div>
@@ -441,7 +441,7 @@
441 441
                                 </div>
442 442
                                 <div class="col-sm-4 ">
443 443
                                     <div class="row bc min-padding bg-purple">
444
-                                        <h3 class="ff"><span>300</span>单</h3>
444
+                                        <h3 class="ff"><span>22</span>单</h3>
445 445
                                         <div class="progress">
446 446
                                             <div class="progress-bar progress-bar-ff" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 30%;">
447 447
                                             </div>
@@ -450,7 +450,7 @@
450 450
                                 </div>
451 451
                                 <div class="col-sm-4" style="margin-right: 5px;">
452 452
                                     <div class="row bc min-padding bg-yellow">
453
-                                        <h3 class="ff"><span>300</span>单</h3>
453
+                                        <h3 class="ff"><span>20</span>单</h3>
454 454
                                         <div class="progress">
455 455
                                             <div class="progress-bar progress-bar-ff" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 30%;">
456 456
                                             </div>
@@ -460,17 +460,17 @@
460 460
                                 </div>
461 461
                                 <div class="c-bottom ">
462 462
                                     <ul class="c-b-ul">
463
-                                        <li class="fl Text">今日完成量</li>
463
+                                        <li class="fl Text">今日登记量</li>
464 464
                                     </ul>
465 465
                                 </div>
466 466
                                 <div class="c-bottom ">
467 467
                                     <ul class="c-b-ul">
468
-                                        <li class="fl Text">今日待完成量</li>
468
+                                        <li class="fl Text">昨日登记量</li>
469 469
                                     </ul>
470 470
                                 </div>
471 471
                                 <div class="c-bottom ">
472 472
                                     <ul class="c-b-ul ">
473
-                                        <li class="fl Text">本月待完成量</li>
473
+                                        <li class="fl Text">本月登记量</li>
474 474
                                     </ul>
475 475
                                 </div>
476 476
                             </div>
@@ -613,7 +613,7 @@
613 613
         var option3 = {
614 614
 
615 615
             title: {
616
-                text: '本月话务量及工单量折线图',
616
+                text: '本月话务量及登记量折线图',
617 617
                 x: -20
618 618
             },
619 619
             xAxis: {
@@ -663,7 +663,7 @@
663 663
                 enabled: false
664 664
             },
665 665
             series: [{
666
-                name: '工单量',
666
+                name: '登记量',
667 667
                 data: [7.0, 6.9, 9.5, 14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18.3,
668 668
                     13.9, 9.6, 21.5, 25.2, 26.5, 23.3, 6.9, 9.5, 14.5, 18.2,
669 669
                     14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18.3, 9.6, 21.5, 25.2],
@@ -693,7 +693,7 @@
693 693
         //图2
694 694
         var myChart2 = echarts.init(document.getElementById('hx'));
695 695
         var option2 = {
696
-			color: ['#67aefe', '#ea76dd'],
696
+			color: ['#67aefe', '#ea76dd', '#f95a84'],
697 697
             title: {
698 698
                 text: '总计',
699 699
                 subtext: '10000',
@@ -705,11 +705,11 @@
705 705
                 }
706 706
             },
707 707
            legend: {
708
-						orient: 'horizontal',
709
-						x: 'center',
710
-						bottom: 50,
711
-						data: ['今日完成量', '今日待完成量']
712
-					},
708
+                orient: 'horizontal',
709
+                x: 'center',
710
+                bottom: 20,
711
+                data: ['今日登记量', '昨日登记量', '本月登记量']
712
+            },
713 713
             series: [{
714 714
                 type: 'pie',
715 715
                 radius: ['50%', '80%'],
@@ -736,13 +736,17 @@
736 736
                     }
737 737
                 },
738 738
                 data: [{
739
-						value: 0,
740
-						name: '今日完成量'
739
+						value: 10,
740
+						name: '今日登记量'
741
+					}, {
742
+						value: 22,
743
+						name: '昨日登记量'
741 744
 					}, {
742
-						value: 100,
743
-						name: '今日待完成量'
745
+						value: 20,
746
+						name: '本月登记量'
744 747
 					},
745 748
 
749
+
746 750
 				]
747 751
             }]
748 752
         };
@@ -750,7 +754,7 @@
750 754
             $.getJSON(huayi.config.callcenter_url + 'Index/GetWorkTotal', { "token": $.cookie("token") }, function (result) {
751 755
                 if (result.state.toLowerCase() == "success") {
752 756
                     option2.title.subtext = result.data.daywc * 1 + result.data.daywwc * 1;
753
-                    option2.series[0].data = [{ value: result.data.daywwc, name: '今日待完成量' }, { value: result.data.daywc, name: '今日完成量' }]
757
+                    // option2.series[0].data = [{ value: result.data.daywwc, name: '今日待完成量' }, { value: result.data.daywc, name: '今日完成量' }]
754 758
                     $(".bg-blues h3").find("span").text(result.data.daywc);
755 759
                     $(".bg-purple h3").find("span").text(result.data.daywwc);
756 760
                     $(".bg-yellow h3").find("span").text(result.data.monwwc);