| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <title>未接来电管理</title>
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <link href="../css/init.css" rel="stylesheet" />
- <link href="../css/Table/table1.css" rel="stylesheet" />
- <script src="../Script/Common/huayi.load.js"></script>
- <script src="../Script/Common/huayi.config.js"></script>
- <script src="../My97DatePicker/WdatePicker.js"></script>
- <script src="../css/laydate/laydate.js"></script>
- <style>
- body {
- font-family: "微软雅黑";
- font-size: 14px;
- }
- ul li {
- list-style: none;
- float: left;
- }
- .fr {
- float: right;
- }
- /*标头*/
- .th-box {
- width: 100%;
- padding: 5px;
- border-bottom: 1px solid #e7eaec;
- }
- .th-bar {
- height: 40px;
- }
- .sc_btn {
- 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;
- }
- .seach-box ul {
- overflow: hidden;
- }
- .seach-box ul li {
- margin-right: 5px;
- }
- .photo {
- /*background-color: #FFF;
- background-image: none;*/
- 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;
- }
- </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="th-bar">
- <div class="seach-box fr">
- <ul>
- <li>开始时间:<input id="start" class="photo x-color laydate-icon" type="text" /></li>
- <li>结束时间:<input id="end" class="photo x-color laydate-icon" type="text" /></li>
- <li>电话号码:<input id="tel" class="photo x-color" type="text" /></li>
- <li>
- 是否回复:
- <select id="ss_ishf" class="selects callstate">
- <option value="">全部</option>
- <option value="0">未回复</option>
- <option value="1">已回复</option>
- </select>
- </li>
- <li>
- 是否回复成功:
- <select id="ss_ishfsuc" class="selects calltype">
- <option value="">全部</option>
- <option value="0">未成功</option>
- <option value="1">已成功</option>
- </select>
- </li>
- <li>
- <a class="sc_btn Ss Block">搜索</a>
- </li>
- </ul>
- </div>
- </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="BeginTime" data-align="center">呼叫时间</th>
- <th data-field="CallNumber" data-align="center">电话号码</th>
- <th data-field="LongTime" data-align="center" data-formatter="ftime">呼叫时长</th>
- <th data-field="UserCode" data-align="center" data-formatter="fusercode">坐席工号</th>
- <th data-field="F_wjishf" data-formatter="fishf" data-align="center">是否回复</th>
- <th data-field="F_wjishfSuccess" data-formatter="fishfsuc" data-align="center">是否成功</th>
- <th data-field="F_wjhfUser" data-align="center">回复人</th>
- <th data-field="F_wjhfRemark" data-align="center">备注</th>
- <th data-field="CallRecordsId" data-formatter="Dispose" data-align="center">操作</th>
- </tr>
- </thead>
- </table>
- </div>
- </div>
- <script src="../js/guid.js"></script>
- <script>
- var stype = 1;
- $(document).ready(function () {
- laydate.skin('blue');
- laydate({
- elem: '#start',
- event: 'focus'
- });
- laydate({
- elem: '#end',
- event: 'focus'
- });
- /*获取选中行对象*/
- $('#list').on("click-row.bs.table", function (e, row, ele) {
- $('.success').removeClass('success'); //去除之前选中的行的,选中样式
- $(ele).addClass('success'); //添加当前选中的 success样式用于区别
- });
-
- //搜索
- $(".Ss").click(function () {
- initTable();
- });
- initTable();
- })
- function initTable() {
- //先销毁表格
- $('#list').bootstrapTable('destroy');
- //初始化表格,动态从服务器加载数据
- $("#list").bootstrapTable({
- method: "get", //使用get请求到服务器获取数据
- url: huayi.config.callcenter_url + "Callrecords/GetListWJ", //获取数据的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")
- };
- param.phone = $("#tel").val();
- param.starttime = $("#start").val();
- param.endtime = $("#end").val();
- param.ishf = $("#ss_ishf").val();
- param.ishfsuc = $("#ss_ishfsuc").val();
- return param;
- },
- onLoadSuccess: function () { //加载成功时执行
- //layer.msg("加载成功");
- },
- onLoadError: function () { //加载失败时执行
- //layer.msg("加载数据失败", { time: 1500, icon: 2 });
- }
- });
- }
- //编号
- function Code(val,row,index){
- return index+1;
- }
- //操作
- function Dispose(val, row) {
- if (val == 1)
- return '';
- else
- return "<a onclick='calloutopt(" + row.CallNumber + "," + row.CallRecordsId + ")' href='javascript:;'>回复</a>";
- }
- //是否回复
- function fishf(val)
- {
- if (val == 1) {
- return '<div class="imgs">已回复</div>';
- } else {
- return '<div class="imgs">未回复</div>';
- }
- }
- //是否回复成功
- function fishfsuc(val) {
- if (val == 1) {
- return '<div class="imgs">回复成功</div>';
- } else {
- return '';
- }
- }
- //被叫号码
- function fusercode(val)
- {
- if (val)
- return val;
- else
- return 'IVR';
- }
- //时间
- function ftime(val) {
- if (val) {
- return helper.DateFormat.getFormatTime(val);
- }
- else {
- return '';
- }
- }
- //外呼号码
- function calloutopt(telphone, cid) {
- $.getJSON(huayi.config.callcenter_url + 'UserAccount/GetNowUser', {
- "token": $.cookie("token")
- }, function (result) {
- if (result.state.toLowerCase() == "success") {
- if (result.data.user.F_SeatFlag) {//判断是否话务人员
- if ($.cookie("fj")) { //判断是否登录分机号
- event.stopPropagation();
- console.log(telphone);
- console.log(cid);
- if (telphone) {
- $.ajax({
- type: "get",
- url: huayi.config.callcenter_url + "CallOutOpt/GetCallOutprefix",
- async: true,
- dataType: 'json',
- data: {
- token: $.cookie("token"),
- phone: telphone
- },
- success: function (result) {
- if (result.state.toLowerCase() == "success") {
- var guid = uuid();
- top.obj.Type = "MakeCall";
- console.log(result.data.phone);
- top.obj.DestinationNumber = result.data.phone;
- top.obj.Header = result.data.fix;
- top.obj.TaskType = "1"; //0:拨号外呼;1:未接来电外呼;2:回访外呼
- top.obj.TaskPhoneID = cid; //回访的通话记录ID
- top.obj.TaskID = guid; //回访记录编号
- top.Send();
- }
- }
- });
- }
- }
- else
- layer.msg("未绑定分机号,不能操作回拨");
- }
- else
- layer.msg("非话务人员登录,不能操作回拨");
- }
- });
- }
- </script>
- </body>
- </html>
|