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
50d5d2d8
authored
Jul 31, 2024
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
字段名称
parent
1ebc9df0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
app/Http/Services/SkuService.php
resources/views/script/SkuListScript.blade.php
app/Http/Services/SkuService.php
View file @
50d5d2d8
...
@@ -64,6 +64,7 @@ class SkuService
...
@@ -64,6 +64,7 @@ class SkuService
//添加sku是否过期
//添加sku是否过期
$sku
[
'is_expire'
]
=
$data
[
'data'
][
'status'
][
$goodsId
]
&&
$data
[
'data'
][
'status'
][
$goodsId
]
>
0
?
0
:
1
;
$sku
[
'is_expire'
]
=
$data
[
'data'
][
'status'
][
$goodsId
]
&&
$data
[
'data'
][
'status'
][
$goodsId
]
>
0
?
0
:
1
;
$spu
=
json_decode
(
$spuRedis
->
hget
(
'spu'
,
$sku
[
'spu_id'
]),
true
);
$spu
=
json_decode
(
$spuRedis
->
hget
(
'spu'
,
$sku
[
'spu_id'
]),
true
);
$sku
[
'spu_name'
]
=
$spu
[
'spu_name'
];
//型号处理
//型号处理
if
(
empty
(
$sku
[
'goods_name'
])
&&
!
empty
(
$spu
))
{
if
(
empty
(
$sku
[
'goods_name'
])
&&
!
empty
(
$spu
))
{
$sku
[
'goods_name'
]
=
$spu
[
'spu_name'
];
$sku
[
'goods_name'
]
=
$spu
[
'spu_name'
];
...
...
resources/views/script/SkuListScript.blade.php
View file @
50d5d2d8
...
@@ -62,8 +62,9 @@
...
@@ -62,8 +62,9 @@
}
}
},
},
{
field
:
'encoded_user_name'
,
title
:
'线上采购员'
,
align
:
'center'
,
width
:
100
},
{
field
:
'encoded_user_name'
,
title
:
'线上采购员'
,
align
:
'center'
,
width
:
100
},
{
field
:
'spu_name'
,
title
:
'spu型号'
,
align
:
'center'
,
width
:
200
},
{
{
field
:
'goods_name'
,
title
:
'型号'
,
align
:
'center'
,
width
:
200
,
templet
:
function
(
data
)
{
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'
>
"
return
"
<
a
href
=
'{{config('
website
.
FootstoneUrl
')}}/web/sku/saveSku?goods_id=" + data.goods_id + "'
style
=
'color:blue'
target
=
'_blank'
>
"
+ data.goods_name + "
<
/href>
"
+ data.goods_name + "
<
/href>
"
}
}
...
...
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