暂无描述

zhijianjieguo.html 23KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600
  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 rel="stylesheet" href="../css/bootstrap-select.css" />
  10. <link rel="stylesheet" href="../css/Table/table1.css" />
  11. <link rel="stylesheet" href="../css/init.css" />
  12. <link href="../css/Quality/QualityCommon.css" rel="stylesheet" />
  13. <style>
  14. body {
  15. font-family: "微软雅黑";
  16. font-size: 14px;
  17. }
  18. ul li {
  19. list-style: none;
  20. float: left;
  21. }
  22. .fr {
  23. float: right;
  24. }
  25. .fl {
  26. float: right;
  27. }
  28. /*标头*/
  29. .th-box {
  30. width: 100%;
  31. padding: 5px;
  32. border-bottom: 1px solid #e7eaec;
  33. }
  34. .sc_btn {
  35. width: 100px;
  36. color: #fff;
  37. font-size: 12px;
  38. margin-left: 15px;
  39. box-sizing: border-box;
  40. background: #00a1cb;
  41. padding: 6px 10px;
  42. outline: none;
  43. border-width: 0px;
  44. border-style: initial;
  45. border-color: initial;
  46. border-image: initial;
  47. border-radius: 3px;
  48. margin-top: 5px;
  49. text-align: center;
  50. }
  51. .photo {
  52. /*background-color: #FFF;
  53. background-image: none;*/
  54. width: 180px;
  55. border: 1px solid #e5e6e7;
  56. border-radius: 1px;
  57. color: inherit;
  58. padding: 6px 12px;
  59. }
  60. .selects {
  61. background-color: #FFF;
  62. background-image: none;
  63. border: 1px solid #e5e6e7;
  64. border-radius: 1px;
  65. color: inherit;
  66. padding: 6px 12px;
  67. }
  68. #Select:focus {
  69. outline: none;
  70. border-color: #00BFFF;
  71. }
  72. input:focus {
  73. outline: none;
  74. border-color: #00BFFF;
  75. }
  76. .spiner-example {
  77. position: absolute;
  78. top: 50%;
  79. left: 50%;
  80. z-index: 111;
  81. margin-left: -85px;
  82. margin-top: -100px;
  83. display: none;
  84. }
  85. .sk-spinner-three-bounce {
  86. width: 170px !important;
  87. }
  88. .sk-spinner p {
  89. display: inline-block;
  90. font-size: 18px;
  91. margin-left: 10px;
  92. }
  93. .gjsu ul {
  94. overflow: hidden;
  95. }
  96. .gjsu ul li {
  97. width: 50%;
  98. margin-bottom: 5px;
  99. padding-top: 10px;
  100. }
  101. .selects {
  102. width: 105px;
  103. }
  104. .tc {
  105. margin-top: 30px;
  106. text-align: center;
  107. }
  108. #sqzx th {
  109. padding: 5px 8px 5px 0;
  110. text-align: center;
  111. width: 6%;
  112. }
  113. #sqzx td {
  114. padding: 6px 0 5px 10px;
  115. width: 18%;
  116. }
  117. .nameJustified {
  118. width: 5em;
  119. display: inline-block;
  120. text-align: justify;
  121. text-align-last: justify;
  122. }
  123. </style>
  124. </head>
  125. <body class="gray-bg">
  126. <div class="wrapper wrapper-content animated fadeInRight">
  127. <div class="daoHang clearfix">
  128. <div class="dhLeft">
  129. <sapn>
  130. <i class="syIcon"></i>位置:<a href="javaScript:;" id="ReIndex">首页</a>&gt;<a
  131. href="javaScript:;">质检管理</a>&gt;<a href="" class="nowPosition">质检结果</a>
  132. </sapn>
  133. </div>
  134. <div class="dhRight">
  135. <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
  136. </div>
  137. </div>
  138. <div class="th-box">
  139. <div class="box_content">
  140. <table id="sqzx" style="width: 100%" border="0">
  141. <tbody>
  142. <tr>
  143. <th>电话号码:</th>
  144. <td><input id="tel" class="form-control" type="text" /></td>
  145. <th><span class="nameJustified">分机号:</span></th>
  146. <td>
  147. <input id="extnumber" class="form-control" type="text" />
  148. </td>
  149. <th>呼出方向:</th>
  150. <td>
  151. <select id="ss_hcfx" class="form-control calltype">
  152. <option value="">全部</option>
  153. <option value="0">呼入</option>
  154. <option value="1">呼出</option>
  155. <option value="3">呼出回访</option>
  156. </select>
  157. </td>
  158. </tr>
  159. <tr>
  160. <th>呼叫类型:</th>
  161. <td>
  162. <select id="ss_HJLX" class="form-control calltype">
  163. <option value="">全部</option>
  164. <option value="1">正常通话</option>
  165. <option value="2">转移</option>
  166. <option value="3">三方通话</option>
  167. </select>
  168. </td>
  169. <th>是否回访:</th>
  170. <td>
  171. <select id="sf_hf" class="form-control calltype">
  172. <option value="">全部</option>
  173. <option value="2">是</option>
  174. <option value="0">否</option>
  175. </select>
  176. </td>
  177. <th>受话坐席:</th>
  178. <td>
  179. <select class="selectpicker show-tick form-control" multiple id="seat">
  180. <option value="">全部</option>
  181. </select>
  182. </td>
  183. </tr>
  184. <tr>
  185. <th>电话类别:</th>
  186. <td>
  187. <select class="form-control" id="phoneType">
  188. <option value="">请选择</option>
  189. </select>
  190. </td>
  191. <th>查询类型:</th>
  192. <td>
  193. <select id="islike" class="form-control" name="select">
  194. <option value="1">
  195. 模糊查询
  196. </option>
  197. <option value="0">
  198. 精确查询
  199. </option>
  200. </select>
  201. </td>
  202. <th><span class="nameJustified">时间:</span></th>
  203. <td colspan="3">
  204. <input id="start" class="photo x-color laydate-icon" type="text" /> - <input id="end"
  205. class="photo x-color laydate-icon" type="text" />
  206. </td>
  207. </tr>
  208. <tr>
  209. <th>
  210. <a class="sc_btn Ss">搜索</a>
  211. </th>
  212. </tr>
  213. </tbody>
  214. </table>
  215. </div>
  216. </div>
  217. <div style="width: 100%;padding: 10px;">
  218. <table id="list" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
  219. <thead>
  220. <tr>
  221. <th data-field="CallNumber" data-align="center" data-formatter="Code">编号</th>
  222. <th data-field="CallNumber" data-align="center" data-formatter="phoneTableHtml">电话号码</th>
  223. <th data-field="FilePath" data-formatter="setCode" data-align="center">质检结果</th>
  224. <th data-field="F_QCScore" data-align="center">质检分数</th>
  225. <th data-field="F_QCUserName" data-align="center">质检人</th>
  226. <th data-field="F_QCTime" data-align="center">质检时间</th>
  227. <th data-field="CallType" data-formatter="callType" data-align="center">呼叫方向</th>
  228. <th data-field="UserCode" data-align="center">坐席工号</th>
  229. <th data-field="UserName1" data-align="center">坐席姓名</th>
  230. <th data-field="ExtNumber" data-align="center">分机号</th>
  231. <!--<th data-field="BeginTime" data-align="center">开始时间</th>-->
  232. <th data-field="TalkStartTime" data-align="center">通话开始时间</th>
  233. <th data-field="TalkEndTime" data-align="center">通话结束时间</th>
  234. <th data-field="EndTime" data-align="center">结束时间</th>
  235. <th data-field="TalkLongTime" data-align="center" data-formatter="ftime">通话时长</th>
  236. <th data-field="RingLongTime" data-align="center" data-formatter="ftime">振铃时长</th>
  237. <!--<th data-field="LongTime" data-align="center" data-formatter="ftime">总时长</th>-->
  238. <!--<th data-field="PhoneType" data-align="center">电话类别</th>-->
  239. </tr>
  240. </thead>
  241. </table>
  242. <!--高级搜索框-->
  243. </div>
  244. </div>
  245. <div class="t-shade">
  246. <div class="shade_k xqlb">
  247. <div class="shade_title">
  248. <span>录音播放下载及质检<srong class="cknum"></srong></span>
  249. <span class="setwin"><a>x</a></span>
  250. </div>
  251. <div class="shade_content">
  252. <div class="dgxx_table size-13">
  253. <table class="form_table">
  254. <tbody>
  255. <tr>
  256. <th><span>电话号码:</span></th>
  257. <td><span class="zj_phone"></span></td>
  258. <th><span>通话时间:</span></th>
  259. <td><span class="zj_time"></span></td>
  260. </tr>
  261. <tr>
  262. <th><span>呼叫方向:</span></th>
  263. <td><span class="zj_calltype"></span></td>
  264. <th><span>通话时长:</span></th>
  265. <td><span class="zj_talklongtime"></span></td>
  266. </tr>
  267. <tr>
  268. <th><span>坐席工号:</span></th>
  269. <td><span class="zj_usercode"></span></td>
  270. <th><span>坐席姓名:</span></th>
  271. <td><span class="zj_username"></span></td>
  272. </tr>
  273. <tr>
  274. <th><span>听取录音:</span></th>
  275. <td colspan="3">
  276. <div class="play Ly_box">
  277. </div>
  278. </td>
  279. </tr>
  280. </tbody>
  281. </table>
  282. </div>
  283. <!--质检详情列表-->
  284. <div class="divDataItems">
  285. <table class="table table-bordered text-center table-hover" style="width: 100%;">
  286. <thead>
  287. <tr class="thead_title">
  288. <td style="background-color: #D5EDFE;">分类</td>
  289. <td style="background-color: #D5EDFE;">指标</td>
  290. <td style="background-color: #D5EDFE;">分值</td>
  291. <td style="background-color: #D5EDFE;">评分</td>
  292. </tr>
  293. </thead>
  294. <tbody id="tbody"></tbody>
  295. <tfoot id="tfoot"></tfoot>
  296. </table>
  297. </div>
  298. </div>
  299. <input type="hidden" class="Thid" />
  300. </div>
  301. </div>
  302. <script src="../js/bootstrap-select.js"></script>
  303. <script src="../My97DatePicker/WdatePicker.js"></script>
  304. <script src="../css/laydate/laydate.js"></script>
  305. <script src="../js/sm2/sm2.js"></script>
  306. <script src="../js/sm2/decrypt.js"></script>
  307. <script>
  308. var stype = 1;
  309. var seatlist = [];
  310. $(document).ready(function () {
  311. laydate.skin('blue');
  312. laydate({
  313. elem: '#start',
  314. event: 'focus',
  315. istime: true,
  316. format: 'YYYY-MM-DD hh:mm:ss'
  317. });
  318. laydate({
  319. elem: '#end',
  320. event: 'focus',
  321. istime: true,
  322. format: 'YYYY-MM-DD hh:mm:ss'
  323. });
  324. /*获取选中行对象*/
  325. $('#list').on("click-row.bs.table", function (e, row, ele) {
  326. $('.success').removeClass('success'); //去除之前选中的行的,选中样式
  327. $(ele).addClass('success'); //添加当前选中的 success样式用于区别
  328. $(".zj_phone").text(row.CallNumber);
  329. $(".zj_time").text(row.TalkStartTime);
  330. $(".zj_calltype").text(row.CallType == 0 ? "呼入" : "呼出");
  331. $(".zj_talklongtime").text(row.TalkLongTime + "秒");
  332. $(".zj_usercode").text(row.UserCode);
  333. $(".zj_username").text(row.UserName1);
  334. $('.Thid').val(row.CallRecordsId);
  335. });
  336. $(".setwin").click(function () {
  337. $(".t-shade").removeClass("cx");
  338. $('audio')[0].pause();
  339. });
  340. //获取坐席
  341. $.getJSON(huayi.config.callcenter_url + "UserAccount/GetSeatList", {
  342. token: $.cookie("token")
  343. }, function (result) {
  344. if (result.state.toLowerCase() == "success") {
  345. seatlist = result.data;
  346. bindseat($("#seat"));
  347. }
  348. });
  349. // 电话类别
  350. getPhoneType($("#phoneType"));
  351. //搜索
  352. $(".Ss").click(function () {
  353. stype = 1;
  354. initTable();
  355. });
  356. initTable();
  357. })
  358. function bindseat(obj) {
  359. obj.empty();
  360. obj.append('<option value="">全部</option>');
  361. $(seatlist).each(function (i, n) {
  362. obj.append('<option value="' + n.F_UserCode + '">' + n.F_UserName + '</option>');
  363. obj.selectpicker({
  364. noneSelectedText: '请选择' //默认显示内容
  365. });
  366. obj.selectpicker('refresh');
  367. })
  368. }
  369. function initTable() {
  370. //先销毁表格
  371. $('#list').bootstrapTable('destroy');
  372. //初始化表格,动态从服务器加载数据
  373. $("#list").bootstrapTable({
  374. method: "get", //使用get请求到服务器获取数据
  375. url: huayi.config.callcenter_url + "QCManage/GetQCList", //获取数据的Servlet地址
  376. contentType: "application/x-www-form-urlencoded",
  377. striped: true, //表格显示条纹
  378. pagination: true, //启动分页
  379. pageSize: 10, //每页显示的记录数
  380. pageNumber: 1, //当前第几页
  381. pageList: [10, 20, 50, 100], //记录数可选列表
  382. search: false, //是否启用查询
  383. showColumns: false, //显示下拉框勾选要显示的列
  384. showRefresh: false, //显示刷新按钮
  385. sidePagination: "server", //表示服务端请求
  386. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  387. //设置为limit可以获取limit, offset, search, sort, order
  388. queryParamsType: "undefined",
  389. queryParams: function queryParams(params) { //设置查询参数
  390. var param = {
  391. page: params.pageNumber,
  392. pagesize: params.pageSize,
  393. token: $.cookie("token")
  394. };
  395. var usercode_ = $("#seat").val(); //坐席
  396. var usercodeID = "";
  397. if (usercode_ != null) {
  398. $(usercode_).each(function (i, n) {
  399. var obj1 = "";
  400. obj1 = n + ",";
  401. usercodeID += obj1;
  402. });
  403. usercodeID = usercodeID.slice(0, -1);
  404. } else {
  405. usercodeID = "";
  406. }
  407. param.usercode = usercodeID;
  408. param.phone = $("#tel").val();
  409. param.starttime = $("#start").val();
  410. param.endtime = $("#end").val();
  411. param.callstate = $("#ss_hjzt").val();
  412. param.calltype = $("#ss_hcfx").val();
  413. param.tasktype = $("#sf_hf").val();
  414. param.actiontype = $("#ss_HJLX").val(); //呼叫类型
  415. param.extnumber = $("#extnumber").val();
  416. param.phoneType = $("#phoneType").val();
  417. param.islike = $("#islike").val(); // 查询类型
  418. return param;
  419. },
  420. onLoadSuccess: function () { //加载成功时执行
  421. //layer.msg("加载成功");
  422. },
  423. onLoadError: function () { //加载失败时执行
  424. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  425. }
  426. });
  427. }
  428. function phoneTableHtml(val, row){
  429. return '<a onclick="phoneTableClick(this ,\'' +row.CallNumberShow+'\')"> ' + val + '</a>'
  430. }
  431. //音频
  432. function setCode(val, row) {
  433. if (val) {
  434. return '<div class="imgs" style:"cursor: pointer;">' +
  435. '<img src="../img/vice.png" alt="" onclick="ck(this,' + row.CallRecordsId + ')" item="' + val +
  436. '" />' +
  437. '</div>';
  438. } else {
  439. return '';
  440. }
  441. }
  442. //编号
  443. function Code(val, row, index) {
  444. return index + 1;
  445. }
  446. //方向呼出
  447. function callType(val) {
  448. if (val == 0) {
  449. return '<div class="imgs">呼入</div>';
  450. } else {
  451. return '<div class="imgs">呼出</div>';
  452. }
  453. }
  454. function ActionType(val) {
  455. if (val == 2) {
  456. return '<div class="imgs">转移</div>';
  457. } else if (val == 3) {
  458. return '<div class="imgs">三方通话</div>';
  459. } else {
  460. return '<div class="imgs">正常通话</div>';
  461. }
  462. }
  463. //处理
  464. function isDeal(val) {
  465. if (val == 0) {
  466. return '<div >未处理</div>';
  467. } else {
  468. return '<div >已处理</div>';
  469. }
  470. }
  471. function ftime(val) {
  472. if (val) {
  473. return helper.DateFormat.getFormatTime(val);
  474. } else {
  475. return '';
  476. }
  477. }
  478. //电话类别
  479. function getPhoneType(obj) {
  480. obj.empty();
  481. $("<option value=''>请选择</option>").appendTo(obj);
  482. $.ajax({
  483. type: "get",
  484. url: huayi.config.callcenter_url + "Dictionary/GetDicValueListById",
  485. dataType: "json",
  486. async: true,
  487. data: {
  488. "token": $.cookie("token"),
  489. id: 2498,
  490. },
  491. success: function (data) {
  492. if (data.state == "success") {
  493. var content = data.data;
  494. $(content).each(function (i, n) {
  495. $("<option value='" + n.F_Value + "'>" + n.F_Value + "</option>")
  496. .appendTo(obj);
  497. })
  498. }
  499. }
  500. });
  501. }
  502. function ck(val, id) {
  503. Xq(id);
  504. $(".t-shade").addClass("cx");
  505. $(".xqlb").addClass("cx");
  506. var path = $(val).attr("item");
  507. $(".Ly_box").empty();
  508. $('<audio style="width:100%;"class=" " src="' + path + '" loop="loop" controls="controls"></audio>')
  509. .appendTo(".Ly_box");
  510. }
  511. function Xq(zjID) {
  512. $.ajax({
  513. type: "get",
  514. url: huayi.config.callcenter_url + "QCManage/GetIndexList",
  515. dataType: 'json',
  516. async: true,
  517. data: {
  518. id: zjID,
  519. token: $.cookie("token")
  520. },
  521. success: function (data) {
  522. if (data.state = "success") {
  523. var content = data.data;
  524. $("#tbody").empty();
  525. $("#tfoot").empty();
  526. $(content).each(function (i, n) {
  527. if (n.Rowspan > 1) {
  528. $('<tr>' +
  529. '<td rowspan="' + (n.Rowspan + 1) + '">' + n.Qcname +
  530. '</td>' +
  531. '</tr>').appendTo($("#tbody"));
  532. } else {
  533. if (n.Colspan > 1) {
  534. $('<tr>' +
  535. '<td colspan="2">' + n.Qcname + '</td>' +
  536. '<td >' + n.Qcscore + '</td>' +
  537. '<td class="Total"><input type="text" class="Input" readonly="readonly" value="' +
  538. n.Qcpf + '"/></td>' +
  539. '</tr>').appendTo("#tfoot");
  540. } else {
  541. $('<tr>' +
  542. (n.TypeName ? '<td >' + n.TypeName + '</td>' : '') +
  543. '<td rowspan="' + n.Rowspan + '">' + n.Qcname +
  544. '</td>' +
  545. '<td >' + n.Qcscore + '</td>' +
  546. '<td ><input type="text" class="txtInput" readonly="readonly" value="' +
  547. n.Qcpf + '"/></td>' +
  548. '</tr>').appendTo("#tbody");
  549. }
  550. }
  551. })
  552. }
  553. }
  554. });
  555. }
  556. </script>
  557. </body>
  558. </html>