miaofuhao 4 vuotta sitten
vanhempi
commit
b409ddc5d6

+ 30 - 63
CallCenterWeb.UI/OutboundMessage/LookMessage.html

@@ -28,16 +28,6 @@
28 28
 							<label for="Phone_">电话号码:</label>
29 29
 							<a class="CallOut" id="CallOut"><span id="Phone_"></span><img src="../img/Phones.png" alt="" /></a>
30 30
 						</li>
31
-						<!--<li>
32
-							<label for="callNum">固定号码:</label>
33
-							<input type="text" id="callNum" class="form-control" />
34
-						</li>
35
-						<li>
36
-							<label for="country">乡镇:</label>
37
-							<select id="country" class="form-control">
38
-								<option value="0">请选择乡镇</option>
39
-							</select>
40
-						</li>-->
41 31
 						<li>
42 32
 							<label for="address">地址:</label>
43 33
 							<input type="text" id="address" class="form-control" />
@@ -108,53 +98,48 @@
108 98
 		<script src="../js/autosize/autosize.js"></script>
109 99
 		<script>
110 100
 			var wid = helper.request.queryString("Str");
111
-			var ans = [];
112
-			var type;
113
-			var star_number = [];
114
-			var id;
115
-			var content;
116
-			var str;
117
-			var strs;
118
-			//console.log(wid);
101
+			var ExpandVchField12 = helper.request.queryString("ExpandVchField12");
102
+			var ans = [],type,star_number = [],id,content,str,strs;
119 103
 			$(document).ready(function() {
120 104
 				if(wid != null && wid != undefined && wid != "") {
121
-					//获取乡镇下拉
122
-//					getCountry();
123 105
 					XQ();
124 106
 					GetHJJG(); //获取呼叫结果
125
-					//GetYHFK();//获取用户反馈
126 107
 				}
127
-
108
+				if (decodeURI(ExpandVchField12)) {
109
+					telTime(decodeURI(ExpandVchField12))
110
+				}
128 111
 				//点击电话号码外呼
129 112
 				$(".CallOut").click(function(event) {
130 113
 					if($("#Phone_").text()) {
131 114
 						calloutopt($("#Phone_").text());
132 115
 					}
133 116
 				});
134
-				
135
-				
136
-				
137 117
 			});
118
+			$("#address").blur(function(){
119
+				telTime($("#address").val())
120
+			})
121
+			
122
+			function telTime(region){
123
+				$.ajax({
124
+					type:"get",
125
+					url: huayi.config.callcenter_url + "CallOutPlan/GetCountRegion",
126
+					dataType: 'json',
127
+					data: {
128
+						region: region,
129
+						token: $.cookie("token")
130
+					},
131
+					async: true,
132
+					success: function(data) {
133
+						console.log(data.data)
134
+						if (data.data>50) {
135
+							layer.msg("电话超过50次,不能再拨打")
136
+						}
137
+						
138
+					}
139
+				})
140
+			}
141
+			
138 142
 			
139
-//			//获取乡镇下拉
140
-//			function getCountry() {
141
-//				$.ajax({
142
-//					type: "get",
143
-//					url: huayi.config.callcenter_url + "Dictionary/GetDicValueListByFlag",
144
-//					dataType: 'json',
145
-//					data: {
146
-//						flag: 'JBDW',
147
-//						token: $.cookie("token")
148
-//					},
149
-//					async: true,
150
-//					success: function(data) {
151
-//						var res = data.data;
152
-//						for(var i = 0; i < res.length; i++) {
153
-//							$('<option value="' + res[i].F_DictionaryValueId + '">' + res[i].F_Name + '</option>').appendTo($("#country"));
154
-//						}
155
-//					}
156
-//				});
157
-//			}
158 143
 			//外呼
159 144
 			function calloutopt(telphone) {
160 145
 				event.stopPropagation();
@@ -411,25 +396,6 @@
411 396
 							$(html).appendTo(".Qus_box");
412 397
 							autosize($('textarea'));
413 398
 							
414
-							$('input[type=radio][name=ltype2]').on("change",function () {
415
-								$.ajax({
416
-									type:"get",
417
-									url: huayi.config.callcenter_url + "CallOutPlan/GetCountRegion",
418
-									dataType: 'json',
419
-									data: {
420
-										region: $('input[name=ltype2]:checked').next().text(),
421
-										token: $.cookie("token")
422
-									},
423
-									async: true,
424
-									success: function(data) {
425
-										console.log(data.data)
426
-										if (data.data>50) {
427
-											layer.msg("电话超过50次,不能再拨打")
428
-										}
429
-										
430
-									}
431
-								})
432
-							})
433 399
 							
434 400
 						}
435 401
 					}
@@ -456,6 +422,7 @@
456 422
 					}
457 423
 				});
458 424
 			}
425
+		
459 426
 		</script>
460 427
 
461 428
 	</body>

+ 4 - 3
CallCenterWeb.UI/OutboundMessage/MyTask.html

@@ -114,15 +114,16 @@
114 114
 			///操作
115 115
 
116 116
 			function Code(val, row) {
117
-				return '<div><a onclick="XX(' + row.F_Id + ')">' + row.F_Phone + '</a></div>'
117
+				return '<div><a onclick="XX(' + row.F_Id + ','+row.ExpandVchField12+')">' + row.F_Phone + '</a></div>'
118 118
 
119 119
 			}
120 120
 			//详情
121
-			function XX(str) {
121
+			function XX(str,ExpandVchField12) {
122
+				
122 123
 				layer.open({
123 124
 					type: 2,
124 125
 					//shade: 0,
125
-					content: "../OutboundMessage/LookMessage.html?Str=" + str, //iframe的url,no代表不显示滚动条
126
+					content: "../OutboundMessage/LookMessage.html?Str=" + str+"&ExpandVchField12="+encodeURI(ExpandVchField12), //iframe的url,no代表不显示滚动条
126 127
 					title: '任务信息',
127 128
 					maxmin: true, //开启最大化最小化按钮
128 129
 					id: 'LAY_layuipro2', //防止重复弹出

BIN
CallCenterWeb.UI/OutboundMessage/OutboundMessage.zip


+ 2 - 1
CallCenterWeb.UI/Script/Common/huayi.config.js

@@ -2,7 +2,8 @@
2 2
     var huayi = {};
3 3
 }
4 4
 huayi.config = {
5
-	callcenter_url: "http://192.168.8.9:1050/",//开发环境 192.168.8.9:1050
5
+	callcenter_url: "http://192.168.4.18:4631/",//开发环境 192.168.8.9:1050
6
+	//callcenter_url: "http://192.168.8.9:1050/",//开发环境 192.168.8.9:1050
6 7
     //callcenter_url: "http://localhost:36659/",//测试环境
7 8
     socket_ip: "192.168.5.7",//ip
8 9
     socket_port: "8081",//端口