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
ed05b8f1
authored
May 06, 2022
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
新增页面附件时间区间必填问题
parent
835587f3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
app/Http/Validators/SupplierValidator.php
resources/views/script/supplier/SupplierFileScript.blade.php
app/Http/Validators/SupplierValidator.php
View file @
ed05b8f1
...
...
@@ -108,6 +108,20 @@ class SupplierValidator
}
}
if
(
!
$supplierId
)
{
//附件信息校验
foreach
(
$validateData
[
'validity_type'
]
as
$key
=>
$type
)
{
//最后一个跳过,因为是模板里的数据
if
(
$key
==
(
count
(
$validateData
[
'validity_type'
])
-
1
))
{
continue
;
}
if
(
$type
==
2
&&
!
$validateData
[
'validity_period'
][
$key
])
{
$errorMessageList
[]
=
'附件有效期为自定义的时候,必须选择时间区间'
;
break
;
}
}
}
//银行信息校验
$receiptValidator
=
new
ReceiptValidator
();
if
(
empty
(
$supplierId
))
{
...
...
resources/views/script/supplier/SupplierFileScript.blade.php
View file @
ed05b8f1
...
...
@@ -29,6 +29,8 @@
if
(
data
.
value
===
'1'
)
{
validityPeriodTimeSelector
.
attr
(
'disabled'
,
true
);
validityPeriodTimeSelector
.
addClass
(
'layui-disabled'
);
validityPeriodTimeSelector
.
val
(
''
);
form
.
render
();
}
else
{
validityPeriodTimeSelector
.
attr
(
'disabled'
,
false
);
validityPeriodTimeSelector
.
removeClass
(
'layui-disabled'
);
...
...
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