| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <title>质检评分</title>
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <script src="../Script/Common/huayi.load.js"></script>
- <script src="../Script/Common/huayi.config.js"></script>
- <link rel="stylesheet" href="../css/bootstrap-select.css" />
- <link rel="stylesheet" href="../css/Table/table1.css" />
- <link rel="stylesheet" href="../css/init.css" />
- <link href="../css/Quality/QualityCommon.css" rel="stylesheet" />
- <style>
- body {
- font-family: "微软雅黑";
- font-size: 14px;
- }
- ul li {
- list-style: none;
- float: left;
- }
- .fr {
- float: right;
- }
- .fl {
- float: right;
- }
- /*标头*/
- .th-box {
- width: 100%;
- padding: 5px;
- border-bottom: 1px solid #e7eaec;
- }
- .sc_btn {
- width: 100px;
- color: #fff;
- font-size: 12px;
- margin-left: 15px;
- box-sizing: border-box;
- background: #00a1cb;
- padding: 6px 10px;
- outline: none;
- border-width: 0px;
- border-style: initial;
- border-color: initial;
- border-image: initial;
- border-radius: 3px;
- margin-top: 5px;
- text-align: center;
- }
- .photo {
- /*background-color: #FFF;
- background-image: none;*/
- width: 180px;
- border: 1px solid #e5e6e7;
- border-radius: 1px;
- color: inherit;
- padding: 6px 12px;
- }
- .selects {
- background-color: #FFF;
- background-image: none;
- border: 1px solid #e5e6e7;
- border-radius: 1px;
- color: inherit;
- padding: 6px 12px;
- }
- #Select:focus {
- outline: none;
- border-color: #00BFFF;
- }
- input:focus {
- outline: none;
- border-color: #00BFFF;
- }
- .spiner-example {
- position: absolute;
- top: 50%;
- left: 50%;
- z-index: 111;
- margin-left: -85px;
- margin-top: -100px;
- display: none;
- }
- .sk-spinner-three-bounce {
- width: 170px !important;
- }
- .sk-spinner p {
- display: inline-block;
- font-size: 18px;
- margin-left: 10px;
- }
- .gjsu ul {
- overflow: hidden;
- }
- .gjsu ul li {
- width: 50%;
- margin-bottom: 5px;
- padding-top: 10px;
- }
- .selects {
- width: 105px;
- }
- .tc {
- margin-top: 30px;
- text-align: center;
- }
- #sqzx th {
- padding: 5px 8px 5px 0;
- text-align: center;
- width: 6%;
- }
- #sqzx td {
- padding: 6px 0 5px 10px;
- width: 18%;
- }
- .nameJustified {
- width: 5em;
- display: inline-block;
- text-align: justify;
- text-align-last: justify;
- }
- </style>
- </head>
- <body class="gray-bg">
- <div class="wrapper wrapper-content animated fadeInRight">
- <div class="daoHang clearfix">
- <div class="dhLeft">
- <sapn>
- <i class="syIcon"></i>位置:<a href="javaScript:;" id="ReIndex">首页</a>><a
- href="javaScript:;">质检管理</a>><a href="" class="nowPosition">质检评分</a>
- </sapn>
- </div>
- <div class="dhRight">
- <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
- </div>
- </div>
- <div class="th-box">
- <div class="box_content">
- <table id="sqzx" style="width: 100%" border="0">
- <tbody>
- <tr>
- <th>电话号码:</th>
- <td><input id="tel" class="form-control" type="text" /></td>
- <th><span class="nameJustified">分机号:</span></th>
- <td>
- <input id="extnumber" class="form-control" type="text" />
- </td>
- <th>呼出方向:</th>
- <td>
- <select id="ss_hcfx" class="form-control calltype">
- <option value="">全部</option>
- <option value="0">呼入</option>
- <option value="1">呼出</option>
- <option value="3">呼出回访</option>
- </select>
- </td>
- </tr>
- <tr>
- <th>呼叫类型:</th>
- <td>
- <select id="ss_HJLX" class="form-control calltype">
- <option value="">全部</option>
- <option value="1">正常通话</option>
- <option value="2">转移</option>
- <option value="3">三方通话</option>
- </select>
- </td>
- <th>是否回访:</th>
- <td>
- <select id="sf_hf" class="form-control calltype">
- <option value="">全部</option>
- <option value="2">是</option>
- <option value="0">否</option>
- </select>
- </td>
- <th>受话坐席:</th>
- <td>
- <select class="selectpicker show-tick form-control" multiple id="seat">
- <option value="">全部</option>
- </select>
- </td>
- </tr>
- <tr>
- <th>电话类别:</th>
- <td>
- <select class="form-control" id="phoneType">
- <option value="">请选择</option>
- </select>
- </td>
- <th>查询类型:</th>
- <td>
- <select id="islike" class="form-control" name="select">
- <option value="1">
- 模糊查询
- </option>
- <option value="0">
- 精确查询
- </option>
- </select>
- </td>
- <th><span class="nameJustified">时间:</span></th>
- <td colspan="3">
- <input id="start" class="photo x-color laydate-icon" type="text" /> - <input id="end"
- class="photo x-color laydate-icon" type="text" />
- </td>
- </tr>
- <tr>
- <th>
- <a class="sc_btn Ss">搜索</a>
- </th>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- <div style="width: 100%;padding: 10px;">
- <table id="list" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
- <thead>
- <tr>
- <th data-field="CallNumber" data-align="center" data-formatter="Code">编号</th>
- <th data-field="CallNumber" data-align="center">电话号码</th>
- <th data-field="FilePath" data-formatter="setCode" data-align="center">录音质检</th>
- <th data-field="CallType" data-formatter="callType" data-align="center">呼叫方向</th>
- <th data-field="UserCode" data-align="center">坐席工号</th>
- <th data-field="UserName1" data-align="center">坐席姓名</th>
- <th data-field="ExtNumber" data-align="center">分机号</th>
- <!--<th data-field="BeginTime" data-align="center">开始时间</th>-->
- <th data-field="TalkStartTime" data-align="center">通话开始时间</th>
- <th data-field="TalkEndTime" data-align="center">通话结束时间</th>
- <!--<th data-field="EndTime" data-align="center">结束时间</th>-->
- <th data-field="TalkLongTime" data-align="center" data-formatter="ftime">通话时长</th>
- <th data-field="RingLongTime" data-align="center" data-formatter="ftime">振铃时长</th>
- <!--<th data-field="LongTime" data-align="center" data-formatter="ftime">总时长</th>-->
- <!--<th data-field="PhoneType" data-align="center">电话类别</th>-->
- </tr>
- </thead>
- </table>
- <!--高级搜索框-->
- </div>
- </div>
- <div class="t-shade">
- <div class="shade_k xqlb">
- <div class="shade_title">
- <span>录音播放下载及质检<srong class="cknum"></srong></span>
- <span class="setwin"><a>x</a></span>
- </div>
- <div class="shade_content">
- <div class="dgxx_table size-13">
- <table class="form_table">
- <tbody>
- <tr>
- <th><span>电话号码:</span></th>
- <td><span class="zj_phone"></span></td>
- <th><span>通话时间:</span></th>
- <td><span class="zj_time"></span></td>
- </tr>
- <tr>
- <th><span>呼叫方向:</span></th>
- <td><span class="zj_calltype"></span></td>
- <th><span>通话时长:</span></th>
- <td><span class="zj_talklongtime"></span></td>
- </tr>
- <tr>
- <th><span>坐席工号:</span></th>
- <td><span class="zj_usercode"></span></td>
- <th><span>坐席姓名:</span></th>
- <td><span class="zj_username"></span></td>
- </tr>
- <tr>
- <th><span>听取录音:</span></th>
- <td colspan="3">
- <div class="play Ly_box">
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <!--质检详情列表-->
- <div class="divDataItems">
- <table class="table table-bordered text-center table-hover" style="width: 100%;">
- <thead>
- <tr class="thead_title">
- <td style="background-color: #D5EDFE;">分类</td>
- <td style="background-color: #D5EDFE;">指标</td>
- <td style="background-color: #D5EDFE;">分值</td>
- <td style="background-color: #D5EDFE;">评分</td>
- </tr>
- </thead>
- <tbody id="tbody"></tbody>
- <tfoot id="tfoot">
- </tfoot>
- </table>
- <div class="add_btn" style="text-align: center;">
- <input type="button" class="btns" value="提交" onclick="SaveData()" />
- </div>
- </div>
- </div>
- <input type="hidden" class="Thid" />
- </div>
- </div>
- <script src="../js/bootstrap-select.js"></script>
- <script src="../My97DatePicker/WdatePicker.js"></script>
- <script src="../css/laydate/laydate.js"></script>
- <script>
- var stype = 1;
- var seatlist = [];
- $(document).ready(function () {
- laydate.skin('blue');
- laydate({
- elem: '#start',
- event: 'focus',
- istime: true,
- format: 'YYYY-MM-DD hh:mm:ss'
- });
- laydate({
- elem: '#end',
- event: 'focus',
- istime: true,
- format: 'YYYY-MM-DD hh:mm:ss'
- });
- /*获取选中行对象*/
- $('#list').on("click-row.bs.table", function (e, row, ele) {
- $('.success').removeClass('success'); //去除之前选中的行的,选中样式
- $(ele).addClass('success'); //添加当前选中的 success样式用于区别
- $(".zj_phone").text(row.CallNumber);
- $(".zj_time").text(row.TalkStartTime);
- $(".zj_calltype").text(row.CallType == 0 ? "呼入" : "呼出");
- $(".zj_talklongtime").text(row.TalkLongTime + "秒");
- $(".zj_usercode").text(row.UserCode);
- $(".zj_username").text(row.UserName1);
- $('.Thid').val(row.CallRecordsId);
- });
- $(".setwin").click(function () {
- $(".t-shade").removeClass("cx");
- $('audio')[0].pause();
- });
- //获取坐席
- $.getJSON(huayi.config.callcenter_url + "UserAccount/GetSeatList", {
- token: $.cookie("token")
- }, function (result) {
- if (result.state.toLowerCase() == "success") {
- seatlist = result.data;
- bindseat($("#seat"));
- }
- });
- // 电话类别
- getPhoneType($("#phoneType"));
- //搜索
- $(".Ss").click(function () {
- stype = 1;
- initTable();
- });
- initTable();
- })
- function bindseat(obj) {
- obj.empty();
- obj.append('<option value="">全部</option>');
- $(seatlist).each(function (i, n) {
- obj.append('<option value="' + n.F_UserCode + '">' + n.F_UserName + '</option>');
- obj.selectpicker({
- noneSelectedText: '请选择' //默认显示内容
- });
- obj.selectpicker('refresh');
- })
- }
- function initTable() {
- //先销毁表格
- $('#list').bootstrapTable('destroy');
- //初始化表格,动态从服务器加载数据
- $("#list").bootstrapTable({
- method: "get", //使用get请求到服务器获取数据
- url: huayi.config.callcenter_url + "QCManage/GetNoQCList", //获取数据的Servlet地址
- contentType: "application/x-www-form-urlencoded",
- striped: true, //表格显示条纹
- pagination: true, //启动分页
- pageSize: 10, //每页显示的记录数
- pageNumber: 1, //当前第几页
- pageList: [10, 20, 50, 100], //记录数可选列表
- search: false, //是否启用查询
- showColumns: false, //显示下拉框勾选要显示的列
- showRefresh: false, //显示刷新按钮
- sidePagination: "server", //表示服务端请求
- //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
- //设置为limit可以获取limit, offset, search, sort, order
- queryParamsType: "undefined",
- queryParams: function queryParams(params) { //设置查询参数
- var param = {
- page: params.pageNumber,
- pagesize: params.pageSize,
- token: $.cookie("token")
- };
- var usercode_ = $("#seat").val(); //坐席
- var usercodeID = "";
- if (usercode_ != null) {
- $(usercode_).each(function (i, n) {
- var obj1 = "";
- obj1 = n + ",";
- usercodeID += obj1;
- });
- usercodeID = usercodeID.slice(0, -1);
- } else {
- usercodeID = "";
- }
- param.usercode = usercodeID;
- param.phone = $("#tel").val();
- param.starttime = $("#start").val();
- param.endtime = $("#end").val();
- param.callstate = $("#ss_hjzt").val();
- param.calltype = $("#ss_hcfx").val();
- param.tasktype = $("#sf_hf").val();
- param.actiontype = $("#ss_HJLX").val(); //呼叫类型
- param.extnumber = $("#extnumber").val();
- param.phoneType = $("#phoneType").val();
- param.islike = $("#islike").val(); // 查询类型
- return param;
- },
- onLoadSuccess: function () { //加载成功时执行
- //layer.msg("加载成功");
- },
- onLoadError: function () { //加载失败时执行
- //layer.msg("加载数据失败", { time: 1500, icon: 2 });
- }
- });
- }
- //音频
- function setCode(val, row) {
- if (val) {
- return '<div class="imgs" style:"cursor: pointer;">' +
- '<img src="../img/vice.png" alt="" onclick="ck(this,' + row.CallRecordsId + ')" item="' + val +
- '" />' +
- '</div>';
- } else {
- return '';
- }
- }
- //编号
- function Code(val, row, index) {
- return index + 1;
- }
- //方向呼出
- function callType(val) {
- if (val == 0) {
- return '<div class="imgs">呼入</div>';
- } else {
- return '<div class="imgs">呼出</div>';
- }
- }
- function ActionType(val) {
- if (val == 2) {
- return '<div class="imgs">转移</div>';
- } else if (val == 3) {
- return '<div class="imgs">三方通话</div>';
- } else {
- return '<div class="imgs">正常通话</div>';
- }
- }
- //处理
- function isDeal(val) {
- if (val == 0) {
- return '<div >未处理</div>';
- } else {
- return '<div >已处理</div>';
- }
- }
- function ftime(val) {
- if (val) {
- return helper.DateFormat.getFormatTime(val);
- } else {
- return '';
- }
- }
- //电话类别
- function getPhoneType(obj) {
- obj.empty();
- $("<option value=''>请选择</option>").appendTo(obj);
- $.ajax({
- type: "get",
- url: huayi.config.callcenter_url + "Dictionary/GetDicValueListById",
- dataType: "json",
- async: true,
- data: {
- "token": $.cookie("token"),
- id: 2498,
- },
- success: function (data) {
- if (data.state == "success") {
- var content = data.data;
- $(content).each(function (i, n) {
- $("<option value='" + n.F_Value + "'>" + n.F_Value + "</option>")
- .appendTo(obj);
- })
- }
- }
- });
- }
- function ck(val, id) {
- Xq(id);
- $(".t-shade").addClass("cx");
- $(".xqlb").addClass("cx");
- var path = $(val).attr("item");
- $(".Ly_box").empty();
- $('<audio style="width:100%;"class=" " src="' + path + '" loop="loop" controls="controls"></audio>')
- .appendTo(".Ly_box");
- }
- function Xq(zjID) {
- $.ajax({
- type: "get",
- url: huayi.config.callcenter_url + "QCManage/GetIndexList",
- dataType: 'json',
- async: true,
- data: {
- id: zjID,
- token: $.cookie("token")
- },
- success: function (data) {
- if (data.state = "success") {
- var content = data.data;
- $("#tbody").empty();
- $("#tfoot").empty();
- $(content).each(function (i, n) {
- if (n.Rowspan > 1) {
- $('<tr>' +
- '<td rowspan="' + (n.Rowspan + 1) + '">' + n.Qcname +
- '</td>' +
- '</tr>').appendTo($("#tbody"));
- } else {
- if (n.Colspan > 1) {
- $('<tr>' +
- '<td colspan="2">' + n.Qcname + '</td>' +
- '<td >' + n.Qcscore + '</td>' +
- '<td class="Total"><input type="text" class="Input" readonly="readonly"/></td>' +
- '</tr>').appendTo("#tfoot");
- } else {
- $('<tr>' +
- (n.TypeName ? '<td >' + n.TypeName + '</td>' : '') +
- '<td rowspan="' + n.Rowspan + '">' + n.Qcname +
- '</td>' +
- '<td >' + n.Qcscore + '</td>' +
- '<td ><input type="text" qc="' + n.Qcscore +
- '" qcid="' + n.Qcid + '" class="txtInput"/></td>' +
- '</tr>').appendTo("#tbody").find(".txtInput").keyup(
- function () {
- if (!(/^[0-9]*$/.test($(this).val()))) {
- $(this).val("");
- }
- if ($(this).val() * 1 > $(this).attr("qc") * 1) {
- $(this).val($(this).attr("qc") * 1);
- }
- Count = 0;
- $('.txtInput').each(function (i, n) {
- if ($(n).val()) {
- Count = Count * 1 + $(n).val() * 1;
- }
- })
- $(".Input").val(Count);
- });
- }
- }
- })
- }
- }
- });
- }
- function SaveData() {
- var json = [];
- var ispf = 1;
- $('.txtInput').each(function (i, n) {
- if (!$(n).val()) {
- ispf = 0;
- return false;
- }
- var jobj = {};
- jobj.Id = $(n).attr("qcid");
- jobj.Score = $(n).attr("qc");
- jobj.QCScore = $(n).val();
- json.push(jobj);
- })
- if (!ispf) {
- layer.confirm('请输入评分!', {
- btn: ['确定']
- });
- return;
- }
- $.ajax({
- type: "post",
- url: huayi.config.callcenter_url + "/QCManage/SaveData",
- dataType: 'json',
- data: {
- id: $(".Thid").val(), ///通话ID
- json: JSON.stringify(json),
- token: $.cookie("token")
- },
- success: function (data) {
- if (data.state == "success") {
- layer.msg('提交成功!');
- initTable();
- $(".t-shade").removeClass("cx");
- $('audio')[0].pause();
- }
- }
- });
- }
- </script>
- </body>
- </html>
|