Browse Source

开放后台可配置医生的门诊图文电话的价格设置

ChenWuJie 4 năm trước cách đây
mục cha
commit
0bc6919d4b

+ 5 - 12
app/Admin/Controllers/UserManagement/DocterManagement/AppointController.php

xqd xqd
@@ -26,7 +26,10 @@ class AppointController extends AdminController
     {
         $grid = new Grid(new DocterSetting());
         $grid->disableCreateButton();
-        $grid->disableActions();
+        $grid->actions(function ($actions){
+           $actions->disableDelete();
+           $actions->disableView();
+        });
         $grid->disableBatchActions();
         $docter_id = request('docter_id');
         $grid->model()->where('docter_id',$docter_id)->where('type',1);
@@ -119,17 +122,7 @@ class AppointController extends AdminController
     protected function form()
     {
         $form = new Form(new DocterSetting());
-
-        $form->number('docter_id', __('Docter id'));
-        $form->number('type', __('Type'));
-        $form->number('status', __('Status'));
-        $form->number('show_days', __('Show days'));
-        $form->number('service_times', __('Service times'));
-        $form->number('service_num', __('Service num'));
-        $form->number('org_id', __('Org id'));
-        $form->decimal('appoint_price', __('Appoint price'))->default(0.00);
-        $form->text('service_time', __('Service time'));
-
+        $form->decimal('appoint_price', __('预约价格'))->default(0.00);
         return $form;
     }
 }

+ 4 - 9
app/Admin/Controllers/UserManagement/DocterManagement/ChatController.php

xqd xqd xqd
@@ -27,7 +27,9 @@ class ChatController extends AdminController
     {
         $grid = new Grid(new DocterTimes());
         $grid->disableCreateButton();
-        $grid->disableActions();
+        $grid->actions(function ($actions){
+           $actions->disableDelete();
+        });
         $grid->disableBatchActions();
         $docter_id = request('docter_id');
         $grid->model()->where('docter_id',$docter_id)->where('type',2);
@@ -93,7 +95,6 @@ class ChatController extends AdminController
         $show = new Show(DocterTimes::findOrFail($id));
 
         $show->field('id', __('Id'));
-        $show->field('docter_id', __('Docter id'));
         $show->field('base_price', __('Base price'));
         $show->field('step_price', __('Step price'));
         $show->field('service_time', __('Service time'));
@@ -115,13 +116,7 @@ class ChatController extends AdminController
     {
         $form = new Form(new DocterTimes());
 
-        $form->number('docter_id', __('Docter id'));
-        $form->decimal('base_price', __('Base price'));
-        $form->decimal('step_price', __('Step price'));
-        $form->text('service_time', __('Service time'));
-        $form->number('person', __('Person'));
-        $form->number('type', __('Type'));
-        $form->number('relation_id', __('Relation id'));
+        $form->decimal('base_price', __('基础价格'));
 
         return $form;
     }

+ 6 - 8
app/Admin/Controllers/UserManagement/DocterManagement/PhoneController.php

xqd xqd
@@ -26,7 +26,10 @@ class PhoneController extends AdminController
     {
         $grid = new Grid(new DocterTimes());
         $grid->disableCreateButton();
-        $grid->disableActions();
+        $grid->actions(function ($actions){
+           $actions->disableView();
+           $actions->disableDelete();
+        });
         $grid->disableBatchActions();
         $docter_id = request('docter_id');
         $grid->model()->where('docter_id',$docter_id)->where('type',1);
@@ -116,13 +119,8 @@ class PhoneController extends AdminController
     {
         $form = new Form(new DocterTimes());
 
-        $form->number('docter_id', __('Docter id'));
-        $form->decimal('base_price', __('Base price'));
-        $form->decimal('step_price', __('Step price'));
-        $form->text('service_time', __('Service time'));
-        $form->number('person', __('Person'));
-        $form->number('type', __('Type'));
-        $form->number('relation_id', __('Relation id'));
+        $form->decimal('base_price', __('基础价格'));
+        $form->decimal('step_price', __('步进价格'));
 
         return $form;
     }