Brak opisu

zhijianjieguo.html 23KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596
  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">电话号码</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>
  306. var stype = 1;
  307. var seatlist = [];
  308. $(document).ready(function () {
  309. laydate.skin('blue');
  310. laydate({
  311. elem: '#start',
  312. event: 'focus',
  313. istime: true,
  314. format: 'YYYY-MM-DD hh:mm:ss'
  315. });
  316. laydate({
  317. elem: '#end',
  318. event: 'focus',
  319. istime: true,
  320. format: 'YYYY-MM-DD hh:mm:ss'
  321. });
  322. /*获取选中行对象*/
  323. $('#list').on("click-row.bs.table", function (e, row, ele) {
  324. $('.success').removeClass('success'); //去除之前选中的行的,选中样式
  325. $(ele).addClass('success'); //添加当前选中的 success样式用于区别
  326. $(".zj_phone").text(row.CallNumber);
  327. $(".zj_time").text(row.TalkStartTime);
  328. $(".zj_calltype").text(row.CallType == 0 ? "呼入" : "呼出");
  329. $(".zj_talklongtime").text(row.TalkLongTime + "秒");
  330. $(".zj_usercode").text(row.UserCode);
  331. $(".zj_username").text(row.UserName1);
  332. $('.Thid').val(row.CallRecordsId);
  333. });
  334. $(".setwin").click(function () {
  335. $(".t-shade").removeClass("cx");
  336. $('audio')[0].pause();
  337. });
  338. //获取坐席
  339. $.getJSON(huayi.config.callcenter_url + "UserAccount/GetSeatList", {
  340. token: $.cookie("token")
  341. }, function (result) {
  342. if (result.state.toLowerCase() == "success") {
  343. seatlist = result.data;
  344. bindseat($("#seat"));
  345. }
  346. });
  347. // 电话类别
  348. getPhoneType($("#phoneType"));
  349. //搜索
  350. $(".Ss").click(function () {
  351. stype = 1;
  352. initTable();
  353. });
  354. initTable();
  355. })
  356. function bindseat(obj) {
  357. obj.empty();
  358. obj.append('<option value="">全部</option>');
  359. $(seatlist).each(function (i, n) {
  360. obj.append('<option value="' + n.F_UserCode + '">' + n.F_UserName + '</option>');
  361. obj.selectpicker({
  362. noneSelectedText: '请选择' //默认显示内容
  363. });
  364. obj.selectpicker('refresh');
  365. })
  366. }
  367. function initTable() {
  368. //先销毁表格
  369. $('#list').bootstrapTable('destroy');
  370. //初始化表格,动态从服务器加载数据
  371. $("#list").bootstrapTable({
  372. method: "get", //使用get请求到服务器获取数据
  373. url: huayi.config.callcenter_url + "QCManage/GetQCList", //获取数据的Servlet地址
  374. contentType: "application/x-www-form-urlencoded",
  375. striped: true, //表格显示条纹
  376. pagination: true, //启动分页
  377. pageSize: 10, //每页显示的记录数
  378. pageNumber: 1, //当前第几页
  379. pageList: [10, 20, 50, 100], //记录数可选列表
  380. search: false, //是否启用查询
  381. showColumns: false, //显示下拉框勾选要显示的列
  382. showRefresh: false, //显示刷新按钮
  383. sidePagination: "server", //表示服务端请求
  384. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  385. //设置为limit可以获取limit, offset, search, sort, order
  386. queryParamsType: "undefined",
  387. queryParams: function queryParams(params) { //设置查询参数
  388. var param = {
  389. page: params.pageNumber,
  390. pagesize: params.pageSize,
  391. token: $.cookie("token")
  392. };
  393. var usercode_ = $("#seat").val(); //坐席
  394. var usercodeID = "";
  395. if (usercode_ != null) {
  396. $(usercode_).each(function (i, n) {
  397. var obj1 = "";
  398. obj1 = n + ",";
  399. usercodeID += obj1;
  400. });
  401. usercodeID = usercodeID.slice(0, -1);
  402. } else {
  403. usercodeID = "";
  404. }
  405. param.usercode = usercodeID;
  406. param.phone = $("#tel").val();
  407. param.starttime = $("#start").val();
  408. param.endtime = $("#end").val();
  409. param.callstate = $("#ss_hjzt").val();
  410. param.calltype = $("#ss_hcfx").val();
  411. param.tasktype = $("#sf_hf").val();
  412. param.actiontype = $("#ss_HJLX").val(); //呼叫类型
  413. param.extnumber = $("#extnumber").val();
  414. param.phoneType = $("#phoneType").val();
  415. param.islike = $("#islike").val(); // 查询类型
  416. return param;
  417. },
  418. onLoadSuccess: function () { //加载成功时执行
  419. //layer.msg("加载成功");
  420. },
  421. onLoadError: function () { //加载失败时执行
  422. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  423. }
  424. });
  425. }
  426. //音频
  427. function setCode(val, row) {
  428. if (val) {
  429. return '<div class="imgs" style:"cursor: pointer;">' +
  430. '<img src="../img/vice.png" alt="" onclick="ck(this,' + row.CallRecordsId + ')" item="' + val +
  431. '" />' +
  432. '</div>';
  433. } else {
  434. return '';
  435. }
  436. }
  437. //编号
  438. function Code(val, row, index) {
  439. return index + 1;
  440. }
  441. //方向呼出
  442. function callType(val) {
  443. if (val == 0) {
  444. return '<div class="imgs">呼入</div>';
  445. } else {
  446. return '<div class="imgs">呼出</div>';
  447. }
  448. }
  449. function ActionType(val) {
  450. if (val == 2) {
  451. return '<div class="imgs">转移</div>';
  452. } else if (val == 3) {
  453. return '<div class="imgs">三方通话</div>';
  454. } else {
  455. return '<div class="imgs">正常通话</div>';
  456. }
  457. }
  458. //处理
  459. function isDeal(val) {
  460. if (val == 0) {
  461. return '<div >未处理</div>';
  462. } else {
  463. return '<div >已处理</div>';
  464. }
  465. }
  466. function ftime(val) {
  467. if (val) {
  468. return helper.DateFormat.getFormatTime(val);
  469. } else {
  470. return '';
  471. }
  472. }
  473. //电话类别
  474. function getPhoneType(obj) {
  475. obj.empty();
  476. $("<option value=''>请选择</option>").appendTo(obj);
  477. $.ajax({
  478. type: "get",
  479. url: huayi.config.callcenter_url + "Dictionary/GetDicValueListById",
  480. dataType: "json",
  481. async: true,
  482. data: {
  483. "token": $.cookie("token"),
  484. id: 2498,
  485. },
  486. success: function (data) {
  487. if (data.state == "success") {
  488. var content = data.data;
  489. $(content).each(function (i, n) {
  490. $("<option value='" + n.F_Value + "'>" + n.F_Value + "</option>")
  491. .appendTo(obj);
  492. })
  493. }
  494. }
  495. });
  496. }
  497. function ck(val, id) {
  498. Xq(id);
  499. $(".t-shade").addClass("cx");
  500. $(".xqlb").addClass("cx");
  501. var path = $(val).attr("item");
  502. $(".Ly_box").empty();
  503. $('<audio style="width:100%;"class=" " src="' + path + '" loop="loop" controls="controls"></audio>')
  504. .appendTo(".Ly_box");
  505. }
  506. function Xq(zjID) {
  507. $.ajax({
  508. type: "get",
  509. url: huayi.config.callcenter_url + "QCManage/GetIndexList",
  510. dataType: 'json',
  511. async: true,
  512. data: {
  513. id: zjID,
  514. token: $.cookie("token")
  515. },
  516. success: function (data) {
  517. if (data.state = "success") {
  518. var content = data.data;
  519. $("#tbody").empty();
  520. $("#tfoot").empty();
  521. $(content).each(function (i, n) {
  522. if (n.Rowspan > 1) {
  523. $('<tr>' +
  524. '<td rowspan="' + (n.Rowspan + 1) + '">' + n.Qcname +
  525. '</td>' +
  526. '</tr>').appendTo($("#tbody"));
  527. } else {
  528. if (n.Colspan > 1) {
  529. $('<tr>' +
  530. '<td colspan="2">' + n.Qcname + '</td>' +
  531. '<td >' + n.Qcscore + '</td>' +
  532. '<td class="Total"><input type="text" class="Input" readonly="readonly" value="' +
  533. n.Qcpf + '"/></td>' +
  534. '</tr>').appendTo("#tfoot");
  535. } else {
  536. $('<tr>' +
  537. (n.TypeName ? '<td >' + n.TypeName + '</td>' : '') +
  538. '<td rowspan="' + n.Rowspan + '">' + n.Qcname +
  539. '</td>' +
  540. '<td >' + n.Qcscore + '</td>' +
  541. '<td ><input type="text" class="txtInput" readonly="readonly" value="' +
  542. n.Qcpf + '"/></td>' +
  543. '</tr>').appendTo("#tbody");
  544. }
  545. }
  546. })
  547. }
  548. }
  549. });
  550. }
  551. </script>
  552. </body>
  553. </html>