No Description

DetailsCannotCall.html 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342
  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. <style>
  12. table td {
  13. word-break: break-all;
  14. word-wrap: break-word;
  15. }
  16. table th {
  17. min-width: 120px;
  18. }
  19. .size-14 {
  20. font-size: 14px !important;
  21. }
  22. .shark_content_title {
  23. font-size: 14px;
  24. height: 30px;
  25. line-height: 20px;
  26. border-bottom: 1px solid #CCCCCC;
  27. margin-bottom: 5px;
  28. margin-top: 5px;
  29. }
  30. .content_2 li {
  31. width: 24%;
  32. margin-bottom: 10px;
  33. }
  34. .content_3 li {
  35. width: 24%;
  36. margin-bottom: 10px;
  37. }
  38. #tbr {
  39. border: 1px solid #ccc;
  40. }
  41. #tbr td {
  42. padding: 10px;
  43. padding: 6px 0 5px 10px;
  44. color: #717171;
  45. line-height: 200%;
  46. border-top: 1px dotted #cccccc;
  47. }
  48. #tbr th {
  49. border-right: 1px dotted #cccccc;
  50. border-top: 1px dotted #cccccc;
  51. background: #f9f9f9;
  52. text-align: right;
  53. }
  54. .Back {
  55. background-color: #f5f5f5;
  56. }
  57. label {
  58. margin-right: 10px;
  59. }
  60. .Phone_Text ul {
  61. padding-left: 0;
  62. }
  63. .Phone_Text li {
  64. width: 50%;
  65. }
  66. .Phone_Text label {
  67. width: 60px;
  68. }
  69. .Qus_box li {
  70. list-style: none;
  71. border: 1px solid #ccc;
  72. border-bottom: none;
  73. float: none;
  74. }
  75. .Qus_box {
  76. padding-left: 0 !important;
  77. }
  78. .Qus_box div {
  79. padding: 10px;
  80. border-bottom: 1px solid #ccc;
  81. }
  82. .title_ul {
  83. padding-left: 0;
  84. margin-bottom: 0;
  85. }
  86. .title_ul li {
  87. border: 1px solid #ccc;
  88. float: none;
  89. }
  90. .title_ul li label {
  91. border-right: 1px solid #ccc;
  92. line-height: 30px;
  93. margin: 0;
  94. padding: 10px;
  95. }
  96. .checkbox input[type=checkbox] {
  97. margin-top: 0;
  98. margin-left: 0;
  99. position: relative;
  100. }
  101. .radio input[type=radio] {
  102. margin-top: 0;
  103. margin-left: 0;
  104. position: relative;
  105. }
  106. .wrapper {
  107. margin-bottom: 20px;
  108. }
  109. </style>
  110. </head>
  111. <body class="gray-bg">
  112. <div class="wrapper clearfix">
  113. <div class="content_1 clearfix">
  114. <div class="shark_content_title clearfix">
  115. <span>电话信息</span>
  116. </div>
  117. <div class="clearfix Phone_Text clearfix">
  118. <ul class="clearfix">
  119. <li>
  120. <label for="">姓名:</label><span class="Name_"></span>
  121. </li>
  122. <li>
  123. <label for="">电话号码:</label><span class="Phone_"></span>
  124. </li>
  125. </ul>
  126. </div>
  127. </div>
  128. <div class="content_2 clearfix ">
  129. <div class="shark_content_title clearfix">
  130. <span>呼叫结果</span>
  131. </div>
  132. <div>
  133. <ul class="clearfix" id="Tgetruset"></ul>
  134. </div>
  135. </div>
  136. <div class="content_3 clearfix ">
  137. <div class="shark_content_title clearfix">
  138. <span>用户反馈</span>
  139. </div>
  140. <div>
  141. <ul class="clearfix" id="Tg"></ul>
  142. </div>
  143. </div>
  144. <!--<div class="content_4 clearfix ">
  145. <div class="shark_content_title clearfix">
  146. <span>问卷信息</span>
  147. </div>
  148. <div>
  149. <ul style="padding-left: 0;" class="title_ul">
  150. <li>
  151. <label for="">问卷名称</label><span class="Title"></span>
  152. </li>
  153. <li>
  154. <label for="">问卷名称</label><span class="F_Remark"></span>
  155. </li>
  156. </ul>
  157. <ul class="Qus_box"></ul>
  158. </div>
  159. </div>-->
  160. </div>
  161. <script>
  162. var wid = helper.request.queryString("wid");
  163. console.log(wid);
  164. $(document).ready(function () {
  165. GetHJJG();
  166. GetYHFK();
  167. XQ(wid);
  168. })
  169. //详情查看
  170. function XQ(wid) {
  171. console.log(wid);
  172. $.ajax({
  173. type: "get",
  174. url: huayi.config.callcenter_url + "CallPlan/GetTaskTelInfo",
  175. dataType: 'json',
  176. data: {
  177. id: wid,
  178. token: $.cookie("token")
  179. },
  180. async: true,
  181. success: function (data) {
  182. debugger;
  183. var Count = data.data;
  184. console.log(Count.taskModel);
  185. $(".Name_").text(Count.taskModel.F_CusName);
  186. $(".Phone_").text(Count.taskModel.F_Phone);
  187. $(' input[name="check"][value="' + Count.taskModel.F_HJJGId + '"]').prop("checked", "checked");
  188. $(' input[name="checks"][value="' + Count.taskModel.F_YHFKID + '"]').prop("checked", "checked");
  189. $('.Title').text(Count.paperModel.F_Title);
  190. $(".F_Remark").text(Count.paperModel.F_Remark);
  191. //循环填表
  192. var html = '';
  193. var Questions = Count.paperModel.F_Questions;
  194. for (var i = 0; i < Questions.length; i++) {
  195. var questype = Questions[i].questype;
  196. var quesanswers = Questions[i].quesanswers;
  197. var Quesid = Questions[i].quesid;
  198. html += '<li class="" name="ltype' + Quesid + '" >';
  199. html += '<div class="Back">';
  200. html += '<h3 class="size-14 QuesTitle" indexs="' + Questions[i].quesid + '">' + Questions[i].questitle + ' </h3>';
  201. html += '</div>';
  202. //判断类型
  203. if (questype == 2) {
  204. //选项
  205. if (Questions[i].quesitems.length > 0) { //单选
  206. html += '<div class="radio" name="ltype' + Quesid + '" indexs="' + Questions[i].quesid + '">';
  207. var quesitems = Questions[i].quesitems;
  208. for (var j = 0; j < quesitems.length; j++) {
  209. html += '<label style="font-weight: normal;">'
  210. html += '' + (j + 1) + '.';
  211. var chk = '';
  212. if (quesanswers == quesitems[j].itemid) {
  213. chk = 'checked="checked"';
  214. //html += '<input type="radio" checked="checked" index_="' + quesitems[j].itemid + '" value="' + quesitems[j].itemid + '" name="ltype' + Quesid + '" style="margin-left:5px;"> <span>' + quesitems[j].itemname + '</span></label>'
  215. }
  216. html += '<input type="radio" ' + chk + ' index_="' + quesitems[j].itemid + '" value="' + quesitems[j].itemid + '" name="ltype' + Quesid + '" style="margin-left:5px;"> <span>' + quesitems[j].itemname + '</span></label>'
  217. }
  218. html += '</div>'
  219. html += '</li>'
  220. }
  221. } else if (questype == 1) {
  222. //问答题
  223. html += '<div class="Wd" indexs="' + Questions[i].quesid + '">';
  224. html += '<textarea class="Wds" "index="' + Questions[i].quesid + '"name="" rows="" cols="" style="width: 100%;">' + quesanswers + '</textarea>'
  225. html += '</div>'
  226. } else {
  227. if (Questions[i].quesitems.length > 0) { //多选
  228. html += '<div class="checkbox" name="ltype' + Quesid + '" indexs="' + Questions[i].quesid + '">';
  229. var quesitems = Questions[i].quesitems;
  230. for (var j = 0; j < quesitems.length; j++) {
  231. html += '<label style="font-weight: normal;">'
  232. html += '' + (j + 1) + '.';
  233. var arr = quesanswers.split('|');
  234. var chk = '';
  235. for (var k = 0; k < arr.length; k++) {
  236. chk = '';
  237. if (arr[k] == quesitems[j].itemid) {
  238. chk = 'checked="checked"';
  239. break;
  240. }
  241. }
  242. html += '<input type="checkbox" ' + chk + ' index_="' + quesitems[j].itemid + '" value="' + quesitems[j].itemid + '" name="ltype' + Quesid + '" ><span> ' + quesitems[j].itemname + '</span></label>'
  243. //html += '<input type="checkbox" index_="' + quesitems[j].itemid + '" value="' + quesitems[j].itemid + '" name="ltype' + Quesid + '" > ' + quesitems[j].itemname + '</label>'
  244. }
  245. html += '</div>'
  246. html += '</li >';
  247. }
  248. }
  249. }
  250. $(html).appendTo(".Qus_box");
  251. }
  252. });
  253. }
  254. //获取呼叫结果
  255. function GetHJJG() {
  256. $.ajax({
  257. type: "get",
  258. url: huayi.config.callcenter_url + "Dictionary/GetDicValueListByFlag",
  259. dataType: 'json',
  260. data: {
  261. flag: 'HJJG',
  262. token: $.cookie("token")
  263. },
  264. async: true,
  265. success: function (data) {
  266. debugger;
  267. var Count = data.data;
  268. $("<option value=''>--全部--</option>").appendTo($("#selhjjg"));
  269. for (var i = 0; i < Count.length; i++) {
  270. $("<li><label for=''><input type='radio' name='check' value='" + Count[i].F_DictionaryValueId + "' /></label>" + Count[i].F_Name + "</li>").
  271. appendTo($("#Tgetruset"));
  272. }
  273. }
  274. });
  275. }
  276. //用户反馈
  277. function GetYHFK() {
  278. $.ajax({
  279. type: "get",
  280. url: huayi.config.callcenter_url + "Dictionary/GetDicValueListByFlag",
  281. dataType: 'json',
  282. data: {
  283. flag: 'YHFK',
  284. token: $.cookie("token")
  285. },
  286. async: true,
  287. success: function (data) {
  288. var Count = data.data;
  289. $("<option value=''>--全部--</option>").appendTo($("#selhjjg"));
  290. for (var i = 0; i < Count.length; i++) {
  291. $("<li><label for=''><input type='radio' name='checks' value='" + Count[i].F_DictionaryValueId + "' /></label>" + Count[i].F_Name + "</li>").
  292. appendTo($("#Tg"));
  293. }
  294. }
  295. });
  296. }
  297. </script>
  298. </body>
  299. </html>