| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205 |
- <!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="../js/zTree/zTreeStyle.css" />
- <link href="../css/WorkOrder/Search.css" rel="stylesheet">
- <link href="../css/init.css" rel="stylesheet" />
- <script src="../My97DatePicker/WdatePicker.js"></script>
- <script src="../js/laydate/laydate.js"></script>
- <style>
- table td {
- word-break: break-all;
- word-wrap: break-word;
- }
- .toolBar input,
- .toolBar select {
- width: 200px;
- }
- th {
- padding: 5px;
- text-align: center;
- }
- .daoHang {
- margin-bottom: 15px;
- }
- </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="Content_box">
- <div class="complain">
- <div class="toolBar clearfix">
- <div class="toolLeft">
- 开始日期:
- <input class="photo x-color inputs" type="text" id="squeryTime" autocomplete="off" />
- 结束时间:
- <input class="photo x-color inputs" type="text" id="equeryTime" autocomplete="off" />
- <!-- 坐席工号:
- <input class="photo x-color inputs" type="text" id="usercode" autocomplete="off" />
- 坐席状态:
- <select class="photo x-color inputs" type="text" id="state">
- <option value="">请选择</option>
- <option value="0">签入</option>
- <option value="1">签出</option>
- <option value="2">置闲</option>
- <option value="3">置忙</option>
- </select> -->
- <button class="btns search">查询</button>
- <!-- <button class="btns exportFile">导出</button> -->
- </div>
- </div>
- <div class="tab-content">
- <div class="tab-pane fade active in" id="import_from_file">
- <div style="width: 100%;padding: 10px;">
- <table id="table1" class="tables" data-row-style="rowStyle" data-query-params="queryParams"
- data-pagination="true">
- <thead>
- <tr>
- <th data-field="" data-formatter="serialNumber" data-align="center">序号</th>
- <th data-field="AgentId" data-align="center">坐席工号</th>
- <th data-field="UserName" data-align="center">坐席姓名</th>
- <th data-field="签入" data-align="center" data-formatter="checkInList">签入</th>
- <th data-field="签出" data-align="center" data-formatter="checkOutList">签出</th>
- <th data-field="置闲" data-align="center" data-formatter="buyCarefreeList">置闲</th>
- <th data-field="置忙" data-align="center" data-formatter="buyBusyList">置忙</th>
- </tr>
- </thead>
- </table>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <script>
- $(document).ready(function () {
- laydate.render({
- elem: '#squeryTime',
- theme: '#00a1cb',
- type: 'datetime',
- });
- laydate.render({
- elem: '#equeryTime',
- theme: '#00a1cb',
- type: 'datetime',
- });
- initTable();
- });
- //表格
- function initTable() {
- $.ajax({
- url: huayi.config.callcenter_url + 'WorkOrderReport/GetZuoXiState',
- type: 'get',
- data: {
- starttime: $("#squeryTime").val(),
- endtime: $("#equeryTime").val(),
- usercode: $("#usercode").val(),
- state: $("#state").val(),
- token: $.cookie("token")
- },
- dataType: "json",
- async: true,
- success: function (returnValue) {
- // if (returnValue.state.toLowerCase() == "success") {
- var resultData = returnValue;
- $('#table1').bootstrapTable('load', resultData);
- // }
- //异步获取数据
- }
- });
- $('#table1').bootstrapTable('destroy').bootstrapTable({
- striped: true
- });
- }
- //序号
- function serialNumber(val, row, index) {
- return index + 1;
- }
- // 签入
- function checkInList(val, row) {
- return '<div class="imgs" ><a class="" onclick="viewList(\'' + row.AgentId + '\', \'0\')" >' + val +
- '</a></div>';
- }
- // 签出
- function checkOutList(val, row) {
- return '<div class="imgs" ><a class="" onclick="viewList(\'' + row.AgentId + '\', \'1\')" >' + val +
- '</a></div>';
- }
- // 置闲
- function buyCarefreeList(val, row) {
- return '<div class="imgs" ><a class="" onclick="viewList(\'' + row.AgentId + '\', \'2\')" >' + val +
- '</a></div>';
- }
- // 置忙
- function buyBusyList(val, row) {
- return '<div class="imgs" ><a class="" onclick="viewList(\'' + row.AgentId + '\', \'3\')" >' + val +
- '</a></div>';
- }
- // 查看列表
- function viewList(usercode, state) {
- usercode = encodeURIComponent(usercode);
- state = encodeURIComponent(state);
- starttime = $("#squeryTime").val();
- endtime = $("#equeryTime").val();
- starttime = encodeURIComponent(starttime);
- endtime = encodeURIComponent(endtime);
- layer.open({
- type: 2,
- content: "./SeatRecordsList.html?usercode=" + usercode + "&state=" + state +
- "&starttime=" + starttime + "&endtime=" + endtime, //iframe的url,no代表不显示滚动条
- title: '坐席报表',
- area: ['90%', '90%'], //宽高
- });
- }
- //搜索
- $(".search").click(function() {
- initTable();
- });
- //导出
- $(".exportFile").click(function() {
- var start = $("#squeryTime").val();
- var end = $("#equeryTime").val();
- var url = huayi.config.callcenter_url + "WorkOrderReport/GetUserReturn?token=" + $.cookie("token");
- url += "&start=" + start + "&end=" + end + "&isExport=true";
- window.location.href = url;
- })
- </script>
- </body>
- </html>
|