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
814658f1
authored
Mar 26, 2025
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修复筛选和展示
parent
28e6eb66
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
2 deletions
app/Http/Services/SkuService.php
config/field.php
resources/views/script/SkuListScript.blade.php
resources/views/web/sku/SkuListFilter.blade.php
app/Http/Services/SkuService.php
View file @
814658f1
...
...
@@ -145,6 +145,7 @@ class SkuService extends BaseService
$skuDBData
=
$skuDBData
?
$skuDBData
:
[];
$item
[
'source_name'
]
=
array_get
(
config
(
'field.SkuSource'
),
@
$skuDBData
[
'source'
],
''
);
$item
[
'org_name'
]
=
array_get
(
config
(
'field.SkuOrgList'
),
@
$skuDBData
[
'org_id'
],
''
);
$item
[
'ability_level_name'
]
=
array_get
(
config
(
'field.AbilityLevel'
),
@
$item
[
'ability_level'
],
''
);
return
$item
;
},
$list
);
$list
=
$this
->
transformInvalidSkuTag
(
$list
);
...
...
config/field.php
View file @
814658f1
...
...
@@ -350,4 +350,10 @@ return [
1
=>
'有效'
,
-
1
=>
'失效'
,
],
'AbilityLevel'
=>
[
2
=>
'高'
,
1
=>
'中'
,
0
=>
'低'
,
]
];
resources/views/script/SkuListScript.blade.php
View file @
814658f1
...
...
@@ -161,7 +161,7 @@
}
}
},
{
field
:
'
is_fulfill
'
,
title
:
'履约程度'
,
align
:
'center'
,
width
:
80
},
{
field
:
'
ability_level_name
'
,
title
:
'履约程度'
,
align
:
'center'
,
width
:
80
},
{
field
:
'source_name'
,
title
:
'接入方式'
,
align
:
'center'
,
width
:
150
},
...
...
resources/views/web/sku/SkuListFilter.blade.php
View file @
814658f1
...
...
@@ -146,7 +146,7 @@
</div>
<div
class=
"layui-inline"
>
@inject('statusPresenter','App\Presenters\StatusPresenter')
{!! $statusPresenter->render('
is_fulfill/eq','履约程度',request()->get('is_fulfill/eq'),[0=>'全部',1=>'强履约']
) !!}
{!! $statusPresenter->render('
ability_level/eq','履约程度',request()->get('ability_level/eq'),config('field.AbilityLevel')
) !!}
</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