123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306 |
- @extends('admin/layout')
- @section('header')
- @endsection
- <style type="text/css">
- ul {
- padding-left: 0;
- margin: 0;
- }
- li {
- list-style-type: none;
- }
- table {
- border-spacing: 0;
- border-collapse: collapse;
- }
- td {
- display: table-cell;
- vertical-align: inherit;
- }
- .de-boxs {
- margin-left: 10px;
- }
- .containers {
- max-width: 1200px;
- }
- .table-boxs {
- display: flex;
- margin-left: 15px;
- }
- .box-right {
- width: 78%;
- float: left;
- }
- .box-left {
- width: 22%;
- float: left;
- }
- .box-ul {
- display: flex;
- justify-content: center;
- align-items: center;
- padding-left: 0;
- margin: 0 -10px;
- padding-bottom: 10px;
- }
- .box-ul li {
- margin: 0 10px;
- width: 25%;
- }
- .box-ul li .part {
- border: 1px solid #d6d6d6;
- padding: 10px 20px;
- text-align: center;
- background: #f6f6f6 !important;
- display: flex;
- align-items: center;
- justify-content: center;
- border-radius: 4px;
- }
- .box-ul li .part .titles {
- font-size: 14px;
- display: block;
- margin-bottom: 0;
- }
- .box-ul li .part .datas {
- display: block;
- font-size: 14px;
- color: #2f4050;
- padding: 0 30px;
- }
- .table-wrap {
- }
- .table-wrap table {
- width: 100%;
- }
- .table-wrap table tr td {
- padding: 15px 20px;
- text-align: center;
- color: #505050;
- }
- .table-wrap table tr:nth-child(odd) {
- background: #f6f6f6;
- }
- .table-wrap table thead tr td {
- background: #2f4050 !important;
- color: #fff;
- font-size: 14px;
- }
- .table-wrap table thead {
- border: 1px solid #2f4050;
- }
- .table-wrap table tbody {
- border: 1px solid #d6d6d6;
- }
- .box-left {
- margin-left: 30px;
- border: 1px solid #d6d6d6;
- }
- .box-left .border-box {
- }
- .box-left .light-title {
- line-height: 56px;
- font-size: 14px;
- text-align: center;
- margin-top: 0;
- background: #2f4050 !important;
- color: #fff;
- text-transform: uppercase;
- margin-bottom: 0;
- border: 1px solid #2f4050;
- }
- .box-left .name-ul {
- padding-left: 0;
- }
- .box-left .name-ul li {
- line-height: 52px;
- font-size: 14px;
- text-align: center;
- cursor: pointer;
- margin-bottom: -2px;
- color: #505050;
- }
- .box-left .name-ul li:nth-child(odd) {
- background: #f6f6f6;
- }
- .box-left .name-ul li:hover {
- background: #2f4050 !important;
- color: #fff;
- }
- .btn-danger, .btn-primary, .btn-info {
- background: #009688 !important;
- border-color: #009688 !important;
- }
- </style>
- <body class="gray-bg">
- <div style="margin-left: 10px">
- <form action="{{url('/admin/plan/rank/'.$type)}}" method="get">
- <div style="display: flex;padding: 10px 0;">
- <select data-placeholder="请选择人员..." style="width:150px;" name="user" class="form-control">
- <option value="">请选择人员</option>
- @foreach($userList as $key=>$value)
- <option value="{{$key}}" @if(($user)==$key) selected @endif>{{$value}}</option>
- @endforeach
- </select>
- <input type="text" placeholder="请输入搜索日期" class="input-md form-control"
- name="date" id="date" style="width: 150px;float: right" value="{{$date}}">
- <input style="margin-left: 10px;border-radius:3px;" type="submit" class="btn btn-primary" value="搜索">
- </div>
- </form>
- </div>
- <div class="de-boxs">
- <div class="containers">
- <div class="row clearfix">
- <div class="table-boxs">
- <div class='box-right'>
- {{-- <ul class="clearfix box-ul">
- <li class="li-box">
- <div class="part">
- <p class="titles">上周</p>
- <span class="datas">{{$lastWeekSum??0}}</span>
- </div>
- </li>
- <li class="li-box">
- <div class="part">
- <p class="titles">上月</p>
- <span class="datas">{{$lastMonth??0}}</span>
- </div>
- </li>
- <li class="li-box">
- <div class="part">
- <p class="titles">近三月</p>
- <span class="datas">{{$threeMonths??0}}</span>
- </div>
- </li>
- <li class="li-box">
- <div class="part">
- <p class="titles">近半年</p>
- <span class="datas">{{$halfOfaYear??0}}</span>
- </div>
- </li>
- </ul>--}}
- <div class="table-wrap">
- <table>
- <thead>
- <tr>
- <td>任务类型</td>
- <td>完成数量</td>
- <td>未完成数量</td>
- <td>工时(时)</td>
- <td>kpi</td>
- <td>人员</td>
- <td>截止日期</td>
- </tr>
- </thead>
- <tbody>
- @php
- $quantityCompleted=0;
- $unfinishedQuantity=0;
- $kpiSum=0;
- @endphp
- @foreach($list as $key=>$value)
- @php
- $endDate=$value['end_date'];
- $user=$value['user'];
- $quantityCompleted+=$value['count'];
- $unfinishedQuantity+=($value['count']-$value['complete_total']);
- /* if($value['id']==16){
- $kpiSum+=($value['score']*$value['complete_slices_total']);
- }else{
- $kpiSum+=($value['score']*$value['complete_total']);
- }*/
- $kpiSum+=($value['score']*$value['complete_total']);
- @endphp
- <tr>
- <td>{{$value['name']}}</td>
- <td>{{$value['complete_total']}}</td>
- <td>{{$value['count']-$value['complete_total']}}</td>
- <td>{{$value['score']}}</td>
- {{-- @if($value['id']==16)
- <td>{{$value['score']*$value['complete_slices_total']}}</td>
- @else
- <td>{{$value['score']*$value['complete_total']}}</td>
- @endif--}}
- <td>{{$value['score']*$value['complete_total']}}</td>
- <td>{{$value['user']}}</td>
- <td>{{$value['end_date']}}</td>
- </tr>
- @endforeach
- <tr>
- <td>总计</td>
- <td>{{$quantityCompleted}}</td>
- <td>{{$unfinishedQuantity}}</td>
- <td></td>
- <td>{{$kpiSum}}</td>
- <td>{{$user}}</td>
- <td></td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- <div class="box-left">
- <div class="border-box">
- <p class="light-title">
- 截止{{$endDate}}排名
- </p>
- <ul class='name-ul'>
- @foreach($rank as $key=>$value)
- <li>
- <span>{{$value['user']}}({{$value['rank']}})</span>
- </li>
- @endforeach
- </ul>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </body>
- @section('footer')
- <script src="{{asset('js/plugins/layDate-v5.0.9/laydate/laydate.js')}}"></script>
- <script type="text/javascript">
- $(function () {
- laydate.render({
- elem: '#date',
- type: 'month'
- });
- });
- </script>
- @endsection
|