123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
-
- namespace app\admin\validate;
-
- use think\Validate;
-
- class Collection extends Validate
- {
-
- protected $rule = [
- 'page' => ['require', 'number', 'gt:0'],
- 'pageSize' => ['require', 'number', 'gt:0'],
- 'appoint_id' => ['require', 'number'],
- 'customer_id' => ['require', 'number'],
- 'type' => ['require', 'number', 'in:1,2,3'],
- 'appoint_time_start' => 'requireWith:appoint_time_end',
- 'appoint_time_end' => 'requireWith:appoint_time_start',
- 'signup_time_start' => 'requireWith:signup_time_end',
- 'signup_time_end' => 'requireWith:signup_time_start',
- 'collection_time_start' => 'requireWith:collection_time_end',
- 'collection_time_end' => 'requireWith:collection_time_start',
- ];
-
- protected $message = [
-
- ];
-
- protected $scene = [
- 'getAll' => ['page', 'pageSize', 'signup_time_start', 'signup_time_end', 'collection_time_start', 'collection_time_end', 'appoint_time_start', 'appoint_time_end'],
- 'save' => ['appoint_id', 'type', 'customer_id'],
- 'getDealDetail' => ['customer_id', 'page', 'pageSize'],
- 'getAchievementAccounting' => ['page', 'pageSize'],
- 'getDealAll' => ['page', 'pageSize', 'signup_time_start', 'signup_time_end', 'collection_time_start', 'collection_time_end', 'appoint_time_start', 'appoint_time_end'],
- // 'update' => ['id', 'appoint_id', 'demand', 'deal_money', 'newdeal_money', 'collection_money', 'collection_time', 'type', 'refunddeal_money', 'refundcollection_money', 'create_time', 'remark',],
- // 'delete' => ['id',],
- // 'read' => ['id',],
- ];
-
- }
|