liuyifan лет назад: 6
Родитель
Сommit
be700cc9a8

+ 102 - 0
CallCenterWeb.UI/WorkOrder/WorkOrderMark.html

@@ -0,0 +1,102 @@
1
+<!DOCTYPE html>
2
+<html>
3
+
4
+<head>
5
+    <meta charset="UTF-8">
6
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
+    <link href="../css/init.css" rel="stylesheet" />
8
+    <script src="../Script/Common/huayi.load.js"></script>
9
+    <script src="../Script/Common/huayi.config.js"></script>
10
+    <link href="../css/WorkOrder/Search.css" rel="stylesheet">
11
+    <link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
12
+    <link href="../js/bootstrap-select/css/bootstrap-select.css" rel="stylesheet" />
13
+    <link rel="stylesheet" href="../css/WorkOrder/jquery.editable-select.css" />
14
+    <link rel="stylesheet" href="../js/comboSelect/combo.select.css" />
15
+    <link rel="stylesheet" href="../css/init.css" />
16
+    <title>指派</title>
17
+    <style>
18
+        ul li {
19
+            float: initial;
20
+            list-style: none;
21
+        }
22
+        .common {
23
+            width: 100%;
24
+            text-align: center;
25
+            padding: 10px 15px;
26
+        }
27
+
28
+        .common table {
29
+            width: 100%;
30
+        }
31
+
32
+        .common table th {
33
+            padding: 5px 8px 5px 0;
34
+            text-align: right;
35
+            /* width: 20%;*/
36
+        }
37
+
38
+        .common table td {
39
+            padding: 6px 0 5px 10px;
40
+            text-align: left;
41
+            color: #717171;
42
+            line-height: 200%;
43
+        }
44
+
45
+        .common table td textarea {
46
+            width: 100%;
47
+            vertical-align: middle;
48
+            resize: none;
49
+            outline: none;
50
+        }
51
+        
52
+        .form-group-dealTimely {
53
+        	width: 50%;
54
+        }
55
+        
56
+    </style>
57
+</head>
58
+
59
+<body class="gray-bg">
60
+    <div class="clearfix wrapper wrapper-content animated fadeInRight">
61
+        <div class="common">
62
+            <table class="customerService">
63
+            	<tbody>
64
+					<tr>
65
+						<th class="dealTimelyTitle">重要级别:</th>
66
+                        <td class="dealTimelyInput">
67
+                        	<div class="form-group form-group-dealTimely">
68
+								<select class="form-control" id="dealTimely">
69
+	       							<option value ="508">请选择</option>
70
+								</select>
71
+							</div>
72
+                        </td>
73
+					</tr>
74
+					<tr>
75
+						<th class="reasonTitle">原因:</th>
76
+                        <td class="reasonInput">
77
+                        	<div class="form-group form-group-dealTimely">
78
+								<select class="form-control" id="reason">
79
+	       							<option value ="">请选择</option>
80
+								</select>
81
+							</div>
82
+                        </td>
83
+					</tr>
84
+                    <tr>
85
+                        <td colspan="8" style="text-align: center;">
86
+                            <button class="btns customerSubmit">确&nbsp;定</button>
87
+                        </td>
88
+                    </tr>
89
+                </tbody>
90
+            </table>
91
+        </div>
92
+    </div>
93
+
94
+    <script src="../js/zTree/jquery.ztree.core.js"></script>
95
+    <script src="../js/bootstrap-select/js/bootstrap-select.js"></script>
96
+    <script src="../js/WorkOrder/jquery.editable-select.js"></script>
97
+    <script src="../js/comboSelect/jquery.combo.select.js"></script>
98
+    <script src="../js/laydate/laydate.js"></script>
99
+    <script src="../js/WorkOrder/WorkOrderMark.js"></script>
100
+</body>
101
+
102
+</html>

+ 2 - 7
CallCenterWeb.UI/js/WorkOrder/AddWorkOrder.js

@@ -51,9 +51,6 @@ $(document).ready(function () {
51 51
     // 省 办事处
52 52
     LAISHENG($("#source"));//省
53 53
     CHOUDQ($("#customer_comaddress")); //办事处
54
-    // 隐藏重要级别原因
55
-    $('.reasonTitle').hide();
56
-	$('.reasonInput').hide();
57 54
 	
58 55
 	////编辑器配置 客服部
59 56
 	//KindEditor.ready(function(K) {
@@ -387,11 +384,9 @@ $('#dealTimely').on('change',function(){
387 384
 	console.log('1111',$('#dealTimely').val());
388 385
 	if ($('#dealTimely').val() !== '506'){
389 386
 		$('#reason').val('');
390
-		$('.reasonTitle').hide();
391
-		$('.reasonInput').hide();
387
+		$('#reason').attr("disabled", "disabled");
392 388
 	} else {
393
-		$('.reasonTitle').show();
394
-		$('.reasonInput').show();
389
+		$('#reason').removeAttr("disabled");
395 390
 	}
396 391
 })
397 392
 

+ 17 - 0
CallCenterWeb.UI/js/WorkOrder/WorkOrder.js

@@ -482,6 +482,7 @@ function authorizeOperateButton(userRoleCode) {
482 482
 		case "JDYBZZX": // 坐席班长 创建 提交
483 483
 				$('.tool_downs').find('[id*="HY_submit"]').show(); //指派
484 484
 				$('.tool_downs').find('[id*="HY_edit"]').show(); // 修改
485
+				$('.tool_downs').find('[id*="HY_mark"]').show(); // 标记
485 486
 				$('.tool_downs').find('[id*="HY_delete"]').hide(); //删除
486 487
 				$('.tool_downs').find('[id*="HY_return"]').hide(); //退回
487 488
 				$('.tool_downs').find('[id*="HY_order"]').hide(); //接单
@@ -490,6 +491,7 @@ function authorizeOperateButton(userRoleCode) {
490 491
 			break;
491 492
 		case "BSCJL": // 办事处经理 转派、退回、修改、删除、
492 493
 				$('.tool_downs').find('[id*="HY_transfer"]').show(); //指派
494
+				$('.tool_downs').find('[id*="HY_mark"]').show(); // 标记
493 495
 				$('.tool_downs').find('[id*="HY_edit"]').hide(); // 修改
494 496
 				$('.tool_downs').find('[id*="HY_delete"]').hide(); //删除
495 497
 				$('.tool_downs').find('[id*="HY_return"]').show(); //退回
@@ -503,6 +505,7 @@ function authorizeOperateButton(userRoleCode) {
503 505
 			break;
504 506
 		case "YWY":	//YWY-业务人员 退回/接单、处理 、修改
505 507
 				$('.tool_downs').find('[id*="HY_transfer"]').hide(); //指派
508
+				$('.tool_downs').find('[id*="HY_mark"]').show(); // 标记
506 509
 				$('.tool_downs').find('[id*="HY_delete"]').hide(); //删除
507 510
 				$('.tool_downs').find('[id*="HY_edit"]').hide(); //修改
508 511
 				$('.tool_downs').find('[id*="HY_dealWith"]').show(); //处理
@@ -522,6 +525,7 @@ function authorizeOperateButton(userRoleCode) {
522 525
 function formatterSubmit(val, row) {
523 526
 	return '<ul class="tool_downs">' +
524 527
 		'<li><a href="javascript:;" class="aBtn" authorize="yes" id="HY_submit_' + row.F_Id + '" onclick="btn_transfer(\'' + row.F_Id + '\', 1)" title="指派">提交</a></li>' +
528
+		'<li><a href="javascript:;" class="aBtn" authorize="yes" id="HY_mark_' + row.F_Id + '" onclick="btn_mark(\'' + row.F_Id + '\')" title="标记">标记</a></li>' +
525 529
 		'<li><a href="javascript:;" class="aBtn" authorize="yes" id="HY_edit_' + row.F_Id + '" onclick="btn_edit(\'' + row.F_Id + '\')" title="修改">修改</a></li>' +
526 530
 		'<li><a href="javascript:;" class="aBtn" authorize="yes" id="HY_delete_' + row.F_Id + '" onclick="btn_deleteid(\'' + row.F_Id + '\')" title="删除">删除</a></li>' +
527 531
 		'</ul>';
@@ -531,6 +535,7 @@ function formatterSubmit(val, row) {
531 535
 function formatterDesig(val, row) {
532 536
 	return '<ul class="tool_downs">' +
533 537
 		'<li><a href="javascript:;" class="aBtn" authorize="yes" id="HY_transfer_' + row.F_Id + '" onclick="btn_transfer(\'' + row.F_Id + '\', 2)" title="指派">指派</a></li>' +
538
+		'<li><a href="javascript:;" class="aBtn" authorize="yes" id="HY_mark_' + row.F_Id + '" onclick="btn_mark(\'' + row.F_Id + '\')" title="标记">标记</a></li>' +
534 539
 		'<li><a href="javascript:;" class="aBtn" authorize="yes" id="HY_edit_' + row.F_Id + '" onclick="btn_edit(\'' + row.F_Id + '\')" title="修改">修改</a></li>' +
535 540
 		'<li><a href="javascript:;" class="aBtn" authorize="yes" id="HY_delete_' + row.F_Id + '" onclick="btn_deleteid(\'' + row.F_Id + '\')" title="删除">删除</a></li>' +
536 541
 		'<li><a href="javascript:;" class="aBtn" authorize="yes" id="HY_return_' + row.F_Id + '" onclick="btn_return(\'' + row.F_Id + '\')" title="退回">退回</a></li>' +
@@ -606,6 +611,18 @@ function btn_edit(val) {
606 611
 	});
607 612
 }
608 613
 
614
+//标记工单
615
+function btn_mark(val) {
616
+	var id = val;
617
+	layer.open({
618
+		type: 2,
619
+		title: '修改工单',
620
+		maxmin: true, //开启最大化最小化按钮
621
+		area: ['80%', '90%'],
622
+		content: '../WorkOrder/WorkOrderMark.html?id=' + id
623
+	});
624
+}
625
+
609 626
 //接收工单
610 627
 function btn_order(id) {
611 628
 	layer.confirm('确认要接单吗?', {

+ 100 - 0
CallCenterWeb.UI/js/WorkOrder/WorkOrderMark.js

@@ -0,0 +1,100 @@
1
+var id = helper.request.queryString("id");
2
+$(document).ready(function () {
3
+    //保存
4
+    $('.customerSubmit').click(function() {
5
+        saveCustomer();
6
+    });
7
+    //重要级别
8
+    getDealTimely();
9
+    //重要级别原因
10
+    getReason();
11
+})
12
+
13
+
14
+// 重要级别
15
+function getDealTimely() {
16
+    $.ajax({
17
+        type: "get",
18
+        url: huayi.config.callcenter_url + "Dictionary/GetDicValueListByFlag",
19
+        dataType: 'json',
20
+        async: true,
21
+        data: {
22
+            token: $.cookie("token"),
23
+            flag: "GDDJ"
24
+        },
25
+        success: function(data) {
26
+            var Count = data.data;
27
+            $(Count).each(function(i, n) {
28
+                $('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($("#dealTimely"));
29
+            })
30
+        }
31
+    });
32
+}
33
+
34
+// 重要级别原因
35
+function getReason() {
36
+    $.ajax({
37
+        type: "get",
38
+        url: huayi.config.callcenter_url + "Dictionary/GetDicValueListByFlag",
39
+        dataType: 'json',
40
+        async: true,
41
+        data: {
42
+            token: $.cookie("token"),
43
+            flag: "YJYY"
44
+        },
45
+        success: function(data) {
46
+            var Count = data.data;
47
+            $(Count).each(function(i, n) {
48
+                $('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($("#reason"));
49
+            })
50
+        }
51
+    });
52
+}
53
+
54
+// 重要级别为一级时显示原因
55
+$('#dealTimely').on('change',function(){
56
+	console.log('1111',$('#dealTimely').val());
57
+	if ($('#dealTimely').val() !== '506'){
58
+		$('#reason').val('');
59
+		$('#reason').attr("disabled", "disabled");
60
+	} else {
61
+		$('#reason').removeAttr("disabled");
62
+	}
63
+})
64
+
65
+//保存
66
+function saveCustomer() {
67
+    $.ajax({
68
+        type: "post",
69
+        url: huayi.config.callcenter_url + "WorkOrder/Sing",
70
+        dataType: 'json',
71
+        async: true,
72
+        beforeSend: function() { //触发ajax请求开始时执行
73
+            $('.customerSubmit').attr("disabled", true);
74
+            $('.customerSubmit').text('确定中...');
75
+        },
76
+        data: {
77
+            token: $.cookie("token"),
78
+            id: id,
79
+            dealTimely: $('#dealTimely').val(), //重要级别内容
80
+            reason: $('#reason').val(), //重要级别原因
81
+        },
82
+        success: function(data) {
83
+            if (data.state.toLowerCase() == 'success') {
84
+                $('.customerSubmit').attr("disabled", false);
85
+	            $('.customerSubmit').text('确定');
86
+            	var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
87
+				parent.layer.close(index); //再执行关闭
88
+				parent.layer.msg("保存成功!");
89
+//				parent.$('#workorderlist').bootstrapTable('refresh');
90
+//				parent.$('#workorderlist_').bootstrapTable('refresh');
91
+//				parent.$('#orderlist').bootstrapTable('refresh');
92
+				parent.initTable();
93
+            } else {
94
+            	$('.customerSubmit').attr("disabled", false);
95
+	            $('.customerSubmit').text('确定');
96
+            }
97
+        }
98
+    });
99
+
100
+}

+ 5 - 9
CallCenterWeb.UI/js/WorkOrder/xgWork.js

@@ -61,9 +61,6 @@ $(document).ready(function () {
61 61
     // 省 办事处
62 62
     LAISHENG($("#source"));//省
63 63
     CHOUDQ($("#customer_comaddress")); //办事处
64
-    // 隐藏重要级别原因
65
-    $('.reasonTitle').hide();
66
-	$('.reasonInput').hide();
67 64
 	
68 65
     //客诉专员
69 66
     ComplaintVip();
@@ -186,19 +183,20 @@ function dealTimelyDisplay(data) {
186 183
 //  重要级别原因显示
187 184
 function dealTimelyReasonDisplay(data) {
188 185
 	if (data.F_DealTimely === 506) {
189
-		$('.reasonTitle').show();
190
-		$('.reasonInput').show();
191 186
 		if (data.F_Reason === "509") {
192 187
 			$("#reason option:selected").text("涉媒");
193 188
 			$("#reason option:selected").val(509);
194 189
 		} else if (data.F_Reason === "510") {
190
+			$('#reason').attr("disabled", "disabled");
195 191
 			$("#reason option:selected").text("政府");
196 192
 			$("#reason option:selected").val(510);
197 193
 		} else if (data.F_Reason === "511") {
194
+			$('#reason').attr("disabled", "disabled");
198 195
 			$("#reason option:selected").text("恶性杂志");
199 196
 			$("#reason option:selected").val(511);
200 197
 		}
201 198
 	} else {
199
+		$('#reason').attr("disabled", "disabled");
202 200
 		$("#reason option:selected").text("请选择");
203 201
 		$("#reason option:selected").val("");
204 202
 	}
@@ -493,11 +491,9 @@ $('#dealTimely').on('change',function(){
493 491
 	console.log('1111',$('#dealTimely').val());
494 492
 	if ($('#dealTimely').val() !== '506'){
495 493
 		$('#reason').val('');
496
-		$('.reasonTitle').hide();
497
-		$('.reasonInput').hide();
494
+		$('#reason').attr("disabled", "disabled");		
498 495
 	} else {
499
-		$('.reasonTitle').show();
500
-		$('.reasonInput').show();
496
+		$('#reason').removeAttr("disabled");
501 497
 	}
502 498
 })
503 499