Selaa lähdekoodia

修改客户提出问题

zhangshuangnan 7 vuotta sitten
vanhempi
commit
3b76e05076

+ 2 - 2
CallCenterWeb.UI/ReportForm/KPI.html

@@ -143,12 +143,12 @@
143 143
 						<td rowspan="4">服务水平</td>
144 144
 					</tr>
145 145
 					<tr>
146
-						<td>20秒内应答</td>
146
+						<td>5秒内应答</td>
147 147
 						<td class="count">0</td>
148 148
 						<td class="percent">0%</td>
149 149
 					</tr>
150 150
 					<tr>
151
-						<td>非20秒内应答</td>
151
+						<td>非5秒内应答</td>
152 152
 						<td class="count">0</td>
153 153
 						<td class="percent">0%</td>
154 154
 					</tr>

+ 56 - 32
CallCenterWeb.UI/ReportForm/orderTypeReagents.html

@@ -120,9 +120,9 @@
120 120
 						if(data.state.toLowerCase() == "success") {
121 121
 							var res = data.data;
122 122
 							if(res) {
123
-								var linename = res.linename;
124
-								var linecount = res.linecount;
125
-								var lineSeName = res.lineSeName;
123
+								var linename = res.linename;//第一行
124
+								var linecount = res.linecount;//合并数
125
+								var lineSeName = res.lineSeName;//第二行
126 126
 								if(linename && linecount && lineSeName) {
127 127
 									var headLn = linename.length;
128 128
 									var newArr1 = [];
@@ -138,38 +138,62 @@
138 138
 										width: 150,
139 139
 									});
140 140
 
141
-									for(var i = 1; i < headLn - 1; i++) {
142
-										//colspan即横跨的单元格数,这种情况下不用设置field和width
143
-										if(linecount[i] > 1) {
144
-											newArr1.push({
145
-												title: linename[i],
146
-												colspan: linecount[i],
141
+//									for(var i = 1; i < headLn - 1; i++) {
142
+//										//colspan即横跨的单元格数,这种情况下不用设置field和width
143
+//										if(linecount[i] > 1) {
144
+//											newArr1.push({
145
+//												title: linename[i],
146
+//												colspan: linecount[i],
147
+//												align: 'center',
148
+//											});
149
+//											var j = 0;
150
+//											while(j < linecount[i]) {
151
+//												if(lineSeName[j + i + k].indexOf('_')!=-1){
152
+//													lineSeName[j + i + k]=lineSeName[j + i + k].split('_')[0]
153
+//												}
154
+//												newArr2.push({
155
+//													field: lineSeName[j + i + k],
156
+//													title: lineSeName[j + i + k],
157
+//													align: 'center',
158
+//												});
159
+//												var newL = j + i + k + 1;
160
+//												j++;
161
+//											}
162
+//
163
+//										} else {
164
+//											if(lineSeName[newL]) {
165
+//												newArr1.push({
166
+//													field: lineSeName[newL],
167
+//													title: linename[i] + "(" + lineSeName[newL] + ")",
168
+//													align: 'center',
169
+//													rowspan: 2,
170
+//												});
171
+//											}
172
+//											k++;
173
+//										}
174
+//									}
175
+//									
176
+									//第一行
177
+									for( var i=1;i<linename.length-1;i++){
178
+									 	newArr1.push({
179
+											title: linename[i],
180
+											colspan: linecount[i],
181
+											align: 'center',
182
+										});
183
+									 }
184
+									//第二行
185
+									$(lineSeName).each(function(i,n){
186
+										if(i>=1&&i<lineSeName.length-1){
187
+											if(n.indexOf('_')!=-1){
188
+													n=n.split('_')[0]
189
+												}
190
+											newArr2.push({
191
+												field: n,
192
+												title: n,
147 193
 												align: 'center',
148 194
 											});
149
-											var j = 0;
150
-											while(j < linecount[i]) {
151
-												newArr2.push({
152
-													field: lineSeName[j + i + k],
153
-													title: lineSeName[j + i + k],
154
-													align: 'center',
155
-												});
156
-												var newL = j + i + k + 1;
157
-												j++;
158
-											}
159
-
160
-										} else {
161
-											if(lineSeName[newL]) {
162
-												newArr1.push({
163
-													field: lineSeName[newL],
164
-													title: linename[i] + "(" + lineSeName[newL] + ")",
165
-													align: 'center',
166
-													rowspan: 2,
167
-												});
168
-											}
169
-											k++;
170 195
 										}
171
-
172
-									}
196
+									})
173 197
 									newArr1.push({
174 198
 										field: '总计',
175 199
 										title: '总计',

+ 3 - 4
CallCenterWeb.UI/TelCall/CallRecord.html

@@ -661,12 +661,11 @@
661 661
 			function TX(val, row) {
662 662
 				var html = '';
663 663
 				if(row.IsExitWorkOrder == false) {
664
-					return '<div class="warning" onclick="CL(' + val + ',' + row.CallNumber + ')"><a class="warning">添加工单</a></div>'
664
+					return '<div class="warning" onclick="CL(\'' + row.CusName + '\',\'' + row.CallNumber + '\',\'' + row.CusDepName + '\',\'' + val + '\')"><a class="warning">添加工单</a></div>'
665 665
 				}
666 666
 			}
667
-
668
-			function CL(id, phone) {
669
-				top.$("iframe:visible")[0].src = "./WorkOrder/AddWorkOrder.html?id=" + id + "&phone=" + phone;
667
+			function CL(name, phone,depName,id) {
668
+				top.$("iframe:visible")[0].src = "./WorkOrder/AddWorkOrder.html?name=" + name + "&phone=" + phone + "&depName=" + depName+ "&id=" + id;
670 669
 
671 670
 			}
672 671
 		</script>

+ 1 - 1
CallCenterWeb.UI/WorkOrder/AddWorkOrder.html

@@ -301,7 +301,7 @@
301 301
 						<tr>
302 302
 							<th>备注内容:</th>
303 303
 							<td colspan="5">
304
-								<textarea name="" rows="" cols="" id="remark_market"></textarea>
304
+								<textarea name="" rows="5" cols="" id="remark_market"></textarea>
305 305
 							</td>
306 306
 						</tr>
307 307
 						<tr>

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

@@ -130,6 +130,7 @@
130 130
 								<input class="form-control" type="text" id="typeclass" placeholder="请选择工单类型" readonly="readonly">
131 131
 								<input type="hidden" id="typeclassId" />
132 132
 								<div class="addTree treeList">
133
+									<p class="plasechoce">请选择</p>
133 134
 									<ul id="TreeDemo" class="ztree"></ul>
134 135
 								</div>
135 136
 							</div>

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

@@ -111,6 +111,7 @@
111 111
 								<input class="form-control" type="text" id="typeclass" placeholder="请选择工单类型" readonly="readonly">
112 112
 								<input type="hidden" id="typeclassId" />
113 113
 								<div class="addTree treeList">
114
+									<p class="plasechoce">请选择</p>
114 115
 									<ul id="TreeDemo" class="ztree">
115 116
 
116 117
 									</ul>

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

@@ -115,6 +115,7 @@
115 115
 								<input class="form-control" type="text" id="typeclass" placeholder="请选择工单类型" readonly="readonly">
116 116
 								<input type="hidden" id="typeclassId" />
117 117
 								<div class="addTree treeList">
118
+									<p class="plasechoce">请选择</p>
118 119
 									<ul id="TreeDemo" class="ztree">
119 120
 
120 121
 									</ul>

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

@@ -116,6 +116,7 @@
116 116
 								<input class="form-control" type="text" id="typeclass" placeholder="请选择工单类型" readonly="readonly">
117 117
 								<input type="hidden" id="typeclassId" />
118 118
 								<div class="addTree treeList">
119
+									<p class="plasechoce">请选择</p>
119 120
 									<ul id="TreeDemo" class="ztree">
120 121
 
121 122
 									</ul>

+ 8 - 0
CallCenterWeb.UI/css/WorkOrder/Search.css

@@ -413,3 +413,11 @@ textarea {
413 413
 	color:#bababa;
414 414
 	
415 415
 }
416
+.plasechoce{
417
+	margin: 0;
418
+    padding-left: 10px;
419
+    padding-top: 5px;
420
+} 
421
+.plasechoce:hover{
422
+	background: #ebebeb;
423
+} 

+ 23 - 29
CallCenterWeb.UI/js/WorkOrder/AddWorkOrder.js

@@ -1,6 +1,9 @@
1 1
 var ns;
2 2
  var id=helper.request.queryString("id");
3 3
    var phone=helper.request.queryString("phone");
4
+   var depName=helper.request.queryString("depName");
5
+   var name=helper.request.queryString("name");
6
+   
4 7
     	var objs={};
5 8
     	$.ajax({
6 9
     		type:"get",
@@ -25,7 +28,18 @@
25 28
     });
26 29
        		 if(id){
27 30
               	$("#CallID").val(id);
28
-              	getOrderDetail(id);
31
+              	$("#tel").val(phone);
32
+      			$("#tel_market").val(phone);
33
+      			if(unescape(decodeURI(name))!='null' && unescape(decodeURI(name))!='undefined'){
34
+      				$("#name_market").val(unescape(decodeURI(name)));
35
+      				$("#name").val(unescape(decodeURI(name)));
36
+      			}
37
+      			if(unescape(decodeURI(depName))!='null' && unescape(decodeURI(depName))!='undefined'){
38
+	      			$("#testInput1").val(unescape(decodeURI(depName)));
39
+	      			$("#testInput3").val(unescape(decodeURI(depName)));
40
+      			}
41
+      			
42
+      			
29 43
              }
30 44
     	$(document).ready(function(){
31 45
     		//工单来源
@@ -40,10 +54,14 @@
40 54
             getAccount('#feedbackDep');
41 55
 //          getAccount('#feedbackDep_market');
42 56
   
43
-  	//编辑器配置
44
- KindEditor.ready(function(K) {
57
+  	//编辑器配置 客服部
58
+ 		KindEditor.ready(function(K) {
45 59
                 window.changeEditor = K.create('#feedBackCon');//修改弹出框编辑器
46 60
         })
61
+  	//编辑器配置 市场部 备注
62
+ 		KindEditor.ready(function(K) {
63
+                window.marketEditor = K.create('#remark_market');
64
+        })
47 65
             //保存
48 66
             
49 67
             $('.customerSubmit').click(function(){
@@ -101,31 +119,6 @@
101 119
         $('.treeList').mouseleave(function() {
102 120
 			$(this).css('display', 'none')
103 121
 		})
104
-        //ids为通话记录列表获取   获取工单详情
105
-        function getOrderDetail(ids){
106
-        	$.ajax({
107
-        		type:"get",
108
-        		url: huayi.config.callcenter_url +"Callrecords/GetModel",
109
-        		async:true,
110
-        		data: {
111
-                    token: $.cookie("token"),
112
-                    callid:ids
113
-                },
114
-                dataType: "json",
115
-                success: function (res) {
116
-                	if(res.state.toLowerCase()=="success"){
117
-                		$("#tel").val(res.data.mobile);
118
-              			$("#tel_market").val(res.data.mobile);
119
-              			$("#name_market").val(res.data.CusName);
120
-              			$("#name").val(res.data.CusName);
121
-              			$("#testInput1").val(res.data.CusDepName);
122
-              			$("#testInput3").val(res.data.CusDepName);
123
-                	}
124
-
125
-                }
126
-        	});
127
-        }
128
-    	
129 122
     	//工单状态
130 123
     	function getOrderState(){
131 124
     		
@@ -316,7 +309,7 @@
316 309
 					tel:$('#tel_market').val(),//号码
317 310
 					lddep:$('#LDunit_').val(),//来电单位
318 311
 					fkdep:$('#FKunit_').val(),//反馈单位
319
-					fkcont:$('#remark_market').val(),//反馈内容
312
+					fkcont:encodeURIComponent(marketEditor.html()),//反馈内容
320 313
 					callid:$("#CallID").val()
321 314
 				},
322 315
 				success: function(data) {
@@ -352,6 +345,7 @@
352 345
 				$('#testInput3').val('');//来电单位
353 346
 				$('#testInput4').val('');//反馈单位
354 347
 				$('#remark_market').val('');//备注内容
348
+				marketEditor.html('');
355 349
         	}
356 350
         	
357 351
         }

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

@@ -6,6 +6,9 @@
6 6
 		initTable();
7 7
 		initTables();
8 8
 	})
9
+	$('.plasechoce').click(function(){
10
+		$(this).parent().siblings('input').val('');
11
+	})
9 12
 	/*高级查询*/
10 13
 	$(".gjss").click(function() {
11 14
 		$(".t-shade").addClass("cx");