Нет описания

LookMessages.html 9.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  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. <link rel="stylesheet" type="text/css" href="../css/lookMsg.css" />
  12. <style type="text/css">
  13. input[type="radio" i]:checked {
  14. background-color: #f00;
  15. }
  16. .size-14{
  17. outline: none;
  18. border: none;
  19. background-color: rgb(245,245,245) !important;
  20. }
  21. .Wds{
  22. width: 100%;
  23. overflow: hidden;
  24. overflow-wrap: break-word;
  25. border: 1px solid rgb(204, 204, 204);
  26. margin-top: 20px;
  27. outline: none;
  28. padding: 5px 10px;
  29. height: 42px;
  30. }
  31. </style>
  32. </head>
  33. <body class="gray-bg">
  34. <div class="wrapper clearfix lookMsgs">
  35. <div class="content_1 clearfix">
  36. <div class="shark_content_title clearfix">
  37. <span>电话信息</span>
  38. </div>
  39. <div class="Phone_Text">
  40. <ul class="clearfix form-inline">
  41. <li>
  42. <label for="F_ordernature">用户分类:</label>
  43. <span id="F_ordernature"></span>
  44. </li>
  45. <li>
  46. <label for="Phone_">电话号码:</label>
  47. <a class="CallOut" id="CallOut"><span id="Phone_"></span><img src="../img/Phones.png" alt="" /></a>
  48. </li>
  49. <li>
  50. <label for="F_broadbandaccount">宽带账号:</label>
  51. <span id="F_broadbandaccount"></span>
  52. </li>
  53. <li>
  54. <label for="address">地址:</label>
  55. <span id="address"></span>
  56. </li>
  57. <li>
  58. <label for="F_accesstime">入网时间:</label>
  59. <span id="F_accesstime"></span>
  60. </li>
  61. <li>
  62. <label for="F_channel">入网渠道:</label>
  63. <span id="F_channel"></span>
  64. </li>
  65. <li>
  66. <label for="F_service">营服:</label>
  67. <span id="F_service"></span>
  68. </li>
  69. <li>
  70. <label for="F_packaget">套餐:</label>
  71. <span id="F_packaget"></span>
  72. </li>
  73. <li>
  74. <label for="F_fusion">是否融合:</label>
  75. <span id="F_fusion"></span>
  76. </li>
  77. <li>
  78. <label for="F_status">状态:</label>
  79. <span id="F_status"></span>
  80. </li>
  81. <!--<li>
  82. <label for="country">乡镇或单位:</label>
  83. <span id="country"></span>
  84. </li>-->
  85. </ul>
  86. </div>
  87. </div>
  88. <div class="content_3 clearfix " style="display: none;">
  89. <div class="shark_content_title clearfix">
  90. <span>用户反馈</span>
  91. </div>
  92. <div>
  93. <ul class="clearfix" id="Tg">
  94. </ul>
  95. </div>
  96. </div>
  97. <div class="content_4 clearfix ">
  98. <div class="shark_content_title clearfix">
  99. <span>问卷信息</span>
  100. </div>
  101. <div>
  102. <ul style="padding-left: 0;" class="title_ul">
  103. <li>
  104. <label for="">问卷名称</label><span class="Title"></span>
  105. </li>
  106. <li>
  107. <label for="startText">问卷开场语</label><span id="startText" class="F_Remark"></span>
  108. </li>
  109. <li>
  110. <label for="F_Remark">问卷说明</label><span id="F_Remark" class="F_Remark"></span>
  111. </li>
  112. </ul>
  113. <ul class="Qus_box ">
  114. </ul>
  115. <ul style="padding-left: 0;" class="title_ul">
  116. <li>
  117. <label for="">问卷结束语</label><span id="endText" class="F_Remark"></span>
  118. </li>
  119. </ul>
  120. </div>
  121. </div>
  122. <div class="content_2 clearfix ">
  123. <div class="shark_content_title clearfix">
  124. <span>呼叫结果</span>
  125. </div>
  126. <div>
  127. <ul class="clearfix" id="Tgetruset">
  128. </ul>
  129. </div>
  130. </div>
  131. </div>
  132. <script src="../js/autosize/autosize.js"></script>
  133. <script>
  134. var wid = helper.request.queryString("Str");
  135. $(document).ready(function() {
  136. XQ(wid);
  137. GetHJJG();
  138. //GetYHFK();
  139. })
  140. //详情查看
  141. function XQ(wid) {
  142. $.ajax({
  143. type: "get",
  144. url: huayi.config.callcenter_url + "CallOutPlan/GetTaskTelInfo",
  145. dataType: 'json',
  146. data: {
  147. id: wid,
  148. token: $.cookie("token")
  149. },
  150. async: true,
  151. success: function(data) {
  152. var Count = data.data;
  153. $("#F_ordernature").text(Count.taskModel.F_ordernature);
  154. $("#Phone_").text(Count.taskModel.F_Telephone);
  155. $('#F_broadbandaccount').text(Count.taskModel.F_broadbandaccount);
  156. $('#F_accesstime').text(Count.taskModel.F_accesstime);
  157. $('#address').text(Count.taskModel.F_Address);
  158. $("#F_channel").text(Count.taskModel.F_channel);
  159. $("#F_service").text(Count.taskModel.F_service);
  160. $('#F_packaget').text(Count.taskModel.F_packaget);
  161. $('#F_fusion').text(Count.taskModel.F_fusion);
  162. $('#F_status').text(Count.taskModel.F_status);
  163. $(' input[name="check"][value="' + Count.taskModel.F_HJJGId + '"]').prop("checked", "checked");
  164. $(' input[name="checks"][value="' + Count.taskModel.F_YHFKId + '"]').prop("checked", "checked");
  165. $('.Title').text(Count.paperModel.F_Title);
  166. $("#F_Remark").text(Count.paperModel.F_Remark);
  167. $("#startText").text(Count.paperModel.F_StartText);
  168. $("#endText").text(Count.paperModel.F_EndText);
  169. //循环填表
  170. var html = '';
  171. var Questions = Count.paperModel.F_Questions;
  172. for(var i = 0; i < Questions.length; i++) {
  173. var questype = Questions[i].questype;
  174. var quesanswers = Questions[i].quesanswers;
  175. var Quesid = Questions[i].quesid;
  176. var quesremark = Questions[i].quesremark; //试题说明
  177. if(quesremark) {
  178. quesremark = ' 【' + quesremark + '】';
  179. } else {
  180. quesremark = "";
  181. }
  182. html += '<li class="" name="ltype' + Quesid + '" >';
  183. html += '<div class="Back">';
  184. //判断类型
  185. if(Questions[i].sortmodel == 0){
  186. html += '<h3 class="size-14 QuesTitle" indexs="' + Questions[i].quesid + '">'+'<span style="color:#f00;">'+Questions[i].F_CategoryName+'</span>'+'&nbsp;&nbsp;' + Questions[i].questitle +quesremark;
  187. }else if(Questions[i].sortmodel == 1){
  188. html += '<h3 class="size-14 QuesTitle" indexs="' + Questions[i].quesid + '">'+'<span style="color:#f0f;">'+Questions[i].F_CategoryName+'</span>'+'&nbsp;&nbsp;' + Questions[i].questitle+quesremark ;
  189. }else{
  190. html += '<h3 class="size-14 QuesTitle" indexs="' + Questions[i].quesid + '">'+'<span style="color:#fb0;">'+Questions[i].F_CategoryName+'</span>'+'&nbsp;&nbsp;' + Questions[i].questitle+quesremark ;
  191. }
  192. if(questype==1){
  193. html += '<div class="Wd" indexs="' + Questions[i].quesid + '">';
  194. html += '<p class="Wds" "index="' + Questions[i].quesid + '" style="width: 100%;">' + quesanswers + '</p>'
  195. // html += '<textarea disabled class="Wds" index="' + Questions[i].quesid + '"name="" rows="" cols="" style="width: 100%;" value="'+Questions[i].quesanswers+'"></textarea>'
  196. html += '</div></h3></div></li>'
  197. }else{
  198. html +='&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<select class="size-14" id="questionCount'+i+'"><option value="">该选项</option>'
  199. if(Questions[i].quesitems.length > 0) {
  200. var quesitems = Questions[i].quesitems;
  201. for(var j = 0; j < quesitems.length; j++) {
  202. var chk = '';
  203. if(quesanswers == quesitems[j].itemid) {
  204. chk = 'selected="selected"';
  205. }
  206. html += '<option disabled value="'+Questions[i].quesid+'_' + quesitems[j].itemid+'_'+ quesitems[j].itemname+ '" '+chk+'>' + quesitems[j].itemname + '</option>'
  207. }
  208. }
  209. html += '</select> </h3>'
  210. html += '</div></li>';
  211. }
  212. }
  213. $(html).appendTo(".Qus_box");
  214. autosize($('textarea'));
  215. }
  216. });
  217. }
  218. //获取呼叫结果
  219. function GetHJJG() {
  220. $.ajax({
  221. type: "get",
  222. url: huayi.config.callcenter_url + "Dictionary/GetDicValueListByFlag",
  223. dataType: 'json',
  224. data: {
  225. flag: 'HJJG',
  226. token: $.cookie("token")
  227. },
  228. async: true,
  229. success: function(data) {
  230. var Count = data.data;
  231. for(var i = 0; i < Count.length; i++) {
  232. var listItem = '<li>' +
  233. '<input disabled id="listR_' + i + '" type="radio" name="check" value="' + Count[i].F_DictionaryValueId + '" />' +
  234. '<label for="listR_' + i + '">' + Count[i].F_Name + '</label>' +
  235. '</li>';
  236. $(listItem).appendTo($("#Tgetruset"));
  237. }
  238. }
  239. });
  240. }
  241. //用户反馈
  242. function GetYHFK() {
  243. $.ajax({
  244. type: "get",
  245. url: huayi.config.callcenter_url + "Dictionary/GetDicValueListByFlag",
  246. dataType: 'json',
  247. data: {
  248. flag: 'YHFK',
  249. token: $.cookie("token")
  250. },
  251. async: true,
  252. success: function(data) {
  253. var Count = data.data;
  254. $("<option value=''>--全部--</option>").appendTo($("#selhjjg"));
  255. for(var i = 0; i < Count.length; i++) {
  256. $("<li><label for=''><input disabled type='radio' name='checks' value='" + Count[i].F_DictionaryValueId + "' /></label>" + Count[i].F_Name + "</li>").
  257. appendTo($("#Tg"));
  258. }
  259. }
  260. });
  261. }
  262. </script>
  263. </body>
  264. </html>