添加售后单详情跳转订单详情
parent
11c1f93e56
commit
9574d29302
|
|
@ -128,7 +128,12 @@ class AfterSaleController extends AdminController
|
|||
$column->row(Show::make($id, $builder, function (Show $show) {
|
||||
$show->field('id');
|
||||
$show->field('sn');
|
||||
$show->field('order.sn');
|
||||
$show->field('order.sn')->unescape()->as(function ($value) {
|
||||
if (Admin::user()->can('dcat.admin.orders.show')) {
|
||||
return '<a href="'.admin_route('orders.show', ['order'=>$this->order]).'" target="_blank">'.$value.'</a>';
|
||||
}
|
||||
return $value;
|
||||
});
|
||||
$show->field('user.phone');
|
||||
$show->field('user.user_info.nickname');
|
||||
$show->field('order_product.name');
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ return [
|
|||
'packages'=>'包裹内容',
|
||||
'order_product_id' =>'商品',
|
||||
'quantity'=>'数量',
|
||||
'remain_quantity'=>'剩余',
|
||||
'remain_quantity'=>'待发',
|
||||
'tags'=>'标签',
|
||||
|
||||
],
|
||||
|
|
|
|||
Loading…
Reference in New Issue