...
|
...
|
@@ -18,7 +18,7 @@ |
|
|
|
|
|
<div class="panel">
|
|
|
<div class="panel-heading">
|
|
|
<h2>——4月19日库存报表——</h2>
|
|
|
<h2>——{{dateId}}库存报表——</h2>
|
|
|
</div>
|
|
|
|
|
|
<div class="panel-body nopadding">
|
...
|
...
|
@@ -44,7 +44,7 @@ |
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
selects: ViewModel.data,
|
|
|
dateId: "",
|
|
|
cards: [
|
|
|
{name: "库存总数量", value: "0"},
|
|
|
{name: "库存总金额(元)", value: "0"},
|
...
|
...
|
@@ -58,7 +58,8 @@ |
|
|
productSku: "",
|
|
|
maxSortId: "",
|
|
|
middleSortId: "",
|
|
|
smallSortId: ""
|
|
|
smallSortId: "",
|
|
|
sortList: []
|
|
|
},
|
|
|
grid: {
|
|
|
url: '/bigdata/getStorageStatisticsList',
|
...
|
...
|
@@ -96,12 +97,19 @@ |
|
|
this.reload();
|
|
|
},
|
|
|
methods: {
|
|
|
reload() {
|
|
|
reload()
|
|
|
{
|
|
|
if (this.params.sortList.length > 0) {
|
|
|
this.params.maxSortId = this.params.sortList[0]?this.params.sortList[0].id:"";
|
|
|
this.params.middleSortId = this.params.sortList[1]?this.params.sortList[1].id:"";
|
|
|
this.params.smallSortId = this.params.sortList[2]?this.params.sortList[2].id:"";
|
|
|
}
|
|
|
this.$broadcast('grid-reload', this.params);
|
|
|
}
|
|
|
},
|
|
|
events: {
|
|
|
complete(data){
|
|
|
complete(data)
|
|
|
{
|
|
|
let result = data.additionInfo;
|
|
|
if (result) {
|
|
|
this.cards[0].value = result.storageTotalNum ? result.storageTotalNum : 0;
|
...
|
...
|
@@ -109,6 +117,10 @@ |
|
|
this.cards[2].value = result.onSaleTotalNum ? result.onSaleTotalNum : 0;
|
|
|
this.cards[3].value = result.preSaleTotalNum ? result.preSaleTotalNum : 0;
|
|
|
this.cards[4].value = result.outSaleTotalNum ? result.outSaleTotalNum : 0;
|
|
|
result.dateId = result.dateId + "";
|
|
|
let month = result.dateId.substr(4, 2);
|
|
|
let date = result.dateId.substr(6, 2);
|
|
|
this.dateId = month + "月" + date + "日";
|
|
|
}
|
|
|
|
|
|
}
|
...
|
...
|
|