| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293 |
- <!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="../css/laydate/laydate.js"></script>
- <script src="../My97DatePicker/WdatePicker.js"></script>
- <style>
- table td {
- word-break: break-all;
- word-wrap: break-word;
- }
- .ld-service li {
- float: left;
- font-size: 14px;
- color: #000;
- padding: 5px 15px;
- cursor: pointer;
- border-bottom: 1px solid #ccc;
- }
- .cr-click {
- border: 1px solid #ccc;
- background-color: #fff;
- border-bottom: none !important;
- border-bottom-left-radius: 5px;
- border-bottom-right-radius: 5px;
- }
- .Shows {
- display: block !important;
- }
- .complain {
- display: none;
- }
- th {
- padding: 5px;
- text-align: center;
- }
- td {
- padding: 5px;
- }
- .Borders {
- border: 1px solid #d7d7d7;
- }
- .cx {
- display: block;
- }
- .daoHang {
- margin-bottom: 15px;
- }
- .toolBar input{
- width: 180px;
- }
- </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 Shows">
- <ul class="nav nav-tabs ul_tab" role="tablist">
- <li class="active" data-index="1">
- <a>合计</a>
- </li>
- <!--<li>
- <a>承办案件统计</a>
- </li>-->
- <li data-index="3">
- <a>工单类型</a>
- </li>
- </ul>
- <div class="tab-content">
- <div class="tab-pane fade active in">
- <div class="toolBar clearfix">
- <div class="toolLeft">
- 时间:<input class="photo x-color inputs laydate-icon" autocomplete="off" type="text" id="startTime" />-
- <input class="photo x-color inputs laydate-icon" autocomplete="off" type="text" id="endTime" />
- <!--时间类型:
- <select name="" id="datetype" class="select_">
- <option value="1" selected="selected">日</option>
- <option value="2">周</option>
- <option value="3">月</option>
- </select>-->
- 来源:<select class="select_" id="source"></select>
-
- <button class="btns search_1">查询</button>
- <a class="btns export_1">导出</a>
- </div>
- </div>
- <div style="width: 100%">
- <!--<div style="text-align:center;"><h2 class="sjxs"></h2></div>-->
- <table id="workorderlist1" data-row-style="rowStyle" data-query-params="queryParams"
- data-pagination="true">
- <thead>
- <tr>
- <!--<th data-field="Acceptance" data-align="center">转派件</th>-->
- <!--<th data-field="Handled" data-align="center">回传件</th>-->
- <th data-field="Acceptance" data-align="center">郑州转派件</th>
- <th data-field="Handled" data-align="center">本地回传件</th>
- </tr>
- </thead>
- </table>
- <table id="workorderlist2" data-row-style="rowStyle" data-query-params="queryParams"
- data-pagination="true" style="display: none;">
- <thead>
- <tr>
- <th data-field="name" data-align="center">单位</th>
- <th data-field="count" data-align="center">受理数量</th>
- <th data-field="lastrate" data-align="center">数量占比</th>
- <th data-field="endcount" data-align="center">办结数量</th>
- <th data-field="endrate" data-align="center"> 办结率</th>
- </tr>
- </thead>
- </table>
- <table id="workorderlist3" data-row-style="rowStyle" data-query-params="queryParams"
- data-pagination="true" style="display: none;">
- <thead>
- <tr>
- <th data-field="name" data-align="center">类型</th>
- <th data-field="count" data-align="center">受理数量</th>
- <th data-field="lastrate" data-align="center">数量同比</th>
- <th data-field="endcount" data-align="center">办结数量</th>
- <th data-field="endrate" data-align="center"> 办结率</th>
- </tr>
- </thead>
- </table>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <script>
- var tabindex = 1;
- $(document).ready(function () {
- LY($("#source"));
- laydate.skin('molv');
- laydate({
- elem: '#startTime',
- format: 'YYYY-MM-DD hh:mm:ss', // 分隔符可以任意定义,该例子表示只显示年月
- istime: true, //是否开启时间选择
- event: 'focus'
- });
- laydate({
- elem: '#endTime',
- format: 'YYYY-MM-DD hh:mm:ss', // 分隔符可以任意定义,该例子表示只显示年月
- istime: true, //是否开启时间选择
- event: 'focus'
- });
- $('.ul_tab li').click(function () {
- $(this).parent().find("li").removeClass("active");
- $(this).addClass("active");
- tabindex = $(this).attr("data-index");
- initTable();
- })
- initTable();
- })
- //来源
- function LY(obj) {
- obj.empty();
- obj.append('<option selected="selected" value="">请选择</option>');
- $.ajax({
- type: "get",
- url: huayi.config.callcenter_url + "Dictionary/GetDicValueListById",
- dataType: "json",
- async: true,
- data: {
- "token": $.cookie("token"),
- id: 1
- },
- success: function (data) {
- if (data.state.toLowerCase() == "success") {
- var content = data.data;
- $(content).each(function (i, n) {
- $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>")
- .appendTo(obj);
- })
- }
- }
- });
- }
-
- function initTable() {
-
- $.ajax({
- url: huayi.config.callcenter_url + 'WorkOrderReport/GetDayweekmonth',
- type: 'get',
- data: {
- stime:$("#startTime").val(),
- //etime:$("#date").val()&&$("#date").val().split('~')[1],
- etime:$("#endTime").val(),
- type: Number(tabindex),
- token: $.cookie("token"),
- source: $("#source").val() //=来源
- },
- dataType: "json",
- async: true,
- success: function (returnValue) {
- //异步获取数据
- var resultData = returnValue;
- if (Number(tabindex) === 1) {
-
- var resultArr = []
- var resultObject = {
- Acceptance: resultData.Acceptance,
- Handled: resultData.Handled,
- }
- resultArr.push(resultObject)
- $('#workorderlist1').bootstrapTable('destroy').bootstrapTable({
- striped: true,
- pagination: false,
- });
- $('#workorderlist1').bootstrapTable('load', resultArr);
- $('#workorderlist1').show();
- $('#workorderlist2').hide();
- $('#workorderlist3').hide();
- } else if (Number(tabindex) === 2) {
- $('#workorderlist2').bootstrapTable('destroy').bootstrapTable({
- striped: true, pagination: false,
- });
- $('#workorderlist2').bootstrapTable('load', resultData.data.DayWeekMonthReport);
- $('#workorderlist1').hide();
- $('#workorderlist2').show();
- $('#workorderlist3').hide();
- } else if (Number(tabindex) === 3) {
- $('#workorderlist3').bootstrapTable('destroy').bootstrapTable({
- striped: true,
- pagination: false,
- });
- $('#workorderlist3').bootstrapTable('load', resultData.data.DayWeekMonthReport);
- $('#workorderlist1').hide();
- $('#workorderlist2').hide();
- $('#workorderlist3').show();
- }
-
- }
- });
-
- }
- //代办搜索
- $(".search_1").click(function () {
- initTable();
- })
- //导出
- $('.export_1').click(function () {
- dcexcel_1(this);
- })
- function dcexcel_1(obj) {
- var url = huayi.config.callcenter_url + "WorkOrderReport/GetDayWeekMonthReport?token=" + $.cookie("token");
- url += "&date=" + $("#date").val() + "&datetype=" + $("#datetype").val() + "&type=" + tabindex +
- "&isExport=true";
- obj.href = url;
- }
- </script>
- </body>
- </html>
|