ProPchAdd.php 497 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace app\validate;
  3. use think\Validate;
  4. class ProPchAdd extends Validate
  5. {
  6. protected $rule = [
  7. 'qydm' => 'require',
  8. 'rq' => 'require',
  9. 'base_id' => 'require',
  10. 'pro_id' => 'require'
  11. ];
  12. protected $message = [
  13. 'qydm.require' => '企业代码不为空',
  14. 'rq.require' => '日期不为空',
  15. 'base_id.require' => '基地id不能为空',
  16. 'pro_id.require' => '产品id不能为空'
  17. ];
  18. }