| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187 | @extends('admin/layout')@section('header')    <link href="{{asset('css/plugins/switchery/switchery.css')}}" rel="stylesheet">    <style>        .btn-danger, .btn-primary, .btn-info {            background: #2a94e0 !important;            border-color: #2a94e0 !important;        }        .table-striped > tbody > tr:nth-of-type(odd) {            background: #f8f8f8 !important;        }        .table-striped > tbody > tr .btn {            background: none !important;        }        .table-striped > tbody > tr td {            font-size: 14px !important;        }        .table-striped > tbody > tr:hover {            background: #ffebd8 !important;        }        .table-striped > tbody > tr:hover .btn {            background: #2a94e0 !important;            color: #fff !important;        }        .table-striped > tbody > tr:hover .btn .glyphicon {            color: #fff !important;        }    </style>@endsection@section('content')    @php   $authUser=auth()->user() @endphp    <body class="gray-bg">    <div class="wrapper wrapper-content animated fadeInRight">        <div class="row">            <div class="col-sm-12">                <div class="ibox float-e-margins">                    <div class="ibox-content">                        <form class="row" id="searchForm" onsubmit="units.search();return false;">                            <div class="input-group">                                <select data-placeholder="请选择建站采编..." style="width:150px;float: right;" name="editingId"                                        id="editingId"                                        class="form-control">                                    <option value="">请选择建站采编</option>                                    @foreach ($userList as $key => $value)                                        @if($value->role_id==2)                                            <option value="{{$value->id}}">{{$value->nickname}}</option>                                        @endif                                    @endforeach                                </select>                                <select data-placeholder="请选择项目经理..." style="width:150px;float: right;"                                        name="projectManagerId" id="projectManagerId"                                        class="form-control">                                    <option value="">请选择项目经理</option>                                    @foreach ($userList as $key => $value)                                        @if($value->role_id==25)                                            <option value="{{$value->id}}">{{$value->nickname}}</option>                                        @endif                                    @endforeach                                </select>                                <select data-placeholder="请选择销售..." style="width:150px;float: right;" name="sellerId"                                        id="sellerId"                                        class="form-control">                                    <option value="">请选择销售</option>                                    @foreach ($userList as $key => $value)                                        @if($value->role_id==1)                                            <option value="{{$value->id}}">{{$value->nickname}}</option>                                        @endif                                    @endforeach                                </select>                                <select data-placeholder="请选择客服..." style="width:150px;float: right;" name="serverId"                                        id="serverId"                                        class="form-control">                                    <option value="">请选择客服</option>                                    @foreach ($userList as $key => $value)                                        @if($value->role_id==7)                                            <option value="{{$value->id}}">{{$value->nickname}}</option>                                        @endif                                    @endforeach                                </select>                                <input type="text" placeholder="请输入任务标题" class="input-md form-control"                                       name="task" id="task" style="width: 200px;float: right">                                <span class="input-group-btn">                                    <button type="button" class="btn btn-md btn-primary"                                            onclick="units.search()"> 搜索</button>                                    <button type="button" class="btn btn-md btn-primary" style="margin-left: 10px"                                            name="btnReset"> 重置</button>                                  <button type="button" class="btn btn-md btn-primary" style="margin-left: 10px"                                          onclick="units.export()"> 导出</button>                                  </span>                            </div>                        </form>                        <hr>                        <div class="table-responsive">                            <table id="table" class="table table-condensed" data-mobile-responsive="true"></table>                        </div>                    </div>                </div>            </div>        </div>    </div>    </body>@endsection@section('footer')    <script src="{{asset('js/plugins/layDate-v5.0.9/laydate/laydate.js')}}"></script>    <script>        laydate.render({            elem: '#monthRange'        });        laydate.render({            elem: '#monthRange2'        });        laydate.render({            elem: '#date'            , type: 'month'            , format: 'yyyy-MM'        });        var units = {            export: function () {                var formValues = tips.getFormValues("#searchForm");                var str = $.param(formValues);                window.open('/admin/flow/stationConstructionOverdueExport?' + str)            },            selectPage: function () {                tips.selectPage();            },            search: function () {                tips.selectPage();            },            openDetail: function (id, title) {                window.open('/admin/flow/siteConstructionProcess/' + id + '/type/0');            }        };        var config = {};        config.url = '/admin/flow/stationConstructionOverdue';        config.pageSize = 20;        config.showColumns = true;        config.columns = [ //字段            {                title: '序号', align: 'center', formatter: function (value, item, index) {                    return index + 1;                },                width: '10px'            },            {title: '逾期事项', field: 'title', align: 'center'},            {title: '阶段', field: 'rank', align: 'center'},            {title: '任务截止时间', field: 'node_date', align: 'center'},            {title: '逾期阶段负责人', field: 'user', align: 'center'},            {title: '逾期天数', field: 'overdue_day', align: 'center'},            /*{title: '逾期原因', field: 'reasons_for_overdue', align: 'center'},*/            {title: '关联项目', field: 'cn_title', align: 'center'},            {title: '下单时间', field: 'order_at', align: 'center'},            {title: '备注', field: 'overdue_memo', align: 'center'},            /*{title: '上线时间', field: 'online_at', align: 'center'},*/            {                title: '操作', field: 'id', align: 'center',                formatter: function (value, row) {                    var str = '<button onclick="units.openDetail(' + row.site_id + ')" class="btn btn-xs"><span class="glyphicon glyphicon-menu-hamburger"></span>详情</button><br>';                    return str;                }            }        ];        tips.bootstrapTable(config);    </script>@endsection
 |