|
|
|
|
@ -70,30 +70,7 @@
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<!-- 底部区域 -->
|
|
|
|
|
<el-row :gutter="20" class="mt-20px">
|
|
|
|
|
<el-col :span="7">
|
|
|
|
|
<!-- 左下:实时滚动信息 -->
|
|
|
|
|
<el-card shadow="always">
|
|
|
|
|
<template #header>
|
|
|
|
|
<div class="card-header">
|
|
|
|
|
<span>盘点饼状图</span>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<Echart style="width: 100%; height: 200px" :options="stockPieOptions" />
|
|
|
|
|
</el-card>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="17">
|
|
|
|
|
<el-card shadow="always">
|
|
|
|
|
<template #header>
|
|
|
|
|
<div class="card-header">
|
|
|
|
|
<span>随行折线图</span>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<Echart style="width: 100%; height: 200px" :options="laneInventoryLineOptions" />
|
|
|
|
|
</el-card>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
</ContentWrap>
|
|
|
|
|
</template>
|
|
|
|
|
<script setup lang="ts">
|
|
|
|
|
@ -139,7 +116,7 @@ const getAll = async () => {
|
|
|
|
|
try {
|
|
|
|
|
statistics.value = await homeApi.statistics()
|
|
|
|
|
laneInventoryStatistics.value = await homeApi.laneInventoryStatistics()
|
|
|
|
|
laneInventoryLine.value = await homeApi.laneInventoryLine()
|
|
|
|
|
// laneInventoryLine.value = await homeApi.laneInventoryLine()
|
|
|
|
|
stockLaneInventoryStatistics.value = await homeApi.stockLaneInventoryStatistics()
|
|
|
|
|
|
|
|
|
|
const chartData = stockLaneInventoryStatistics.value
|
|
|
|
|
@ -191,7 +168,7 @@ const getAll = async () => {
|
|
|
|
|
xAxis: laneInventoryStatistics.value.xaxis,
|
|
|
|
|
yAxis: {
|
|
|
|
|
type: 'value',
|
|
|
|
|
interval: 1, // 设置步长为 1
|
|
|
|
|
minInterval: 1, // 设置步长为 1
|
|
|
|
|
splitNumber: 5 // 尝试把轴分成 5 段
|
|
|
|
|
},
|
|
|
|
|
series: laneInventoryStatistics.value.series
|
|
|
|
|
|