Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
liexin_supplier
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
b870391e
authored
Aug 04, 2025
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix
parent
247f134c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
app/Http/Controllers/Api/SupplierContractApiController.php
app/Http/Controllers/Api/SupplierContractApiController.php
View file @
b870391e
...
...
@@ -42,16 +42,16 @@ class SupplierContractApiController extends Controller
$validator
=
\Validator
::
make
(
$data
,
[
'supplier_id'
=>
'required|integer'
,
'end_time'
=>
'required|date'
,
'recall_time'
=>
'required|date'
,
'commission_rate'
=>
'numeric|max:100|min:1'
,
'check_date'
=>
'required|integer|min:1|max:31'
],
[
'supplier_id.required'
=>
'供应商ID不能为空'
,
'supplier_id.integer'
=>
'供应商ID必须为整数'
,
'start_time.required'
=>
'合同开始时间不能为空'
,
'start_time.date'
=>
'合同开始时间必须为日期格式'
,
'end_time.required'
=>
'合同结束时间不能为空'
,
'end_time.date'
=>
'合同结束时间必须为日期格式'
,
'end_time.after'
=>
'合同结束时间必须大于合同开始时间'
,
'recall_time.required'
=>
'召回期不能为空'
,
'recall_time.date'
=>
'召回期必须为日期格式'
,
'commission_rate.required'
=>
'抽佣比率不能为空'
,
'commission_rate.numeric'
=>
'抽佣比率必须为数字'
,
'commission_rate.max'
=>
'抽佣比率不能大于100'
,
...
...
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