Нет описания

LookMessages.html 9.6KB

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