6
0
Fork 0

添加售后单详情跳转订单详情

release
vine_liutk 2022-01-04 18:11:50 +08:00
parent 11c1f93e56
commit 9574d29302
2 changed files with 7 additions and 2 deletions

View File

@ -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');

View File

@ -48,7 +48,7 @@ return [
'packages'=>'包裹内容',
'order_product_id' =>'商品',
'quantity'=>'数量',
'remain_quantity'=>'剩余',
'remain_quantity'=>'待发',
'tags'=>'标签',
],