zhaomin %!s(int64=2) %!d(string=před) roky
rodič
revize
2ea63519ec

binární
CallCenterWeb.UI/OutboundMessage/drmb.zip


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

@@ -88,6 +88,7 @@
88 88
 							<li>客户电话:<input class="photo x-color inputs" type="text" id="tel" /></li>
89 89
 							<li>
90 90
 								<a class="sc_btn btns ss">搜索</a>
91
+								<a class="sc_btn  btns" id="ex_btns">导出</a>
91 92
 							</li>
92 93
 						</ul>
93 94
 					</div>

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

@@ -76,6 +76,7 @@
76 76
 							</li>
77 77
 							<li>
78 78
 								<a class="sc_btn btns ss">搜索</a>
79
+								<a class="sc_btn  btns" id="ex_btnsCY">导出</a>
79 80
 							</li>
80 81
 
81 82
 						</ul>

+ 46 - 38
CallCenterWeb.UI/callScreen/call.js

@@ -280,45 +280,53 @@ $(".addts").click(function() {
280 280
 		return;
281 281
 	}
282 282
 	
283
-	
284
-	$.post(huayi.config.callcenter_url + 'CallInScreen/AddWorkOrder', {
285
-		//file	//string	否	附件
286
-		khid: $("#khid").val(), //int	否	客户id
287
-		callid: CallID, //string	否
288
-		source: 2, //string	是	工单来源
289
-		customer: $('#t_name').val(), //string	是	客户姓名	
290
-		custel: $('#t_tel').val(), //string	是	电话
291
-		country: 0, //string	否	乡镇或单位	
292
-		address: $('#t_address').val(), //string	否	住址
293
-		inqtime: '', //string	否	调查时间	
294
-		inquser: '', //string	否	调查员
295
-		clbm: $('#clbmname').val(), //string	否	处理部门
296
-		// clid: $('#clidname').val(), //string	否	处理人
297
-		clr:$('#clidname').val(),
298
-		infotype: infotype, //string	否	信息分类id,默认为0
299
-		infotypeid:$('#t_infoCls').val(),
300
-		infotypedetail: infotypedetail,
301
-		infotypedetailid: $('#infotypedetail').val(),
302
-		state: $("input[name='ltype']:checked").val(),
303
-		unit: $('#clbmname').val(), //string	否	交办单位id,默认为0
304
-		detail: $('#t_detail').val(), //string	是	反映问题
305
-		answer: $('#t_answer').val(), //string	否	回访反馈情况	
306
-		cont: $('#t_cont').val(), //string	否	问题处理情况
307
-		remark: $('#t_remarks').val(), //string	否	备注
308
-		token: $.cookie("token")
309
-	}, function(result) {
310
-		result = $.parseJSON(result);
311
-		if(result.state.toLowerCase() == "success") {
312
-			loadOld();
313
-			// 停止录屏保存
314
-			if(result.data) {
315
-				stopPlayers();
316
-			} //result.data
317
-			cleanList();
318
-			layer.msg("工单创建成功!");
319
-		}
283
+	$.ajax({
284
+		type: "POST",
285
+		url: huayi.config.callcenter_url + "CallInScreen/AddWorkOrder",
286
+		dataType: 'json',
287
+		beforSend: function() {
288
+			$('#addts').off('click')
289
+		},
290
+		data:{
291
+			//file	//string	否	附件
292
+			khid: $("#khid").val(), //int	否	客户id
293
+			callid: CallID, //string	否
294
+			source: 2, //string	是	工单来源
295
+			customer: $('#t_name').val(), //string	是	客户姓名	
296
+			custel: $('#t_tel').val(), //string	是	电话
297
+			country: 0, //string	否	乡镇或单位	
298
+			address: $('#t_address').val(), //string	否	住址
299
+			inqtime: '', //string	否	调查时间	
300
+			inquser: '', //string	否	调查员
301
+			clbm: $('#clbmname').val(), //string	否	处理部门
302
+			// clid: $('#clidname').val(), //string	否	处理人
303
+			clr:$('#clidname').val(),
304
+			infotype: infotype, //string	否	信息分类id,默认为0
305
+			infotypeid:$('#t_infoCls').val(),
306
+			infotypedetail: infotypedetail,
307
+			infotypedetailid: $('#infotypedetail').val(),
308
+			state: $("input[name='ltype']:checked").val(),
309
+			unit: $('#clbmname').val(), //string	否	交办单位id,默认为0
310
+			detail: $('#t_detail').val(), //string	是	反映问题
311
+			answer: $('#t_answer').val(), //string	否	回访反馈情况	
312
+			cont: $('#t_cont').val(), //string	否	问题处理情况
313
+			remark: $('#t_remarks').val(), //string	否	备注
314
+			token: $.cookie("token")
315
+		},
316
+		async: true,
317
+		success: function(result) {
318
+			$('#addts').on('click')
319
+			if(result.state.toLowerCase() == "success") {
320
+				loadOld();
321
+				// 停止录屏保存
322
+				if(result.data) {
323
+					// stopPlayers();
324
+				} //result.data
325
+				cleanList();
326
+				layer.msg("工单创建成功!");
327
+			}
328
+		},
320 329
 	})
321
-
322 330
 })
323 331
 
324 332
 //获取乡镇或单位下拉 后获取左侧客户信息

+ 51 - 42
CallCenterWeb.UI/commonHtml/js/orderModel.js

@@ -72,6 +72,7 @@ $(document).ready(function() {
72 72
 			});
73 73
 			return;
74 74
 		}
75
+		
75 76
 		$.post(huayi.config.callcenter_url + 'CallInScreen/AddWorkOrder', {
76 77
 			tskh: tskh,
77 78
 			tsdh: tsdh,
@@ -148,49 +149,57 @@ $(document).ready(function() {
148 149
 			return;
149 150
 		}
150 151
 		
151
-		$.post(huayi.config.callcenter_url + 'CallInScreen/AddWorkOrder', {
152
-			//file	//string	否	附件
153
-			khid: 0,	//int	否	客户id
154
-			callid: 0, //string	否
155
-			source: 1, //string	是	工单来源
156
-			customer: tskh, //string	是	客户姓名
157
-			wjid: tid,//	int	否	关联的问卷id,默认为0
158
-			custel: tsdh, //string	是	电话
159
-			country: 0, //string	否	乡镇或单位	
160
-			address: $('#t_address').val(), //string	否	住址
161
-			inqtime: $('#t_time').val(), //string	否	调查时间	
162
-			inquser: $('#t_investigator').val(), //string	否	调查员
163
-			
164
-//			clbm: clbm, //int	否	处理部门
165
-//			clid: clid, //int	否	处理人
166
-//			infotypeid: $("#xl_box").val(), //int	否	信息分类id,默认为0
167
-//			unitid: $("#xl_boxs").val(), //int	否	交办单位id,默认为0
168
-			
169
-			clbm:$('#clbmname').val(), //string	否	处理部门
170
-			clr: $('#clidname').val(), //string	否	处理人
171
-			infotype: infotype,
172
-			infotypeid:$('#xl_box').val(),
173
-			infotypedetail: infotypedetail,
174
-			infotypedetailid: $('#infotypedetail').val(),//string	否	信息分类id,默认为0
175
-			unit:$('#clbmname').val(), //string	否	
176
-			state: $("input[name='ltype']:checked").val(),
177
-			detail: $('#t_detail').val(), //string	是	反映问题
178
-			answer: $('#t_answer').val(), //string	否	回访反馈情况	
179
-			cont: cont, //string	否	问题处理情况
180
-			remark: $('#t_remarks').val(), //string	否	备注
181
-			token: $.cookie("token")
182
-		}, function(result) {
183
-			result = $.parseJSON(result);
184
-			if(result.state.toLowerCase() == "success") {
185
-				var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
186
-				parent.layer.close(index); //再执行关闭
187
-				if(createState != 1){
188
-					parent.initTable();
152
+		$.ajax({
153
+			type: "POST",
154
+			url: huayi.config.callcenter_url + "CallInScreen/AddWorkOrder",
155
+			dataType: 'json',
156
+			beforSend: function() {
157
+				$('#addts').off('click')
158
+			},
159
+			data:{
160
+				//file	//string	否	附件
161
+				khid: 0,	//int	否	客户id
162
+				callid: 0, //string	否
163
+				source: 1, //string	是	工单来源
164
+				customer: tskh, //string	是	客户姓名
165
+				wjid: tid,//	int	否	关联的问卷id,默认为0
166
+				custel: tsdh, //string	是	电话
167
+				country: 0, //string	否	乡镇或单位	
168
+				address: $('#t_address').val(), //string	否	住址
169
+				inqtime: $('#t_time').val(), //string	否	调查时间	
170
+				inquser: $('#t_investigator').val(), //string	否	调查员		
171
+				//clbm: clbm, //int	否	处理部门
172
+				//clid: clid, //int	否	处理人
173
+				//infotypeid: $("#xl_box").val(), //int	否	信息分类id,默认为0
174
+				//unitid: $("#xl_boxs").val(), //int	否	交办单位id,默认为0		
175
+				clbm:$('#clbmname').val(), //string	否	处理部门
176
+				clr: $('#clidname').val(), //string	否	处理人
177
+				infotype: infotype,
178
+				infotypeid:$('#xl_box').val(),
179
+				infotypedetail: infotypedetail,
180
+				infotypedetailid: $('#infotypedetail').val(),//string	否	信息分类id,默认为0
181
+				unit:$('#clbmname').val(), //string	否	
182
+				state: $("input[name='ltype']:checked").val(),
183
+				detail: $('#t_detail').val(), //string	是	反映问题
184
+				answer: $('#t_answer').val(), //string	否	回访反馈情况	
185
+				cont: cont, //string	否	问题处理情况
186
+				remark: $('#t_remarks').val(), //string	否	备注
187
+				token: $.cookie("token")
188
+			},
189
+			async: true,
190
+			success: function(result) {
191
+				$('#addts').on('click')
192
+				if(result.state.toLowerCase() == "success") {
193
+					var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
194
+					parent.layer.close(index); //再执行关闭
195
+					if(createState != 1){
196
+						parent.initTable();
197
+					}
198
+					
199
+					parent.layer.msg("创建工单成功");
189 200
 				}
190
-				
191
-				parent.layer.msg("创建工单成功");
192
-			}
193
-		});
201
+			},
202
+		})
194 203
 	});
195 204
 	//20180518byfanlongfei将处理部门、处理人、信息分类、交办单位修改为文本框; 
196 205
   	// helper.getDropList.getlistDropByDic($('#xl_boxs'), 'ZBDW'); //获取交办单位下拉

+ 46 - 36
CallCenterWeb.UI/js/WorkOrder/AddWorkOrder.js

@@ -144,42 +144,52 @@ $(document).ready(function() {
144 144
 			return;
145 145
 		}
146 146
 		
147
-		$.post(huayi.config.callcenter_url + 'CallInScreen/AddWorkOrder', {
148
-			//file	//string	否	附件
149
-			khid: 0,	//int	否	客户id
150
-			callid: 0, //string	否
151
-			source: 1, //string	是	工单来源
152
-			customer: tskh, //string	是	客户姓名	
153
-			custel: tsdh, //string	是	电话
154
-			country: 0, //string	否	乡镇或单位	
155
-			address: $('#t_address').val(), //string	否	住址
156
-			inqtime: $('#t_time').val(), //string	否	调查时间	
157
-			inquser: $('#t_investigator').val(), //string	否	调查员
158
-
159
-			clbm: $('#clbmname').val(), //string	否	处理部门
160
-			// clid: $('#clidname').val(), //string	否	处理人
161
-			clr:$('#clidname').val(),
162
-			infotype: infotype, //string	否	信息分类id,默认为0
163
-			infotypeid:$('#xl_box').val(),
164
-			infotypedetail: infotypedetail,
165
-			infotypedetailid: $('#infotypedetail').val(),
166
-			state: $("input[name='ltype']:checked").val(),
167
-			unit: $('#clbmname').val(), //string	否	交办单位id,默认为0
168
-			
169
-			detail: $('#t_detail').val(), //string	是	反映问题
170
-			answer: $('#t_answer').val(), //string	否	回访反馈情况	
171
-			cont: cont, //string	否	问题处理情况
172
-			remark: $('#t_remarks').val(), //string	否	备注
173
-			file:proimglist && proimglist.join(','),//附件信息
174
-			token: $.cookie("token")
175
-		}, function(result) {
176
-			result = $.parseJSON(result);
177
-			if(result.state.toLowerCase() == "success") {
178
-				clean();
179
-				$('#fileList').empty();
180
-				location=location;
181
-				layer.msg("创建工单成功");
182
-			}
147
+		$.ajax({
148
+			type: "POST",
149
+			url: huayi.config.callcenter_url + "CallInScreen/AddWorkOrder",
150
+			dataType: 'json',
151
+			beforSend: function() {
152
+				$('#addts').off('click')
153
+			},
154
+			data:{
155
+				//file	//string	否	附件
156
+				khid: 0,	//int	否	客户id
157
+				callid: 0, //string	否
158
+				source: 1, //string	是	工单来源
159
+				customer: tskh, //string	是	客户姓名	
160
+				custel: tsdh, //string	是	电话
161
+				country: 0, //string	否	乡镇或单位	
162
+				address: $('#t_address').val(), //string	否	住址
163
+				inqtime: $('#t_time').val(), //string	否	调查时间	
164
+				inquser: $('#t_investigator').val(), //string	否	调查员
165
+				
166
+				clbm: $('#clbmname').val(), //string	否	处理部门
167
+				// clid: $('#clidname').val(), //string	否	处理人
168
+				clr:$('#clidname').val(),
169
+				infotype: infotype, //string	否	信息分类id,默认为0
170
+				infotypeid:$('#xl_box').val(),
171
+				infotypedetail: infotypedetail,
172
+				infotypedetailid: $('#infotypedetail').val(),
173
+				state: $("input[name='ltype']:checked").val(),
174
+				unit: $('#clbmname').val(), //string	否	交办单位id,默认为0
175
+				
176
+				detail: $('#t_detail').val(), //string	是	反映问题
177
+				answer: $('#t_answer').val(), //string	否	回访反馈情况	
178
+				cont: cont, //string	否	问题处理情况
179
+				remark: $('#t_remarks').val(), //string	否	备注
180
+				file:proimglist && proimglist.join(','),//附件信息
181
+				token: $.cookie("token")
182
+			},
183
+			async: true,
184
+			success: function(result) {
185
+				$('#addts').on('click')
186
+				if(result.state.toLowerCase() == "success") {
187
+					clean();
188
+					$('#fileList').empty();
189
+					location=location;
190
+					layer.msg("创建工单成功");
191
+				}
192
+			},
183 193
 		})
184 194
 	})
185 195
 });

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

@@ -98,8 +98,34 @@ $(document).ready(function() {
98 98
 	if($("#zrbmtree")) {
99 99
 		getBM($("#zrbmtree"));
100 100
 	}
101
+	$("#ex_btns").click(function() {
102
+		dcexcel(this);
103
+	});
104
+	$("#ex_btnsCY").click(function() {
105
+		dcexcelCY(this);
106
+	});
101 107
 })
102 108
 
109
+function dcexcel(obj) {
110
+	let sdate = $('#STime').val() && $('#STime').val().split(' ~ ')[0];
111
+	let edate = $('#STime').val() && $('#STime').val().split(' ~ ')[1];
112
+	var url = huayi.config.callcenter_url + "WorkOrder/GetList?token=" + $.cookie("token");
113
+	url += "&tel=" + $("#tel").val().trim() + "&infotype=" + $('#MessageType').val();
114
+	url += '&usercode=' + $('#zx').val()+'&starttime='+sdate+'&endtime='+edate+'&ltype='+0+'&isexport='+1;
115
+	console.log(url)
116
+	obj.href = url;
117
+}
118
+function dcexcelCY(obj) {
119
+	let sdate = $('#STime').val() && $('#STime').val().split(' ~ ')[0];
120
+	let edate = $('#STime').val() && $('#STime').val().split(' ~ ')[1];
121
+	var url = huayi.config.callcenter_url + "WorkOrder/GetList?token=" + $.cookie("token");
122
+	url += "&tel=" + $("#tel").val().trim()+'&usercode=' + $('#zx').val();
123
+	url += '&starttime='+sdate+'&endtime='+edate+'&state='+$('#s_type').val();
124
+	url +='&clbmid=' + $("#clbm").val().trim()+'&isexport='+1+'&ltype='+2
125
+	console.log(url)
126
+	obj.href = url;
127
+}
128
+
103 129
 function View(val) {
104 130
 	return '<div class="imgs" ><a class="xg" onclick= ck("' + val + '") >' + val + '</a></div>';
105 131
 }

+ 1 - 0
CallCenterWeb.UI/reportAnalysis/departmenDetailedList.html

@@ -97,6 +97,7 @@
97 97
 								<th data-field="ExpandDatField1" data-align="center">呼叫时间</th>
98 98
 								<th data-field="CallState" data-align="center">是否接通</th>
99 99
 								<th data-field="F_HJJGName" data-align="center">呼叫结果</th>
100
+								<th data-field="TalkTime" data-align="center">通话时长(s)</th>
100 101
 							</tr>
101 102
 						</thead>
102 103
 					</table>