|
|
<extend name="Public/base"/>
|
|
|
|
|
|
<block name="body">
|
|
|
<link rel="stylesheet" href="__CSS__/select2.min.css" type="text/css"/>
|
|
|
<script type="text/javascript" src="__JS__/bootstrap.min.js"></script>
|
|
|
<script type="text/javascript" src="__JS__/select2.min.js"></script>
|
|
|
<style>
|
|
|
.select2-container--default .select2-selection--single {
|
|
|
color: #000;
|
|
|
resize: none;
|
|
|
border-width: 1px;
|
|
|
border-style: solid;
|
|
|
border-color: #a7b5bc #ced9df #ced9df #a7b5bc;
|
|
|
box-shadow: 0px 3px 3px #F7F8F9 inset;height:35px;
|
|
|
height:28px;border-radius:3px;font-size:12px;
|
|
|
}
|
|
|
.select2-container--default .select2-selection--single .select2-selection__rendered {
|
|
|
line-height:35px;
|
|
|
line-height:28px;
|
|
|
}
|
|
|
.select2-container--default .select2-selection--single .select2-selection__arrow {
|
|
|
height:26px;
|
|
|
}
|
|
|
.select2-container--default .select2-search--dropdown .select2-search__field {
|
|
|
height:26px;line-height:26px;font-size:12px;
|
|
|
}
|
|
|
.select2-results__option[aria-selected] {font-size:12px;}
|
|
|
.layui-layer-dialog .layui-layer-content{color:red}
|
|
|
.butnbox {padding:10px 0 10px;}
|
|
|
.butnbox .butnlist {overflow:hidden;clear:both;}
|
|
|
.butnbox .butnlist .butn,.butnbox .butnlist .butn:hover {text-decoration:none;border:none;}
|
|
|
.butnbox .butnlist .butn {display:inline-block;width:120px;height:28px;line-height:28px;text-align:center;color:#FFF;background:#3C95C8;border-radius:3px;}
|
|
|
.butnbox .butnlist .butn.last {background:#009900;}
|
|
|
.butnbox .butnlist .butn~.butn {margin-left:20px;}
|
|
|
.data_list table tbody tr a.disabled,.data_list table tbody tr a.disabled:hover {color:#999;cursor:default;}
|
|
|
.layui-layer-title {
|
|
|
text-align: center;
|
|
|
height: 80px;
|
|
|
line-height: 80px;
|
|
|
font-weight: 600;
|
|
|
font-size: 18px;
|
|
|
}
|
|
|
</style>
|
|
|
<!-- 标题栏 -->
|
|
|
<div class="cf main-place top_nav_list navtab_list">
|
|
|
<h3 class="page_title">工单管理列表</h3>
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="cf top_nav_list">
|
|
|
<!-- 高级搜索 -->
|
|
|
<div class="jssearch fl cf search_list">
|
|
|
<div class="input-list search-title-box">
|
|
|
<label>搜索:</label>
|
|
|
<input id="serverid" name="server_id" type="text" value="{:I('server_id')}" style="display:none">
|
|
|
</div>
|
|
|
<div class="input-list input-list-game search_label_rehab">
|
|
|
<input type="text" name="nickname" value="{$_GET['nickname']}" placeholder="账号">
|
|
|
</div>
|
|
|
<input type="hidden" name="" value="" class="sortBy">
|
|
|
<div class="input-list">
|
|
|
<a class="sch-btn" href="javascript:;" id="search"
|
|
|
url="{:U('workOrder/statistics','model='.$model['name'],false)}">
|
|
|
搜索
|
|
|
</a>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<!-- 数据列表 -->
|
|
|
<div class="data_list">
|
|
|
<div class="">
|
|
|
<table>
|
|
|
<!-- 表头 -->
|
|
|
<thead>
|
|
|
<tr>
|
|
|
<th>账号</th>
|
|
|
<th>
|
|
|
<a class="paixu" data-order='total_create_count'>
|
|
|
<if condition="$userarpu_order eq 4 and $userarpu_order_type eq 'total_create_count'">发布工单数▲
|
|
|
<elseif condition="$userarpu_order eq 3 and $userarpu_order_type eq 'total_create_count'"/>发布工单数▼
|
|
|
<else />发布工单数<img src="__IMG__/up-down.png" width="13px">
|
|
|
</if>
|
|
|
</a>
|
|
|
</th>
|
|
|
<th>
|
|
|
<a class="paixu" data-order='total_accepted_count'>
|
|
|
<if condition="$userarpu_order eq 4 and $userarpu_order_type eq 'total_accepted_count'">被接工单数
|
|
|
<elseif condition="$userarpu_order eq 3 and $userarpu_order_type eq 'total_accepted_count'"/>被接工单数
|
|
|
<else />被接工单数<img src="__IMG__/up-down.png" width="13px">
|
|
|
</if>
|
|
|
</a>
|
|
|
</th>
|
|
|
<th>
|
|
|
<a class="paixu" data-order='total_handle_count'>
|
|
|
<if condition="$userarpu_order eq 4 and $userarpu_order_type eq 'total_handle_count'">接取工单数
|
|
|
<elseif condition="$userarpu_order eq 3 and $userarpu_order_type eq 'total_handle_count'"/>接取工单数
|
|
|
<else />接取工单数<img src="__IMG__/up-down.png" width="13px">
|
|
|
</if>
|
|
|
</a>
|
|
|
</th>
|
|
|
<th>
|
|
|
<a class="paixu" data-order='total_complete_count'>
|
|
|
<if condition="$userarpu_order eq 4 and $userarpu_order_type eq 'total_complete_count'">完成工单数
|
|
|
<elseif condition="$userarpu_order eq 3 and $userarpu_order_type eq 'total_complete_count'"/>完成工单数
|
|
|
<else />完成工单数<img src="__IMG__/up-down.png" width="13px">
|
|
|
</if>
|
|
|
</a>
|
|
|
</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<!-- 列表 -->
|
|
|
<tbody>
|
|
|
<empty name="list_data">
|
|
|
<td colspan="99" class="text-center">aOh! 暂时还没有内容!</td>
|
|
|
<else/>
|
|
|
<volist name="list_data" id="data">
|
|
|
<tr>
|
|
|
<td>{$data.nickname}</td>
|
|
|
<td>{$data.total_create_count}</td>
|
|
|
<td>{$data.total_accepted_count}</td>
|
|
|
<td>{$data.total_handle_count | default=0}</td>
|
|
|
<td>{$data.total_complete_count | default=0}</td>
|
|
|
</tr>
|
|
|
</volist>
|
|
|
</empty>
|
|
|
</tbody>
|
|
|
</table>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="page">
|
|
|
<if condition="$is_admin eq true ">
|
|
|
<a class="sch-btn" href="{:U('Export/exportWorkOrderStatistics',I('get.'))}">导出</a>
|
|
|
</if>
|
|
|
{$_page|default=''}
|
|
|
</div>
|
|
|
|
|
|
<div class="common_settings">
|
|
|
<span class="plus_icon"><span><img src="__IMG__/zwmimages/icon_jia.png"></span></span>
|
|
|
<form class="addShortcutIcon">
|
|
|
<input type="hidden" name="title" value="{$m_title}">
|
|
|
<input type="hidden" name="url" value="settlement/sheetList">
|
|
|
</form>
|
|
|
<a class="ajax-post add-butn <notempty name='commonset'>addSIsetted</notempty>" href="javascript:;" target-form="addShortcutIcon" url="{:U('Think/addShortcutIcon')}"><img src="__IMG__/zwmimages/icon_jia.png"><span><notempty name='commonset'>已添加<else />添加至常用设置</notempty></span></a>
|
|
|
</div>
|
|
|
|
|
|
</block>
|
|
|
|
|
|
<block name="script">
|
|
|
<script src="__STATIC__/layer/layer.js"></script>
|
|
|
<script src="__STATIC__/layer/extend/layer.ext.js"></script>
|
|
|
<link href="__STATIC__/datetimepicker/css/datetimepicker.css" rel="stylesheet" type="text/css">
|
|
|
<php>if(C('COLOR_STYLE')=='blue_color') echo '<link href="__STATIC__/datetimepicker/css/datetimepicker_blue.css" rel="stylesheet" type="text/css">';</php>
|
|
|
<script src="__STATIC__/layer/layer.js" type="text/javascript"></script>
|
|
|
<script type="text/javascript" src="__STATIC__/layer/extend/layer.ext.js" ></script>
|
|
|
<link href="__STATIC__/datetimepicker/css/dropdown.css" rel="stylesheet" type="text/css">
|
|
|
<script type="text/javascript" src="__STATIC__/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
|
|
|
<script type="text/javascript" src="__STATIC__/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js" charset="UTF-8"></script>
|
|
|
<link rel="stylesheet" href="__STATIC__/flatpickr/flatpickr.min.css">
|
|
|
<script src="__STATIC__/flatpickr/flatpickr.min.js"></script>
|
|
|
<script src="__STATIC__/flatpickr/l10n/zh.js"></script>
|
|
|
<style>
|
|
|
.layui-layer-demo .layui-layer-title {background:#F0F5F7;font-weight:bold;}
|
|
|
.layui-layer-demo .layui-layer-content {}
|
|
|
.layui-layer-demo .layui-layer-content table{width:100%;border:0;border-spacing:0;padding:0;}
|
|
|
.layui-layer-demo .layui-layer-content td {height:42px;padding-left:20px;}
|
|
|
.layui-layer-demo .layui-layer-content tr:hover {background:#F0F5F7;}
|
|
|
.layui-layer-demo .layui-layer-content tr~tr {border-top:1px solid #ccc;}
|
|
|
.layui-layer-demo .layui-layer-content td~td {border-left:1px solid #ccc;}
|
|
|
.layui-layer-demo .layui-layer-content tr:last-child td {}
|
|
|
</style>
|
|
|
<script type="text/javascript">
|
|
|
//导航高亮
|
|
|
highlight_subnav('{:U('WorkOrder/statistics')}');
|
|
|
$(function () {
|
|
|
$(".select_gallery").select2();
|
|
|
|
|
|
//搜索功能
|
|
|
$("#search").click(function () {
|
|
|
var sdate = Date.parse($('#time-start').val()) / 1000;
|
|
|
var edate = Date.parse($('#time-end').val()) / 1000;
|
|
|
if (sdate > edate) {
|
|
|
layer.msg('开始时间必须小于等于结束时间');
|
|
|
return false;
|
|
|
}
|
|
|
if ((edate - sdate) > 2592000) {
|
|
|
layer.msg('时间间隔不能超过31天,请重新选择日期');
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
var url = $(this).attr('url');
|
|
|
var query = $('.jssearch').find('input').serialize();
|
|
|
query += "&" + $('.jssearch').find('select').serialize();
|
|
|
query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g, '');
|
|
|
query = query.replace(/^&/g, '');
|
|
|
if (url.indexOf('?') > 0) {
|
|
|
url += '&' + query;
|
|
|
} else {
|
|
|
url += '?' + query;
|
|
|
}
|
|
|
window.location.href = url;
|
|
|
});
|
|
|
|
|
|
//回车自动提交
|
|
|
$('.jssearch').find('input').keyup(function (event) {
|
|
|
if (event.keyCode === 13) {
|
|
|
$("#search").click();
|
|
|
}
|
|
|
});
|
|
|
$('#time-start').datetimepicker({
|
|
|
format: 'yyyy-mm-dd',
|
|
|
language: "zh-CN",
|
|
|
minView: 2,
|
|
|
autoclose: true
|
|
|
});
|
|
|
|
|
|
$('#datetimepicker').datetimepicker({
|
|
|
format: 'yyyy-mm-dd',
|
|
|
language: "zh-CN",
|
|
|
minView: 2,
|
|
|
autoclose: true,
|
|
|
pickerPosition: 'bottom-left'
|
|
|
})
|
|
|
|
|
|
$("#server_id").change(function () {
|
|
|
var g_server_id = $("#server_id option:selected").attr('server-id');
|
|
|
$("#serverid").val(g_server_id);
|
|
|
});
|
|
|
var server_id = "{:I('server_id')}";
|
|
|
$("#game_id").change(function(){
|
|
|
var addData = '';
|
|
|
$.ajax({
|
|
|
url:"{:U('Ajax/getServer')}",
|
|
|
type:"post",
|
|
|
data:{game_id:$("#game_id option:selected").attr('game-id')},
|
|
|
dataType:'json',
|
|
|
success:function(data){
|
|
|
str = "<option value=''>请选择区服</option>";
|
|
|
for (var i in data){
|
|
|
if (data[i].id == server_id) {
|
|
|
str += "<option value='"+data[i].server_name+"' server-id='"+data[i].id+"' selected >"+data[i].server_name+"</option>"
|
|
|
} else {
|
|
|
str += "<option value='"+data[i].server_name+"' server-id='"+data[i].id+"'>"+data[i].server_name+"</option>"
|
|
|
}
|
|
|
}
|
|
|
var g_game_id = $("#game_id option:selected").attr('game-id');
|
|
|
$("#gameid").val(g_game_id);
|
|
|
$("#server_id").empty();
|
|
|
$("#server_id").append(str);
|
|
|
$("#server_id").select2();
|
|
|
|
|
|
}
|
|
|
})
|
|
|
});
|
|
|
$("#game_id").change();
|
|
|
})
|
|
|
$(".paixu").click(function(){
|
|
|
var that=$(this);
|
|
|
$data_order=that.attr('data-order');
|
|
|
$order_type='{$userarpu_order}';
|
|
|
if($order_type==''||$order_type=='4'){
|
|
|
$(".sortBy").attr('name','data_order');
|
|
|
val='3,'+$data_order;
|
|
|
$(".sortBy").attr('value',val);
|
|
|
$("#search").click();
|
|
|
}else if($order_type=='3'){
|
|
|
$(".sortBy").attr('name','data_order');
|
|
|
val='4,'+$data_order;
|
|
|
$(".sortBy").attr('value',val);
|
|
|
$("#search").click();
|
|
|
}
|
|
|
});
|
|
|
//点击排序
|
|
|
$('.list_sort').click(function(){
|
|
|
var url = $(this).attr('url');
|
|
|
var ids = $('.ids:checked');
|
|
|
var param = '';
|
|
|
if(ids.length > 0){
|
|
|
var str = new Array();
|
|
|
ids.each(function(){
|
|
|
str.push($(this).val());
|
|
|
});
|
|
|
param = str.join(',');
|
|
|
}
|
|
|
|
|
|
if(url != undefined && url != ''){
|
|
|
|
|
|
window.location.href = url.replace(".html","") + '/ids/' + param;
|
|
|
}
|
|
|
});
|
|
|
</script>
|
|
|
</block>
|