调整后台bug
parent
758972213b
commit
ac751ecb3f
|
|
@ -81,9 +81,9 @@ class DealerEarningController extends AdminController
|
|||
$grid->column('created_at')->sortable();
|
||||
$grid->actions(function (Grid\Displayers\Actions $actions) {
|
||||
//如果不是渠道补贴添加详情显示
|
||||
if ($actions->row->earningable_type != (new DealerChannelSubsidyLog())->getMorphClass()) {
|
||||
$actions->append('<a style="cursor: pointer;" target="_blank" href="'.admin_route('dealer_earnings.show', ['dealer_earning'=>$actions->row]).'"><i class="feather icon-eye"></i> 显示 </a>');
|
||||
}
|
||||
// if ($actions->row->earningable_type != (new DealerChannelSubsidyLog())->getMorphClass()) {
|
||||
$actions->append('<a style="cursor: pointer;" target="_blank" href="'.admin_route('dealer_earnings.show', ['dealer_earning'=>$actions->row]).'"><i class="feather icon-eye"></i> 显示 </a>');
|
||||
// }
|
||||
});
|
||||
|
||||
$grid->filter(function (Grid\Filter $filter) {
|
||||
|
|
|
|||
|
|
@ -74,11 +74,14 @@ class DealerOrderController extends AdminController
|
|||
if (!(empty($actions->row->consignor) || $actions->row->consignor_id == 1) && $actions->row->status == DealerOrderStatus::Pending && Admin::user()->can('dcat.admin.dealer_orders.allocate')) {
|
||||
$actions->append(new DealerOrderAllocate());
|
||||
}
|
||||
if ($actions->row->status == DealerOrderStatus::Confirming && Admin::user()->can('dcat.admin.dealer_orders.paid')) {
|
||||
$actions->append(new DealerOrderPaid());
|
||||
}
|
||||
if ((empty($actions->row->consignor) || $actions->row->consignor_id == 1) && $actions->row->status == DealerOrderStatus::Paid && Admin::user()->can('dcat.admin.dealer_orders.shipping')) {
|
||||
$actions->append(new DealerOrderShipping());
|
||||
|
||||
if ((empty($actions->row->consignor) || $actions->row->consignor_id == 1)) {
|
||||
if ($actions->row->status == DealerOrderStatus::Confirming && Admin::user()->can('dcat.admin.dealer_orders.paid')) {
|
||||
$actions->append(new DealerOrderPaid());
|
||||
}
|
||||
if ($actions->row->status == DealerOrderStatus::Paid && Admin::user()->can('dcat.admin.dealer_orders.shipping')) {
|
||||
$actions->append(new DealerOrderShipping());
|
||||
}
|
||||
}
|
||||
});
|
||||
$grid->filter(function (Grid\Filter $filter) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue