12345678910111213141516171819202122232425262728 |
- <?php
- namespace app\common\validate;
- use think\Validate;
- class WasteApply extends Validate{
- protected $rule = [
- 'record_id|医废记录' => 'require|gt:0',
- 'user_id|收取人' => 'require|gt:0',
- 'cateid|类别' => 'require|gt:0',
- 'apply_user|申请人' => 'require',
- 'apply_user_phone|申请人电话' => 'require',
- ];
- protected $message = [
- 'record_id.require' => '医废记录不能为空',
- 'record_id.gt' => '医废记录不能为空',
- 'user_id.require' => '未选择收取人',
- 'user_id.gt' => '未选择收取人',
- 'cateid.require' => '未选择类型',
- 'cateid.gt' => '未选择类型'
- ];
- protected $scene = [
- ];
- }
|