From 97e6a665de483f63e72d9ec0601af56b4dc7468d Mon Sep 17 00:00:00 2001 From: zwq Date: Tue, 7 Nov 2023 15:49:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BB=93=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/warehouse/chart/BarChart.vue | 52 ++++----- src/views/warehouse/chart/PieChart.vue | 4 +- .../end-material/InventoryOverview/index.vue | 101 +++++++++++++----- .../warehouseLocationHis/index.vue | 12 ++- .../warehouseLocationMonitoring/index.vue | 15 ++- .../warehouseRealtimeLocation/index.vue | 12 ++- .../out-material/InventoryOverview/index.vue | 101 +++++++++++++----- .../warehouseLocationHis/index.vue | 12 ++- .../warehouseLocationMonitoring/index.vue | 15 ++- .../warehouseRealtimeLocation/index.vue | 12 ++- .../InventoryOverview/index.vue | 101 +++++++++++++----- .../warehouseLocationHis/index.vue | 12 ++- .../warehouseLocationMonitoring/index.vue | 15 ++- .../warehouseRealtimeLocation/index.vue | 12 ++- .../part-material/InventoryOverview/index.vue | 101 +++++++++++++----- .../warehouseLocationHis/index.vue | 12 ++- .../warehouseLocationMonitoring/index.vue | 15 ++- .../warehouseRealtimeLocation/index.vue | 12 ++- .../raw-material/InventoryOverview/index.vue | 101 +++++++++++++----- .../warehouseLocationHis/index.vue | 12 ++- .../warehouseLocationMonitoring/index.vue | 15 ++- .../warehouseRealtimeLocation/index.vue | 16 ++- 22 files changed, 556 insertions(+), 204 deletions(-) diff --git a/src/views/warehouse/chart/BarChart.vue b/src/views/warehouse/chart/BarChart.vue index f3e66592..01e64a95 100644 --- a/src/views/warehouse/chart/BarChart.vue +++ b/src/views/warehouse/chart/BarChart.vue @@ -60,31 +60,31 @@ export default { this.chart = echarts.init(this.$el, 'macarons'); this.chart.setOption({ - title: { - text: this.title - ? '{space|}{tip|}{space|}{value|' + this.title + '}' - : '', - left: '0%', - top: '0%', - textStyle: { - rich: { - tip: { - width: 4, - height: 18, - backgroundColor: '#0B58FF', - marginRight: 6, - }, - space: { - width: 8, - }, - value: { - fontSize: 16, - fontWeight: 'bold', - color: 'black', - }, - }, - }, - }, + // title: { + // text: this.title + // ? '{space|}{tip|}{space|}{value|' + this.title + '}' + // : '', + // left: '0%', + // top: '0%', + // textStyle: { + // rich: { + // tip: { + // width: 4, + // height: 18, + // backgroundColor: '#0B58FF', + // marginRight: 6, + // }, + // space: { + // width: 8, + // }, + // value: { + // fontSize: 16, + // fontWeight: 'bold', + // color: 'black', + // }, + // }, + // }, + // }, color: ['#288AFF', '#8EF0AB', '#FFDC94'], tooltip: { trigger: 'axis', @@ -148,6 +148,7 @@ export default { yAxis: [ { gridIndex: 0, + name: '库存数量', axisTick: { show: false, }, @@ -160,6 +161,7 @@ export default { }, { gridIndex: 1, + name: '剩余使用天数', axisTick: { show: false, }, diff --git a/src/views/warehouse/chart/PieChart.vue b/src/views/warehouse/chart/PieChart.vue index 28526e0c..a0aee033 100644 --- a/src/views/warehouse/chart/PieChart.vue +++ b/src/views/warehouse/chart/PieChart.vue @@ -59,7 +59,7 @@ export default { zlevel: 2, // 控制圆环图中间的字的层级 text: '总数', subtext: totalNumber, - top: '42%', // 控制位置 + top: '35%', // 控制位置 left: '50%', // 控制位置 textAlign: 'center', // 让文字居中 textStyle: { @@ -72,7 +72,7 @@ export default { tooltip: { trigger: 'item', show: true, // 控制鼠标悬浮是否显示数据 - formatter: '产品: {b}
数量: {c}
占比: {d}%', + formatter: '{b}
数量: {c}
占比: {d}%', }, legend: { orient: 'vartical', diff --git a/src/views/warehouse/end-material/InventoryOverview/index.vue b/src/views/warehouse/end-material/InventoryOverview/index.vue index 5d34cee9..53bea0f5 100644 --- a/src/views/warehouse/end-material/InventoryOverview/index.vue +++ b/src/views/warehouse/end-material/InventoryOverview/index.vue @@ -2,16 +2,20 @@ * @Author: zwq * @Date: 2023-08-22 15:01:54 * @LastEditors: zwq - * @LastEditTime: 2023-11-04 16:32:13 + * @LastEditTime: 2023-11-07 14:12:00 * @Description: --> @@ -36,46 +42,62 @@