Нет описания

DetailsCannotCall.html 14KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387
  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. .UL {
  110. padding-left: 0;
  111. overflow: hidden;
  112. }
  113. .UL li {
  114. list-style: none;
  115. float: left;
  116. width: 33%;
  117. padding: 6px 0 5px 10px;
  118. line-height: 30px;
  119. border: 0.1px dotted #cccccc;
  120. overflow: hidden;
  121. }
  122. .UL li span {
  123. overflow: hidden;
  124. }
  125. </style>
  126. </head>
  127. <body class="gray-bg">
  128. <div class="wrapper clearfix">
  129. <div class="content_1 clearfix">
  130. <div class="shark_content_title clearfix">
  131. <span>电话信息</span>
  132. </div>
  133. <ul class="UL"></ul>
  134. </div>
  135. <div class="content_2 clearfix ">
  136. <div class="shark_content_title clearfix">
  137. <span>呼叫结果</span>
  138. </div>
  139. <div>
  140. <ul class="clearfix" id="Tgetruset"></ul>
  141. </div>
  142. </div>
  143. <div class="content_3 clearfix ">
  144. <div class="shark_content_title clearfix">
  145. <span>用户反馈</span>
  146. </div>
  147. <div>
  148. <ul class="clearfix" id="Tg"></ul>
  149. </div>
  150. </div>
  151. <div class="content_4 clearfix" style="display:none;">
  152. <div class="shark_content_title clearfix">
  153. <span>问卷信息</span>
  154. </div>
  155. <div>
  156. <ul style="padding-left: 0;" class="title_ul">
  157. <li>
  158. <label for="">问卷名称</label><span class="Title"></span>
  159. </li>
  160. <li>
  161. <label for="">问卷名称</label><span class="F_Remark"></span>
  162. </li>
  163. </ul>
  164. <ul class="Qus_box"></ul>
  165. </div>
  166. </div>
  167. </div>
  168. <script>
  169. var wid = helper.request.queryString("wid");
  170. console.log(wid);
  171. $(document).ready(function () {
  172. $.ajax({
  173. type: "get",
  174. url: huayi.config.callcenter_url + "CallPlan/GetCallNumDetail",
  175. async: true,
  176. dataType: 'json',
  177. data: {
  178. token: $.cookie("token"),
  179. id: wid
  180. },
  181. success: function (data) {
  182. if (data.state == 'success') {
  183. var html = '';
  184. var detail = data.data.detail;
  185. for (var i = 0; i < detail.length; i++) {
  186. if (detail[i].field == "F_Phone") {
  187. html = '<li>' +
  188. '<label for="">' + detail[i].text + ':</label>' +
  189. '<span class="CusTelphone">' + detail[i].value + '</span>' +
  190. '</li>'
  191. } else {
  192. html = '<li>' +
  193. '<label for="">' + detail[i].text + ':</label>' +
  194. '<span class="' + detail[i].field + '">' + detail[i].value + '</span>' +
  195. '</li>'
  196. }
  197. $(html).appendTo(".UL");
  198. }
  199. }
  200. }
  201. });
  202. GetHJJG();
  203. GetYHFK();
  204. XQ(wid);
  205. })
  206. //详情查看
  207. function XQ(wid) {
  208. console.log(wid);
  209. $.ajax({
  210. type: "get",
  211. url: huayi.config.callcenter_url + "CallPlan/GetTaskTelInfo",
  212. dataType: 'json',
  213. data: {
  214. id: wid,
  215. token: $.cookie("token")
  216. },
  217. async: true,
  218. success: function (data) {
  219. var Count = data.data;
  220. console.log(Count.taskModel);
  221. $(".Name_").text(Count.taskModel.F_CusName);
  222. $(".Phone_").text(Count.taskModel.F_Phone);
  223. $(' input[name="check"][value="' + Count.taskModel.F_HJJGId + '"]').prop("checked", "checked");
  224. $(' input[name="checks"][value="' + Count.taskModel.F_YHFKID + '"]').prop("checked", "checked");
  225. if (typeof Count.paperModel !== 'undefined') {
  226. $('.content_4').show();
  227. $('.Title').text(Count.paperModel.F_Title);
  228. $(".F_Remark").text(Count.paperModel.F_Remark);
  229. //循环填表
  230. var html = '';
  231. var Questions = Count.paperModel.F_Questions;
  232. for (var i = 0; i < Questions.length; i++) {
  233. var questype = Questions[i].questype;
  234. var quesanswers = Questions[i].quesanswers;
  235. var Quesid = Questions[i].quesid;
  236. html += '<li class="" name="ltype' + Quesid + '" >';
  237. html += '<div class="Back">';
  238. html += '<h3 class="size-14 QuesTitle" indexs="' + Questions[i].quesid + '">' + Questions[i].questitle + ' </h3>';
  239. html += '</div>';
  240. //判断类型
  241. if (questype == 2) {
  242. //选项
  243. if (Questions[i].quesitems.length > 0) { //单选
  244. html += '<div class="radio" name="ltype' + Quesid + '" indexs="' + Questions[i].quesid + '">';
  245. var quesitems = Questions[i].quesitems;
  246. for (var j = 0; j < quesitems.length; j++) {
  247. html += '<label style="font-weight: normal;">'
  248. html += '' + (j + 1) + '.';
  249. var chk = '';
  250. if (quesanswers == quesitems[j].itemid) {
  251. chk = 'checked="checked"';
  252. //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>'
  253. }
  254. 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>'
  255. }
  256. html += '</div>'
  257. html += '</li>'
  258. }
  259. } else if (questype == 1) {
  260. //问答题
  261. html += '<div class="Wd" indexs="' + Questions[i].quesid + '">';
  262. html += '<textarea class="Wds" "index="' + Questions[i].quesid + '"name="" rows="" cols="" style="width: 100%;">' + quesanswers + '</textarea>'
  263. html += '</div>'
  264. } else {
  265. if (Questions[i].quesitems.length > 0) { //多选
  266. html += '<div class="checkbox" name="ltype' + Quesid + '" indexs="' + Questions[i].quesid + '">';
  267. var quesitems = Questions[i].quesitems;
  268. for (var j = 0; j < quesitems.length; j++) {
  269. html += '<label style="font-weight: normal;">'
  270. html += '' + (j + 1) + '.';
  271. var arr = quesanswers.split('|');
  272. var chk = '';
  273. for (var k = 0; k < arr.length; k++) {
  274. chk = '';
  275. if (arr[k] == quesitems[j].itemid) {
  276. chk = 'checked="checked"';
  277. break;
  278. }
  279. }
  280. html += '<input type="checkbox" ' + chk + ' index_="' + quesitems[j].itemid + '" value="' + quesitems[j].itemid + '" name="ltype' + Quesid + '" ><span> ' + quesitems[j].itemname + '</span></label>'
  281. //html += '<input type="checkbox" index_="' + quesitems[j].itemid + '" value="' + quesitems[j].itemid + '" name="ltype' + Quesid + '" > ' + quesitems[j].itemname + '</label>'
  282. }
  283. html += '</div>'
  284. html += '</li >';
  285. }
  286. }
  287. }
  288. $(html).appendTo(".Qus_box");
  289. }
  290. }
  291. });
  292. }
  293. //获取呼叫结果
  294. function GetHJJG() {
  295. $.ajax({
  296. type: "get",
  297. url: huayi.config.callcenter_url + "Dictionary/GetDicValueListByFlag",
  298. dataType: 'json',
  299. data: {
  300. flag: 'HJJG',
  301. token: $.cookie("token")
  302. },
  303. async: true,
  304. success: function (data) {
  305. var Count = data.data;
  306. $("<option value=''>--全部--</option>").appendTo($("#selhjjg"));
  307. for (var i = 0; i < Count.length; i++) {
  308. $("<li><label for=''><input type='radio' name='check' value='" + Count[i].F_DictionaryValueId + "' /></label>" + Count[i].F_Name + "</li>").
  309. appendTo($("#Tgetruset"));
  310. }
  311. }
  312. });
  313. }
  314. //用户反馈
  315. function GetYHFK() {
  316. $.ajax({
  317. type: "get",
  318. url: huayi.config.callcenter_url + "Dictionary/GetDicValueListByFlag",
  319. dataType: 'json',
  320. data: {
  321. flag: 'YHFK',
  322. token: $.cookie("token")
  323. },
  324. async: true,
  325. success: function (data) {
  326. var Count = data.data;
  327. $("<option value=''>--全部--</option>").appendTo($("#selhjjg"));
  328. for (var i = 0; i < Count.length; i++) {
  329. $("<li><label for=''><input type='radio' name='checks' value='" + Count[i].F_DictionaryValueId + "' /></label>" + Count[i].F_Name + "</li>").
  330. appendTo($("#Tg"));
  331. }
  332. }
  333. });
  334. }
  335. </script>
  336. </body>
  337. </html>