From f1d3aafc6ff22166532368111c5f620564d3bca9 Mon Sep 17 00:00:00 2001 From: lanzu_qsy <334039090@qq.com> Date: Thu, 6 Aug 2020 15:09:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=B8=82=E5=9C=BA=E7=BB=8F?= =?UTF-8?q?=E7=90=86=E6=8F=90=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/LanzuMmWithdrawController.php | 70 ++++++++ app/Admin/Repositories/LanzuMmWithdraw.php | 16 ++ app/Admin/routes.php | 1 + app/Models/LanzuMmWithdraw.php | 16 ++ app/Models/LanzuMpWithdraw.php | 3 +- app/Models/MpWithdraw.php | 13 -- dcat_admin_ide_helper.php | 164 ++++++++++-------- resources/lang/zh-CN/lanzu-mm-withdraw.php | 13 ++ 8 files changed, 206 insertions(+), 90 deletions(-) create mode 100644 app/Admin/Controllers/LanzuMmWithdrawController.php create mode 100644 app/Admin/Repositories/LanzuMmWithdraw.php create mode 100644 app/Models/LanzuMmWithdraw.php delete mode 100644 app/Models/MpWithdraw.php create mode 100644 resources/lang/zh-CN/lanzu-mm-withdraw.php diff --git a/app/Admin/Controllers/LanzuMmWithdrawController.php b/app/Admin/Controllers/LanzuMmWithdrawController.php new file mode 100644 index 0000000..8205272 --- /dev/null +++ b/app/Admin/Controllers/LanzuMmWithdrawController.php @@ -0,0 +1,70 @@ +id->sortable(); + $grid->mm_id('提现'); + $grid->money; + $grid->status('提现状态'); + $grid->created_at('提现时间'); + + $grid->filter(function (Grid\Filter $filter) { + $filter->equal('id'); + + }); + }); + } + + /** + * Make a show builder. + * + * @param mixed $id + * + * @return Show + */ + protected function detail($id) + { + return Show::make($id, new LanzuMmWithdraw(), function (Show $show) { + $show->id; + $show->mm_id; + $show->money; + $show->status; + $show->created_at; + $show->updated_at; + }); + } + + /** + * Make a form builder. + * + * @return Form + */ + protected function form() + { + return Form::make(new LanzuMmWithdraw(), function (Form $form) { + $form->display('id'); + $form->text('mm_id'); + $form->text('money'); + $form->display('created_at'); + $form->display('updated_at'); + }); + } +} diff --git a/app/Admin/Repositories/LanzuMmWithdraw.php b/app/Admin/Repositories/LanzuMmWithdraw.php new file mode 100644 index 0000000..2071b1a --- /dev/null +++ b/app/Admin/Repositories/LanzuMmWithdraw.php @@ -0,0 +1,16 @@ +resource('/mm', 'LanzuMmInfoController'); $router->resource('/market', 'ImsCjdcMarketController'); $router->resource('/mp_withdraw', 'LanzuMpWithdrawController'); + $router->resource('/mm_withdraw', 'LanzuMmWithdrawController'); $router->any('/api/getMarket', 'LanzuMmInfoController@getMarket'); $router->any('/api/getMpInfo', 'ImsCjdcMarketController@getMpInfo'); diff --git a/app/Models/LanzuMmWithdraw.php b/app/Models/LanzuMmWithdraw.php new file mode 100644 index 0000000..48a38b8 --- /dev/null +++ b/app/Models/LanzuMmWithdraw.php @@ -0,0 +1,16 @@ + [ + 'LanzuMmWithdraw' => 'LanzuMmWithdraw', + ], + 'fields' => [ + 'mm_id' => '关联的市场经理id', + 'money' => '提现金额', + 'status' => '提现状态 0/1/-1 待审核/已同意/已拒绝', + ], + 'options' => [ + ], +];