暂无描述

LookMessage.html 21KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673
  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. <link href="../callScreen/cutVideo/rrweb.min.css" rel="stylesheet" />
  13. <link href="../callScreen/cutVideo/style.css" rel="stylesheet" />
  14. <!--<link rel="stylesheet" href="../js/bootstrap-select/css/bootstrap-select.css" />
  15. <script src="../js/bootstrap-select/js/bootstrap-select.js"></script>
  16. <link rel="stylesheet" href="https://libs.baidu.com/bootstrap/3.0.3/css/bootstrap.min.css" />
  17. <script src="https://libs.baidu.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>-->
  18. <style type="text/css">
  19. .size-14 {
  20. outline: none;
  21. border: none;
  22. background-color: rgb(245, 245, 245) !important;
  23. }
  24. .Wds {
  25. width: 100%;
  26. overflow: hidden;
  27. overflow-wrap: break-word;
  28. border: 1px solid rgb(204, 204, 204);
  29. margin-top: 20px;
  30. outline: none;
  31. padding: 5px 10px;
  32. height: 42px;
  33. }
  34. </style>
  35. <script type="text/javascript">
  36. // $(window).on('load', function() {
  37. // $('.selectpicker').selectpicker({
  38. // 'selectedText': 'cat'
  39. // });
  40. // });
  41. </script>
  42. </head>
  43. <body class="gray-bg">
  44. <div class="wrapper clearfix">
  45. <div class="content_1 clearfix">
  46. <div class="shark_content_title clearfix">
  47. <span>电话信息</span>
  48. </div>
  49. <div class="clearfix Phone_Text clearfix">
  50. <ul class="clearfix form-inline">
  51. <li>
  52. <label for="Name_">姓名:</label>
  53. <input type="text" id="Name_" class="form-control" />
  54. </li>
  55. <!-- <li>
  56. <label for="callNum">固定号码:</label>
  57. <input type="text" id="callNum" class="form-control" />
  58. </li> -->
  59. <li>
  60. <label for="Phone_">电话号码:</label>
  61. <a class="CallOut" id="CallOut"><span id="Phone_"></span><img src="../img/Phones.png"
  62. alt="" /></a>
  63. </li>
  64. <li>
  65. <label for="address">地址:</label>
  66. <input type="text" id="address" class="form-control" />
  67. </li>
  68. <li>
  69. <label for="F_ordernature">用户分类:</label>
  70. <input type="text" id="F_ordernature" class="form-control" />
  71. </li>
  72. <li>
  73. <label for="F_broadbandaccount">宽带账号:</label>
  74. <input type="text" id="F_broadbandaccount" class="form-control" />
  75. </li>
  76. <li>
  77. <label for="F_accesstime">入网时间:</label>
  78. <input type="text" id="F_accesstime" class="form-control" />
  79. </li>
  80. <li>
  81. <label for="F_channel">入网渠道:</label>
  82. <input type="text" id="F_channel" class="form-control" />
  83. </li>
  84. <li>
  85. <label for="F_service">营服:</label>
  86. <input type="text" id="F_service" class="form-control" />
  87. </li>
  88. <li>
  89. <label for="F_packaget">套餐:</label>
  90. <input type="text" id="F_packaget" class="form-control" />
  91. </li>
  92. <li>
  93. <label for="F_fusion">是否融合:</label>
  94. <input type="text" id="F_fusion" class="form-control" />
  95. </li>
  96. <li>
  97. <label for="F_status">状态:</label>
  98. <input type="text" id="F_status" class="form-control" />
  99. </li>
  100. </ul>
  101. <div id="luping">
  102. <span id="playersing">
  103. </span>
  104. </div>
  105. </div>
  106. </div>
  107. <div class="content_3 clearfix " style="display: none;">
  108. <div class="shark_content_title clearfix">
  109. <span>用户反馈</span>
  110. </div>
  111. <div>
  112. <ul class="clearfix" id="Tg">
  113. </ul>
  114. </div>
  115. </div>
  116. <div class="content_4 clearfix ">
  117. <div class="shark_content_title clearfix">
  118. <span>问卷信息(带<span style="color: #f00;"> * </span>为必填项)</span>
  119. </div>
  120. <div>
  121. <ul style="padding-left: 0;" class="title_ul">
  122. <li>
  123. <label for="">问卷名称</label><span class="Title"></span>
  124. </li>
  125. <li>
  126. <label for="startText">问卷开场语</label><span id="startText" class="F_Remark"></span>
  127. </li>
  128. <li>
  129. <label for="F_Remark">问卷说明</label><span id="F_Remark" class="F_Remark"></span>
  130. </li>
  131. </ul>
  132. <ul class="Qus_box">
  133. </ul>
  134. <ul style="padding-left: 0;" class="title_ul">
  135. <li>
  136. <label for="">问卷结束语</label><span id="endText" class="F_Remark"></span>
  137. </li>
  138. </ul>
  139. </div>
  140. </div>
  141. <div class="content_2 clearfix ">
  142. <div class="shark_content_title clearfix">
  143. <span>呼叫结果</span>
  144. </div>
  145. <div>
  146. <ul class="clearfix" id="Tgetruset">
  147. </ul>
  148. </div>
  149. </div>
  150. <div class="content_5 clearfix" style="text-align: center;">
  151. <div>
  152. <button class="Ce btns">提交</button>
  153. <!--<button class="bb">测试</button>-->
  154. <input type="hidden" id="F_CusID" />
  155. <input type="hidden" id="F_Id" />
  156. <input type="hidden" id="F_TaskId" />
  157. <input type="hidden" id="TelCode" value="" />
  158. </div>
  159. </div>
  160. </div>
  161. <script src="../js/guid.js"></script>
  162. <script src="../js/autosize/autosize.js"></script>
  163. <!-- 录屏-->
  164. <!--<script src="https://cdn.jsdelivr.net/npm/rrweb@latest/dist/rrweb.min.js"></script>
  165. <script src="https://cdn.jsdelivr.net/npm/rrweb@latest/dist/record/rrweb-record.min.js"></script>-->
  166. <script src="../callScreen/cutVideo/rrweb.min.js"></script>
  167. <script src="../callScreen/cutVideo/rrweb-record.min.js"></script>
  168. <!-- 回放播放器 -->
  169. <!--<script src="https://cdn.jsdelivr.net/npm/rrweb-player@latest/dist/index.js"></script>-->
  170. <script src="../callScreen/cutVideo/index.js"></script>
  171. <script src="../callScreen/cutVideo.js"></script>
  172. <script>
  173. // 录屏
  174. var CallID = helper.request.queryString("CallID");
  175. var wid = helper.request.queryString("Str");
  176. var ans = [];
  177. var types = [];
  178. var types2 = [];
  179. var type;
  180. var star_number = [];
  181. var id;
  182. var content;
  183. var str;
  184. var strs;
  185. var questionCount = [];
  186. var infor = 0;
  187. var questionId = 0 ;
  188. //console.log(wid);
  189. $(document).ready(function() {
  190. if (wid != null && wid != undefined && wid != "") {
  191. //获取乡镇或单位下拉
  192. getCountry();
  193. XQ();
  194. GetHJJG(); //获取呼叫结果
  195. //GetYHFK();//获取用户反馈
  196. }
  197. console.log('xinxi' + CallID)
  198. //点击电话号码外呼
  199. $(".CallOut").click(function(event) {
  200. if ($("#Phone_").text()) {
  201. calloutopt($("#Phone_").text());
  202. }
  203. });
  204. });
  205. //获取乡镇或单位下拉
  206. function getCountry() {
  207. $.ajax({
  208. type: "get",
  209. url: huayi.config.callcenter_url + "Dictionary/GetDicValueListByFlag",
  210. dataType: 'json',
  211. data: {
  212. flag: 'JBDW',
  213. token: $.cookie("token")
  214. },
  215. async: true,
  216. success: function(data) {
  217. var res = data.data;
  218. for (var i = 0; i < res.length; i++) {
  219. $('<option value="' + res[i].F_DictionaryValueId + '">' + res[i].F_Name + '</option>')
  220. .appendTo($("#country"));
  221. }
  222. }
  223. });
  224. }
  225. //外呼
  226. function calloutopt(telphone) {
  227. event.stopPropagation();
  228. if (telphone) {
  229. $.ajax({
  230. type: "get",
  231. url: huayi.config.callcenter_url + "CallOutOpt/GetCallOutprefix",
  232. async: true,
  233. dataType: 'json',
  234. data: {
  235. token: $.cookie("token"),
  236. phone: telphone
  237. },
  238. success: function(result) {
  239. if (result.state.toLowerCase() == "success") {
  240. //debugger
  241. var guid = uuid();
  242. $("#TelCode").val(guid);
  243. top.obj.Type = "MakeCall";
  244. top.obj.DestinationNumber = result.data.phone;
  245. top.obj.Header = result.data.fix;
  246. top.obj.TaskType = "1"; //0:拨号外呼;1:问卷外呼;
  247. top.obj.TaskPhoneID = $("#F_Id").val(); //回访的电话ID
  248. //top.obj.TaskID = guid; //回访记录编号
  249. top.obj.TaskID = $("#F_TaskId").val()
  250. var arr = {
  251. '1010': '22',
  252. '1008': '3',
  253. '1009': '4',
  254. '1004': '5',
  255. '1020': '6',
  256. '1011': '7',
  257. '1015': '8',
  258. '1005': '9',
  259. '1013': '10',
  260. '1012': '11',
  261. '1006': '12',
  262. '1002': '13',
  263. '1001': '14',
  264. '1007': '15',
  265. '1003': '16',
  266. '1014': '17',
  267. '1016': '18',
  268. '1017': '19',
  269. '1018': '20',
  270. '1019': '21'
  271. };
  272. if (top.obj.Header) {
  273. top.obj.Header = arr[top.obj.AgentExten]
  274. top.obj.DestinationNumber = top.obj.Header + top.obj.DestinationNumber.slice(1)
  275. }
  276. top.Send();
  277. }
  278. }
  279. });
  280. $.ajax({
  281. type: "get",
  282. url: huayi.config.callcenter_url + "CallOutPlan/UdpateCallState",
  283. dataType: 'json',
  284. data: {
  285. phoneid: $("#F_Id").val(),
  286. token: $.cookie("token")
  287. },
  288. async: true,
  289. success: function(data) {
  290. }
  291. });
  292. }
  293. }
  294. //详情查看
  295. function XQ() {
  296. $.ajax({
  297. type: "get",
  298. url: huayi.config.callcenter_url + "CallOutPlan/GetTaskTelModel",
  299. dataType: 'json',
  300. data: {
  301. id: wid,
  302. token: $.cookie("token")
  303. },
  304. async: false,
  305. success: function(data) {
  306. var Count = data.data;
  307. if (Count) {
  308. if (Count.taskModel) {
  309. $("#F_TaskId").val(Count.taskModel.F_TaskId);
  310. $("#F_Id").val(Count.taskModel.F_Id);
  311. $("#F_CusID").val(Count.taskModel.F_CusID)
  312. $("#F_ordernature").val(Count.taskModel.F_ordernature);
  313. $("#Phone_").text(Count.taskModel.F_Phone);
  314. $('#F_broadbandaccount').val(Count.taskModel.F_broadbandaccount);
  315. $('#F_accesstime').val(Count.taskModel.F_accesstime);
  316. $('#address').val(Count.taskModel.F_Address);
  317. $("#F_channel").val(Count.taskModel.F_channel);
  318. $("#F_service").val(Count.taskModel.F_service);
  319. $('#F_packaget').val(Count.taskModel.F_packaget);
  320. $('#F_fusion').val(Count.taskModel.F_fusion);
  321. $('#F_status').val(Count.taskModel.F_status);
  322. var pid = Count.paperid;
  323. if (pid) {
  324. questionId= pid
  325. WJ(pid);
  326. }
  327. }
  328. }
  329. }
  330. });
  331. }
  332. //获取呼叫结果
  333. function GetHJJG() {
  334. $.ajax({
  335. type: "get",
  336. url: huayi.config.callcenter_url + "Dictionary/GetDicValueListByFlag",
  337. dataType: 'json',
  338. data: {
  339. flag: 'HJJG',
  340. token: $.cookie("token")
  341. },
  342. async: true,
  343. success: function(data) {
  344. var Count = data.data;
  345. for (var i = 0; i < Count.length; i++) {
  346. //$("<li><label for=''><input type='radio' name='check' value='" + Count[i].F_DictionaryValueId + "' /></label>" + Count[i].F_Name + "</li>").
  347. var listItem = '<li>' +
  348. '<input id="listR_' + i + '" type="radio" name="check" value="' + Count[i]
  349. .F_DictionaryValueId + '" />' +
  350. '<label for="listR_' + i + '">' + Count[i].F_Name + '</label>' +
  351. '</li>';
  352. $(listItem).appendTo($("#Tgetruset"));
  353. }
  354. }
  355. });
  356. }
  357. //提交
  358. $(".Ce").unbind('click').click(function(e) {
  359. let data;
  360. let callid = localStorage.getItem('callid')
  361. let callState = $('input[name="check"]:checked').val()
  362. if (!callid) {
  363. callid = ''
  364. }
  365. data = {
  366. phoneid: $("#F_Id").val(),
  367. token: $.cookie("token")
  368. };
  369. //根据呼叫结果来确定是否你填或不必填(接通未评价或未接通可以不做判断)
  370. if(callState != '659' && callState != '660'){
  371. $(".Wd").each(function(j, k) {
  372. var val = $(k).find(".Wds").val();
  373. if (!val) {
  374. infor = 1
  375. }
  376. })
  377. questionCount.forEach(function(v, n) {
  378. var nameq = $('#' + v).attr('name')
  379. if (!$('#' + v).val() && nameq) {
  380. infor = 1;
  381. }
  382. })
  383. }
  384. if (infor == 1) {
  385. layer.confirm('必选项必须选择!', {
  386. icon: 2,
  387. btn: ['确定']
  388. });
  389. infor = 0;
  390. return
  391. }
  392. //问答题
  393. $(".Wd").each(function(j, k) {
  394. strs = '';
  395. var categoryName = $(k).find(".Wds").attr("name");
  396. var index = $(k).attr("indexs");
  397. var val = $(k).find(".Wds").val();
  398. console.log(categoryName)
  399. if (val) {
  400. str = index + '_0_' + val;
  401. ans.push(str);
  402. }
  403. console.log(questionId)
  404. debugger
  405. if(questionId == 38){
  406. types.push({
  407. name: categoryName,
  408. value: val
  409. })
  410. }
  411. })
  412. //选择题
  413. questionCount.forEach(function(v, n) {
  414. var categoryName = $('#' + v).find('option:selected').attr('categoryName')
  415. var staus = $('#' + v).find('option:selected').attr('staus')
  416. var val = $('#' + v).find('option:selected').attr('val')
  417. var nameq = $('#' + v).attr('name')
  418. if (categoryName && staus == 0) {
  419. types.push({
  420. name: categoryName,
  421. value: val
  422. })
  423. }
  424. if (categoryName && staus == 1) {
  425. types2.push({
  426. name: categoryName,
  427. value: val
  428. })
  429. }
  430. ans.push($('#' + v).val())
  431. })
  432. if (!$('#Name_').val()) {
  433. layer.confirm('姓名必须填写!', {
  434. icon: 2,
  435. btn: ['确定']
  436. });
  437. return
  438. }
  439. if ($('input[name="check"]:checked').val() == undefined) {
  440. layer.confirm('呼叫结果必须选择!', {
  441. icon: 2,
  442. btn: ['确定']
  443. });
  444. } else {
  445. types.forEach(function(v, n) {
  446. if (v.name == '移网上网质量') {
  447. data.F_typeName1 = v.name;
  448. data.value1 = v.value
  449. } else if (v.name == '移网通话质量') {
  450. data.F_typeName2 = v.name;
  451. data.value2 = v.value
  452. } else if (v.name == '光网网络质量') {
  453. data.F_typeName3 = v.name;
  454. data.value3 = v.value
  455. } else if (v.name == '装维服务') {
  456. data.F_typeName4 = v.name;
  457. data.value4 = v.value
  458. } else if (v.name == '营业厅服务') {
  459. data.F_typeName5 = v.name;
  460. data.value5 = v.value
  461. } else if (v.name == '资费政策') {
  462. data.F_typeName6 = v.name;
  463. data.value6 = v.value
  464. }else{
  465. data.F_TypeName7 = v.name;
  466. data.value7 = v.value
  467. }
  468. })
  469. types2.forEach(function(v, n) {
  470. if (v.name == '移网上网质量') {
  471. data.value12 = v.value
  472. } else if (v.name == '移网通话质量') {
  473. data.value22 = v.value
  474. } else if (v.name == '光网网络质量') {
  475. data.value32 = v.value
  476. } else if (v.name == '装维服务') {
  477. data.value42 = v.value
  478. } else if (v.name == '营业厅服务') {
  479. data.value52 = v.value
  480. } else if (v.name == '资费政策') {
  481. data.value62 = v.value
  482. }
  483. })
  484. console.log(data)
  485. //请求
  486. $.ajax({
  487. type: "POST",
  488. url: huayi.config.callcenter_url + "CallOutPlan/AddAnswers",
  489. dataType: 'json',
  490. data: data,
  491. async: true,
  492. success: function(data) {},
  493. });
  494. $.ajax({
  495. type: "POST",
  496. url: huayi.config.callcenter_url + "CallOutPlan/Answers",
  497. dataType: 'json',
  498. beforSend: function() {
  499. $('#btns').off('click')
  500. },
  501. data: {
  502. taskid: $("#F_TaskId").val(), //任务ID
  503. custelid: $("#F_Id").val(), //客户电话ID
  504. // cusid: $("#F_CusID").val(), //客户档案ID
  505. ans: ans, //答案,数组形式["15_20_单选选项内容","17_25|36|58_复选选项内容1|选项内容2|选项内容3","30_0_问答题"]
  506. hjjgid: $('input[name="check"]:checked').val(), //呼叫结果ID
  507. //yhfkid: $('input[name="checks"]:checked').val(), //用户反馈ID
  508. // yhfkid: 0, //用户反馈ID
  509. // telphone: $('#Phone_').text(), //电话号码,
  510. name: $('#Name_').val(), //姓名,
  511. phone: '', //固定号码,
  512. // countryid: $('#country').val(), //乡镇或单位id,
  513. address: $('#address').val(), //地址
  514. callid: callid,
  515. fenlei: $('#F_ordernature').val(),
  516. kuandai: $('#F_broadbandaccount').val(),
  517. ruwangshijian: $('#F_accesstime').val(),
  518. qudao: $('#F_channel').val(),
  519. yingfu: $('#F_service').val(),
  520. taocan: $('#F_packaget').val(),
  521. ronghe: $('#F_fusion').val(),
  522. zhuangtai: $('#F_status').val(),
  523. token: $.cookie("token")
  524. },
  525. async: true,
  526. success: function(data) {
  527. $('#btns').on('click')
  528. var Count = data.data;
  529. var index1 = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  530. parent.layer.close(index1); //再执行关闭
  531. parent.initTable();
  532. //停止录屏保存
  533. stopPlayers(); //Count
  534. parent.layer.msg('提交成功');
  535. localStorage.setItem('callid', '')
  536. },
  537. });
  538. }
  539. })
  540. function WJ(pid) {
  541. $(".tbody").empty();
  542. $.ajax({
  543. type: "get",
  544. url: huayi.config.callcenter_url + "/Questionnaire/GetPagerInfoQ",
  545. async: true,
  546. dataType: "json",
  547. data: {
  548. pid: pid,
  549. token: $.cookie("token"),
  550. },
  551. success: function(data) {
  552. if (data.state.toLowerCase() == 'success') {
  553. $('.Title').text(data.data.F_Title);
  554. $("#F_Remark").text(data.data.F_Remark);
  555. $("#startText").text(data.data.F_StartText);
  556. $("#endText").text(data.data.F_EndText);
  557. var Questions = data.data.F_Questions;
  558. var html = '';
  559. for (var i = 0; i < Questions.length; i++) {
  560. var questype = Questions[i].questype;
  561. var Quesid = Questions[i].quesid;
  562. var quesremark = Questions[i].quesremark; //试题说明
  563. if (quesremark) {
  564. quesremark = ' 【' + quesremark + '】';
  565. } else {
  566. quesremark = "";
  567. }
  568. html += '<li class="" name="ltype' + Quesid + '" >';
  569. html += '<div class="Back ">';
  570. if (Questions[i].F_SortModel == 0) { //根据F_SortModel来区别问题类的颜色
  571. //通过问题类来区别是否带*
  572. if (Questions[i].F_CategoryName != '移网上网质量' && Questions[i].F_CategoryName !='移网通话质量') {
  573. html += '<h3 class="size-14 QuesTitle" indexs="' + Questions[i].quesid +'">' + '<span style="color:#f00;">' + Questions[i].F_CategoryName +'</span>' + '&nbsp;&nbsp;' +'<span style="color:#f00;">*</span>&nbsp;&nbsp;' + Questions[i].questitle;
  574. } else {
  575. html += '<h3 class="size-14 QuesTitle" indexs="' + Questions[i].quesid +'">' + '<span style="color:#f00;">' + Questions[i].F_CategoryName +'</span>' + '&nbsp;&nbsp;' + Questions[i].questitle;
  576. }
  577. } else if (Questions[i].F_SortModel == 1) { //根据F_SortModel来区别问题类的颜色
  578. //通过问题类来区别是否为带*
  579. if (Questions[i].F_CategoryName != '移网上网质量' && Questions[i].F_CategoryName !='移网通话质量') {
  580. html += '<h3 class="size-14 QuesTitle" indexs="' + Questions[i].quesid +'">' + '<span style="color:#f0f;">' + Questions[i].F_CategoryName +'</span>' + '&nbsp;&nbsp;' +'<span style="color:#f00;">*</span>&nbsp;&nbsp;' + Questions[i].questitle;
  581. } else {
  582. html += '<h3 class="size-14 QuesTitle" indexs="' + Questions[i].quesid +'">' + '<span style="color:#f0f;">' + Questions[i].F_CategoryName +'</span>' + '&nbsp;&nbsp;' + Questions[i].questitle;
  583. }
  584. } else {
  585. html += '<h3 class="size-14 QuesTitle" indexs="' + Questions[i].quesid + '">' +'<span style="color:#fb0;">' + Questions[i].F_CategoryName + '</span>' +'&nbsp;&nbsp;&nbsp;&nbsp;' + Questions[i].questitle;
  586. }
  587. //通过questype来区别问题的不同,例如问答题或者单选题
  588. if (questype == 1) {
  589. html += '<div class="Wd" indexs="' + Questions[i].quesid + '">';
  590. html += '<textarea class="Wds" index="' + Questions[i].quesid +'" name="'+Questions[i].F_CategoryName+'" rows="" cols="" style="width: 100%;"></textarea>'
  591. html += '</div></h3></div></li>'
  592. } else {
  593. questionCount.push('questionCount' + i)
  594. if (Questions[i].F_SortModel !== 2 && Questions[i].F_CategoryName != '移网上网质量' && Questions[i].F_CategoryName !='移网通话质量') {
  595. html +='&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<select class="size-14" id="questionCount' +i + '" name="reqId"><option value="">该选项</option>'
  596. } else {
  597. html +='&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<select class="size-14" id="questionCount' +i + '"><option value="">该选项</option>'
  598. }
  599. if (Questions[i].quesitems.length > 0) {
  600. var quesitems = Questions[i].quesitems;
  601. for (var j = 0; j < quesitems.length; j++) {
  602. html += '<option value="' + Questions[i].quesid + '_' + quesitems[j].itemid + '_' + quesitems[j].itemname + '" categoryName="' +Questions[i].F_CategoryName + '" staus="' + Questions[i].F_SortModel + '" val="' + quesitems[j].itemname + '">' +
  603. quesitems[j].itemname + '</option>'
  604. }
  605. }
  606. html += '</select> </h3>'
  607. html += '</div></li>';
  608. }
  609. }
  610. $(html).appendTo(".Qus_box");
  611. autosize($('textarea'));
  612. }
  613. }
  614. });
  615. }
  616. //用户反馈
  617. function GetYHFK() {
  618. $.ajax({
  619. type: "get",
  620. url: huayi.config.callcenter_url + "Dictionary/GetDicValueListByFlag",
  621. dataType: 'json',
  622. data: {
  623. flag: 'YHFK',
  624. token: $.cookie("token")
  625. },
  626. async: true,
  627. success: function(data) {
  628. var Count = data.data;
  629. $("<option value=''>--全部--</option>").appendTo($("#selhjjg"));
  630. for (var i = 0; i < Count.length; i++) {
  631. $("<li><label for=''><input type='radio' name='checks' value='" + Count[i]
  632. .F_DictionaryValueId + "' /></label>" + Count[i].F_Name + "</li>").
  633. appendTo($("#Tg"));
  634. }
  635. }
  636. });
  637. }
  638. //
  639. </script>
  640. </body>
  641. </html>