调整
This commit is contained in:
@@ -33,34 +33,22 @@
|
|||||||
</template>
|
</template>
|
||||||
</ai-search-bar>
|
</ai-search-bar>
|
||||||
<div>
|
<div>
|
||||||
|
<ai-card :hideTitle="true" :panel="true">
|
||||||
<el-row :gutter="20">
|
<el-row :gutter="20">
|
||||||
<el-col :span="6">
|
<el-col :span="6">
|
||||||
<div><el-statistic group-separator="," :precision="2" :value="value2" :title="title"></el-statistic></div>
|
<div><el-statistic title="今天销量" :value="todayTotal"></el-statistic></div>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="6">
|
<el-col :span="6">
|
||||||
<div><el-statistic title="今天销量"><template slot="formatter"> 456/2 </template></el-statistic></div>
|
<div><el-statistic title="今天销售额" group-separator="," :precision="2" :value="todayMoney"></el-statistic></div>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="6">
|
<el-col :span="6">
|
||||||
<div>
|
<div><el-statistic title="库存总量" :value="inventoryTotal"></el-statistic></div>
|
||||||
<el-statistic group-separator="," :precision="2" decimal-separator="." :value="11111" title="t11itle">
|
|
||||||
<template slot="prefix"><i class="el-icon-s-flag" style="color: red"></i></template>
|
|
||||||
<template slot="suffix"><i class="el-icon-s-flag" style="color: blue"></i></template>
|
|
||||||
</el-statistic>
|
|
||||||
</div>
|
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="6">
|
<el-col :span="6">
|
||||||
<div>
|
<div><el-statistic title="库存总额" group-separator="," :precision="2" :value="inventoryMoeny"></el-statistic></div>
|
||||||
<el-statistic :value="like ? 521 : 520" title="Feedback">
|
|
||||||
<template slot="suffix">
|
|
||||||
<span @click="like = !like" class="like">
|
|
||||||
<i class="el-icon-star-on" style="color:red" v-show="!!like"></i>
|
|
||||||
<i class="el-icon-star-off" v-show="!like"></i>
|
|
||||||
</span>
|
|
||||||
</template>
|
|
||||||
</el-statistic>
|
|
||||||
</div>
|
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
</ai-card>
|
||||||
</div>
|
</div>
|
||||||
<ai-table
|
<ai-table
|
||||||
:isShowPagination="false"
|
:isShowPagination="false"
|
||||||
@@ -88,6 +76,10 @@ import { Message } from 'element-ui'
|
|||||||
mallId: '',
|
mallId: '',
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
currentPage: 1,
|
currentPage: 1,
|
||||||
|
todayTotal: 0,
|
||||||
|
todayMoney: 0.0,
|
||||||
|
inventoryTotal: 0,
|
||||||
|
inventoryMoeny: 0.0,
|
||||||
colConfigs: [
|
colConfigs: [
|
||||||
{
|
{
|
||||||
prop: 'productName',
|
prop: 'productName',
|
||||||
@@ -137,7 +129,7 @@ import { Message } from 'element-ui'
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'productTotalPrice',
|
prop: 'productTotalPrice',
|
||||||
label: '货值(CNY)',
|
label: '库存货值(CNY)',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
fixed: "right"
|
fixed: "right"
|
||||||
},
|
},
|
||||||
@@ -187,7 +179,7 @@ import { Message } from 'element-ui'
|
|||||||
"非VMI备货单数 - 发货延迟": "notVmiOrderInfo.deliveryDelayNum",
|
"非VMI备货单数 - 发货延迟": "notVmiOrderInfo.deliveryDelayNum",
|
||||||
"非VMI备货单数 - 到货延迟": "notVmiOrderInfo.arrivalDelayNum",
|
"非VMI备货单数 - 到货延迟": "notVmiOrderInfo.arrivalDelayNum",
|
||||||
"备货逻辑": "purchaseConfig",
|
"备货逻辑": "purchaseConfig",
|
||||||
"货值(CNY)": "productTotalPrice",
|
"库存货值(CNY)": "productTotalPrice",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -202,6 +194,10 @@ import { Message } from 'element-ui'
|
|||||||
methods: {
|
methods: {
|
||||||
beforeGetList() {
|
beforeGetList() {
|
||||||
this.list = []
|
this.list = []
|
||||||
|
this.todayMoney = 0.0
|
||||||
|
this.todayTotal = 0
|
||||||
|
this.inventoryMoeny = 0.0
|
||||||
|
this.inventoryTotal = 0
|
||||||
if (!this.mallId) {
|
if (!this.mallId) {
|
||||||
Message.error("请先选择店铺")
|
Message.error("请先选择店铺")
|
||||||
return
|
return
|
||||||
@@ -236,17 +232,24 @@ import { Message } from 'element-ui'
|
|||||||
data = {...data, ...item.skuQuantityDetailList[j],
|
data = {...data, ...item.skuQuantityDetailList[j],
|
||||||
productTotalPrice: ((item.skuQuantityDetailList[j].supplierPrice / 100) * item.skuQuantityDetailList[j].inventoryNumInfo.warehouseInventoryNum).toFixed(2),
|
productTotalPrice: ((item.skuQuantityDetailList[j].supplierPrice / 100) * item.skuQuantityDetailList[j].inventoryNumInfo.warehouseInventoryNum).toFixed(2),
|
||||||
warehouseInventoryNum: item.skuQuantityDetailList[j].inventoryNumInfo.warehouseInventoryNum}
|
warehouseInventoryNum: item.skuQuantityDetailList[j].inventoryNumInfo.warehouseInventoryNum}
|
||||||
|
|
||||||
|
this.todayTotal += item.skuQuantityDetailList[j].todaySaleVolume
|
||||||
|
this.todayMoney += new Number(((item.skuQuantityDetailList[j].supplierPrice / 100) * item.skuQuantityDetailList[j].todaySaleVolume).toFixed(2))
|
||||||
|
this.inventoryTotal += item.skuQuantityDetailList[j].inventoryNumInfo.warehouseInventoryNum
|
||||||
|
this.inventoryMoeny += new Number(((item.skuQuantityDetailList[j].supplierPrice / 100) * item.skuQuantityDetailList[j].inventoryNumInfo.warehouseInventoryNum).toFixed(2))
|
||||||
this.list.push(data);
|
this.list.push(data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (this.pageSize == res.result.subOrderList.length) {
|
if (this.pageSize == res.result.subOrderList.length) {
|
||||||
this.currentPage ++
|
this.currentPage ++
|
||||||
|
setTimeout(() => {
|
||||||
this.getList()
|
this.getList()
|
||||||
|
}, 1000)
|
||||||
} else {
|
} else {
|
||||||
Message.success('销售数据加载完成,可进行导出')
|
Message.success('销售数据加载完成,可进行导出')
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
Message.error("【拼多多】" + res.errorMsg)
|
Message.error("【拼多多】" + res.errorMsg + ", 请重新尝试加载")
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user