|
|
|
@ -51,6 +51,7 @@ class LanzuMmWithdrawController extends AdminController |
|
|
|
} |
|
|
|
|
|
|
|
return Grid::make($buider, function (Grid $grid) use ($mp_info, $mm_id) { |
|
|
|
$grid->model()->orderBy('created_at','desc'); |
|
|
|
$grid->actions(function (Grid\Displayers\Actions $actions) use ($grid) { |
|
|
|
if ($actions->row->status != 0) { |
|
|
|
$actions->disableEdit(); |
|
|
|
@ -141,7 +142,9 @@ class LanzuMmWithdrawController extends AdminController |
|
|
|
$form->display('提现人')->value(LanzuMmInfo::find($mmId)->name); |
|
|
|
} else {//非市场经理登陆时
|
|
|
|
$mm = LanzuMmInfo::find($form->model()->mm_id); |
|
|
|
$form->display('可提现金额')->value($this->getBalance($mm->admin_user_id)); |
|
|
|
if ($mm){ |
|
|
|
$form->display('可提现金额')->value($this->getBalance($mm->admin_user_id)); |
|
|
|
} |
|
|
|
$mmInfo = LanzuMmInfo::find($form->model()->mm_id); |
|
|
|
if ($mmInfo) { |
|
|
|
$form->display('提现人')->value($mmInfo->name); |
|
|
|
|