| xqd
@@ -30,7 +30,7 @@ class ApproveController extends AdminController
|
|
|
protected function grid()
|
|
|
{
|
|
|
$grid = new Grid(new DocterOrganization());
|
|
|
- $grid ->model()->where('state','>=',0);
|
|
|
+ $grid ->model()->where('state','>',0);
|
|
|
$grid->column('id', __('Id'));
|
|
|
$grid->column('docter.id', __('医生ID'));
|
|
|
$grid->column('docter.name', __('医生姓名'));
|
| xqd
@@ -40,7 +40,7 @@ class ApproveController extends AdminController
|
|
|
$grid->column('office.name', __('科室'));
|
|
|
$grid->column('qualification.name', __('医生资质'));
|
|
|
$grid->column('remarks', __('备注'));
|
|
|
- $grid->column('state', __('认证状态'))->using([1=>'待审核',2=>'已认证',3=>'已驳回']);
|
|
|
+ $grid->column('state', __('认证状态'))->using([1=>'审核成功',2=>'审核驳回',3=>'待审核']);
|
|
|
$grid->column('authentication_time', __('签约时间'))->display(function ($time){
|
|
|
if ($time == 0){
|
|
|
return '';
|
| xqd
@@ -67,18 +67,18 @@ class ApproveController extends AdminController
|
|
|
// 去掉查看
|
|
|
$actions->disableView();
|
|
|
//待审核状态下 给通过和驳回
|
|
|
- if ($actions->row->state == 1){
|
|
|
+ if ($actions->row->state == 3){
|
|
|
//通过申请
|
|
|
$actions->add(new Pass());
|
|
|
//驳回申请
|
|
|
$actions->add(new Refuse());
|
|
|
}
|
|
|
//已认证状态下 给撤销
|
|
|
- if ($actions->row->state == 2){
|
|
|
+ if ($actions->row->state == 1){
|
|
|
$actions->add(new Revoke());
|
|
|
}
|
|
|
//驳回状态下 不给任何操作
|
|
|
- if ($actions->row->state == 3){
|
|
|
+ if ($actions->row->state == 2){
|
|
|
|
|
|
}
|
|
|
|