|
|
@@ -21,7 +21,7 @@
|
|
|
<el-divider></el-divider>
|
|
|
<div class="flex gap-4">
|
|
|
<div class="flex-1 stat-card">
|
|
|
- <stat-card title="回收订单数"></stat-card>
|
|
|
+ <stat-card title="回收订单数" :data="historyData.orderNumCharts" :chatAxis="historyData.chatAxis"></stat-card>
|
|
|
</div>
|
|
|
<div class="flex-1 stat-card">
|
|
|
<stat-card title="回收数量(本)"></stat-card>
|
|
|
@@ -61,30 +61,30 @@
|
|
|
<div style="flex: 4" class="flex flex-col">
|
|
|
<div class="flex gap-4">
|
|
|
<div class="flex-1 stat-card">
|
|
|
- <stat-card title="回收订单数"></stat-card>
|
|
|
+ <stat-card title="回收订单数" :data="historyData.orderNumCharts" :chatAxis="historyData.chatAxis" :value="historyData.orderNum"></stat-card>
|
|
|
</div>
|
|
|
<div class="flex-1 stat-card">
|
|
|
- <stat-card title="回收数量(本)"></stat-card>
|
|
|
+ <stat-card title="回收数量(本)" :value="historyData.bookNum" :data="historyData.bookNumCharts" :chatAxis="historyData.chatAxis"></stat-card>
|
|
|
</div>
|
|
|
<div class="flex-1 stat-card">
|
|
|
- <stat-card title="回收单本均价"></stat-card>
|
|
|
+ <stat-card title="回收单本均价" :value="historyData.recycleAveragePrice" :data="historyData.recycleAveragePriceCharts" :chatAxis="historyData.chatAxis"></stat-card>
|
|
|
</div>
|
|
|
<div class="flex-1 stat-card">
|
|
|
- <stat-card title="审核订单数"></stat-card>
|
|
|
+ <stat-card title="审核订单数" :value="historyData.auditNum" :data="historyData.auditNumCharts" :chatAxis="historyData.chatAxis"></stat-card>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="flex gap-4 mt-4">
|
|
|
<div class="flex-1 stat-card">
|
|
|
- <stat-card title="签收订单数"></stat-card>
|
|
|
+ <stat-card title="签收订单数" :value="historyData.signOrderNum" :data="historyData.signOrderNumCharts" :chatAxis="historyData.chatAxis"></stat-card>
|
|
|
</div>
|
|
|
<div class="flex-1 stat-card">
|
|
|
- <stat-card title="扫描次数"></stat-card>
|
|
|
+ <stat-card title="扫描次数" :value="historyData.scanTimes" :data="historyData.scanTimesCharts" :chatAxis="historyData.chatAxis"></stat-card>
|
|
|
</div>
|
|
|
<div class="flex-1 stat-card">
|
|
|
- <stat-card title="扫描人数"></stat-card>
|
|
|
+ <stat-card title="扫描人数" :value="historyData.scanUserNum" :data="historyData.scanUserNumCharts" :chatAxis="historyData.chatAxis"></stat-card>
|
|
|
</div>
|
|
|
<div class="flex-1 stat-card">
|
|
|
- <stat-card title="用户增长数"></stat-card>
|
|
|
+ <stat-card title="用户增长数" :value="historyData.userRegNum" :data="historyData.userRegNumCharts" :chatAxis="historyData.chatAxis"></stat-card>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -135,6 +135,10 @@ const auditRatioData = ref([
|
|
|
]);
|
|
|
|
|
|
//获取历史数据汇总
|
|
|
+const historyData = ref({
|
|
|
+ orderNumCharts: [],
|
|
|
+ chatAxis: [],
|
|
|
+});
|
|
|
const fetchHistoryData = async () => {
|
|
|
let params = {
|
|
|
statisticDateStart: dateRange.value[0],
|
|
|
@@ -149,6 +153,7 @@ const fetchHistoryData = async () => {
|
|
|
auditRatioData.value.forEach((item) => {
|
|
|
item.value = res.data.data[item.key] || 0;
|
|
|
});
|
|
|
+ historyData.value = res.data.data;
|
|
|
}
|
|
|
});
|
|
|
};
|