Przeglądaj źródła

通话记录内增加来电类型

fanlongfei 8 lat temu
rodzic
commit
1d0b24363b
1 zmienionych plików z 47 dodań i 21 usunięć
  1. 47 21
      WebUI/CallCenterWeb.UI/TelCall/CallRecord.html

+ 47 - 21
WebUI/CallCenterWeb.UI/TelCall/CallRecord.html

154
                         <li>电话号码:<input id="tel" class="photo x-color" type="text" /></li>
154
                         <li>电话号码:<input id="tel" class="photo x-color" type="text" /></li>
155
                         <li>
155
                         <li>
156
 							呼叫状态:
156
 							呼叫状态:
157
-								<select id="ss_hjzt" class="selects callstate">
158
-									<option value="">全部</option>
159
-									<option value="0">未接通</option>
160
-									<option value="1">已接通</option>
161
-                                    <option value="2">黑名单拒接</option>
162
-                                    <option value="3">主动放弃</option>
163
-								</select>
164
-							</li>
165
-							<li>
166
-								呼出方向:
167
-								<select id="ss_hcfx" class=" selects calltype">
168
-									<option value="">全部</option>
169
-									<option value="0">呼入</option>
170
-									<option value="1">呼出</option>
171
-								</select>
172
-							</li>
173
-                      <li>
174
-                            坐席:
157
+							<select id="ss_hjzt" class="selects callstate">
158
+								<option value="">全部</option>
159
+								<option value="0">未接通</option>
160
+								<option value="1">已接通</option>
161
+                                <option value="2">黑名单拒接</option>
162
+                                <option value="3">主动放弃</option>
163
+							</select>
164
+						</li>
165
+                        <li>
166
+							来电类型:
167
+							<select id="callType" class="selects callstate">
168
+								<option value="">全部</option>
169
+							</select>
170
+						</li>
171
+						<li>
172
+							呼出方向:
173
+							<select id="ss_hcfx" class=" selects calltype">
174
+								<option value="">全部</option>
175
+								<option value="0">呼入</option>
176
+								<option value="1">呼出</option>
177
+							</select>
178
+						</li>
179
+                      	<li>
180
+                           	 坐席:
175
                             <select style="width: 100px;" class="x-color select usercode" id="seat">
181
                             <select style="width: 100px;" class="x-color select usercode" id="seat">
176
                                 <option value="">全部</option>
182
                                 <option value="">全部</option>
177
                             </select>
183
                             </select>
191
             <table id="list" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
197
             <table id="list" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
192
                 <thead>
198
                 <thead>
193
                     <tr>
199
                     <tr>
194
-                         <th data-field="CallNumber" data-align="center" data-formatter="Code">编号</th>
200
+                        <th data-field="CallNumber" data-align="center" data-formatter="Code">编号</th>
195
                         <th data-field="CallNumber" data-align="center">电话号码</th>
201
                         <th data-field="CallNumber" data-align="center">电话号码</th>
196
                         <th data-field="FilePath" data-formatter="setCode" data-align="center">录音</th>
202
                         <th data-field="FilePath" data-formatter="setCode" data-align="center">录音</th>
197
                         <th data-field="CallType" data-formatter="callType" data-align="center">呼叫方向</th>
203
                         <th data-field="CallType" data-formatter="callType" data-align="center">呼叫方向</th>
198
                         <!--<th data-field="DealType" data-formatter="dealType" data-align="center">是否回访</th>-->
204
                         <!--<th data-field="DealType" data-formatter="dealType" data-align="center">是否回访</th>-->
199
                         <th data-field="CallState" data-formatter="states" data-align="center">呼叫状态</th>
205
                         <th data-field="CallState" data-formatter="states" data-align="center">呼叫状态</th>
206
+                        <th data-field="TypeName" data-align="center">来电类型</th>
200
                         <th data-field="UserCode" data-align="center">坐席工号</th>
207
                         <th data-field="UserCode" data-align="center">坐席工号</th>
201
                         <th data-field="UserName" data-align="center">坐席姓名</th>
208
                         <th data-field="UserName" data-align="center">坐席姓名</th>
202
                         <th data-field="BeginTime" data-align="center">开始时间</th>
209
                         <th data-field="BeginTime" data-align="center">开始时间</th>
255
                 $(".t-shade").removeClass("cx");
262
                 $(".t-shade").removeClass("cx");
256
                 $('audio')[0].pause();
263
                 $('audio')[0].pause();
257
             });
264
             });
265
+            //获取来电类型
266
+        	GetCallTypeList();
267
+            //获取坐席
258
             $.getJSON(huayi.config.callcenter_url + "UserAccount/GetSeatList", { token: $.cookie("token") }, function (result) {
268
             $.getJSON(huayi.config.callcenter_url + "UserAccount/GetSeatList", { token: $.cookie("token") }, function (result) {
259
                 if (result.state.toLowerCase() == "success") {
269
                 if (result.state.toLowerCase() == "success") {
260
                     seatlist = result.data;
270
                     seatlist = result.data;
367
                         param.endtime = $("#end").val();
377
                         param.endtime = $("#end").val();
368
                 	 	param.callstate= $("#ss_hjzt").val();
378
                 	 	param.callstate= $("#ss_hjzt").val();
369
 					 	param.calltype= $("#ss_hcfx").val();
379
 					 	param.calltype= $("#ss_hcfx").val();
380
+					 	param.type = $("#callType").val();//type=来电类型    
370
                     } else if (stype == '2') {
381
                     } else if (stype == '2') {
371
                         param.usercode = $("#ss_seat").val();
382
                         param.usercode = $("#ss_seat").val();
372
                         param.tel = $("#ss_tel").val();
383
                         param.tel = $("#ss_tel").val();
374
                         param.calltype = $("#ss_hcfx").val();
385
                         param.calltype = $("#ss_hcfx").val();
375
                         param.starttime = $("#ss_kssj").val();
386
                         param.starttime = $("#ss_kssj").val();
376
                         param.endtime = $("#ss_jssj").val();
387
                         param.endtime = $("#ss_jssj").val();
388
+                    	param.type = $("#callType").val();//type=来电类型    
377
                     }
389
                     }
378
                     return param;
390
                     return param;
379
                 },
391
                 },
456
                 return '';
468
                 return '';
457
             }
469
             }
458
         }
470
         }
459
-        
460
-
471
+        //获取来电类型
472
+		function GetCallTypeList() {
473
+			$.getJSON(huayi.config.callcenter_url + 'Dictionary/GetDicValueListById', {
474
+				id: 45,
475
+				token: $.cookie("token")
476
+			}, function(result) {
477
+				if(result.state.toLowerCase() == "success") {
478
+					var callTypeList = result.data;
479
+					$('#callType').empty();
480
+            		$('#callType').append('<option value="">全部</option>');
481
+            		$(callTypeList).each(function (i, n) {
482
+                		$('#callType').append('<option value="' + n.F_ValueId + '">' + n.F_Value + '</option>');
483
+            		})
484
+				}
485
+			})
486
+		}
461
     </script>
487
     </script>
462
 
488
 
463
 </body>
489
 </body>