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
01813bce
authored
Jul 21, 2022
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
注册资金校验
parent
b1a658a0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletions
app/Http/Validators/SupplierValidator.php
resources/views/web/SupplierDetail.blade.php
app/Http/Validators/SupplierValidator.php
View file @
01813bce
...
...
@@ -9,6 +9,7 @@ use App\Model\SupplierAttachmentsModel;
use
App\Model\SupplierChannelModel
;
use
App\Model\SupplierContactModel
;
use
App\Model\SupplierReceiptModel
;
use
Carbon\Carbon
;
use
Validator
;
class
SupplierValidator
...
...
@@ -124,6 +125,16 @@ class SupplierValidator
'is_business_abnormal'
=>
'required'
,
'phone'
=>
'required'
,
];
//2022年6月30日(含)之前新建的供应商,在修改供应商信息时,可跳过“注册资金”这一必填项
if
(
!
$isAdd
)
{
$supplier
=
SupplierChannelModel
::
where
(
'supplier_id'
,
$validateData
[
'supplier_id'
])
->
first
()
->
toArray
();
if
(
$supplier
[
'create_time'
]
<
Carbon
::
createFromDate
(
'2022-06-30'
)
->
timestamp
)
{
$rules
[
'registered_capital'
]
=
''
;
}
}
$contactRuler
=
[
'supplier_consignee'
=>
'required|max:50'
,
'supplier_mobile'
=>
'required|max:30'
,
...
...
resources/views/web/SupplierDetail.blade.php
View file @
01813bce
...
...
@@ -230,7 +230,10 @@
结算方式 :{{$supplier['settlement_type_name']}}
</div>
<div
class=
"layui-col-md3"
>
付款周期 :{{$supplier['pay_type_name']}}
付款周期 :{{$supplier['pay_type_name'] }}
@if($supplier['pay_type'] == 1)
(月结{{$supplier['pay_type_value'].$supplier['pay_type_extra']}})
@endif
</div>
</div>
<hr/>
...
...
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