Нет описания

qualityControl.html 18KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703
  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. <link href="./css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
  8. <link href="./css/bootstrap.min.css" />
  9. <link rel="stylesheet" href="./css/boot/bootstrap-table.css" />
  10. <link href="./css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
  11. <link href="./css/animate.min.css" rel="stylesheet">
  12. <link href="./css/style.min862f.css?v=4.1.0" 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. /*标头*/
  26. .th-box {
  27. width: 100%;
  28. padding: 5px;
  29. border-bottom: 1px solid #e7eaec;
  30. }
  31. .th-bar {
  32. height: 40px;
  33. }
  34. .sc_btn {
  35. display: block;
  36. padding: 7px;
  37. color: #FFF;
  38. float: left;
  39. border-radius: 5px;
  40. }
  41. .seach-box ul {
  42. overflow: hidden;
  43. }
  44. .seach-box ul li {
  45. margin-right: 5px;
  46. }
  47. .photo {
  48. background-color: #FFF;
  49. background-image: none;
  50. border: 1px solid #e5e6e7;
  51. border-radius: 1px;
  52. color: inherit;
  53. padding: 6px 12px;
  54. }
  55. #Select {
  56. background-color: #FFF;
  57. background-image: none;
  58. border: 1px solid #e5e6e7;
  59. border-radius: 1px;
  60. color: inherit;
  61. padding: 6px 12px;
  62. }
  63. #Select:focus {
  64. outline: none;
  65. border-color: #00BFFF;
  66. }
  67. input:focus {
  68. outline: none;
  69. border-color: #00BFFF;
  70. }
  71. .spiner-example {
  72. position: absolute;
  73. top: 50%;
  74. left: 50%;
  75. z-index: 111;
  76. margin-left: -85px;
  77. margin-top: -100px;
  78. display: none;
  79. }
  80. .sk-spinner-three-bounce {
  81. width: 170px!important;
  82. }
  83. .sk-spinner p {
  84. display: inline-block;
  85. font-size: 18px;
  86. margin-left: 10px;
  87. }
  88. #goods tr th {
  89. text-align: center;
  90. }
  91. #goods td {
  92. text-align: center;
  93. }
  94. .t-shade {
  95. position: fixed;
  96. top: 0;
  97. left: 0;
  98. width: 100%;
  99. height: 100%;
  100. background: rgba(0, 0, 0, 0.48);
  101. z-index: 10004;
  102. display: none;
  103. }
  104. .shade_k {
  105. z-index: 10005;
  106. width: 50%;
  107. margin: 5% auto;
  108. background-color: #fff;
  109. box-shadow: 1px 1px 50px rgba(0, 0, 0, .3);
  110. border: 1px solid #23c6c8;
  111. }
  112. .shade_title {
  113. padding: 0 80px 0 20px;
  114. height: 42px;
  115. line-height: 42px;
  116. border-bottom: 1px solid #eee;
  117. font-size: 16px;
  118. color: #FFFFFF;
  119. overflow: hidden;
  120. background-color: #23c6c8;
  121. border-radius: 2px 2px 0 0;
  122. position: relative;
  123. }
  124. .setwin {
  125. position: absolute;
  126. right: 15px;
  127. top: 5px;
  128. font-size: 20px;
  129. line-height: initial;
  130. }
  131. .shade_content {
  132. height: 500px;
  133. position: relative;
  134. padding-bottom: 50px;
  135. overflow-x: hidden;
  136. }
  137. .sa_title {
  138. padding-left: 20px;
  139. height: 35px;
  140. line-height: 35px;
  141. border-bottom: 1px solid #D7D7D7;
  142. }
  143. .wh_btn {
  144. width: 80%;
  145. text-align: center;
  146. padding-top: 20px;
  147. margin: 0 auto;
  148. margin-bottom: 20px;
  149. }
  150. .wh_btn input {
  151. padding: 7px 20px;
  152. color: #FFF;
  153. border-radius: 5px;
  154. margin-right: 30px;
  155. border: 1px solid #999;
  156. }
  157. .inps {
  158. width: 167px;
  159. height: 24px;
  160. outline: none;
  161. border: 0;
  162. border-image-width: 0;
  163. padding: 0;
  164. padding-left: 3px;
  165. }
  166. .inpBox {
  167. border: 1px solid #e5e6e7;
  168. height: 27px;
  169. width: 170px;
  170. display: inline-block;
  171. position: relative;
  172. vertical-align: middle;
  173. }
  174. .inpBox select {
  175. width: 100%;
  176. outline: none;
  177. border: 0;
  178. background: transparent;
  179. padding: 1px;
  180. }
  181. .cx {
  182. display: block!important;
  183. }
  184. /**/
  185. .form_table {
  186. width: 100%;
  187. border: 1px solid #EDECFF;
  188. }
  189. .form_table td {
  190. padding: 6px 0 5px 10px;
  191. text-align: left;
  192. color: #717171;
  193. line-height: 200%;
  194. border-top: 1px dotted #cccccc;
  195. }
  196. .form_table th {
  197. padding: 5px 8px 5px 0;
  198. color: #333;
  199. font-weight: 700;
  200. text-align: right;
  201. background: #f9f9f9;
  202. border-right: 1px dotted #cccccc;
  203. border-top: 1px dotted #cccccc;
  204. }
  205. .play {
  206. height: 50px;
  207. width: 100%;
  208. }
  209. #downlond {
  210. padding: 0 8px;
  211. height: 24px;
  212. line-height: 24px;
  213. color: #707070;
  214. border: 1px solid #D7D7D7;
  215. cursor: pointer;
  216. vertical-align: middle;
  217. }
  218. .txtInput {
  219. margin-right: 5px;
  220. padding: 0 3px 0 3px;
  221. height: 22px;
  222. line-height: 22px;
  223. background: #FAFAFA;
  224. border: 1px solid #D7D7D7;
  225. vertical-align: middle;
  226. font-size: 12px;
  227. width: 50px;
  228. color: blue;
  229. }
  230. .btnSubmit {
  231. padding: 0 10px;
  232. height: 28px;
  233. line-height: 28px;
  234. color: #3D80B3;
  235. font-weight: bold;
  236. border: 1px solid #AED0EA;
  237. cursor: pointer;
  238. vertical-align: middle;
  239. overflow: hidden;
  240. }
  241. .foot_btn_box {
  242. padding: 15px 20px;
  243. text-align: center;
  244. }
  245. .xqlb{
  246. display: none;
  247. }
  248. .gjss{
  249. display: none;
  250. }
  251. </style>
  252. </head>
  253. <script src="./js/jquery.min.js"></script>
  254. <script src="./js/bootstrap.min.js"></script>
  255. <script src="./js/bootstrap-table.js"></script>
  256. <script src="./js/bootstrap-table-zh-CN.js"></script>
  257. <script src="./css/layer/layer.js"></script>
  258. <script src="My97DatePicker/WdatePicker.js"></script>
  259. <!--<script src="Script/Common/huayi.load.js"></script>
  260. <script src="Script/Common/huayi.config.js"></script>-->
  261. <body class="gray-bg">
  262. <div class="wrapper wrapper-content animated fadeInRight">
  263. <div class="th-box">
  264. <div class="th-bar">
  265. <!--<a class="sc_btn btn-info">批量删除</a>-->
  266. <div class="seach-box fr">
  267. <ul>
  268. <li>电话号码:<input class="photo x-color" type="text" /></li>
  269. <li>坐席:
  270. <select name="" id="Select" class="x-color">
  271. <option value="">全部</option>
  272. </select>
  273. </li>
  274. <li>
  275. <a class="sc_btn btn-info Ss">搜索</a>
  276. </li>
  277. <li>
  278. <a class="sc_btn btn-info Gj">高级搜索</a>
  279. </li>
  280. </ul>
  281. </div>
  282. </div>
  283. </div>
  284. <div style="width: 100%;padding: 10px;">
  285. <table id="goods" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
  286. <thead>
  287. <tr>
  288. <th data-field="_callnumber">电话号码</th>
  289. <th data-field="_filepath" data-formatter="setCode">录音质检</th>
  290. <th data-field="_f_qcstate" data-formatter="quality">是否质检</th>
  291. <th data-field="_f_qcscore">质检得分</th>
  292. <th data-field="_calltype" data-formatter="call">呼叫方向</th>
  293. <th data-field="_callstate" data-formatter="states">呼叫状态</th>
  294. <th data-field="_usercode">坐席工号</th>
  295. <th data-field="_username">坐席姓名</th>
  296. <th data-field="_talkstarttime">通话开始时间</th>
  297. <th data-field="_talkendtime">通话结束时间</th>
  298. <th data-field="_talklongtime">通话时长(S)</th>
  299. <th data-field="_businesstype">按键</th>
  300. </tr>
  301. </thead>
  302. </table>
  303. </div>
  304. </div>
  305. <!--高级搜索/-->
  306. <div class="t-shade">
  307. <div class=" shade_k gjss">
  308. <div class="shade_title">
  309. <span>高级搜索<srong class="cknum"></srong></span>
  310. <span class="setwin"><a>x</a></span>
  311. </div>
  312. <div class="shade_content" style="height: 300px;">
  313. <div class="dhxx sa_title">
  314. <span class="size-14">搜索信息</span>
  315. </div>
  316. <div class="dgxx_table size-13">
  317. <table class="_table1 table table-bordered table-hover " border="0" cellspacing="0" cellpadding="0" style="width: 100%;">
  318. <tr>
  319. <th>电话号码:
  320. <td>
  321. <div class="inpBox">
  322. <input type="text" class="inps " id="phone" />
  323. </div>
  324. </td>
  325. </th>
  326. <th>坐席:
  327. <td>
  328. <div class="inpBox">
  329. <select name="" id="usercode"></select>
  330. </div>
  331. </td>
  332. </th>
  333. </tr>
  334. <tr>
  335. <th>呼叫方向:
  336. <td>
  337. <div class="inpBox">
  338. <select name="" id="calltype"></select>
  339. </div>
  340. </td>
  341. </th>
  342. <th>开始时间:
  343. <td>
  344. <div class="inpBox">
  345. <input type="text" class="inps " onfocus="WdatePicker({lang:'zh-cn'})" id="starttime" />
  346. </div>
  347. </td>
  348. </th>
  349. </tr>
  350. <tr>
  351. <th>结束时间:
  352. <td>
  353. <div class="inpBox">
  354. <input type="text" class="inps " onfocus="WdatePicker({lang:'zh-cn'})" id="endtime" />
  355. </div>
  356. </td>
  357. </th>
  358. </tr>
  359. </table>
  360. </div>
  361. <div class="clearfix wh_btn">
  362. <input type="button" value="搜索" class=" btn-info Seach" />
  363. </div>
  364. </div>
  365. </div>
  366. <!--详情列表-->
  367. <div class=" shade_k xqlb">
  368. <div class="shade_title">
  369. <span>录音播放下载及质检<srong class="cknum"></srong></span>
  370. <span class="setwin"><a>x</a></span>
  371. </div>
  372. <div class="shade_content">
  373. <div class="dgxx_table size-13">
  374. <table cellspacing="" cellpadding="" class="form_table">
  375. <tbody>
  376. <tr>
  377. <th><span >电话号码:</span></th>
  378. <td><span class="zj_phone"></span></td>
  379. <th><span>通话时间:</span></th>
  380. <td><span class="zj_time">2017/5/3 16:50:05</span></td>
  381. </tr>
  382. <tr>
  383. <th><span>呼叫方向:</span></th>
  384. <td><span class="zj_calltype">呼出</span></td>
  385. <th><span>通话时长:</span></th>
  386. <td><span class="zj_talklongtime"> 278秒</span></td>
  387. </tr>
  388. <tr>
  389. <th><span>坐席工号:</span></th>
  390. <td><span class="zj_usercode">902</span></td>
  391. <th><span>坐席姓名:</span></th>
  392. <td><span class="zj_username">6+541+</span></td>
  393. </tr>
  394. <tr>
  395. <th><span>听取录音:</span></th>
  396. <td colspan="3">
  397. <div class="play">
  398. </div>
  399. </td>
  400. </tr>
  401. <tr>
  402. <th><span>下载录音:</span></th>
  403. <td colspan="3">
  404. <input type="button" value="下载" id="downlond" />
  405. </td>
  406. </tr>
  407. </tbody>
  408. </table>
  409. </div>
  410. <!--质检详情列表-->
  411. <div class="divDataItems">
  412. <table class="table table-bordered text-center table-hover" style="width: 100%;">
  413. <thead>
  414. <tr class="thead_title">
  415. <td colspan="2" style="background-color: #D5EDFE;">分类</td>
  416. <td style="background-color: #D5EDFE;">指标</td>
  417. <td style="background-color: #D5EDFE;">分值</td>
  418. <td style="background-color: #D5EDFE;">评分</td>
  419. </tr>
  420. </thead>
  421. <tbody id="tbody">
  422. </tbody>
  423. <tfoot id="tfoot">
  424. </tfoot>
  425. </table>
  426. </div>
  427. </div>
  428. </div>
  429. </div>
  430. <script>
  431. var zjID;
  432. var seatlist = [];//坐席列表
  433. $(function() {
  434. Finishs();
  435. //获取坐席
  436. // $.getJSON(huayi.config.callcenter_url + "UserAccount/GetSeatList", { token: $.cookie("token") }, function (result) {
  437. // if (result.state.toLowerCase() == "success") {
  438. // seatlist = result.data;
  439. // bindseat($("#Select"));
  440. // bindseat($("#usercode"));
  441. // }
  442. // });
  443. //高级搜索s
  444. $(".Gj").click(function() {
  445. $(".t-shade").addClass("cx");
  446. $(".gjss").addClass("cx");
  447. $(".xqlb").removeClass("cx");
  448. });
  449. //关闭弹框
  450. $(".setwin").click(function() {
  451. $(".t-shade").removeClass("cx");
  452. });
  453. //搜索 验证
  454. $(".Seach").click(function() {
  455. var phone = $('#phone').val();
  456. var usercode = $('#usercode').val();
  457. var calltype = $('#calltype').val();
  458. var starttime = $('#starttime').val();
  459. var endtime = $('#endtime').val();
  460. if(phone == '' || usercode == '' || calltype == '' || starttime == '' || endtime == '') {
  461. alert("5646");
  462. } else {
  463. Finish();
  464. }
  465. });
  466. });
  467. /*获取选中行对象*/
  468. $('#goods').on("click-row.bs.table", function(e, row, ele) {
  469. $('.success').removeClass('success'); //去除之前选中的行的,选中样式
  470. $(ele).addClass('success'); //添加当前选中的 success样式用于区别
  471. console.log(row._callrecordsid);
  472. $(".t-shade").addClass("cx");
  473. $(".zj_phone").text(row._callnumber);
  474. $(".zj_time").text(row._talkstarttime);
  475. $(".zj_calltype").text("呼入");
  476. $(".zj_talklongtime").text(row._talklongtime);
  477. $(".zj_usercode").text(row._usercode);
  478. $(".zj_username").text(row._username);
  479. var zjID=row._callrecordsid;
  480. Xq(zjID);
  481. });
  482. /*录音质检*/
  483. function setCode(val,row) {
  484. if(val == "") {
  485. return '<div class="imgs">' +
  486. '</div>';
  487. } else {
  488. return '<div class="imgs">' +
  489. '<img src="./img/vice.png" alt="" onclick= ck("' + val + '") />' +
  490. '</div>';
  491. }
  492. }
  493. //质检
  494. function quality(val) {
  495. if(val == 0) {
  496. return '<div class="imgs">未质检' +
  497. '</div>';
  498. } else {
  499. return '<div class="imgs">已质检' +
  500. '</div>';
  501. }
  502. }
  503. //方向呼出
  504. function call(val) {
  505. if(val == 0) {
  506. return '<div class="imgs">呼入' +
  507. '</div>';
  508. } else {
  509. return '<div class="imgs">呼出' +
  510. '</div>';
  511. }
  512. }
  513. //状态
  514. function states(val) {
  515. if(val == 0) {
  516. return '<div class="imgs">未接通' +
  517. '</div>';
  518. } else {
  519. return '<div class="imgs">已接通' +
  520. '</div>';
  521. }
  522. }
  523. function ck(val,row) {
  524. $(".t-shade").addClass("cx");
  525. $(".gjss").removeClass("cx");
  526. $(".xqlb").addClass("cx");
  527. }
  528. //搜索
  529. $(".Ss").click(function() {
  530. Finishs();
  531. });
  532. function Xq(zjID){
  533. $.ajax({
  534. type: "get",
  535. // url: huayi.config.callcenter_url + "/Mobiledata/EditMobiledata",
  536. url: "zjxq.json",
  537. dataType: 'json',
  538. async: true,
  539. // data:{
  540. // id:zjID///通话ID
  541. // },
  542. success: function(data) {
  543. var content = data.data;
  544. console.log(content);
  545. // for(var i=0;i<content.length;i++){
  546. console.log(content.Rowspan);
  547. $('<tr>' +
  548. '<td colspan="3">' + content.Qcname + '</td>' +
  549. '<td >' + content.Qcscore + '</td>' +
  550. '<td >' + content.Qcpf + '</td>' +
  551. '</tr>').appendTo("#tfoot");
  552. var twoCon = content.Qclist;
  553. if(twoCon !== null) {
  554. for(var j = 0; j < twoCon.length; j++) {
  555. var t=parseInt(twoCon[j].Rowspan);
  556. var o=1;
  557. var l=parseInt(twoCon.length);
  558. var c=t+o+l;
  559. $('<tr>' +
  560. '<td rowspan="'+ c +'">' + twoCon[j].Qcname + '</td>' +
  561. '</tr>').appendTo("#tbody");
  562. var stree = twoCon[j].Qclist;
  563. console.log(stree);
  564. if(stree !== null) {
  565. for(var k = 0; k < stree.length; k++) {
  566. var t=parseInt(stree[k].Rowspan);
  567. var o=1;
  568. var c=t+o;
  569. $('<tr>' +
  570. '<td rowspan="' + c + '">' + stree[k].Qcname + '</td>' +
  571. '</tr>').appendTo("#tbody");
  572. var foure = stree[k].Qclist;
  573. if(foure !== null) {
  574. for(var i = 0; i < foure.length; i++) {
  575. var t=parseInt(foure[i].Rowspan);
  576. var o=1;
  577. var c=t+o;
  578. $('<tr>' +
  579. '<td rowspan="' + c + '">' + foure[i].Qcname + '</td>' +
  580. '<td >' + foure[i].Qcscore + '</td>' +
  581. '<td ><input type="text" class="txtInput"/></td>' +
  582. '</tr>').appendTo("#tbody");
  583. }
  584. }
  585. }
  586. }
  587. }
  588. }
  589. }
  590. });
  591. }
  592. function Finishs() {
  593. //销毁表格
  594. $('#goods').bootstrapTable('destroy');
  595. //初始化表格,动态从服务器加载数据
  596. $("#goods").bootstrapTable({
  597. method: "get", //使用get请求到服务器获取数据
  598. // url: "http://192.168.1.88:9025/QCManage/GetYZJList", //获取数据的Servlet地址
  599. url: "zj.json",
  600. // url: huayi.config.callcenter_url+"QCManage/GetYZJList", //获取数据的Servlet地址
  601. striped: true, //表格显示条纹
  602. pagination: true, //启动分页
  603. pageSize: 5, //每页显示的记录数
  604. pageNumber: 1, //当前第几页
  605. pageList: [5, 20, 50, 100], //记录数可选列表
  606. search: false, //是否启用查询
  607. showColumns: false, //显示下拉框勾选要显示的列
  608. showRefresh: false, //显示刷新按钮
  609. sidePagination: "server", //表示服务端请求
  610. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  611. //设置为limit可以获取limit, offset, search, sort, order
  612. queryParamsType: "undefined",
  613. queryParams: function queryParams(params) { //设置查询参数
  614. var param = {
  615. page: params.pageNumber,
  616. pagesize: params.pageSize,
  617. phone: $('#phone').val(),
  618. usercode: $('#usercode').val(),
  619. calltype: $('#calltype').val(),
  620. starttime: $('#starttime').val(),
  621. endtime: $('#endtime').val(),
  622. optid: 8000
  623. };
  624. return param;
  625. },
  626. onLoadSuccess: function() { //加载成功时执行
  627. // layer.msg("加载成功");
  628. },
  629. onLoadError: function() { //加载失败时执行
  630. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  631. }
  632. });
  633. }
  634. //坐席列表
  635. function bindseat(obj) {
  636. obj.empty();
  637. obj.append('<option value="">全部</option>');
  638. $(seatlist).each(function (i,n) {
  639. obj.append('<option value="' + n.F_UserCode + '">' + n.F_UserName + '</option>');
  640. })
  641. }
  642. </script>
  643. </body>
  644. </html>