Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
46c6aa4b
Commit
46c6aa4b
authored
Jul 26, 2019
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
f5b7d836
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
24 deletions
+28
-24
StoreFeeValidate.php
application/api_broker/validate/StoreFeeValidate.php
+28
-24
No files found.
application/api_broker/validate/StoreFeeValidate.php
View file @
46c6aa4b
...
@@ -14,36 +14,39 @@ use think\Validate;
...
@@ -14,36 +14,39 @@ use think\Validate;
class
StoreFeeValidate
extends
Validate
class
StoreFeeValidate
extends
Validate
{
{
protected
$rule
=
[
protected
$rule
=
[
'id'
=>
'require|between:1,999999999'
,
'id'
=>
'require|between:1,999999999'
,
'type'
=>
'require|number'
,
'type'
=>
'require|number'
,
'fee_item'
=>
'require|number'
,
'fee_item'
=>
'require|number'
,
'total_fee'
=>
'require|number'
,
'total_fee'
=>
'require|number'
,
'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
=
[
'type.require'
=>
'报销类型为必填字段'
,
'type.require'
=>
'报销类型为必填字段'
,
'type.number'
=>
'报销类型只能为数字'
,
'type.number'
=>
'报销类型只能为数字'
,
'fee_item.require'
=>
'费用项目不能为空'
,
'fee_item.require'
=>
'费用项目不能为空'
,
'fee_item.number'
=>
'费用项目只能为数字'
,
'fee_item.number'
=>
'费用项目只能为数字'
,
'total_fee.require'
=>
'费用总金额不能为空'
,
'total_fee.require'
=>
'费用总金额不能为空'
,
'total_fee.number'
=>
'费用总金额只能为数字'
,
'total_fee.number'
=>
'费用总金额只能为数字'
,
'agent_id.require'
=>
'申请人不能为空'
,
'agent_id.require'
=>
'申请人不能为空'
,
'agent_id.number'
=>
'申请人只能为数字'
,
'agent_id.number'
=>
'申请人只能为数字'
,
'store_id.require'
=>
'门店不能为空'
,
'store_id.require'
=>
'门店不能为空'
,
'store_id.number'
=>
'状门店只能为数字'
,
'store_id.number'
=>
'状门店只能为数字'
,
'site_id.require'
=>
'站点不能为空'
,
'office_id.require'
=>
'办公室不能为空'
,
'site_id.number'
=>
'站点只能为数字'
,
'office_id.number'
=>
'办公室id只能为数字'
,
'id.require'
=>
'id必传'
,
'site_id.require'
=>
'站点不能为空'
,
'id.between'
=>
'请求参数错误'
,
'site_id.number'
=>
'站点只能为数字'
,
'id.require'
=>
'id必传'
,
'id.between'
=>
'请求参数错误'
,
];
];
protected
$scene
=
[
protected
$scene
=
[
'addApplyFor'
=>
[
'type'
,
'fee_item'
,
'total_fee'
,
'agent_id'
,
'stor
e_id'
,
'assume_fee'
,
'site_id'
],
'addApplyFor'
=>
[
'type'
,
'fee_item'
,
'total_fee'
,
'agent_id'
,
'store_id'
,
'offic
e_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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment