11 changed files with 141 additions and 31 deletions
-
16app/Admin/Controllers/WithdrawalController.php
-
30app/Admin/Lazys/AlipayLazys.php
-
32app/Admin/Lazys/BankLazys.php
-
16app/Admin/Repositories/WithdrawalAlipay.php
-
16app/Admin/Repositories/WithdrawalBank.php
-
10app/AdminAgent/Controllers/WithdrawalAlipayController.php
-
10app/AdminAgent/Controllers/WithdrawalBankController.php
-
4app/AdminGuide/Controllers/WithdrawalAlipayController.php
-
14app/AdminGuide/Controllers/WithdrawalBankController.php
-
10app/AdminSupplier/Controllers/WithdrawalAlipayController.php
-
14app/AdminSupplier/Controllers/WithdrawalBankController.php
@ -0,0 +1,30 @@ |
|||
<?php |
|||
|
|||
|
|||
namespace App\Admin\Lazys; |
|||
|
|||
use App\Admin\Repositories\Withdrawal; |
|||
use App\Admin\Repositories\WithdrawalAlipay; |
|||
use App\Models\Demand; |
|||
use Dcat\Admin\Grid; |
|||
use Dcat\Admin\Grid\LazyRenderable; |
|||
use Dcat\Admin\Repositories\EloquentRepository; |
|||
use Dcat\Admin\Show; |
|||
|
|||
|
|||
class AlipayLazys extends LazyRenderable |
|||
{ |
|||
public function grid(): Grid |
|||
{ |
|||
return Grid::make(new WithdrawalAlipay(), function (Grid $grid) { |
|||
$grid->model()->where('withdrawal_id',$this->key); |
|||
$grid->column('id'); |
|||
$grid->column('account','账户'); |
|||
$grid->column('name','账户名称'); |
|||
$grid->column('qrcode','收款码')->image(); |
|||
$grid->disableActions(); |
|||
$grid->disableRowSelector(); |
|||
$grid->disablePagination(); |
|||
}); |
|||
} |
|||
} |
|||
@ -0,0 +1,32 @@ |
|||
<?php |
|||
|
|||
|
|||
namespace App\Admin\Lazys; |
|||
|
|||
use App\Admin\Repositories\Withdrawal; |
|||
use App\Admin\Repositories\WithdrawalAlipay; |
|||
use App\Admin\Repositories\WithdrawalBank; |
|||
use App\Models\Demand; |
|||
use Dcat\Admin\Grid; |
|||
use Dcat\Admin\Grid\LazyRenderable; |
|||
use Dcat\Admin\Repositories\EloquentRepository; |
|||
use Dcat\Admin\Show; |
|||
|
|||
|
|||
class BankLazys extends LazyRenderable |
|||
{ |
|||
public function grid(): Grid |
|||
{ |
|||
return Grid::make(new WithdrawalBank(), function (Grid $grid) { |
|||
$grid->model()->where('withdrawal_id',$this->key); |
|||
$grid->column('id'); |
|||
$grid->column('name','银行名称'); |
|||
$grid->column('branch','支行'); |
|||
$grid->column('card_number','卡号'); |
|||
$grid->column('account_name','开户人'); |
|||
$grid->disableActions(); |
|||
$grid->disableRowSelector(); |
|||
$grid->disablePagination(); |
|||
}); |
|||
} |
|||
} |
|||
@ -0,0 +1,16 @@ |
|||
<?php |
|||
|
|||
namespace App\Admin\Repositories; |
|||
|
|||
use App\Models\WithdrawalAlipay as Model; |
|||
use Dcat\Admin\Repositories\EloquentRepository; |
|||
|
|||
class WithdrawalAlipay extends EloquentRepository |
|||
{ |
|||
/** |
|||
* Model. |
|||
* |
|||
* @var string |
|||
*/ |
|||
protected $eloquentClass = Model::class; |
|||
} |
|||
@ -0,0 +1,16 @@ |
|||
<?php |
|||
|
|||
namespace App\Admin\Repositories; |
|||
|
|||
use App\Models\WithdrawalBank as Model; |
|||
use Dcat\Admin\Repositories\EloquentRepository; |
|||
|
|||
class WithdrawalBank extends EloquentRepository |
|||
{ |
|||
/** |
|||
* Model. |
|||
* |
|||
* @var string |
|||
*/ |
|||
protected $eloquentClass = Model::class; |
|||
} |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue