liuzhihui 2 anos atrás
pai
commit
322f68fe61

+ 9 - 0
CallCenterWeb.UI/.project

@@ -33,5 +33,14 @@
33 33
 				<arguments>1.0-name-matches-false-false-node_modules</arguments>
34 34
 			</matcher>
35 35
 		</filter>
36
+		<filter>
37
+			<id>1662709930781</id>
38
+			<name></name>
39
+			<type>26</type>
40
+			<matcher>
41
+				<id>org.eclipse.ui.ide.multiFilter</id>
42
+				<arguments>1.0-name-matches-false-false-node_modules</arguments>
43
+			</matcher>
44
+		</filter>
36 45
 	</filteredResources>
37 46
 </projectDescription>

+ 8 - 0
CallCenterWeb.UI/TelCall/CallRecord.html

@@ -323,6 +323,7 @@
323 323
 							<!--<th data-field="IsDeal" data-formatter="isDeal" data-align="center">是否处理</th>-->
324 324
 							<th data-field="UserCode" data-align="center">坐席工号</th>
325 325
 							<th data-field="UserName" data-align="center">坐席姓名</th>
326
+							<th data-field="RingLongTime" data-formatter="setLongTime" data-align="center">响铃时长(S)</th>							
326 327
 							<th data-field="BeginTime" data-align="center">开始时间</th>
327 328
 							<th data-field="TalkStartTime" data-align="center">通话开始时间</th>
328 329
 							<th data-field="TalkEndTime" data-align="center">通话结束时间</th>
@@ -507,6 +508,13 @@
507 508
 					return '';
508 509
 				}
509 510
 			}
511
+			function setLongTime(val,row){
512
+				if(val==-1){
513
+					return '-'
514
+				}else{
515
+					return row.RingLongTime
516
+				}
517
+			}
510 518
 			//编号
511 519
 			function Code(val, row, index) {
512 520
 				return index + 1;

+ 1 - 0
CallCenterWeb.UI/WorkOrder/WorkOrderDeal.html

@@ -210,6 +210,7 @@
210 210
 			</div>
211 211
 			<div class="clearfix wh_btn">
212 212
 				<input type="button" value="确定" class=" btns" id="clgd" />
213
+				<input type="button" value="保存" class=" btns" id="bcgd" />
213 214
 			</div>
214 215
 		</div>
215 216
 		<script src="../js/autosize/autosize.js"></script>

+ 9 - 1
CallCenterWeb.UI/js/WorkOrder/WorkDeal.js

@@ -2,6 +2,7 @@
2 2
  * 工单处理
3 3
  * */
4 4
 
5
+var buttontype = '';
5 6
 $(document).ready(function() {
6 7
 	var deptId = '';
7 8
 	var ID = helper.request.queryString("str");
@@ -29,6 +30,12 @@ $(document).ready(function() {
29 30
 	// 	});
30 31
 	//点击确定
31 32
 	$("#clgd").click(function() {
33
+		buttontype = ''
34
+		dealWorkOrder(ID);
35
+	});
36
+	//点击保存
37
+	$("#bcgd").click(function() {
38
+		buttontype = 1
32 39
 		dealWorkOrder(ID);
33 40
 	});
34 41
 
@@ -75,8 +82,8 @@ function getWorkOrderInfo(oid) {
75 82
 				$("#t_remarks").val(Str[0].Remark); //string 否 备注
76 83
 				$('#xl_box').val(Str[0].InfoTypeID); //问题分类
77 84
 				$(".xl_boxs").val(Str[0].Unit); //交办单位
78
-
79 85
 				$('#clbmname').val(Str[0].UnitID); //部门
86
+				$("#cont").val(Str[0].clcontent);
80 87
 				deptId = Str[0].UnitID
81 88
 				if (deptId) {
82 89
 					getUserListByDepartment($('#clidname'), deptId, con.data.item[0].ToUser)
@@ -171,6 +178,7 @@ function dealWorkOrder(oid) {
171 178
 		infotypedetailid: $('#xq_rdwt').val(),
172 179
 		clbm: $("#clbmname").val(), //string	否	处理部门
173 180
 		clgh: $("#clidname").val(), //string	否	处理人
181
+		buttontype:buttontype,
174 182
 
175 183
 		token: $.cookie("token")
176 184
 	}, function(result) {

+ 26 - 3
CallCenterWeb.UI/js/WorkOrder/WorkOrder.js

@@ -411,7 +411,7 @@ function getRY(obj, deptid) {
411 411
 }
412 412
 
413 413
 function Appoint(val, row) {
414
-	return czhtml(val, row, "处理");
414
+	return czhtml(val, row, "处理","删除");
415 415
 }
416 416
 
417 417
 function Dispose(val, row) {
@@ -430,8 +430,9 @@ function Comment(val, row) {
430 430
 	return czhtmls(val, row, "评论");
431 431
 }
432 432
 
433
-function czhtml(val, row, str) {
434
-	return '<div class="imgs" ><a class="xg" itemstr=\'' + JSON.stringify(row) + '\' onclick= oper("' + val + '",this) >' + str + '</a></div>';
433
+function czhtml(val, row, str,strs) {
434
+	return '<div class="imgs" ><a class="xg" itemstr=\'' + JSON.stringify(row) + '\' onclick= oper("' + val + '",this) >' + str + '</a></div>'+
435
+	'<div class="imgs" ><a class="xg" itemstr=\'' + JSON.stringify(row) + '\' onclick= deleteOrder("' + row.ID + '",this) >' + strs + '</a></div>';
435 436
 }
436 437
 
437 438
 function czhtmls(val, row, str) {
@@ -447,6 +448,28 @@ function oper(val, obj) {
447 448
 	})
448 449
 
449 450
 }
451
+//删除
452
+function deleteOrder(val,obj) {
453
+	layer.confirm('您确定要删除吗?', {
454
+		btn: ['是', '否'] //按钮
455
+	}, function() {
456
+		/*发送请求*/
457
+		$.ajax({
458
+			type: "post",
459
+			url: huayi.config.callcenter_url + "WorkOrder/DelWorkOrder",
460
+			dataType: 'json',
461
+			data: {
462
+				id: val,
463
+				token: $.cookie("token")
464
+			},
465
+			async: true,
466
+			success: function(data) {
467
+				layer.msg("删除成功");
468
+				initTable();
469
+			}
470
+		});
471
+	});
472
+}
450 473
 //导出pdf
451 474
 function export2pdf(wid) {
452 475
 	layer.open({