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
84157681
authored
Apr 07, 2022
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
结算币种加上限制
parent
16ebebfa
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
app/Http/Validators/SupplierValidator.php
resources/views/web/supplier/SupplierBase.blade.php
app/Http/Validators/SupplierValidator.php
View file @
84157681
...
...
@@ -21,6 +21,7 @@ class SupplierValidator
'legal_representative'
=>
'required'
,
'stockup_type'
=>
'required'
,
'main_brands'
=>
'required'
,
'currency'
=>
'required'
,
'main_customers'
=>
'max:100'
,
'ticket_time'
=>
'max:20'
,
// 'supplier_address' => 'required',
...
...
@@ -129,6 +130,7 @@ class SupplierValidator
{
return
[
'supplier_name.required'
=>
'供应商名称不能为空'
,
'currency.required'
=>
'结算币种不能为空'
,
'legal_representative.required'
=>
'法人代表不能为空'
,
'stockup_type.required'
=>
'合作类型不能为空'
,
'register_company_name.required'
=>
'注册公司名不能为空'
,
...
...
resources/views/web/supplier/SupplierBase.blade.php
View file @
84157681
...
...
@@ -159,7 +159,7 @@
<div
class=
"layui-inline"
>
@inject('statusPresenter','App\Presenters\StatusPresenter')
{!! $statusPresenter->render('currency','结算币种',
isset($supplier)?$supplier['currency']:'',config('fixed.Currency'),['required'=>
fals
e]) !!}
isset($supplier)?$supplier['currency']:'',config('fixed.Currency'),['required'=>
tru
e]) !!}
</div>
<div
class=
"layui-inline"
id=
"tax_number_div"
@
if
(
empty
($
supplier
)
||
(!
empty
($
supplier
)&&$
supplier
['
currency
']!=
1
))
...
...
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