Commit 50d5d2d8 by 杨树贤

字段名称

parent 1ebc9df0
...@@ -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'];
......
...@@ -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>"
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment