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
5508e22d
authored
Mar 04, 2024
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
sku字段和筛选
parent
ba8331a1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
0 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 @
5508e22d
...
...
@@ -64,6 +64,7 @@ class SkuService
$sku
[
'is_expire'
]
=
$data
[
'data'
][
'status'
][
$goodsId
]
&&
$data
[
'data'
][
'status'
][
$goodsId
]
>
0
?
0
:
1
;
$spu
=
json_decode
(
$spuRedis
->
hget
(
'spu'
,
$sku
[
'spu_id'
]),
true
);
//型号处理
$sku
[
'original_goods_name'
]
=
$sku
[
'goods_name'
];
if
(
empty
(
$sku
[
'goods_name'
])
&&
!
empty
(
$spu
))
{
$sku
[
'goods_name'
]
=
$spu
[
'spu_name'
];
}
...
...
config/field.php
View file @
5508e22d
...
...
@@ -320,5 +320,10 @@ return [
2
=>
'采购已通过'
,
3
=>
'采购未通过'
,
4
=>
'采购未反馈'
,
],
'OrgList'
=>
[
1
=>
'猎芯科技'
,
3
=>
'深圳华云'
,
]
];
resources/views/script/SkuListScript.blade.php
View file @
5508e22d
...
...
@@ -62,6 +62,7 @@
}
},
{
field
:
'encoded_user_name'
,
title
:
'线上采购员'
,
align
:
'center'
,
width
:
100
},
{
field
:
'original_goods_name'
,
title
:
'商品名称'
,
align
:
'center'
,
width
:
150
},
{
field
:
'goods_name'
,
title
:
'型号'
,
align
:
'center'
,
width
:
200
,
templet
:
function
(
data
)
{
return
"
<
a
href
=
'{{config('
website
.
FootstoneUrl
')}}/web/sku/saveSku?goods_id=" + data.goods_id + "'
style
=
'color:blue'
target
=
'_blank'
>
"
...
...
resources/views/web/sku/SkuListFilter.blade.php
View file @
5508e22d
...
...
@@ -146,6 +146,10 @@
@inject('statusPresenter','App\Presenters\StatusPresenter')
{!! $statusPresenter->render('has_price','有无价格',request()->get('has_price'),['1'=> '有','-1'=> '无']) !!}
</div>
<div
class=
"layui-inline"
>
@inject('statusPresenter','App\Presenters\StatusPresenter')
{!! $statusPresenter->render('组织','有无价格',request()->get('org_id'),config('field.OrgList')) !!}
</div>
<div
class=
"layui-inline"
style=
"width: 600px"
>
@inject('transformableTimeIntervalPresenter','App\Presenters\Filter\TransformableTimeIntervalPresenter')
{!! $transformableTimeIntervalPresenter->render(['update_time'=>'更新时间','create_time'=>'上传时间']) !!}
...
...
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