| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464 |
- <!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/WorkOrder/Search.css" />
- <link rel="stylesheet" href="../css/init.css" />
- <link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
- <script src="../js/laydate/laydate.js"></script>
- <script src="../js/zTree/jquery.ztree.core.js"></script>
- <style>
- table td {
- word-break: break-all;
- word-wrap: break-word;
- }
- .Shows {
- display: block !important;
- }
- .complain {
- display: none;
- }
- .toolLeft input {
- width: 200px;
- }
- th {
- padding: 5px;
- text-align: center;
- }
- td {
- padding: 5px;
- }
- .Borders {
- border: 1px solid #d7d7d7;
- }
- .daoHang {
- margin-bottom: 15px;
- }
- .inpBox {
- border: 1px solid #e5e6e7;
- height: 32px;
- width: 200px;
- display: inline-block;
- position: relative;
- vertical-align: middle;
- }
- .inpBox .inps1 {
- width: 100%;
- height: 30px;
- outline: none;
- border: 0;
- border-image-width: 0;
- padding: 0;
- padding-left: 3px;
- }
- .xl {
- display: inline-block;
- background: url(../img/dropDown.png) no-repeat;
- height: 100%;
- background-position: center center;
- width: 20px;
- position: absolute;
- right: 0;
- top: 0px;
- background-color: #f7bc8b;
- cursor: pointer;
- }
- .xl:hover {
- background-color: #e6d523;
- }
- .addTree {
- background: #fff;
- position: absolute;
- width: 100%;
- border: 1px solid darkgrey;
- right: 0;
- top: 30px;
- display: none;
- height: 350px;
- overflow-y: auto;
- z-index: 10;
- text-align: center;
- }
- .addTree .list li:hover {
- background: #ebebeb;
- color: #717171;
- }
- .Content_box .title {
- font-size: 24px;
- text-align: center;
- }
- .Content_box h5 {
- font-size: 16px;
- text-align: center;
- }
- .select {
- width: 200px;
- height: 32px;
- border: 1px solid rgb(229, 230, 231);
- }
- .footerDataStatistics {
- /* padding: 0 0 0 20px; */
- margin: 10px 0 0 10px;
- font-size: 18px;
- }
- /*.fixed-table-body {
- transform: scaleY(-1);
- }
-
- .fixed-table-loading {
- transform: scaleY(-1);
- top: 0 !important;
- }
-
- #workorderlist_1 {
- transform: scaleY(-1);
- }*/
- </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">
- <div class="toolBar clearfix">
- <div class="toolLeft">
- 开始日期:
- <input class="photo x-color inputs laydate-icon" type="text" id="squeryTime"
- autocomplete="off" />
- 结束时间:
- <input class="photo x-color inputs laydate-icon" type="text" id="equeryTime"
- autocomplete="off" />
- <!--部门:
- <div class="inpBox">
- <input class="inps inps1">
- <input type="hidden" id="deptid" />
- <i class="xl xl_two"></i>
- <div class="addTree xlAdd_two">
- <ul id="deptTree" class="ztree"></ul>
- </div>
- </div> -->
- 来源:
- <select class="select" id="source"></select>
- <button class="btns search_1">查询</button>
- <a class="btns" id="exportPublicSentiments">导出</a>
- </div>
- </div>
- <div class="title" id="titleText">安阳市民声网络电话服务未诉先办工作评估指标统计表</div>
- <div class="title">统计周期:<span class="statisticalPeriod"></span></div>
- <!-- <h5>一、县(市、区)联动单位</h5> -->
- <div style="width: 100%;padding: 10px;" >
- <table id="workorderlist_1" 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="deptname" data-align="left" data-formatter="formatterOrganize">部门名称</th>
- <th data-field="classification" data-align="center">分类数据</th>
- <th data-field="organize" data-align="center" >部门承办量</th>
- <th data-field="oversignfor" data-align="center">超时签收量</th>
- <th data-field="signfor" data-align="center">及时签收量</th>
- <th data-field="signforrate" data-align="center">及时签收率</th>
- <th data-field="overhandle" data-align="center">超时办理量</th>
- <th data-field="handle" data-align="center">按时办理量</th>
- <th data-field="handlerate" data-align="center">按时办结率</th>
- <th data-field="onehandle" data-align="center">一次办结量</th>
- <th data-field="onehandlerate" data-align="center">一次办结率</th>
- <th data-field="satisfied" data-align="center">满意量</th>
- <th data-field="dissatisfied" data-align="center">不满意量</th>
- <th data-field="tobeevaluated" data-align="center">待评价量</th>
- <th data-field="satisfactionrate" data-align="center">满 意 率</th>
- <th data-field="correction" data-align="center">不满意差评整改量</th>
- <th data-field="correctionsatisfiedint" data-align="center">不满意差评整改满意量</th>
- <th data-field="appealapproved" data-align="center">差评整改不满意申诉通过量</th>
- <th data-field="appea1noapproved" data-align="center">差评整改不满意申诉未通过量</th>
- <th data-field="correctionsatisfiedrate" data-align="center">差评整改满意率</th>
- <th data-field="correctionrate" data-align="center">差评整改率</th>
- </tr>
- </thead>
- </table>
- </div>
- </div>
- </div>
- </div>
- <script>
- $(document).ready(function () {
- laydate.render({
- elem: '#squeryTime',
- theme: '#00a1cb',
- type: 'datetime',
- });
- laydate.render({
- elem: '#equeryTime',
- theme: '#00a1cb',
- type: 'datetime',
- });
- $('#squeryTime').val(getLastMonthTodayToTodayRange().start)
- $('#equeryTime').val(getLastMonthTodayToTodayRange().end)
- initTable();
- // bindtree();
- LY($("#source"));
- });
- function formatterOrganize(val){
- return '<div style="width:200px">'+val+'</div>'
- }
- //表格
- function initTable() {
-
- $.ajax({
- url: huayi.config.callcenter_url + 'DataAssessment/GetDeptDispatch',
- type: 'get',
- data: {
- starttime: $('#squeryTime').val(),
- endtime: $('#equeryTime').val(),
- deptid: $("#deptid").val(),
- source: $("#source").val(),
- token: $.cookie("token")
- },
- dataType: "json",
- async: true,
- success: function (returnValue) {
- //异步获取数据
- //debugger;
- var resultData = returnValue.rows;
- var resultData_1 = []
- var resultData_2 = []
- var resultData_3 = []
- var resultData_4 = []
- $(".statisticalPeriod").text(returnValue.strdate + " 至 " + returnValue.edate)
- resultData.forEach(function (v, i) {
- resultData_1.push(v)
- })
- $('#workorderlist_1').bootstrapTable('load', resultData_1);
- }
- });
- $('#workorderlist_1').bootstrapTable('destroy').bootstrapTable({
- striped: true,
- pagination: true,
- });
- }
- //搜索
- $(".search_1").click(function () {
- initTable();
- });
- $(".inps").focus(function () {
- $(this).siblings(".addTree").css("display", "block");
- });
- $(".xl").click(function () {
- var xl = $(this).siblings(".addTree");
- if (xl.css("display") == "block") {
- xl.css("display", "none");
- } else {
- xl.css("display", "block");
- }
- });
- $(".addTree").mouseleave(function () {
- $(this).css("display", "none");
- });
- function bindtree() {
- $.getJSON(
- huayi.config.callcenter_url + "Department/GetDeptList", {
- token: $.cookie("token")
- },
- function (result) {
- if (result.state.toLowerCase() == "success") {
- $.fn.zTree.init($("#deptTree"), setting, result.data);
- }
- }
- );
- }
- //获取所属部门
- var setting = {
- data: {
- key: {
- name: "F_DeptName",
- },
- simpleData: {
- enable: true,
- idKey: "F_DeptId",
- pIdKey: "F_PartentId",
- rootPId: -1,
- },
- },
- callback: {
- onClick: zTreeOnClick,
- },
- };
- function zTreeOnClick(event, treeId, treeNode) {
- $(".inps1").val(treeNode.F_DeptName);
- $("#deptid").val(treeNode.F_DeptId);
- }
- //编号
- function serialNumber(val, row, index) {
- return index + 1;
- }
- //导出
- $('#exportPublicSentiments').click(function () {
- dcexcelDispath(this);
- });
- function dcexcelDispath(obj) {
- var starttime = $('#squeryTime').val()
- var endtime = $('#equeryTime').val()
- var url = huayi.config.callcenter_url + "DataAssessment/GetDeptDispatch?token=" + $.cookie("token");
- url += "&starttime=" + starttime + "&endtime=" + endtime + "&deptid=" + $('#deptid').val() + "&source=" + $('#source').val()+ "&isdc=true";
- obj.href = url;
- }
- function reciveCountList(val, row) {
- console.log("row", row)
- return '<div class="imgs" ><a class="" onclick="viewList(\'' + row.deptid + '\', \'0\')" >' + val +
- '</a></div>';
- }
- function timeOutCountList(val, row) {
- return '<div class="imgs" ><a class="" onclick="viewList(\'' + row.deptid + '\', \'1\')" >' + val +
- '</a></div>';
- }
- function unFinishCountList(val, row) {
- return '<div class="imgs" ><a class="" onclick="viewList(\'' + row.deptid + '\', \'2\')" >' + val +
- '</a></div>';
- }
- function backCountList(val, row) {
- return '<div class="imgs" ><a class="" onclick="viewList(\'' + row.deptid + '\', \'3\')" >' + val +
- '</a></div>';
- }
- function visitCountList(val, row) {
- return '<div class="imgs" ><a class="" onclick="viewList(\'' + row.deptid + '\', \'4\')" >' + val +
- '</a></div>';
- }
- function dissatisfiedCountList(val, row) {
- return '<div class="imgs" ><a class="" onclick="viewList(\'' + row.deptid + '\', \'5\')" >' + val +
- '</a></div>';
- }
- function onceDissatisfiedCountList(val, row) {
- return '<div class="imgs" ><a class="" onclick="viewList(\'' + row.deptid + '\', \'6\')" >' + val +
- '</a></div>';
- }
- function viewList(deptId, dbtype) {
- var source = $("#source").val();
- starttime = $("#squeryTime").val();
- endtime = $("#equeryTime").val();
- if (endtime.length > 0 && endtime.length <= 10) {
- endtime = encodeURIComponent(endtime + " 23:59:59");
- } else {
- endtime = encodeURIComponent(endtime);
- }
- layer.open({
- type: 2,
- content: "./superviseDataStatisticsSecondaryUnitList.html?deptId=" + deptId + "&dbtype=" + dbtype + "&starttime=" + starttime + "&endtime=" + endtime + "&source=" + source, //iframe的url,no代表不显示滚动条
- title: '督办统计列表',
- area: ['90%', '90%'], //宽高
- });
- }
- function getLastMonthTodayToTodayRange() {
- // 格式化日期为 YYYY-MM-DD HH:mm:ss
- const format = (date) => {
- const year = date.getFullYear();
- const month = String(date.getMonth() + 1).padStart(2, '0');
- const day = String(date.getDate()).padStart(2, '0');
- const hours = String(date.getHours()).padStart(2, '0');
- const minutes = String(date.getMinutes()).padStart(2, '0');
- const seconds = String(date.getSeconds()).padStart(2, '0');
- return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
- };
-
- // 获取当前日期(今天)
- const today = new Date();
-
- // 计算上个月的今天,并设置为 00:00:00
- const lastMonthToday = new Date(today);
- lastMonthToday.setMonth(lastMonthToday.getMonth() - 1); // 上个月今天
- lastMonthToday.setHours(0, 0, 0, 0); // 重置时间为 00:00:00
-
- // 计算今天的结束时间 23:59:59
- const todayEnd = new Date(today);
- todayEnd.setHours(23, 59, 59, 0); // 重置时间为 23:59:59
-
- return {
- start: format(lastMonthToday),
- end: format(todayEnd)
- };
- }
- //来源
- function LY(obj) {
- obj.empty();
- obj.append(
- '<option selected="selected" value="">请选择</option>'
- );
- $.getJSON(
- huayi.config.callcenter_url +
- "Dictionary/GetDicValueListById", {
- token: $.cookie("token"),
- id: 1,
- },
- 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);
- });
- }
- }
- );
- }
-
- </script>
- </body>
- </html>
|