| xqd
@@ -79,10 +79,6 @@ class ConsultingOrdersController extends AdminController
|
|
|
$actions->disableView();
|
|
|
$actions->disableEdit();
|
|
|
$actions->disableDelete();
|
|
|
- if ($actions->row->order_status == 6 && $actions->row->payment_status !=3 &&$actions->row->payment_status !=4)
|
|
|
- {
|
|
|
- $actions->add(new RefundApplicationAction());
|
|
|
- }
|
|
|
});
|
|
|
$grid->model()->orderBy('id','desc');
|
|
|
$grid->column('id', __('Id'))->sortable();
|
| xqd
@@ -91,7 +87,7 @@ class ConsultingOrdersController extends AdminController
|
|
|
$grid->column('orderPatient.name', __('患者姓名'));
|
|
|
$grid->column('orderPatient.patient_phone', __('患者电话'));
|
|
|
$grid->column('orderPatient.symptoms', __('患者描述'));
|
|
|
- $grid->column('product_type', __('产品类型'))->using([1=>'电话咨询',2=>'图文咨询']);
|
|
|
+ $grid->column('product_type', __('产品类型'))->using([1=>'电话咨询',2=>'图文咨询',3=>'门诊预约',4=>'疫苗接种预约',5=>'儿保预约',6=>'服务包',7=>'充值',8=>'快速预约']);
|
|
|
$grid->column('payment_type', __('支付方式'))->display(function ($payment_type){
|
|
|
if ($payment_type == 1)
|
|
|
{
|
| xqd
@@ -106,8 +102,8 @@ class ConsultingOrdersController extends AdminController
|
|
|
return '服务包支付('.$name[0].')';
|
|
|
}
|
|
|
});
|
|
|
- $grid->column('order_status', __('订单状态'))->using([1=>'未支付',2=>'待接单',3=>'进行中',4=>'已完成',5=>'已取消',6=>'已超时']);
|
|
|
- $grid->column('payment_status', __('支付状态'))->using([1=>'待付款',2=>'已付款',3=>'退款中',4=>'已退款']);
|
|
|
+ $grid->column('order_status', __('订单状态'))->using([1=>'未支付',2=>'待接单',3=>'进行中',4=>'已完成',5=>'已取消',6=>'已超时',7=>'已预约']);
|
|
|
+ $grid->column('payment_status', __('支付状态'))->using([1=>'待付款',2=>'已付款',3=>'退款中',4=>'已退款',5=>'待退款']);
|
|
|
$grid->column('total_amount', __('订单总金额'))->display(function ($money){
|
|
|
return $money/100;
|
|
|
});
|