|
|
|
@ -64,7 +64,7 @@ class ImsCjdcOrderMainController extends AdminController |
|
|
|
|
|
|
|
$state = $actions->row->state; |
|
|
|
if ($state == 2) { |
|
|
|
$actions->append(new OrderStateHandle('接单', 3)); |
|
|
|
$actions->append(new OrderStateHandle('<div type="button" style="width:140px" class="btn btn-outline-danger">接单</div>', 3)); |
|
|
|
} elseif ($state == 311) { |
|
|
|
$actions->append(new OrderStateHandle('完成', 4)); |
|
|
|
$actions->append(new OrderPrint('打印')); |
|
|
|
@ -75,13 +75,12 @@ class ImsCjdcOrderMainController extends AdminController |
|
|
|
$actions->append(new OrderStateHandle('同意退款', 9)); |
|
|
|
$actions->append(new OrderRefund($actions->row->id, $grid->model()->getCurrentPage(), '拒绝退款')); |
|
|
|
} |
|
|
|
$actions->append(new OrderDetail($actions->row->id, $grid->model()->getCurrentPage(), '详情')); |
|
|
|
$actions->append(new OrderDetail($actions->row->id, $grid->model()->getCurrentPage(), '<div type="button" style="width:140px" class="btn btn-outline-primary">详情</div>')); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
$grid->filter(function (Grid\Filter $filter) { |
|
|
|
$filter->equal('id'); |
|
|
|
|
|
|
|
$filter->equal('order_num'); |
|
|
|
}); |
|
|
|
|
|
|
|
$grid->disableViewButton(); |
|
|
|
|