ソースを参照

订单支付记录,评估概况

Swdz-WangHaiJun 4 年 前
コミット
f3363e4851

+ 14 - 1
app/Community/Controllers/OrderController.php

xqd xqd
@@ -2,6 +2,9 @@
 
 namespace App\Community\Controllers;
 
+use App\Community\Actions\Nurse\Finished;
+use App\Community\Actions\Nurse\OrderCance;
+use App\Community\Actions\Nurse\Reserved;
 use App\Models\Docter;
 use App\Models\Order;
 use Encore\Admin\Controllers\AdminController;
@@ -69,7 +72,17 @@ class OrderController extends AdminController
                 $model->where('name', 'like', "{$query}%");
             });
         })->placeholder('请输入用户姓名');
-
+        $grid->actions(function ($actions) {
+            if(!empty($actions->row->order_status) && $actions->row->order_status < 2){
+                $actions->add(new Reserved());
+            }
+            if(!empty($actions->row->order_status) && $actions->row->order_status<= 3){
+                $actions->add(new OrderCance());
+                $actions->add(new Finished());
+            }
+            $actions->disableView();
+            $actions->disableDelete();
+        });
         $grid->filter(function (Grid\Filter $filter)  {
             $filter->disableIdFilter();
             $filter->column(1/2, function ($filter)   {

+ 1 - 1
app/Community/Controllers/OrderNurseController.php

xqd
@@ -104,7 +104,7 @@ class OrderNurseController extends AdminController
                 $actions->add(new Finished());
             }
 
-            $actions->add(new DelNurse());
+//            $actions->add(new DelNurse());
             $actions->disableView();
             $actions->disableDelete();
         });

+ 4 - 2
app/Community/Controllers/ScheduleStatController.php

xqd
@@ -30,10 +30,12 @@ class ScheduleStatController extends Admin
         }
 
         $data['week'] = $week;
+        $data['timeType'] = ['上午','下午','晚上'];
         $data['name'] = Organization::where(['id'=>$org_id])->value('name');
         $content = new Content();
-        $content->title('医生排班统计');
-        $content->description('填写页面描述小标题');
+        $types = [1=>'门诊',2=>'计免','3'=>'儿保'];
+        $content->title($data['name']);
+        $content->description($types[$scheduleType].'排班统计');
         $content->view('cdms.totalSchedule',['data'=>$data]);
 
         return $content;

+ 58 - 38
resources/views/cdms/totalSchedule.blade.php

xqd
@@ -1,48 +1,68 @@
-<div class="box">
+<style>
+    table,th{
+        text-align: center;
+    }
+
+</style>
+<div class="box col-sm-6">
     <div class="box-header">
-        <h3 class="box-title">机构{{$data['name']}}排班页面</h3>
+        <h3 class="box-title">{{$data['name']}}  排班人次数统计</h3>
     </div>
-    <!-- /.box-header -->
     <div class="box-body">
-        <div id="example2_wrapper" class="dataTables_wrapper form-inline dt-bootstrap"><div class="row"><div class="col-sm-6"></div><div class="col-sm-6"></div></div><div class="row"><div class="col-sm-12"><table id="example2" class="table table-bordered table-hover dataTable" role="grid" aria-describedby="example2_info">
+        <div id="example2_wrapper" class="dataTables_wrapper form-inline dt-bootstrap">
+            <div class="row">
+                <div class="col-sm-6"></div>
+                <div class="col-sm-6"></div>
+            </div>
+            <div class="row">
+                <div class="col-sm-12">
+                    <table id="example2" class="table table-bordered table-hover dataTable" role="grid" aria-describedby="example2_info">
                         <thead>
-                        <tr role="row">
-                            <th class="sorting" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-label="Rendering engine: activate to sort column ascending">Rendering engine</th>
-                            <th class="sorting_desc" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-label="Browser: activate to sort column ascending" aria-sort="descending">Browser</th>
-                            <th class="sorting" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-label="Platform(s): activate to sort column ascending">Platform(s)</th>
-                            <th class="sorting" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-label="Engine version: activate to sort column ascending">Engine version</th>
-                            <th class="sorting" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-label="CSS grade: activate to sort column ascending">CSS grade</th>
-                        </tr>
+                            <tr role="row">
+                                <th  tabindex="0"  rowspan="1" colspan="1" >时间</th>
+                                <th  tabindex="0"  rowspan="1" colspan="1" >星期一</th>
+                                <th class="sorting_desc" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-label="Browser: activate to sort column ascending" aria-sort="descending">星期二</th>
+                                <th class="sorting" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-label="Platform(s): activate to sort column ascending">星期三</th>
+                                <th class="sorting" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-label="Engine version: activate to sort column ascending">星期四</th>
+                                <th class="sorting" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-label="CSS grade: activate to sort column ascending">星期五</th>
+                                <th class="sorting" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-label="CSS grade: activate to sort column ascending">星期六</th>
+                                <th class="sorting" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-label="CSS grade: activate to sort column ascending">星期天</th>
+                            </tr>
                         </thead>
                         <tbody>
-                        <tr role="row" class="odd">
-                            <td class="">Presto</td>
-                            <td class="sorting_1">Opera 9.0</td>
-                            <td>Win 95+ / OSX.3+</td>
-                            <td>-</td>
-                            <td>A</td>
-                        </tr>
+                        @for($i=0;$i<=2;$i++)
                         <tr role="row" class="even">
-                            <td class="">Presto</td>
-                            <td class="sorting_1">Opera 8.5</td>
-                            <td>Win 95+ / OSX.2+</td>
-                            <td>-</td>
-                            <td>A</td>
-                        </tr><tr role="row" class="odd">
-                            <td class="">Presto</td>
-                            <td class="sorting_1">Opera 8.0</td>
-                            <td>Win 95+ / OSX.2+</td>
-                            <td>-</td>
-                            <td>A</td>
-                        </tr><tr role="row" class="even">
-                            <td class="">Presto</td>
-                            <td class="sorting_1">Opera 7.5</td>
-                            <td>Win 95+ / OSX.2+</td>
-                            <td>-</td>
-                            <td>A</td>
+                            <td class="">{{$data['timeType'][$i]}}</td>
+                        @foreach($data['week'] as $k=>$v)
+                                <td class="">({{$v[$i]}}人次)</td>
+                            @endforeach
                         </tr>
-                        <tfoot>
-                        <tr><th rowspan="1" colspan="1">Rendering engine</th><th rowspan="1" colspan="1">Browser</th><th rowspan="1" colspan="1">Platform(s)</th><th rowspan="1" colspan="1">Engine version</th><th rowspan="1" colspan="1">CSS grade</th></tr>
-                        </tfoot>
+                        @endfor
                     </table>
+
+{{--                    <table class="table table-condensed">--}}
+{{--                        <tr>--}}
+{{--                            <th>星期一</th>--}}
+{{--                            <th>星期二</th>--}}
+{{--                            <th>星期三</th>--}}
+{{--                            <th>星期四</th>--}}
+{{--                            <th>星期五</th>--}}
+{{--                            <th>星期六</th>--}}
+{{--                            <th>星期天</th>--}}
+{{--                        </tr>--}}
+
+{{--                        <tr>--}}
+{{--                            <td class="active">...</td>--}}
+{{--                            <td class="success">...</td>--}}
+{{--                            <td class="warning">...</td>--}}
+{{--                            <td class="danger">...</td>--}}
+{{--                            <td class="info">...</td>--}}
+{{--                            <td class="info">...</td>--}}
+{{--                            <td class="info">...</td>--}}
+{{--                        </tr>--}}
+{{--                    </table>--}}
+                </div>
+            </div>
+        </div>
+    </div>
 </div>