Commit b6fe4b95 by 杨树贤

fix

parent 1c44a6b5
...@@ -346,11 +346,17 @@ ...@@ -346,11 +346,17 @@
{field: 'average_sku_num', title: '日均上架数', align: 'center', width: 100}, {field: 'average_sku_num', title: '日均上架数', align: 'center', width: 100},
{ {
field: 'is_sku_expire', title: '商品是否过期', align: 'center', width: 130, templet: function (data) { field: 'is_sku_expire', title: '商品是否过期', align: 'center', width: 130, templet: function (data) {
if (Number(data.sku_expired_in_days) === 1000) {
return '无SKU';
}
return data.sku_expired_in_days > 0 ? '<span style="color: red;"></span>' : '否'; return data.sku_expired_in_days > 0 ? '<span style="color: red;"></span>' : '否';
} }
}, },
{ {
field: 'sku_expired_in_days', title: '商品过期天数', align: 'center', width: 130, templet: function (data) { field: 'sku_expired_in_days', title: '商品过期天数', align: 'center', width: 130, templet: function (data) {
if (Number(data.sku_expired_in_days) === 1000) {
return '无SKU';
}
if (data.sku_expired_in_days > 0) { if (data.sku_expired_in_days > 0) {
return '<span style="color: red;">' + data.sku_expired_in_days + '</span>'; return '<span style="color: red;">' + data.sku_expired_in_days + '</span>';
} }
......
...@@ -346,11 +346,17 @@ ...@@ -346,11 +346,17 @@
{field: 'average_sku_num', title: '日均上架数', align: 'center', width: 100}, {field: 'average_sku_num', title: '日均上架数', align: 'center', width: 100},
{ {
field: 'is_sku_expire', title: '商品是否过期', align: 'center', width: 130, templet: function (data) { field: 'is_sku_expire', title: '商品是否过期', align: 'center', width: 130, templet: function (data) {
if (Number(data.sku_expired_in_days) === 1000) {
return '无SKU';
}
return data.sku_expired_in_days > 0 ? '<span style="color: red;"></span>' : '否'; return data.sku_expired_in_days > 0 ? '<span style="color: red;"></span>' : '否';
} }
}, },
{ {
field: 'sku_expired_in_days', title: '商品过期天数', align: 'center', width: 130, templet: function (data) { field: 'sku_expired_in_days', title: '商品过期天数', align: 'center', width: 130, templet: function (data) {
if (Number(data.sku_expired_in_days) === 1000) {
return '无SKU';
}
if (data.sku_expired_in_days > 0) { if (data.sku_expired_in_days > 0) {
return '<span style="color: red;">' + data.sku_expired_in_days + '</span>'; return '<span style="color: red;">' + data.sku_expired_in_days + '</span>';
} }
......
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