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
3f63849a
authored
Jun 06, 2023
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
优化
parent
796c7fee
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
app/Http/Controllers/Filter/SupplierFilter.php
resources/views/script/SupplierListScript.blade.php
app/Http/Controllers/Filter/SupplierFilter.php
View file @
3f63849a
...
...
@@ -152,11 +152,11 @@ class SupplierFilter
if
(
$map
[
'has_cooperation_agreement'
]
==
1
)
{
$query
->
whereHas
(
'attachment'
,
function
(
$query
)
{
$query
->
where
(
'field_name'
,
'cooperation_agreement'
);
})
->
where
(
'uploaded_sku'
,
'>'
,
0
)
;
});
}
else
{
$query
->
whereDoesntHave
(
'attachment'
,
function
(
$query
)
{
$query
->
where
(
'field_name'
,
'cooperation_agreement'
);
})
->
where
(
'uploaded_sku'
,
'>'
,
0
)
;
});
}
}
...
...
resources/views/script/SupplierListScript.blade.php
View file @
3f63849a
...
...
@@ -130,7 +130,7 @@
field
:
'has_cooperation_agreement'
,
title
:
'平台合作协议'
,
align
:
'center'
,
width
:
8
0
,
width
:
12
0
,
},
{
field
:
'contact_num'
,
title
:
'联系人'
,
align
:
'center'
,
width
:
70
,
templet
:
function
(
data
)
{
...
...
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