Parcourir la Source

通话记录操作

liuyifan il y a 5 ans
Parent
commit
b63b50b4b5

+ 2 - 2
CallCenterWeb.UI/TelCall/AddBlack.html

@@ -47,8 +47,8 @@
47 47
 		  		padding-top: 0;
48 48
 		    }
49 49
 		    #greetingSave{
50
-		    	    background: #1e90ff;
51
-		    	    color: #fff;
50
+                background: #1e90ff;
51
+                color: #fff;
52 52
 		    }
53 53
 		</style>
54 54
 	</head>

+ 27 - 9
CallCenterWeb.UI/TelCall/CallRecord.html

@@ -661,26 +661,44 @@
661 661
                 //+"&dept=" + $("#bumen").val();
662 662
             obj.href = url;
663 663
         }
664
-        
665
-        //		部门
666 664
         function TX(val, row) {
667 665
             var html = '';
668 666
             if (row.IsWorkeorder <= 0) {
669
-                return '<div class="warning" onclick="CL(\'' + row.CusName + '\',\'' + row.CallNumber + '\',\'' + val + '\',\'' + row.CallId + '\')"><a class="warning">添加工单</a></div>'
667
+                return '<div class="warning" onclick="addRegisterInformation(\'' + row.CusName + '\',\'' + row.CallNumber + '\',\'' + val + '\',\'' + row.CallId + '\')"><a class="warning">添加工单</a></div>'
670 668
             } else if (row.IsWorkeorder > 0) {
671
-                return '<div class="warning" onclick="viewWorkOrder(\'' + row.CusName + '\',\'' + row.CallNumber + '\',\'' + val + '\',\'' + row.CallId + '\',\'1\' )"><a class="warning">查看工单</a></div>'
669
+                return '<div class="warning" onclick="editRegisterInformation(\'' + row.CusName + '\',\'' + row.CallNumber + '\',\'' + val + '\',\'' + row.CallId + '\')"><a class="warning">编辑</a></div>' + 
670
+                '<div class="warning" onclick="viewaddRegisterInformation(\'' + row.CusName + '\',\'' + row.CallNumber + '\',\'' + val + '\',\'' + row.CallId + '\')"><a class="warning">查看</a></div>' + 
671
+                '<div class="warning" onclick="printRegisterInformation(\'' + row.CusName + '\',\'' + row.CallNumber + '\',\'' + val + '\',\'' + row.CallId + '\')"><a class="warning">打印</a></div>'
672 672
             }
673 673
         }
674
-        function CL(name, phone, id, CallId) {
675
-            top.$("iframe:visible")[0].src = "./WorkOrder/AddWorkOrder.html?name=" + name + "&phone=" + phone + "&id=" + id + "&CallID=" + CallId;
674
+        function addRegisterInformation(name, phone, id, CallId) {
675
+            top.$("iframe:visible")[0].src = "./registrationManagement/registrationList/addRegistrationList.html?name=" + name + "&phone=" + phone + "&id=" + id + "&CallID=" + CallId;
676 676
         }
677
-        function viewWorkOrder(name, phone, id, CallId, callRecordType) {
677
+        function editRegisterInformation(name, phone, id, CallId) {
678 678
         	layer.open({
679 679
 				type: 2,
680
-				title: '查看工单',
680
+				title: '编辑登记信息',
681 681
 				maxmin: true, //开启最大化最小化按钮
682 682
 				area: ['80%', '90%'],
683
-				content: "../WorkOrder/Xga.html?CallId=" + CallId + "&callRecordType=" + callRecordType,
683
+				content: "../registrationManagement/registrationList/edit.html?CallId=" + CallId + "&phone=" + phone ,
684
+			});	
685
+        }
686
+        function viewaddRegisterInformation(name, phone, id, CallId) {
687
+        	layer.open({
688
+				type: 2,
689
+				title: '登记详情',
690
+				maxmin: true, //开启最大化最小化按钮
691
+				area: ['80%', '90%'],
692
+				content: "../registrationManagement/registrationList/detail.html?CallId=" + CallId + "&phone=" + phone ,
693
+			});	
694
+        }
695
+        function printRegisterInformation(name, phone, id, CallId) {
696
+        	layer.open({
697
+				type: 2,
698
+				title: '登记人情况',
699
+				maxmin: true, //开启最大化最小化按钮
700
+				area: ['80%', '90%'],
701
+				content: "./registrantSituation.html?CallId=" + CallId + "&phone=" + phone ,
684 702
 			});	
685 703
         }
686 704
     </script>

+ 339 - 0
CallCenterWeb.UI/TelCall/registrantSituation.html

@@ -0,0 +1,339 @@
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
+		<title>登记人情况</title>
8
+		<!--[if lt IE 9]>
9
+	    <meta http-equiv="refresh" content="0;ie.html" />
10
+	    <![endif]-->
11
+		<script src="../Script/Common/huayi.load.js"></script>
12
+		<script src="../Script/Common/huayi.config.js"></script>
13
+		<script src="../js/laydate/laydate.js"></script>
14
+		<link rel="stylesheet" href="../js/layui/css/layui.css" />
15
+		<link rel="stylesheet" href="../css/init.css" />
16
+		<style>
17
+			.zxt-top {
18
+				background: #fefefe;
19
+				height: 60px;
20
+				padding: 10px 20px;
21
+			}
22
+			
23
+			.topCon {
24
+				float: right;
25
+				margin-right: 45px;
26
+			}
27
+			
28
+			.zxt-content {
29
+				width: 90%;
30
+				margin: 20px auto 0 auto;
31
+			}
32
+			.select2-container--default .select2-selection--single{
33
+				border-color: #e5e6e7;
34
+			}
35
+			.time-box select{
36
+				height: 32px;
37
+				line-height: 32px;
38
+			}
39
+			.time-box select option{
40
+				line-height: 32px;
41
+			}
42
+	        .Shows {
43
+	            display: block !important;
44
+	        }
45
+	
46
+	        .complain {
47
+	            display: none;
48
+	        }
49
+	
50
+	        .daoHang {
51
+	            margin-bottom: 15px;
52
+	        }
53
+	
54
+	
55
+	        #main {
56
+	            width: 788.8px;
57
+	            margin: 0 auto;
58
+	            margin-top: 20px;
59
+	            -webkit-box-shadow: 1px 1px 9px 2px #D2D2D2;
60
+	            box-shadow: 1px 1px 9px 2px #D2D2D2;
61
+	            background-color: #fff;
62
+	            padding: 30px 60px 80px 60px;
63
+	        }
64
+	
65
+	        .alignC {
66
+	            text-align: center;
67
+	        }
68
+	
69
+	            .alignC h2 {
70
+	                font-family: "宋体";
71
+	                font-weight: bold;
72
+	                font-size: 22pt;
73
+	                letter-spacing: -1px;
74
+	            }
75
+	
76
+	        .headerAlign h3 div:nth-of-type(1) {
77
+	            font-size: 14pt;
78
+	            padding-top: 20px;
79
+	            text-align: left;
80
+	            font-weight: normal;
81
+	            margin-left: 48px;
82
+	        }
83
+	
84
+	        #main table {
85
+	            margin: 0 auto;
86
+	            width: 600px;
87
+	            border-collapse: collapse;
88
+	            font-size: 13pt;
89
+	            font-family: "仿宋";
90
+	        }
91
+	
92
+	            #main table tr {
93
+	                min-height: 49px;
94
+	            }
95
+	
96
+	        tbody td {
97
+	            min-width: 10%;
98
+	            padding: 6px 0 6px 0;
99
+	        }
100
+	
101
+	        .alignC .tableHead {
102
+	            text-align: center;
103
+	            padding-left: 10px;
104
+	            font-weight: 600;
105
+	        }
106
+	
107
+	        .btn {
108
+	            margin-top: 4px;
109
+	            margin-bottom: 4px;
110
+	            background: #00a1cb;
111
+	            color: #fff;
112
+	        }
113
+	
114
+	        .time-box {
115
+	            display: inline-block;
116
+	            position: relative;
117
+	        }
118
+	
119
+	        .toolLeft input {
120
+	            padding-right: 30px;
121
+	            width: 150px;
122
+	        }
123
+	
124
+	        .tub {
125
+	            position: absolute;
126
+	            right: 8px;
127
+	            top: 5px;
128
+	            font-size: 18px;
129
+	            color: #00a0ca;
130
+	        }
131
+	    </style>
132
+	</head>
133
+
134
+	<body class="gray-bg">
135
+	    <div class="wrapper wrapper-content">
136
+	        <div class="Content_box">
137
+	            <div class="complain Shows">
138
+	                <div class="tab-content">
139
+	                    <div class="tab-pane fade active in">
140
+			 	    		<!-- <div class="zxt-top clearfix">
141
+								<div class="topCon">
142
+									<div class="form-inline th-bar clearfix">
143
+										<div class="form-group tool_bars pull-right">
144
+											<a class="btns export">导出</a>
145
+										</div>
146
+									</div>
147
+								</div>
148
+							</div> -->
149
+	                        <!--startprint1-->
150
+	                        <div id="main">
151
+	                            <div class="alignC headerAlign">
152
+	                                <br />
153
+	                                <h2 style="margin-bottom: 15px;">登记人情况</h2>
154
+	                            </div>
155
+	                            <table id="weeklist" class="alignC" border="1" cellpadding="4" cellspacing="0" bordercolor="#cbcbcb">
156
+                                    <tr>
157
+                                        <td>姓名</td>
158
+                                        <td id="printName" colspan="2"></td>
159
+                                        <td>性别</td>
160
+                                        <td id="printSex" colspan="2"></td>
161
+                                    </tr>
162
+                                    <tr>
163
+                                        <td>来访日期</td>
164
+                                        <td id="printDateVisit" colspan="2"></td>
165
+                                        <td>身份证号码</td>
166
+                                        <td id="printIDCard" colspan="2"></td>
167
+                                    </tr>
168
+                                    <tr>
169
+                                        <td>电话</td>
170
+                                        <td id="printPhone" colspan="2"></td>
171
+                                        <td>来访人数</td>
172
+                                        <td id="printNumberVisitors" colspan="2"></td>
173
+                                    </tr>
174
+                                    <tr>
175
+                                        <td>身份证住址</td>
176
+                                        <td id="printIDCardAddress" colspan="5"></td>
177
+                                    </tr>
178
+                                    <tr>
179
+                                        <td>随访人姓名</td>
180
+                                        <td id="printFollowerName" colspan="5"></td>
181
+                                    </tr>
182
+                                    <tr>
183
+                                        <td>主要诉求</td>
184
+                                        <td id="printMainAppeal" colspan="5"></td>
185
+                                    </tr>
186
+                                    <tr>
187
+                                        <td>处置情况</td>
188
+                                        <td id="printDisposalSituation" colspan="5"></td>
189
+                                    </tr>
190
+                                    <tr>
191
+                                        <td width="15%">通知单位</td>
192
+                                        <td id="printNotificationUnit" width="15%"></td>
193
+                                        <td width="15%">被通知单位人员</td>
194
+                                        <td id="printNotifiedUnitPersonnel" width="15%"></td>
195
+                                        <td width="15%">接访人员签名</td>
196
+                                        <td id="printSignatureInterviewer" width="15%"></td>
197
+                                    </tr>
198
+	                            </table>
199
+                            </div>
200
+                            <!--endprint1-->
201
+	                    </div>
202
+	                </div>
203
+	            </div>
204
+	        </div>
205
+	    </div>
206
+	    
207
+	    <script>
208
+            var CallID = helper.request.queryString("CallID");
209
+
210
+	        $(document).ready(function () {
211
+                // initTableBrief();
212
+                getRegisterDetailByCallId()
213
+            })
214
+            //通过callid获取详情
215
+            function getRegisterDetailByCallId() {
216
+                $.get(huayi.config.callcenter_url + 'RegRecords/GetCallidDetails', {
217
+                    callid: CallID,
218
+                    "token": $.cookie("token")
219
+                }, function(result) {
220
+                    result = $.parseJSON(result);
221
+                    if(result.state.toLowerCase() == "success") {
222
+                        var con = result.data.model;
223
+                        var conCus = result.data.cusmodel
224
+                        $("#printName").text(conCus.F_Name); //姓名
225
+                        $("#printPhone").text(conCus.F_Phone); //电话
226
+                        $("#printSex").text(conCus.F_Sex); //性别
227
+                        $("#printIDCardAddress").text(conCus.F_Province + conCus.F_City + conCus.F_County + conCus.F_Address)
228
+                        // $("#detailProvince").text(conCus.F_Province); //省
229
+                        // $("#detailCity").text(conCus.F_City); //市
230
+                        // $("#detailCounty").text(conCus.F_County); //县/区
231
+                        // $("#detailAddress").text(conCus.F_Address); //详细地址
232
+                        $("#printNotificationUnit").text(con.F_Complained); //被投诉单位
233
+                        $("#printMainAppeal").text(con.F_Content); //登记内容/投诉事项
234
+                        $("#printSignatureInterviewer").text(con.F_CreateBy); //登记人
235
+                        $("#printDateVisit").text(con.F_CreateOn); //登记时间
236
+                    }
237
+                })
238
+            }
239
+            //登记类型
240
+            function formatterRegisterType(val) {
241
+                var formatterRegisterTypeArr = ["", "咨询", "投诉", "求助", "其他"]
242
+                return formatterRegisterTypeArr[val]
243
+            }
244
+
245
+	        //表格
246
+	        function initTableBrief(brieftype) {
247
+	            $.getJSON(huayi.config.callcenter_url + 'Business/MarketInformation', {
248
+	                token: $.cookie("token")
249
+	            }, function (result) {
250
+	                if (result.state.toLowerCase() == "success") {
251
+	                    var content = result.rows;
252
+	                    $('#weeklist').html('');
253
+	                    $("#weeklist").append(
254
+                        '<tr><td colspan="8"><h3>时间:<span class="startTimeBrief">-</span><span>至</span><span class="endTimeBrief">-</span></h3></td></tr>'+
255
+                        '<tr><td colspan="8" class="tableHead">产品投诉情况</td></tr>'
256
+	                    )
257
+	                    // 产品投诉
258
+	                    for (var i=0; i < content.product.length; i+=2) {
259
+							if(content.product[i+1] == undefined) {
260
+								$("#weeklist").append(
261
+									'<tr>'+
262
+									'<td width="20%">'+
263
+									content.product[i].name +
264
+									'</td>'+
265
+									'<td width="15%">'+
266
+									'<span>'+
267
+									content.product[i].number +
268
+									'</span>'+
269
+									'</td>'+
270
+									'<td width="15%">'+
271
+									'<span>'+
272
+									content.product[i].Proportion +
273
+									'</span>'+
274
+									'</td>'+
275
+									'<td width="20%">'+
276
+									'</td>'+
277
+									'<td width="15%">'+
278
+									'<span>'+
279
+									'</span>'+
280
+									'</td>'+
281
+									'<td width="15%">'+
282
+									'<span>'+
283
+									'</span>'+
284
+									'</td>'+
285
+									'</tr>'
286
+	                    		)
287
+							} else {
288
+								$("#weeklist").append(
289
+									'<tr>'+
290
+									'<td width="20%">'+
291
+									content.product[i].name +
292
+									'</td>'+
293
+									'<td width="15%">'+
294
+									'<span>'+
295
+									content.product[i].number +
296
+									'</span>'+
297
+									'</td>'+
298
+									'<td width="15%">'+
299
+									'<span>'+
300
+									content.product[i].Proportion +
301
+									'</span>'+
302
+									'</td>'+
303
+									'<td width="20%">'+
304
+									content.product[i+1].name +
305
+									'</td>'+
306
+									'<td width="15%">'+
307
+									'<span>'+
308
+									content.product[i+1].number +
309
+									'</span>'+
310
+									'</td>'+
311
+									'<td width="15%">'+
312
+									'<span>'+
313
+									content.product[i+1].Proportion +
314
+									'</span>'+
315
+									'</td>'+
316
+									'</tr>'
317
+	                    		)
318
+							}
319
+	                    }
320
+	                    $("#weeklist").append(
321
+	                    	'<tr><td colspan="8">服务投诉情况</td></tr>'+
322
+	                        '<tr><td colspan="8">涉媒投诉</td></tr>'+
323
+	                        '<tr><td>'+ content.sediainvolved.name + '</td><td><span>'+ content.sediainvolved.number + '</span></td><td><span>'+content.sediainvolved.Proportion + '</span></td><td colspan="4"></td></tr>'+
324
+	                        '<tr><td colspan="8" class="tableHead">市场抽检</td></tr>'+
325
+	                        '<tr><td colspan="8" class="tableHead">其他信息</td></tr>'
326
+	                    )
327
+	                }
328
+	            })
329
+	        }
330
+	        //导出
331
+	        $(".export").click(function () {
332
+	            var url = huayi.config.callcenter_url + "Business/MarketInformation?token=" + $.cookie("token");
333
+	            url += "&sdate=" + ($('#startTime').val() ? $('#startTime').val().split('~')[0] : '') + "&edate=" + ($('#startTime').val() ? $('#startTime').val().split('~')[1] : '') + "&isdc=1";
334
+	            $(".export").attr('href', url);
335
+	        });
336
+	    </script>
337
+	</body>
338
+
339
+</html>

+ 21 - 16
CallCenterWeb.UI/callScreen/call.js

@@ -16,14 +16,14 @@ $(document).ready(function () {
16 16
         elem: '#old_endTime',
17 17
         event: 'focus'
18 18
     });
19
-    laydate({
20
-        elem: '#con_startTime',
21
-        event: 'focus'
22
-    });
23
-    laydate({
24
-        elem: '#con_endTime',
25
-        event: 'focus'
26
-    });
19
+    // laydate({
20
+    //     elem: '#con_startTime',
21
+    //     event: 'focus'
22
+    // });
23
+    // laydate({
24
+    //     elem: '#con_endTime',
25
+    //     event: 'focus'
26
+    // });
27 27
     
28 28
     //弹屏右侧切换效果
29 29
     $(".ldtp-cr ul.ld-service li").click(function () {
@@ -404,10 +404,8 @@ function loadOld() {
404 404
             queryParamsType: "undefined",
405 405
             queryParams: function queryParams(params) { //设置查询参数
406 406
                 var param = {
407
-                    starttime: $("#con_startTime").val(),
408
-                    endtime: $("#con_endTime").val(),
409
-                    keywords: $(".hidTel").val(),
410 407
                     token: $.cookie("token"),
408
+                    tel: Number,
411 409
 					pageindex: params.pageNumber, //页码
412 410
 					pagesize: params.pageSize, //条数
413 411
                 };
@@ -460,15 +458,14 @@ function loadOld() {
460 458
             }
461 459
         });
462 460
     } else if (type == '3') {
463
-        window.onload = function () {
461
+        // window.onload = function () {
464 462
             // window.frames["relatedCasesFrames"].postMessage({mobile: 15512102563}, 'http://222.143.48.99:82')
465 463
             window.frames["relatedCasesFrames"].postMessage({mobile: Number}, 'http://222.143.48.99:82')
466
-        }
464
+        // }
467 465
     } else if (type == '4') {
468
-        window.onload = function () {
469
-            // window.frames["serviceDocumentFrames"].postMessage({mobile: 15512102563}, 'http://222.143.48.99:82')
466
+        // window.onload = function () {
470 467
             window.frames["serviceDocumentFrames"].postMessage({mobile: Number}, 'http://222.143.48.99:82')
471
-        }
468
+        // }
472 469
     }
473 470
 }
474 471
 
@@ -507,6 +504,12 @@ function View(val, row) {
507 504
     return '<div class="imgs" ><a class="view" onclick= btn_register_details("' + row.F_ID + '") >' + val + '</a></div>';
508 505
 }
509 506
 
507
+//登记类型
508
+function formatterRegisterType(val, row) {
509
+    var formatterRegisterTypeArr = ["", "咨询", "投诉", "求助", "其他"]
510
+    return formatterRegisterTypeArr[val]
511
+}
512
+
510 513
 function btn_register_details(id) {
511 514
     layer.open({
512 515
         type: 2,
@@ -669,6 +672,8 @@ function saveCustomer() {
669 672
             complained: $("#formComplainedUnit").val(), //被投诉单位
670 673
             content: $("#formRegistrationContent").val(), //登记内容/投诉事项
671 674
             remark: $("#formRegistrationRemark").val(), //备注
675
+            tel: Number,
676
+            callid: CallID,
672 677
         },
673 678
         success: function (data) {
674 679
             if (data.state.toLowerCase() == 'success') {

+ 14 - 14
CallCenterWeb.UI/callScreen/callScreen.html

@@ -720,16 +720,16 @@
720 720
                                     <table id="oldlist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
721 721
                                         <thead>
722 722
                                             <tr>
723
-                                                <th data-field="CallNumber">电话号码</th>
724
-                                                <th data-field="CallState" data-formatter="GetCallState">呼叫状态</th>
725
-                                                <th data-field="DealType" data-formatter="formatterDealType" data-align="center">处理方式</th>
726
-                                                <th data-field="UserCode">坐席工号</th>
727
-                                                <th data-field="UserName">坐席姓名</th>
728
-                                                <th data-field="BeginTime">开始时间</th>
729
-                                                <th data-field="TalkStartTime">通话开始时间</th>
730
-                                                <th data-field="TalkEndTime">通话结束时间</th>
731
-                                                <th data-field="TalkLongTime">通话时长(s)</th>
732
-                                                <th data-field="FilePath" data-formatter="setCode">录音</th>
723
+                                                <th data-field="CallNumber" data-align="center">电话号码</th>
724
+                                                <th data-field="CallState" data-formatter="GetCallState" data-align="center">呼叫状态</th>
725
+                                                <th data-field="DealType" data-align="center" data-formatter="formatterDealType">处理方式</th>
726
+                                                <th data-field="UserCode" data-align="center">坐席工号</th>
727
+                                                <th data-field="UserName" data-align="center">坐席姓名</th>
728
+                                                <th data-field="BeginTime" data-align="center">开始时间</th>
729
+                                                <th data-field="TalkStartTime" data-align="center">通话开始时间</th>
730
+                                                <th data-field="TalkEndTime" data-align="center">通话结束时间</th>
731
+                                                <th data-field="TalkLongTime" data-align="center">通话时长(s)</th>
732
+                                                <th data-field="FilePath" data-align="center" data-formatter="setCode">录音</th>
733 733
                                             </tr>
734 734
                                         </thead>
735 735
                                         <tbody class="list"></tbody>
@@ -739,22 +739,22 @@
739 739
                         </div>
740 740
                         <div class="complain" style="display:none;">
741 741
                             <div class="ld-sercon-con clearfix">
742
-                                <div class="Ps-chaxun">
742
+                                <!-- <div class="Ps-chaxun">
743 743
                                     <span>
744 744
                                         	查询: <input type="text" id="con_startTime" class="laydate-icon" />
745 745
                                         &nbsp;——&nbsp;
746 746
                                         <input type="text" id="con_endTime" class="laydate-icon" />
747 747
                                     </span>
748 748
                                     <span class="searchbtn"></span>
749
-                                </div>
750
-                                <div id="zxlbs" class="table-responsive col-sm-12 tbold" style="padding-left: 0;">
749
+                                </div> -->
750
+                                <div id="zxlbs" class="table-responsive col-sm-12 tbold" style="padding: 20px 0 20px 0px;">
751 751
                                     <table id="orderlist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
752 752
                                         <thead>
753 753
                                             <tr>
754 754
                                                 <th data-field="F_RecCode" data-align="center" data-formatter="View">登记编号</th>
755 755
                                                 <th data-field="CusName" data-align="center">姓名</th>
756 756
                                                 <th data-field="CusPhone" data-align="center">联系电话</th>
757
-                                                <th data-field="F_Type" data-align="center">登记类型</th>
757
+                                                <th data-field="F_Type" data-align="center" data-formatter="formatterRegisterType">登记类型</th>
758 758
                                                 <th data-field="F_Content" data-align="center">登记内容</th>
759 759
                                                 <th data-field="CreateByName" data-align="center">创建人</th>
760 760
                                                 <th data-field="F_CreateOn" data-align="center">创建时间</th>

+ 85 - 30
CallCenterWeb.UI/registrationManagement/registrationList/edit.html

@@ -29,7 +29,7 @@
29 29
         }
30 30
         .common table th {
31 31
             padding: 5px 8px 5px 0;
32
-            text-align: center;
32
+            text-align: right;
33 33
         }
34 34
 	    .common table td {
35 35
             padding: 6px 0 5px 10px;
@@ -47,46 +47,101 @@
47 47
             margin-bottom: 0;
48 48
         }
49 49
 		#formRegistrationType {
50
+            display: inline-block;
50 51
             text-align: left;
51
-            width: 100%;
52
-		}
53
-		.radio-inline {
54
-			padding-left: 2px;
55
-		}
56
-		.radio-input{
57
-			vertical-align: -2px;
58
-		}
52
+            width: 80%;
53
+            padding-left: 18px;
54
+        }
55
+        #formRegistrationType input[type="radio"] {
56
+            margin-top: 3px
57
+        } 
58
+        .formRegistrationTypeText{
59
+            text-align: right;
60
+            padding-right: 0;
61
+            margin-left: 15px;
62
+        }
59 63
     </style>
60 64
 </head>
61 65
 
62 66
 <body class="gray-bg">
63 67
     <div class="clearfix wrapper wrapper-content animated fadeInRight">
64 68
         <div class="common">
69
+            <div class="form-group col-md-12 clearfix">
70
+                <label class="col-md-2 formRegistrationTypeText">登记类型:</label>
71
+                <div id="formRegistrationType" class="col-md-6 r_order_type">
72
+                    <label class="radio-inline">
73
+                        <input type="radio" name="type" value="1" checked="checked" >咨询
74
+                     </label>
75
+                    <label class="radio-inline">
76
+                       <input type="radio" name="type" value="2" >投诉
77
+                    </label>
78
+                    <label class="radio-inline">
79
+                       <input type="radio" name="type" value="3" >求助
80
+                    </label>
81
+                    <label class="radio-inline">
82
+                        <input type="radio" name="type" value="4" >其他
83
+                     </label>
84
+                </div>
85
+            </div>
65 86
             <table class="customerService">
66 87
             	<tbody>
67 88
                     <tr>
68
-						<th>工单类型:</th>
89
+                        <th>姓名:</th>
90
+                        <td>
91
+                            <div class="form-group">
92
+                                <input type="text" class="form-control" id="formName" disabled="disabled" />
93
+                            </div>
94
+                        </td>
95
+                        <th>电话:</th>
69 96
                         <td>
70
-                        	<div id="formRegistrationType" class="col-md-6">
71
-                        		<input class="radio-input" id="registrationRadioAdvisory" type="radio" name="type" value="1" checked="checked">
72
-								<label class="radio-inline" for="registrationRadioAdvisory">
73
-					   				咨询
74
-								</label>
75
-								<input class="radio-input" id="registrationRadioComplaint" type="radio" name="type" value="2" >
76
-								<label class="radio-inline" for="registrationRadioComplaint">
77
-					   				投诉
78
-								</label>
79
-								<input class="radio-input" id="registrationRadioAskHelp" type="radio" name="type" value="3" />
80
-								<label class="radio-inline" for="registrationRadioAskHelp">
81
-									求助
82
-                                </label>
83
-                                <input class="radio-input" id="registrationRadioOther" type="radio" name="type" value="4" />
84
-								<label class="radio-inline" for="registrationRadioOther">
85
-									其他
86
-								</label>
87
-							</div>
97
+                            <div class="form-group">
98
+                                <input type="text" class="form-control" id="formTel" disabled="disabled" />
99
+                            </div>
88 100
                         </td>
89
-					</tr>
101
+                        <th>性别:</th>
102
+                        <td>
103
+                            <div class="form-group">
104
+                                <select class="form-control" id="formSex" disabled="disabled">
105
+                                    <option value="男">男</option>
106
+                                    <option value="女">女</option>
107
+                                </select>
108
+                            </div>
109
+                        </td>
110
+                    </tr>
111
+                    <tr>
112
+                        <th>省:</th>
113
+                        <td>
114
+                            <div class="form-group">
115
+                                <select class="form-control" id="formProvince" disabled="disabled">
116
+                                    <option value="">请选择省</option>
117
+                                </select>
118
+                            </div>
119
+                        </td>
120
+                        <th>市:</th>
121
+                        <td>
122
+                            <div class="form-group">
123
+                                <select class="form-control" id="formCity" disabled="disabled">
124
+                                    <option value="">请选择市</option>
125
+                                </select>
126
+                            </div>
127
+                        </td>
128
+                        <th>县/区:</th>
129
+                        <td>
130
+                            <div class="form-group">
131
+                                <select class="form-control" id="formCounty" disabled="disabled">
132
+                                    <option value="">请选择县/区</option>
133
+                                </select>
134
+                            </div>
135
+                        </td>
136
+                    </tr>
137
+                    <tr>
138
+                        <th>详细地址</th>
139
+                        <td>
140
+                            <div class="form-group">
141
+                                <input type="text" class="form-control" id="formAddress" disabled="disabled" />
142
+                            </div>
143
+                        </td>
144
+                    </tr>
90 145
                     <tr>
91 146
                         <th>被投诉单位:</th>
92 147
                         <td>
@@ -97,7 +152,7 @@
97 152
                     </tr>
98 153
                     <tr>
99 154
                         <th>登记内容/投诉事项:</th>
100
-                        <td>
155
+                        <td colspan="7">
101 156
                             <textarea name="" rows="4" cols="" id="formRegistrationContent" style="margin-top:10px;"></textarea>
102 157
                         </td>
103 158
                     </tr>

+ 15 - 4
CallCenterWeb.UI/registrationManagement/registrationList/js/addRegistrationList.js

@@ -1,11 +1,16 @@
1 1
 var token = $.cookie("token");
2 2
 var id = helper.request.queryString("ids");
3
+var phone = helper.request.queryString("phone");
4
+var CallID = helper.request.queryString("CallID");
3 5
 var cusid = "";
4 6
 $(document).ready(function() {
5
-    getRegisterDetail()
7
+    if (phone) {
8
+        $("#formTel").val(phone)
9
+        getUserProfile()
10
+    }
6 11
 })
7 12
 
8
-//获取用户档案
13
+//点击获取用户档案
9 14
 $(".btnArchives").click(function() {
10 15
     if (!$("#formTel").val()) {
11 16
         layer.confirm('请输入电话!', {
@@ -13,6 +18,11 @@ $(".btnArchives").click(function() {
13 18
         });
14 19
       return;
15 20
     }
21
+    getUserProfile();
22
+})
23
+
24
+//获取用户档案
25
+function getUserProfile() {
16 26
     $.ajax({
17 27
         type: "get",
18 28
         url: huayi.config.callcenter_url + "Customer/GetCustomerByTel",
@@ -44,8 +54,7 @@ $(".btnArchives").click(function() {
44 54
             }
45 55
         }
46 56
     })
47
-
48
-})
57
+}
49 58
 
50 59
 //保存按钮
51 60
 $('.customerSubmit').click(function() {
@@ -65,6 +74,8 @@ $('.customerSubmit').click(function() {
65 74
         complained: $("#formComplainedUnit").val(), //被投诉单位
66 75
         content: $("#formRegistrationContent").val(), //登记内容/投诉事项
67 76
         remark: $("#formRegistrationRemark").val(), //备注
77
+        tel: $("#formTel").val(),
78
+        callid: CallID,
68 79
     }, function(result) {
69 80
         result = $.parseJSON(result);
70 81
         if(result.state.toLowerCase() == "success") {

+ 36 - 1
CallCenterWeb.UI/registrationManagement/registrationList/js/detail.js

@@ -1,10 +1,16 @@
1 1
 var token = $.cookie("token");
2 2
 var id = helper.request.queryString("ids");
3
+var CallID = helper.request.queryString("CallID");
3 4
 var cusid;
4 5
 $(document).ready(function() {
5
-    getRegisterDetail()
6
+    if(id) {
7
+        getRegisterDetail()
8
+    } else if (CallID) {
9
+        getRegisterDetailByCallId()
10
+    }
6 11
 })
7 12
 
13
+//通过id获取登记详情
8 14
 function getRegisterDetail() {
9 15
     $.get(huayi.config.callcenter_url + 'RegRecords/GetDetails', {
10 16
         id: id,
@@ -32,8 +38,37 @@ function getRegisterDetail() {
32 38
     })
33 39
 }
34 40
 
41
+//通过callid获取详情
42
+function getRegisterDetailByCallId() {
43
+    $.get(huayi.config.callcenter_url + 'RegRecords/GetCallidDetails', {
44
+        callid: CallID,
45
+        "token": $.cookie("token")
46
+    }, function(result) {
47
+        result = $.parseJSON(result);
48
+        if(result.state.toLowerCase() == "success") {
49
+            var con = result.data.model;
50
+            var conCus = result.data.cusmodel
51
+            $("#detailRegisterCode").text(con.F_RecCode)
52
+            $("#detailType").text(formatterRegisterType(con.F_Type)); //登记类型
53
+            $("#detailName").text(conCus.F_Name); //姓名
54
+            $("#detailPhone").text(conCus.F_Phone); //电话
55
+            $("#detailSex").text(conCus.F_Sex); //性别
56
+            $("#detailProvince").text(conCus.F_Province); //省
57
+            $("#detailCity").text(conCus.F_City); //市
58
+            $("#detailCounty").text(conCus.F_County); //县/区
59
+            $("#detailAddress").text(conCus.F_Address); //详细地址
60
+            $("#detailComplained").text(con.F_Complained); //被投诉单位
61
+            $("#detailContent").text(con.F_Content); //登记内容/投诉事项
62
+            $("#detailRemark").text(con.F_Remark); //备注
63
+            $("#detailCreateBy").text(con.F_CreateBy); //登记人
64
+            $("#detailCreateOn").text(con.F_CreateOn); //登记时间
65
+        }
66
+    })
67
+}
68
+
35 69
 //登记类型
36 70
 function formatterRegisterType(val) {
37 71
     var formatterRegisterTypeArr = ["", "咨询", "投诉", "求助", "其他"]
38 72
     return formatterRegisterTypeArr[val]
39 73
 }
74
+

+ 53 - 2
CallCenterWeb.UI/registrationManagement/registrationList/js/edit.js

@@ -1,8 +1,13 @@
1 1
 var token = $.cookie("token");
2 2
 var id = helper.request.queryString("ids");
3
+var CallID = helper.request.queryString("CallID");
3 4
 var cusid;
4 5
 $(document).ready(function() {
5
-    getRegisterDetail()
6
+    if(id) {
7
+        getRegisterDetail()
8
+    } else if (CallID) {
9
+        getRegisterDetailByCallId()
10
+    }
6 11
 })
7 12
 
8 13
 //保存按钮
@@ -17,6 +22,8 @@ $('.customerSubmit').click(function() {
17 22
         complained: $("#formComplainedUnit").val(), //被投诉单位
18 23
         content: $("#formRegistrationContent").val(), //登记内容/投诉事项
19 24
         remark: $("#formRegistrationRemark").val(), //备注
25
+        tel: $("#formTel").val(),
26
+        callid: CallID,
20 27
     }, function(result) {
21 28
         result = $.parseJSON(result);
22 29
         if(result.state.toLowerCase() == "success") {
@@ -29,7 +36,7 @@ $('.customerSubmit').click(function() {
29 36
     })
30 37
 })
31 38
 
32
-
39
+//通过id获取登记信息
33 40
 function getRegisterDetail() {
34 41
     $.get(huayi.config.callcenter_url + 'RegRecords/GetDetails', {
35 42
         id: id,
@@ -39,10 +46,54 @@ function getRegisterDetail() {
39 46
         if(result.state.toLowerCase() == "success") {
40 47
             var con = result.data.model;
41 48
             cusid = con.F_CusID;
49
+            CallID = con.F_CallId;
50
+            $("#formRegistrationType input[name='type'][value='" + con.F_Type +"']").prop("checked","checked"); //登记类型
51
+            $("#formComplainedUnit").val(con.F_Complained); //被投诉单位
52
+            $("#formRegistrationContent").val(con.F_Content); //登记内容/投诉事项
53
+            $("#formRegistrationRemark").val(con.F_Remark); //备注
54
+            var cusmodel = result.data.cusmodel
55
+            $("#formName").val(cusmodel.F_Name);
56
+            $("#formTel").val(cusmodel.F_Phone);
57
+            $("#formSex").val(cusmodel.F_Sex)
58
+            $("#formProvince option:selected").text(cusmodel.F_Province)
59
+            $("#formProvince option:selected").val(cusmodel.F_Province)
60
+            $("#formCity option:selected").text(cusmodel.F_City)
61
+            $("#formCity option:selected").val(cusmodel.F_City)
62
+            $("#formCounty option:selected").text(cusmodel.F_County)
63
+            $("#formCounty option:selected").val(cusmodel.F_County)
64
+            $("#formAddress").val(cusmodel.F_Address)
65
+
66
+        }
67
+    })
68
+}
69
+
70
+//通过callid获取登记信息
71
+function getRegisterDetailByCallId() {
72
+    $.get(huayi.config.callcenter_url + 'RegRecords/GetCallidDetails', {
73
+        callid: CallID,
74
+        "token": $.cookie("token")
75
+    }, function(result) {
76
+        result = $.parseJSON(result);
77
+        if(result.state.toLowerCase() == "success") {
78
+            var con = result.data.model;
79
+            cusid = con.F_CusID;
80
+            CallID = con.F_CallId;
81
+            id = con.F_ID;
42 82
             $("#formRegistrationType input[name='type'][value='" + con.F_Type +"']").prop("checked","checked"); //登记类型
43 83
             $("#formComplainedUnit").val(con.F_Complained); //被投诉单位
44 84
             $("#formRegistrationContent").val(con.F_Content); //登记内容/投诉事项
45 85
             $("#formRegistrationRemark").val(con.F_Remark); //备注
86
+            var cusmodel = result.data.cusmodel
87
+            $("#formName").val(cusmodel.F_Name);
88
+            $("#formTel").val(cusmodel.F_Phone);
89
+            $("#formSex").val(cusmodel.F_Sex)
90
+            $("#formProvince option:selected").text(cusmodel.F_Province)
91
+            $("#formProvince option:selected").val(cusmodel.F_Province)
92
+            $("#formCity option:selected").text(cusmodel.F_City)
93
+            $("#formCity option:selected").val(cusmodel.F_City)
94
+            $("#formCounty option:selected").text(cusmodel.F_County)
95
+            $("#formCounty option:selected").val(cusmodel.F_County)
96
+            $("#formAddress").val(cusmodel.F_Address)
46 97
         }
47 98
     })
48 99
 }

+ 2 - 2
CallCenterWeb.UI/registrationManagement/registrationList/js/registrationList.js

@@ -81,7 +81,7 @@ function formatterRegisterDirection(val, row) {
81 81
 
82 82
 function formatterOperating(val, row) {
83 83
     return '<ul class="tool_downs">' +
84
-		'<li><a href="javascript:;" class="aBtn" authorize="yes" id="HY_edit_' + row.F_ID + '" onclick="btn_edit(\'' + row.F_ID + '\')" title="修改">修改</a></li>' +
84
+		'<li><a href="javascript:;" class="aBtn" authorize="yes" id="HY_edit_' + row.F_ID + '" onclick="btn_edit(\'' + row.F_ID + '\')" title="编辑">编辑</a></li>' +
85 85
 		'<li><a href="javascript:;" class="aBtn" authorize="yes" id="HY_delete_' + row.F_ID + '" onclick="btn_delete(\'' + row.F_ID + '\')" title="删除">删除</a></li>' +
86 86
 		'</ul>';
87 87
 }
@@ -91,7 +91,7 @@ function btn_edit(id) {
91 91
         type: 2,
92 92
         title: '编辑登记信息',
93 93
         maxmin: true, //开启最大化最小化按钮
94
-        area: ['50%', '80%'],
94
+        area: ['80%', '80%'],
95 95
         content: 'edit.html?ids=' + id
96 96
     });
97 97
 }