新乡民调(来自商丘市12345) - 陪标A

LookMessage.html 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>查看信息</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <script src="../Script/Common/huayi.load.js"></script>
  8. <script src="../Script/Common/huayi.config.js"></script>
  9. <link href="../css/Table/table1.css" rel="stylesheet" />
  10. <link href="../css/init.css" rel="stylesheet" />
  11. <link rel="stylesheet" type="text/css" href="../css/lookMsg.css" />
  12. </head>
  13. <body class="gray-bg">
  14. <div class="wrapper clearfix">
  15. <div class="content_1 clearfix">
  16. <div class="shark_content_title clearfix">
  17. <span>电话信息</span>
  18. </div>
  19. <div class="clearfix Phone_Text clearfix">
  20. <ul class="clearfix form-inline">
  21. <li>
  22. <label for="Name_">姓名:</label>
  23. <input type="text" id="Name_" class="form-control" placeholder="张三"/>
  24. </li>
  25. <li>
  26. <label for="Phone_">电话号码:</label>
  27. <a class="CallOut" id="CallOut">15236987458<span id="Phone_"></span><img src="../img/Phones.png" alt="" /></a>
  28. </li>
  29. <li>
  30. <label for="callNum">固定号码:</label>
  31. <input type="text" id="callNum" class="form-control" />
  32. </li>
  33. <li>
  34. <label for="country">县乡镇或单位:</label>
  35. <select id="country" class="form-control">
  36. <option value="0">请选择乡镇或单位</option>
  37. <option value="0">新乡市</option>
  38. <option value="0">获嘉县</option>
  39. <option value="0">延津县</option>
  40. <option value="0">封丘县</option>
  41. <option value="0">长垣县</option>
  42. <option value="0">新乡县</option>
  43. </select>
  44. </li>
  45. <li>
  46. <label for="address">地址:</label>
  47. <input type="text" id="address" class="form-control" />
  48. </li>
  49. </ul>
  50. </div>
  51. </div>
  52. <div class="content_3 clearfix " style="display: none;">
  53. <div class="shark_content_title clearfix">
  54. <span>用户反馈</span>
  55. </div>
  56. <div>
  57. <ul class="clearfix" id="Tg">
  58. </ul>
  59. </div>
  60. </div>
  61. <div class="content_4 clearfix ">
  62. <div class="shark_content_title clearfix">
  63. <span>问卷信息</span>
  64. </div>
  65. <div>
  66. <ul style="padding-left: 0;" class="title_ul">
  67. <li>
  68. <!--<label for="">问卷名称</label><span class="Title"></span>-->
  69. <table class="table table-bordered" align="center">
  70. <tr>
  71. <th>问卷名称</th>
  72. <td>感满意度调查问卷</td>
  73. </tr>
  74. <tr>
  75. <th>问卷开场语</th>
  76. <td>你好!我是息满意度调查中心(站)的访问员,我们正在进行社会治安工作满意度方面的调查,想听听您或您家人的意见,您的意见对于我们的研究非常宝贵,希望能耽误您一点时间跟您谈谈好吗?</td>
  77. </tr>
  78. <tr>
  79. <th>问卷说明</th>
  80. <td>问卷说明</td>
  81. </tr>
  82. </table>
  83. </li>
  84. <!--<li>
  85. <label for="startText">问卷开场语</label><span id="startText" class="F_Remark"></span>
  86. </li>
  87. <li>
  88. <label for="F_Remark">问卷说明</label><span id="F_Remark" class="F_Remark"></span>
  89. </li>-->
  90. </ul>
  91. <ul class="Qus_box">
  92. </ul>
  93. <ul style="padding-left: 0;" class="title_ul">
  94. <li>
  95. <label for="">问卷结束语</label><span id="endText" class="F_Remark"></span>
  96. </li>
  97. </ul>
  98. </div>
  99. </div>
  100. <div class="content_2 clearfix ">
  101. <div class="shark_content_title clearfix">
  102. <span>呼叫结果</span>
  103. </div>
  104. <div>
  105. <ul class="clearfix" id="Tgetruset">
  106. <li>
  107. <input id="" type="radio" name="check" value="1" / style="font-size: 18px;">
  108. <label for="listR_' + i + '">正常接通</label>
  109. </li>
  110. <li>
  111. <input id="" type="radio" name="check" value="2" />
  112. <label for="listR_' + i + '">拒访</label>
  113. </li>
  114. <li>
  115. <input id="" type="radio" name="check" value="3" />
  116. <label for="listR_' + i + '">不是本人</label>
  117. </li>
  118. <li>
  119. <input id="" type="radio" name="check" value="3" />
  120. <label for="listR_' + i + '">挂机</label>
  121. </li>
  122. <li>
  123. <input id="" type="radio" name="check" value="3" />
  124. <label for="listR_' + i + '">停机</label>
  125. </li>
  126. <li>
  127. <input id="" type="radio" name="check" value="3" />
  128. <label for="listR_' + i + '">无人接听</label>
  129. </li>
  130. <li>
  131. <input id="" type="radio" name="check" value="3" />
  132. <label for="listR_' + i + '">空号</label>
  133. </li>
  134. <li>
  135. <input id="" type="radio" name="check" value="3" />
  136. <label for="listR_' + i + '">免回访</label>
  137. </li>
  138. <li>
  139. <input id="" type="radio" name="check" value="3" />
  140. <label for="listR_' + i + '">正常接听-不满意</label>
  141. </li>
  142. <li>
  143. <input id="" type="radio" name="check" value="3" />
  144. <label for="listR_' + i + '">不在本地居住</label>
  145. </li>
  146. <li>
  147. <input id="" type="radio" name="check" value="3" />
  148. <label for="listR_' + i + '">暂时忙,回头联系</label>
  149. </li>
  150. </ul>
  151. </div>
  152. </div>
  153. <div class="content_5 clearfix" style="text-align: center;">
  154. <div>
  155. <button class="Ce btns">提交</button>
  156. <input type="hidden" id="F_CusID" />
  157. <input type="hidden" id="F_Id" />
  158. <input type="hidden" id="F_TaskId" />
  159. <input type="hidden" id="TelCode" value="" />
  160. </div>
  161. </div>
  162. </div>
  163. <script src="../js/guid.js"></script>
  164. <script src="../js/laydate/laydate.js"></script>
  165. <script src="../js/autosize/autosize.js"></script>
  166. <script>
  167. var wid = helper.request.queryString("Str");
  168. var ans = [];
  169. var type;
  170. var star_number = [];
  171. var id;
  172. var content;
  173. var str;
  174. var strs;
  175. //console.log(wid);
  176. $(document).ready(function() {
  177. if(wid != null && wid != undefined && wid != "") {
  178. //获取乡镇或单位下拉
  179. getCountry();
  180. XQ();
  181. GetHJJG(); //获取呼叫结果
  182. //GetYHFK();//获取用户反馈
  183. }
  184. //点击电话号码外呼
  185. $(".CallOut").click(function(event) {
  186. if($("#Phone_").text()) {
  187. calloutopt($("#Phone_").text());
  188. }
  189. });
  190. });
  191. //获取乡镇或单位下拉
  192. function getCountry() {
  193. $.ajax({
  194. type: "get",
  195. url: huayi.config.callcenter_url + "Dictionary/GetDicValueListByFlag",
  196. dataType: 'json',
  197. data: {
  198. flag: 'JBDW',
  199. token: $.cookie("token")
  200. },
  201. async: true,
  202. success: function(data) {
  203. var res = data.data;
  204. for(var i = 0; i < res.length; i++) {
  205. $('<option value="' + res[i].F_DictionaryValueId + '">' + res[i].F_Name + '</option>').appendTo($("#country"));
  206. }
  207. }
  208. });
  209. }
  210. //外呼
  211. function calloutopt(telphone) {
  212. event.stopPropagation();
  213. if(telphone) {
  214. $.ajax({
  215. type: "get",
  216. url: huayi.config.callcenter_url + "CallOutOpt/GetCallOutprefix",
  217. async: true,
  218. dataType: 'json',
  219. data: {
  220. token: $.cookie("token"),
  221. phone: telphone
  222. },
  223. success: function(result) {
  224. if(result.state.toLowerCase() == "success") {
  225. //debugger
  226. var guid = uuid();
  227. $("#TelCode").val(guid);
  228. top.obj.Type = "MakeCall";
  229. top.obj.DestinationNumber = result.data.phone;
  230. top.obj.Header = result.data.fix;
  231. top.obj.TaskType = "1"; //0:拨号外呼;1:问卷外呼;
  232. top.obj.TaskPhoneID = $("#F_Id").val(); //回访的电话ID
  233. //top.obj.TaskID = guid; //回访记录编号
  234. top.obj.TaskID = $("#F_TaskId").val()
  235. top.Send();
  236. }
  237. }
  238. });
  239. }
  240. }
  241. //详情查看
  242. function XQ() {
  243. $.ajax({
  244. type: "get",
  245. url: huayi.config.callcenter_url + "CallOutPlan/GetTaskTelModel",
  246. dataType: 'json',
  247. data: {
  248. id: wid,
  249. token: $.cookie("token")
  250. },
  251. async: true,
  252. success: function(data) {
  253. var Count = data.data;
  254. if(Count) {
  255. if(Count.taskModel) {
  256. //console.log(Count.taskModel);
  257. $("#Name_").val(Count.taskModel.F_CusName);
  258. $("#Phone_").text(Count.taskModel.F_Phone);
  259. $("#F_CusID").val(Count.taskModel.F_CusID);
  260. $("#F_Id").val(Count.taskModel.F_Id);
  261. $("#F_TaskId").val(Count.taskModel.F_TaskId);
  262. var pid = Count.paperid;
  263. if(pid) {
  264. WJ(pid);
  265. }
  266. }
  267. }
  268. }
  269. });
  270. }
  271. //获取呼叫结果
  272. function GetHJJG() {
  273. $.ajax({
  274. type: "get",
  275. url: huayi.config.callcenter_url + "Dictionary/GetDicValueListByFlag",
  276. dataType: 'json',
  277. data: {
  278. flag: 'HJJG',
  279. token: $.cookie("token")
  280. },
  281. async: true,
  282. success: function(data) {
  283. var Count = data.data;
  284. for(var i = 0; i < Count.length; i++) {
  285. //$("<li><label for=''><input type='radio' name='check' value='" + Count[i].F_DictionaryValueId + "' /></label>" + Count[i].F_Name + "</li>").
  286. var listItem = '<li>' +
  287. '<input id="listR_' + i + '" type="radio" name="check" value="' + Count[i].F_DictionaryValueId + '" />' +
  288. '<label for="listR_' + i + '">' + Count[i].F_Name + '</label>' +
  289. '</li>';
  290. $(listItem).appendTo($("#Tgetruset"));
  291. }
  292. }
  293. });
  294. }
  295. //提交
  296. // $(".Ce").click(function() {
  297. //
  298. //// window.location.href="MyTask.html";
  299. //
  300. // })
  301. function WJ(pid) {
  302. $(".tbody").empty();
  303. $.ajax({
  304. type: "get",
  305. url: huayi.config.callcenter_url + "/Questionnaire/GetPagerInfoQ",
  306. async: true,
  307. dataType: "json",
  308. data: {
  309. pid: pid,
  310. token: $.cookie("token"),
  311. },
  312. success: function(data) {
  313. if(data.state.toLowerCase() == 'success') {
  314. $('.Title').text(data.data.F_Title);
  315. $("#F_Remark").text(data.data.F_Remark);
  316. $("#startText").text(data.data.F_StartText);
  317. $("#endText").text(data.data.F_EndText);
  318. var Questions = data.data.F_Questions;
  319. var html = '';
  320. for(var i = 0; i < Questions.length; i++) {
  321. var questype = Questions[i].questype;
  322. var Quesid = Questions[i].quesid;
  323. var quesremark = Questions[i].quesremark; //试题说明
  324. if(quesremark) {
  325. quesremark = ' 【' + quesremark + '】';
  326. } else {
  327. quesremark = "";
  328. }
  329. html += '<li class="" name="ltype' + Quesid + '" >';
  330. html += '<div class="Back ">';
  331. html += '<h3 class="size-14 QuesTitle" indexs="' + Questions[i].quesid + '">' + Questions[i].questitle + quesremark + ' </h3>';
  332. html += '</div>';
  333. //判断类型
  334. if(questype == 2) {
  335. //选项
  336. if(Questions[i].quesitems.length > 0) { //单选
  337. html += '<div class="radio clearfix" name="ltype' + Quesid + '" indexs="' + Questions[i].quesid + '">';
  338. var quesitems = Questions[i].quesitems;
  339. html += '<ul class="Ul">'
  340. for(var j = 0; j < quesitems.length; j++) {
  341. html += '<li>'
  342. html += '<label style="font-weight: normal;">'
  343. html += '' + (j + 1) + '.';
  344. html += '<input type="radio" index_="' + quesitems[j].itemid + '" value="' + quesitems[j].itemid + '" name="ltype' + Quesid + '" style="margin-left:5px;"> <span>' + quesitems[j].itemname + '</span></label>'
  345. html += '</li>'
  346. }
  347. html += '</ul>'
  348. html += '</div>'
  349. html += '</li>'
  350. }
  351. } else if(questype == 1) {
  352. //问答题
  353. html += '<div class="Wd" indexs="' + Questions[i].quesid + '">';
  354. html += '<textarea class="Wds" index="' + Questions[i].quesid + '"name="" rows="" cols="" style="width: 100%;"></textarea>'
  355. html += '</div>'
  356. } else {
  357. if(Questions[i].quesitems.length > 0) { //多选
  358. html += '<div class="checkbox clearfix" name="ltype' + Quesid + '" indexs="' + Questions[i].quesid + '">';
  359. html += '<ul class="Ul">'
  360. var quesitems = Questions[i].quesitems;
  361. for(var j = 0; j < quesitems.length; j++) {
  362. html += '<li>'
  363. html += '<label style="font-weight: normal;">'
  364. html += '' + (j + 1) + '.';
  365. html += '<input type="checkbox" index_="' + quesitems[j].itemid + '" value="' + quesitems[j].itemid + '" name="ltype' + Quesid + '" ><span> ' + quesitems[j].itemname + '</span></label>'
  366. //html += '<input type="checkbox" index_="' + quesitems[j].itemid + '" value="' + quesitems[j].itemid + '" name="ltype' + Quesid + '" > ' + quesitems[j].itemname + '</label>'
  367. html += '</li>'
  368. }
  369. html += '</ul>';
  370. html += '</div>'
  371. html += '</li >';
  372. }
  373. }
  374. }
  375. $(html).appendTo(".Qus_box");
  376. autosize($('textarea'));
  377. }
  378. }
  379. });
  380. }
  381. //用户反馈
  382. function GetYHFK() {
  383. $.ajax({
  384. type: "get",
  385. url: huayi.config.callcenter_url + "Dictionary/GetDicValueListByFlag",
  386. dataType: 'json',
  387. data: {
  388. flag: 'YHFK',
  389. token: $.cookie("token")
  390. },
  391. async: true,
  392. success: function(data) {
  393. var Count = data.data;
  394. $("<option value=''>--全部--</option>").appendTo($("#selhjjg"));
  395. for(var i = 0; i < Count.length; i++) {
  396. $("<li><label for=''><input type='radio' name='checks' value='" + Count[i].F_DictionaryValueId + "' /></label>" + Count[i].F_Name + "</li>").
  397. appendTo($("#Tg"));
  398. }
  399. }
  400. });
  401. }
  402. </script>
  403. </body>
  404. </html>