PingAnYeXianSZCG_Web 前端代码

LookMessages.html 9.4KB

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