0
0

WasteApply.php 749 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace app\common\validate;
  3. use think\Validate;
  4. class WasteApply extends Validate{
  5. protected $rule = [
  6. 'record_id|医废记录' => 'require|gt:0',
  7. 'user_id|收取人' => 'require|gt:0',
  8. 'cateid|类别' => 'require|gt:0',
  9. 'apply_user|申请人' => 'require',
  10. 'apply_user_phone|申请人电话' => 'require',
  11. ];
  12. protected $message = [
  13. 'record_id.require' => '医废记录不能为空',
  14. 'record_id.gt' => '医废记录不能为空',
  15. 'user_id.require' => '未选择收取人',
  16. 'user_id.gt' => '未选择收取人',
  17. 'cateid.require' => '未选择类型',
  18. 'cateid.gt' => '未选择类型'
  19. ];
  20. protected $scene = [
  21. ];
  22. }