暂无描述

zhijianpingfen.html 25KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652
  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="CallType" data-formatter="callType" data-align="center">呼叫方向</th>
  225. <th data-field="UserCode" data-align="center">坐席工号</th>
  226. <th data-field="UserName1" data-align="center">坐席姓名</th>
  227. <th data-field="ExtNumber" data-align="center">分机号</th>
  228. <!--<th data-field="BeginTime" data-align="center">开始时间</th>-->
  229. <th data-field="TalkStartTime" data-align="center">通话开始时间</th>
  230. <th data-field="TalkEndTime" data-align="center">通话结束时间</th>
  231. <!--<th data-field="EndTime" data-align="center">结束时间</th>-->
  232. <th data-field="TalkLongTime" data-align="center" data-formatter="ftime">通话时长</th>
  233. <th data-field="RingLongTime" data-align="center" data-formatter="ftime">振铃时长</th>
  234. <!--<th data-field="LongTime" data-align="center" data-formatter="ftime">总时长</th>-->
  235. <!--<th data-field="PhoneType" data-align="center">电话类别</th>-->
  236. </tr>
  237. </thead>
  238. </table>
  239. <!--高级搜索框-->
  240. </div>
  241. </div>
  242. <div class="t-shade">
  243. <div class="shade_k xqlb">
  244. <div class="shade_title">
  245. <span>录音播放下载及质检<srong class="cknum"></srong></span>
  246. <span class="setwin"><a>x</a></span>
  247. </div>
  248. <div class="shade_content">
  249. <div class="dgxx_table size-13">
  250. <table class="form_table">
  251. <tbody>
  252. <tr>
  253. <th><span>电话号码:</span></th>
  254. <td><span class="zj_phone"></span></td>
  255. <th><span>通话时间:</span></th>
  256. <td><span class="zj_time"></span></td>
  257. </tr>
  258. <tr>
  259. <th><span>呼叫方向:</span></th>
  260. <td><span class="zj_calltype"></span></td>
  261. <th><span>通话时长:</span></th>
  262. <td><span class="zj_talklongtime"></span></td>
  263. </tr>
  264. <tr>
  265. <th><span>坐席工号:</span></th>
  266. <td><span class="zj_usercode"></span></td>
  267. <th><span>坐席姓名:</span></th>
  268. <td><span class="zj_username"></span></td>
  269. </tr>
  270. <tr>
  271. <th><span>听取录音:</span></th>
  272. <td colspan="3">
  273. <div class="play Ly_box">
  274. </div>
  275. </td>
  276. </tr>
  277. </tbody>
  278. </table>
  279. </div>
  280. <!--质检详情列表-->
  281. <div class="divDataItems">
  282. <table class="table table-bordered text-center table-hover" style="width: 100%;">
  283. <thead>
  284. <tr class="thead_title">
  285. <td style="background-color: #D5EDFE;">分类</td>
  286. <td style="background-color: #D5EDFE;">指标</td>
  287. <td style="background-color: #D5EDFE;">分值</td>
  288. <td style="background-color: #D5EDFE;">评分</td>
  289. </tr>
  290. </thead>
  291. <tbody id="tbody"></tbody>
  292. <tfoot id="tfoot">
  293. </tfoot>
  294. </table>
  295. <div class="add_btn" style="text-align: center;">
  296. <input type="button" class="btns" value="提交" onclick="SaveData()" />
  297. </div>
  298. </div>
  299. </div>
  300. <input type="hidden" class="Thid" />
  301. </div>
  302. </div>
  303. <script src="../js/bootstrap-select.js"></script>
  304. <script src="../My97DatePicker/WdatePicker.js"></script>
  305. <script src="../css/laydate/laydate.js"></script>
  306. <script>
  307. var stype = 1;
  308. var seatlist = [];
  309. $(document).ready(function () {
  310. laydate.skin('blue');
  311. laydate({
  312. elem: '#start',
  313. event: 'focus',
  314. istime: true,
  315. format: 'YYYY-MM-DD hh:mm:ss'
  316. });
  317. laydate({
  318. elem: '#end',
  319. event: 'focus',
  320. istime: true,
  321. format: 'YYYY-MM-DD hh:mm:ss'
  322. });
  323. /*获取选中行对象*/
  324. $('#list').on("click-row.bs.table", function (e, row, ele) {
  325. $('.success').removeClass('success'); //去除之前选中的行的,选中样式
  326. $(ele).addClass('success'); //添加当前选中的 success样式用于区别
  327. $(".zj_phone").text(row.CallNumber);
  328. $(".zj_time").text(row.TalkStartTime);
  329. $(".zj_calltype").text(row.CallType == 0 ? "呼入" : "呼出");
  330. $(".zj_talklongtime").text(row.TalkLongTime + "秒");
  331. $(".zj_usercode").text(row.UserCode);
  332. $(".zj_username").text(row.UserName1);
  333. $('.Thid').val(row.CallRecordsId);
  334. });
  335. $(".setwin").click(function () {
  336. $(".t-shade").removeClass("cx");
  337. $('audio')[0].pause();
  338. });
  339. //获取坐席
  340. $.getJSON(huayi.config.callcenter_url + "UserAccount/GetSeatList", {
  341. token: $.cookie("token")
  342. }, function (result) {
  343. if (result.state.toLowerCase() == "success") {
  344. seatlist = result.data;
  345. bindseat($("#seat"));
  346. }
  347. });
  348. // 电话类别
  349. getPhoneType($("#phoneType"));
  350. //搜索
  351. $(".Ss").click(function () {
  352. stype = 1;
  353. initTable();
  354. });
  355. initTable();
  356. })
  357. function bindseat(obj) {
  358. obj.empty();
  359. obj.append('<option value="">全部</option>');
  360. $(seatlist).each(function (i, n) {
  361. obj.append('<option value="' + n.F_UserCode + '">' + n.F_UserName + '</option>');
  362. obj.selectpicker({
  363. noneSelectedText: '请选择' //默认显示内容
  364. });
  365. obj.selectpicker('refresh');
  366. })
  367. }
  368. function initTable() {
  369. //先销毁表格
  370. $('#list').bootstrapTable('destroy');
  371. //初始化表格,动态从服务器加载数据
  372. $("#list").bootstrapTable({
  373. method: "get", //使用get请求到服务器获取数据
  374. url: huayi.config.callcenter_url + "QCManage/GetNoQCList", //获取数据的Servlet地址
  375. contentType: "application/x-www-form-urlencoded",
  376. striped: true, //表格显示条纹
  377. pagination: true, //启动分页
  378. pageSize: 10, //每页显示的记录数
  379. pageNumber: 1, //当前第几页
  380. pageList: [10, 20, 50, 100], //记录数可选列表
  381. search: false, //是否启用查询
  382. showColumns: false, //显示下拉框勾选要显示的列
  383. showRefresh: false, //显示刷新按钮
  384. sidePagination: "server", //表示服务端请求
  385. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  386. //设置为limit可以获取limit, offset, search, sort, order
  387. queryParamsType: "undefined",
  388. queryParams: function queryParams(params) { //设置查询参数
  389. var param = {
  390. page: params.pageNumber,
  391. pagesize: params.pageSize,
  392. token: $.cookie("token")
  393. };
  394. var usercode_ = $("#seat").val(); //坐席
  395. var usercodeID = "";
  396. if (usercode_ != null) {
  397. $(usercode_).each(function (i, n) {
  398. var obj1 = "";
  399. obj1 = n + ",";
  400. usercodeID += obj1;
  401. });
  402. usercodeID = usercodeID.slice(0, -1);
  403. } else {
  404. usercodeID = "";
  405. }
  406. param.usercode = usercodeID;
  407. param.phone = $("#tel").val();
  408. param.starttime = $("#start").val();
  409. param.endtime = $("#end").val();
  410. param.callstate = $("#ss_hjzt").val();
  411. param.calltype = $("#ss_hcfx").val();
  412. param.tasktype = $("#sf_hf").val();
  413. param.actiontype = $("#ss_HJLX").val(); //呼叫类型
  414. param.extnumber = $("#extnumber").val();
  415. param.phoneType = $("#phoneType").val();
  416. param.islike = $("#islike").val(); // 查询类型
  417. return param;
  418. },
  419. onLoadSuccess: function () { //加载成功时执行
  420. //layer.msg("加载成功");
  421. },
  422. onLoadError: function () { //加载失败时执行
  423. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  424. }
  425. });
  426. }
  427. //音频
  428. function setCode(val, row) {
  429. if (val) {
  430. return '<div class="imgs" style:"cursor: pointer;">' +
  431. '<img src="../img/vice.png" alt="" onclick="ck(this,' + row.CallRecordsId + ')" item="' + val +
  432. '" />' +
  433. '</div>';
  434. } else {
  435. return '';
  436. }
  437. }
  438. //编号
  439. function Code(val, row, index) {
  440. return index + 1;
  441. }
  442. //方向呼出
  443. function callType(val) {
  444. if (val == 0) {
  445. return '<div class="imgs">呼入</div>';
  446. } else {
  447. return '<div class="imgs">呼出</div>';
  448. }
  449. }
  450. function ActionType(val) {
  451. if (val == 2) {
  452. return '<div class="imgs">转移</div>';
  453. } else if (val == 3) {
  454. return '<div class="imgs">三方通话</div>';
  455. } else {
  456. return '<div class="imgs">正常通话</div>';
  457. }
  458. }
  459. //处理
  460. function isDeal(val) {
  461. if (val == 0) {
  462. return '<div >未处理</div>';
  463. } else {
  464. return '<div >已处理</div>';
  465. }
  466. }
  467. function ftime(val) {
  468. if (val) {
  469. return helper.DateFormat.getFormatTime(val);
  470. } else {
  471. return '';
  472. }
  473. }
  474. //电话类别
  475. function getPhoneType(obj) {
  476. obj.empty();
  477. $("<option value=''>请选择</option>").appendTo(obj);
  478. $.ajax({
  479. type: "get",
  480. url: huayi.config.callcenter_url + "Dictionary/GetDicValueListById",
  481. dataType: "json",
  482. async: true,
  483. data: {
  484. "token": $.cookie("token"),
  485. id: 2498,
  486. },
  487. success: function (data) {
  488. if (data.state == "success") {
  489. var content = data.data;
  490. $(content).each(function (i, n) {
  491. $("<option value='" + n.F_Value + "'>" + n.F_Value + "</option>")
  492. .appendTo(obj);
  493. })
  494. }
  495. }
  496. });
  497. }
  498. function ck(val, id) {
  499. Xq(id);
  500. $(".t-shade").addClass("cx");
  501. $(".xqlb").addClass("cx");
  502. var path = $(val).attr("item");
  503. $(".Ly_box").empty();
  504. $('<audio style="width:100%;"class=" " src="' + path + '" loop="loop" controls="controls"></audio>')
  505. .appendTo(".Ly_box");
  506. }
  507. function Xq(zjID) {
  508. $.ajax({
  509. type: "get",
  510. url: huayi.config.callcenter_url + "QCManage/GetIndexList",
  511. dataType: 'json',
  512. async: true,
  513. data: {
  514. id: zjID,
  515. token: $.cookie("token")
  516. },
  517. success: function (data) {
  518. if (data.state = "success") {
  519. var content = data.data;
  520. $("#tbody").empty();
  521. $("#tfoot").empty();
  522. $(content).each(function (i, n) {
  523. if (n.Rowspan > 1) {
  524. $('<tr>' +
  525. '<td rowspan="' + (n.Rowspan + 1) + '">' + n.Qcname +
  526. '</td>' +
  527. '</tr>').appendTo($("#tbody"));
  528. } else {
  529. if (n.Colspan > 1) {
  530. $('<tr>' +
  531. '<td colspan="2">' + n.Qcname + '</td>' +
  532. '<td >' + n.Qcscore + '</td>' +
  533. '<td class="Total"><input type="text" class="Input" readonly="readonly"/></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" qc="' + n.Qcscore +
  542. '" qcid="' + n.Qcid + '" class="txtInput"/></td>' +
  543. '</tr>').appendTo("#tbody").find(".txtInput").keyup(
  544. function () {
  545. if (!(/^[0-9]*$/.test($(this).val()))) {
  546. $(this).val("");
  547. }
  548. if ($(this).val() * 1 > $(this).attr("qc") * 1) {
  549. $(this).val($(this).attr("qc") * 1);
  550. }
  551. Count = 0;
  552. $('.txtInput').each(function (i, n) {
  553. if ($(n).val()) {
  554. Count = Count * 1 + $(n).val() * 1;
  555. }
  556. })
  557. $(".Input").val(Count);
  558. });
  559. }
  560. }
  561. })
  562. }
  563. }
  564. });
  565. }
  566. function SaveData() {
  567. var json = [];
  568. var ispf = 1;
  569. $('.txtInput').each(function (i, n) {
  570. if (!$(n).val()) {
  571. ispf = 0;
  572. return false;
  573. }
  574. var jobj = {};
  575. jobj.Id = $(n).attr("qcid");
  576. jobj.Score = $(n).attr("qc");
  577. jobj.QCScore = $(n).val();
  578. json.push(jobj);
  579. })
  580. if (!ispf) {
  581. layer.confirm('请输入评分!', {
  582. btn: ['确定']
  583. });
  584. return;
  585. }
  586. $.ajax({
  587. type: "post",
  588. url: huayi.config.callcenter_url + "/QCManage/SaveData",
  589. dataType: 'json',
  590. data: {
  591. id: $(".Thid").val(), ///通话ID
  592. json: JSON.stringify(json),
  593. token: $.cookie("token")
  594. },
  595. success: function (data) {
  596. if (data.state == "success") {
  597. layer.msg('提交成功!');
  598. initTable();
  599. $(".t-shade").removeClass("cx");
  600. $('audio')[0].pause();
  601. }
  602. }
  603. });
  604. }
  605. </script>
  606. </body>
  607. </html>