Commit 46c6aa4b authored by clone's avatar clone

1

parent f5b7d836
...@@ -21,6 +21,7 @@ class StoreFeeValidate extends Validate ...@@ -21,6 +21,7 @@ class StoreFeeValidate extends Validate
'agent_id' => 'require|number', 'agent_id' => 'require|number',
'store_id' => 'require|number', 'store_id' => 'require|number',
'site_id' => 'require|number', 'site_id' => 'require|number',
'office_id' => 'require|number',
]; ];
protected $message = [ protected $message = [
...@@ -34,6 +35,8 @@ class StoreFeeValidate extends Validate ...@@ -34,6 +35,8 @@ class StoreFeeValidate extends Validate
'agent_id.number' => '申请人只能为数字', 'agent_id.number' => '申请人只能为数字',
'store_id.require' => '门店不能为空', 'store_id.require' => '门店不能为空',
'store_id.number' => '状门店只能为数字', 'store_id.number' => '状门店只能为数字',
'office_id.require' => '办公室不能为空',
'office_id.number' => '办公室id只能为数字',
'site_id.require' => '站点不能为空', 'site_id.require' => '站点不能为空',
'site_id.number' => '站点只能为数字', 'site_id.number' => '站点只能为数字',
'id.require' => 'id必传', 'id.require' => 'id必传',
...@@ -42,8 +45,8 @@ class StoreFeeValidate extends Validate ...@@ -42,8 +45,8 @@ class StoreFeeValidate extends Validate
]; ];
protected $scene = [ protected $scene = [
'addApplyFor' => ['type', 'fee_item', 'total_fee', 'agent_id', 'store_id', 'assume_fee', 'site_id'], 'addApplyFor' => ['type', 'fee_item', 'total_fee', 'agent_id', 'store_id','office_id', 'assume_fee', 'site_id'],
'pcAddApplyFor' => ['type', 'total_fee', 'agent_id', 'store_id', 'assume_fee', 'site_id'], 'pcAddApplyFor' => ['type', 'total_fee', 'agent_id', 'store_id', 'assume_fee', 'site_id'],
'pcEditApplyFor' => ['id','type', 'total_fee', 'agent_id', 'store_id', 'assume_fee', 'site_id'] 'pcEditApplyFor' => ['id', 'type', 'total_fee', 'agent_id', 'store_id', 'assume_fee', 'site_id']
]; ];
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment