...
|
...
|
@@ -56,10 +56,11 @@ export default { |
|
|
// checkedFields: [],
|
|
|
card:{
|
|
|
rows:[
|
|
|
{name:"库存总金额(元)",value:"89004.00"},
|
|
|
{name:"库存总金额(元)",value:"89004.00"},
|
|
|
{name:"库存总金额(元)",value:"89004.00"},
|
|
|
{name:"库存总金额(元)",value:"89004.00"}
|
|
|
{name:"库存总数量",value:"0"},
|
|
|
{name:"库存总金额(元)",value:"0"},
|
|
|
{name:"已上架商品数",value:"0"},
|
|
|
{name:"待上架商品数",value:"0"},
|
|
|
{name:"已下架商品数",value:"0"}
|
|
|
]
|
|
|
},
|
|
|
params:{
|
...
|
...
|
@@ -75,7 +76,23 @@ export default { |
|
|
grid:{
|
|
|
url:'/bigdata/getStorageStatisticsList',
|
|
|
columns:[
|
|
|
{name:'productSkn',display:'skn'}
|
|
|
{display:'图片',name:'imageUrl',render:function(item){
|
|
|
return item.imageUrl?'<img src="'+item.imageUrl+'">':"";
|
|
|
}},
|
|
|
{display:'SKN/SKU',name:'skn',render:function(item){
|
|
|
return '<p>SKN:'+item.productSkn+'</p><p>SKU:'+item.productSku+'</p>';
|
|
|
}},
|
|
|
{display:'厂家编号',name:'skn'},//goodsName
|
|
|
{display:'商品名称',name:'goodsName'},
|
|
|
{display:'进货价',name:'purchasePrice'},
|
|
|
{display:'颜色/尺码',name:'skn',render:function(item){
|
|
|
return [item.colorName,item.sizeName].join('/');
|
|
|
}},
|
|
|
{display:'商品分类',name:'skn',render:function(item){
|
|
|
return [item.maxSortName,item.middleSortName,item.smallSortName].join('-');
|
|
|
}},
|
|
|
{display:'库存数量',name:'storeNums'},
|
|
|
{display:'库存金额(元)',name:'storageAmount'}
|
|
|
]
|
|
|
}
|
|
|
}
|
...
|
...
|
@@ -90,8 +107,15 @@ export default { |
|
|
},
|
|
|
events:{
|
|
|
complete(data){
|
|
|
this.card.rows[0].value="wocao";
|
|
|
console.log(data);
|
|
|
let result=data.additionInfo;
|
|
|
if(result){
|
|
|
this.card.rows[0].value=result.storageTotalNum;
|
|
|
this.card.rows[1].value=result.storageTotalMoney;
|
|
|
this.card.rows[2].value=result.onSaleTotalNum;
|
|
|
this.card.rows[3].value=result.preSaleTotalNum;
|
|
|
this.card.rows[4].value=result.outSaleTotalNum;
|
|
|
}
|
|
|
|
|
|
}
|
|
|
}
|
|
|
}
|
...
|
...
|
|