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