1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?php
- namespace addons\qingdongams\validate;
- use think\Validate;
- //零件库存申请记录
- class PartsStockReload extends Validate
- {
- /**
- * 验证规则
- */
- protected $rule = [
- 'create_staff_id' => 'number',
- 'type' => 'require|number',
- 'odd_numbers' => 'require|max:64',
- 'storage_time' => 'date',
- 'desc' => 'max:1000',
- 'flow_staff_ids'=>'require|max:64'
- ];
- /**
- * 提示消息
- */
- protected $message = [];
- /**
- * 字段描述
- */
- protected $field = [
- 'create_staff_id' => '员工',
- 'type' => '类型',
- 'odd_numbers' => '单号',
- 'storage_time' => '时间',
- 'desc' => '备注',
- 'flow_staff_ids' => '审批人',
- ];
- /**
- * 验证场景
- */
- protected $scene = [
- 'create' => [
- 'create_staff_id',
- 'type',
- 'odd_numbers',
- 'storage_time',
- 'desc','flow_staff_ids'
- ],
- 'edit' => [
- ],
- ];
- }
|