ConveyCron.php 920 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. namespace app\common\validate;
  3. use think\Validate;
  4. class ConveyCron extends Validate{
  5. protected $rule = [
  6. 'dep_id' => 'require|gt:0',
  7. 'type' => 'require',
  8. 'start' => 'require',
  9. 'end' => 'require',
  10. 'xq_time' => 'require',
  11. //'ywc_time' => 'require',
  12. 'priority' => 'require',
  13. 'week' => 'require',
  14. ];
  15. protected $message = [
  16. 'dep_id.require' => '请选择科室',
  17. 'dep_id.gt' => '请选择科室',
  18. 'type.require' => '请选择运送类型',
  19. 'start.require' => '请选择收取地点',
  20. 'end.require' => '请选择运送地点',
  21. 'xq_time.require' => '请选择需求时间',
  22. 'ywc_time.require' => '请选择应完成时间',
  23. 'priority.require' => '请选择运优先级',
  24. 'week.require' => '请选择日期',
  25. ];
  26. protected $scene = [
  27. ];
  28. }