|
|
@@ -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>
|