...
|
...
|
@@ -130,13 +130,28 @@ var g = new common.grid({ |
|
|
}
|
|
|
},
|
|
|
columns: [
|
|
|
{display: '图片', name: 'product_skn'},
|
|
|
{
|
|
|
display: '图片',
|
|
|
name: 'product_pic_url',
|
|
|
render: function (item) {
|
|
|
if (item.product_pic_url) {
|
|
|
return '<a class="list-img" target="_blank" href="' + item.product_pic_url + '">' +
|
|
|
'<img src="' + item.product_pic_url + '"></a>';
|
|
|
} else {
|
|
|
return '';
|
|
|
}
|
|
|
|
|
|
}},
|
|
|
{display: '商品信息', render: function(item) {
|
|
|
var html = '<p>名称:' + item.product_name + '</p><p>品牌:' + item.brand_name + '</p>' +
|
|
|
'<div>类目:'+ item.middle_sort_name;
|
|
|
var html = '<p>SKN:'+item.product_skn +'</p><p>名称:' + item.product_name + '</p><p>品牌:' + item.brand_name + '</p>' +
|
|
|
'<div>类目:'+'<br>'+ item.middle_sort_name;
|
|
|
if(item.middle_sort_name) {html += ' > ' + item.middle_sort_name;}
|
|
|
if(item.small_sort_name) {html += ' > ' + item.small_sort_name;}
|
|
|
return html + "</div>";
|
|
|
html += "</div><p>";
|
|
|
html += '<p>性别:'+ENUM.gender[item.gender]+'</p>';
|
|
|
html += '<p>货品年:'+item.goodsYears+'</p>';
|
|
|
html += '<p>货品季:'+item.goodsSeason+'</p>';
|
|
|
return html;
|
|
|
}},
|
|
|
{display: '供应商/店铺', render: function(item) {
|
|
|
var html = '';
|
...
|
...
|
@@ -148,17 +163,43 @@ var g = new common.grid({ |
|
|
return html;
|
|
|
}},
|
|
|
{display: '日期信息', render: function(item) {
|
|
|
return ENUM.gender[item.gender];
|
|
|
var html = '<p>预计上架时间:'+'<br>'+item.updateTime +'</p>';
|
|
|
html += '<p>最近入库:'+'<br>'+item.updateTime +'</p>';
|
|
|
html += '<p>最近一次变价时间:'+'<br>'+item.updateTime +'</p>';
|
|
|
return html;
|
|
|
}},
|
|
|
{display: '累计数据', render: function(item) {
|
|
|
var html = '<p>进货量:'+'<br>'+0 +'</p>';
|
|
|
html += '<p>售罄率:'+'<br>'+0 +'</p>';
|
|
|
return html;
|
|
|
}},
|
|
|
{display: '近15天信息', render: function(item) {
|
|
|
var html = '<p>销售量:'+'<br>'+0 +'</p>';
|
|
|
html += '<p>成交天数:'+'<br>'+0 +'</p>';
|
|
|
return html;
|
|
|
}},
|
|
|
{display: '库存信息', render: function(item) {
|
|
|
var html = '<p>库存量:'+'<br>'+0 +'</p>';
|
|
|
html += '<p>周转天数:'+'<br>'+0 +'</p>';
|
|
|
return html;
|
|
|
}},
|
|
|
{display: '累计数据', name: 'retail_price'},
|
|
|
{display: '近14天信息', name: 'sales_price'},
|
|
|
{display: '库存信息', name: 'student_price'},
|
|
|
{display: '当前售价', render: function(item) {
|
|
|
var html = '<p>吊牌价:'+item.retail_price +'</p>';
|
|
|
html += '<p>销售价:'+item.sales_price +'</p>';
|
|
|
if (item.student_price) {html += '<p>学生价:'+item.student_price +'</p>';}
|
|
|
return html;
|
|
|
}},
|
|
|
{display: 'VIP折扣类型', render: function(item) {
|
|
|
return ENUM.vipType[item.vip_discount_type];
|
|
|
}},
|
|
|
{display: 'VIP折扣类型', name: 'vip_price'},
|
|
|
{display: '会员价', name: 'vip3_price'},
|
|
|
{display: '库存成本价', name: 'vip2_price'},
|
|
|
{display: '会员价', render: function(item) {
|
|
|
var html = '<p>VIP价:'+item.vip_price +'</p>';
|
|
|
html += '<p>白金:'+item.vip3_price +'</p>';
|
|
|
html += '<p>金卡:'+item.vip2_price +'</p>';
|
|
|
html += '<p>银卡:'+item.vip1_price +'</p>';
|
|
|
return html;
|
|
|
}},
|
|
|
{display: '库存成本价', name: ''},
|
|
|
{display: '操作信息', render: function(item) {
|
|
|
var html = '';
|
|
|
if (item.founder_name) {html += '<p>' + item.founder_name + '</p>';}
|
...
|
...
|
|