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
8e703229
authored
Apr 28, 2022
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
审核流程被阻塞
parent
c1b975e3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
app/Http/Controllers/Filter/SupplierFilter.php
app/Http/Validators/SupplierValidator.php
app/Http/Controllers/Filter/SupplierFilter.php
View file @
8e703229
...
...
@@ -107,7 +107,7 @@ class SupplierFilter
}
//默认过滤带有-1字符串的供应商名称的数据
$query
->
whereRaw
(
'supplier_name NOT LIKE "%-1"'
);
if
(
config
(
'website.domain'
)
==
'liexin.net'
&&
request
()
->
user
->
userId
!=
1000
)
{
if
(
config
(
'website.domain'
)
==
'liexin.net'
&&
!
in_array
(
request
()
->
user
->
userId
,
[
1611
,
1499
,
1354
,
1613
])
)
{
$query
->
where
(
'supplier_id'
,
'>'
,
12211
);
}
return
$query
;
...
...
app/Http/Validators/SupplierValidator.php
View file @
8e703229
...
...
@@ -159,7 +159,7 @@ class SupplierValidator
//如果付款方式为账期,那么月结天数一定要选
if
(
$validateData
[
'pay_type'
]
==
1
)
{
if
(
!
$validateData
[
'pay_type_value'
]
)
{
if
(
!
array_get
(
$validateData
,
'pay_type_value'
)
)
{
$errorMessageList
[]
=
'付款方式选择账期,月结天数必须设置'
;
}
}
...
...
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