PingAnYeXianSZCG_Web 前端代码

LookMessages.html 8.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348
  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_">18839115206</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">
  134. </ul>
  135. </div>
  136. </div>
  137. <div class="content_3 clearfix ">
  138. <div class="shark_content_title clearfix">
  139. <span>用户反馈</span>
  140. </div>
  141. <div>
  142. <ul class="clearfix" id="Tg">
  143. </ul>
  144. </div>
  145. </div>
  146. <div class="content_4 clearfix ">
  147. <div class="shark_content_title clearfix">
  148. <span>问卷信息</span>
  149. </div>
  150. <div>
  151. <ul style="padding-left: 0;" class="title_ul">
  152. <li>
  153. <label for="">问卷名称</label><span class="Title"></span>
  154. </li>
  155. <li>
  156. <label for="">问卷名称</label><span class="F_Remark"></span>
  157. </li>
  158. </ul>
  159. <ul class="Qus_box">
  160. </ul>
  161. </div>
  162. </div>
  163. </div>
  164. <script>
  165. var wid = helper.request.queryString("Str");
  166. console.log(wid);
  167. $(document).ready(function() {
  168. GetHJJG();
  169. GetYHFK();
  170. XQ(wid);
  171. })
  172. //详情查看
  173. function XQ(wid) {
  174. console.log(wid);
  175. $.ajax({
  176. type: "get",
  177. url: huayi.config.callcenter_url + "CallOutPlan/GetTaskTelInfo",
  178. dataType: 'json',
  179. data: {
  180. id: wid,
  181. token: $.cookie("token")
  182. },
  183. async: true,
  184. success: function(data) {
  185. var Count = data.data;
  186. console.log(Count.taskModel);
  187. $(".Name_").text(Count.taskModel.F_CusName);
  188. $(".Phone_").text(Count.taskModel.F_Phone);
  189. $(' input[name="check"][value="' + Count.taskModel.F_HJJGId + '"]').prop("checked", "checked");
  190. $(' input[name="checks"][value="' + Count.taskModel.F_YHFKId + '"]').prop("checked", "checked");
  191. $('.Title').text(Count.paperModel.F_Title);
  192. $(".F_Remark").text(Count.paperModel.F_Remark);
  193. //循环填表
  194. var html = '';
  195. var Questions = Count.paperModel.F_Questions;
  196. for(var i = 0; i < Questions.length; i++) {
  197. var questype = Questions[i].questype;
  198. var quesanswers = Questions[i].quesanswers;
  199. var Quesid = Questions[i].quesid;
  200. html += '<li class="" name="ltype' + Quesid + '" >';
  201. html += '<div class="Back">';
  202. html += '<h3 class="size-14 QuesTitle" indexs="' + Questions[i].quesid + '">' + Questions[i].questitle + ' </h3>';
  203. html += '</div>';
  204. //判断类型
  205. if(questype == 2) {
  206. //选项
  207. if(Questions[i].quesitems.length > 0) { //单选
  208. html += '<div class="radio" name="ltype' + Quesid + '" indexs="' + Questions[i].quesid + '">';
  209. var quesitems = Questions[i].quesitems;
  210. for(var j = 0; j < quesitems.length; j++) {
  211. html += '<label style="font-weight: normal;">'
  212. html += '' + (j + 1) + '.';
  213. var chk='';
  214. if(quesanswers==quesitems[j].itemid){
  215. chk='checked="checked"';
  216. //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>'
  217. }
  218. 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>'
  219. }
  220. html += '</div>'
  221. html += '</li>'
  222. }
  223. } else if(questype == 1) {
  224. //问答题
  225. html += '<div class="Wd" indexs="' + Questions[i].quesid + '">';
  226. html += '<textarea class="Wds" "index="' + Questions[i].quesid + '"name="" rows="" cols="" style="width: 100%;">'+quesanswers+'</textarea>'
  227. html += '</div>'
  228. } else {
  229. if(Questions[i].quesitems.length > 0) { //多选
  230. html += '<div class="checkbox" name="ltype' + Quesid + '" indexs="' + Questions[i].quesid + '">';
  231. var quesitems = Questions[i].quesitems;
  232. for(var j = 0; j < quesitems.length; j++) {
  233. html += '<label style="font-weight: normal;">'
  234. html += '' + (j + 1) + '.';
  235. var arr=quesanswers.split('|');
  236. var chk='';
  237. for(var k = 0; k < arr.length; k++){
  238. chk='';
  239. if(arr[k]==quesitems[j].itemid){
  240. chk='checked="checked"';
  241. break;
  242. }
  243. }
  244. html += '<input type="checkbox" '+chk+' index_="' + quesitems[j].itemid + '" value="' + quesitems[j].itemid + '" name="ltype' + Quesid + '" ><span> ' + quesitems[j].itemname + '</span></label>'
  245. //html += '<input type="checkbox" index_="' + quesitems[j].itemid + '" value="' + quesitems[j].itemid + '" name="ltype' + Quesid + '" > ' + quesitems[j].itemname + '</label>'
  246. }
  247. html += '</div>'
  248. html += '</li >';
  249. }
  250. }
  251. }
  252. $(html).appendTo(".Qus_box");
  253. }
  254. });
  255. }
  256. //获取呼叫结果
  257. function GetHJJG() {
  258. $.ajax({
  259. type: "get",
  260. url: huayi.config.callcenter_url + "Dictionary/GetDicValueListByFlag",
  261. dataType: 'json',
  262. data: {
  263. flag: 'HJJG',
  264. token: $.cookie("token")
  265. },
  266. async: true,
  267. success: function(data) {
  268. var Count = data.data;
  269. $("<option value=''>--全部--</option>").appendTo($("#selhjjg"));
  270. for(var i = 0; i < Count.length; i++) {
  271. $("<li><label for=''><input type='radio' name='check' value='" + Count[i].F_DictionaryValueId + "' /></label>" + Count[i].F_Name + "</li>").
  272. appendTo($("#Tgetruset"));
  273. }
  274. }
  275. });
  276. }
  277. //用户反馈
  278. function GetYHFK() {
  279. $.ajax({
  280. type: "get",
  281. url: huayi.config.callcenter_url + "Dictionary/GetDicValueListByFlag",
  282. dataType: 'json',
  283. data: {
  284. flag: 'YHFK',
  285. token: $.cookie("token")
  286. },
  287. async: true,
  288. success: function(data) {
  289. var Count = data.data;
  290. $("<option value=''>--全部--</option>").appendTo($("#selhjjg"));
  291. for(var i = 0; i < Count.length; i++) {
  292. $("<li><label for=''><input type='radio' name='checks' value='" + Count[i].F_DictionaryValueId + "' /></label>" + Count[i].F_Name + "</li>").
  293. appendTo($("#Tg"));
  294. }
  295. }
  296. });
  297. }
  298. </script>
  299. </body>
  300. </html>