- 基础环境:Docker 部署配置,源码挂载实时同步 - 修复:super_admin 权限补全、登录重定向循环 - 开发:店铺营销账户账单 - 抖音账户(15字段汇总账单) - 开发:店铺营销账户账单 - 淘系支付宝账户(8字段流水账单) - 开发:店铺营销账户账单 - 拼多多账户(7字段流水账单) - 业务页面导航集成:config/business_navigation.php + Business\Pages 控制器 - 各平台独立表结构和视图,互不影响
36 lines
1.3 KiB
PHP
36 lines
1.3 KiB
PHP
<?php
|
|
|
|
namespace App\Http\Requests\Banking;
|
|
|
|
use App\Abstracts\Http\FormRequest;
|
|
|
|
class MarketingAccountBill extends FormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'store_name' => ['required', 'string', 'max:191'],
|
|
'bill_date' => ['required', 'date'],
|
|
'total_deposit' => ['nullable', 'numeric', 'min:0'],
|
|
'total_transfer_in' => ['nullable', 'numeric', 'min:0'],
|
|
'total_transfer_out' => ['nullable', 'numeric', 'min:0'],
|
|
'non_grant_consumption' => ['nullable', 'numeric', 'min:0'],
|
|
'grant_consumption' => ['nullable', 'numeric', 'min:0'],
|
|
'rebate_redpack_consumption' => ['nullable', 'numeric', 'min:0'],
|
|
'discount_redpack_consumption' => ['nullable', 'numeric', 'min:0'],
|
|
'shared_wallet_consumption' => ['nullable', 'numeric', 'min:0'],
|
|
'shared_grant_consumption' => ['nullable', 'numeric', 'min:0'],
|
|
'daily_total_amount' => ['nullable', 'numeric', 'min:0'],
|
|
'period_end_balance' => ['nullable', 'numeric', 'min:0'],
|
|
'grant_balance' => ['nullable', 'numeric', 'min:0'],
|
|
'non_grant_balance' => ['nullable', 'numeric', 'min:0'],
|
|
'notes' => ['nullable', 'string', 'max:500'],
|
|
];
|
|
}
|
|
}
|