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
2cf543c5
authored
Jul 25, 2023
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
筛选问题
parent
4608a423
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletions
app/Http/Controllers/Filter/SkuListFilter.php
resources/views/web/sku/SkuListFilter.blade.php
app/Http/Controllers/Filter/SkuListFilter.php
View file @
2cf543c5
...
...
@@ -53,6 +53,16 @@ class SkuListFilter
unset
(
$map
[
'source_type'
]);
}
if
(
!
empty
(
$map
[
'has_price'
]))
{
if
(
$map
[
'has_price'
]
==
1
)
{
$map
[
'single_price/sr'
]
=
'gt,0'
;
}
else
{
$map
[
'single_price/eq'
]
=
'0'
;
}
unset
(
$map
[
'source_type'
]);
}
if
(
!
empty
(
$map
[
'stock_compare_type'
])
&&
!
empty
(
$map
[
'stock_num'
]))
{
switch
(
$map
[
'stock_compare_type'
])
{
case
'eq'
:
...
...
resources/views/web/sku/SkuListFilter.blade.php
View file @
2cf543c5
...
...
@@ -137,7 +137,7 @@
</div>
<div
class=
"layui-inline"
>
@inject('statusPresenter','App\Presenters\StatusPresenter')
{!! $statusPresenter->render('
single_price/sr','有无价格',request()->get('single_price/sr'),['gt,0'=> '有','eq,0
'=> '无']) !!}
{!! $statusPresenter->render('
has_price','有无价格',request()->get('has_price'),['1'=> '有','-1
'=> '无']) !!}
</div>
<div
class=
"layui-inline"
style=
"width: 600px"
>
@inject('transformableTimeIntervalPresenter','App\Presenters\Filter\TransformableTimeIntervalPresenter')
...
...
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