1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- namespace app\common\validate;
- use think\Validate;
- class ConveyCron extends Validate{
- protected $rule = [
- 'dep_id' => 'require|gt:0',
- 'type' => 'require',
- 'start' => 'require',
- 'end' => 'require',
- 'xq_time' => 'require',
- //'ywc_time' => 'require',
- 'priority' => 'require',
- 'week' => 'require',
- ];
- protected $message = [
- 'dep_id.require' => '请选择科室',
- 'dep_id.gt' => '请选择科室',
- 'type.require' => '请选择运送类型',
- 'start.require' => '请选择收取地点',
- 'end.require' => '请选择运送地点',
- 'xq_time.require' => '请选择需求时间',
- 'ywc_time.require' => '请选择应完成时间',
- 'priority.require' => '请选择运优先级',
- 'week.require' => '请选择日期',
- ];
- protected $scene = [
- ];
- }
|