From b0550b2e106af95010f3c42cb2a3144704bb4a52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E7=AC=99=E6=AD=8C?= <2277317060@qq.com> Date: Thu, 5 Dec 2024 16:54:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9B=BE=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hw-ui/src/views/board/warehouse/fifthFloor.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/hw-ui/src/views/board/warehouse/fifthFloor.vue b/hw-ui/src/views/board/warehouse/fifthFloor.vue index dca4f3e1..c6ec2e82 100644 --- a/hw-ui/src/views/board/warehouse/fifthFloor.vue +++ b/hw-ui/src/views/board/warehouse/fifthFloor.vue @@ -326,7 +326,7 @@ export default { }, tooltip:{ pointFormatter: function() { - return '占比:'+ this.options.y + '%' + return '占比:'+ this.options.y + '%' +'
'+'数量:' + this.options.z } }, credits: { @@ -398,7 +398,8 @@ export default { data: e.data.wmsRawStocks.map(v => { return { name: v.materialName, - y: v.totalAmount, + z:v.totalAmount, + y: parseFloat(((v.totalAmount/total)*100).toFixed(1)), h: Math.min(parseFloat(((v.totalAmount / total) * 100).toFixed(2)),50) } }) @@ -414,7 +415,7 @@ export default { }, tooltip:{ pointFormatter: function() { - return '占比:'+ this.options.y + '%' + return '占比:'+ this.options.y + '%' +'
'+'数量:' + this.options.z } }, credits: { @@ -486,7 +487,8 @@ export default { data: e.data.productStocks.map(v => { return { name: v.materialName, - y: v.totalAmount, + z: v.totalAmount, + y: parseFloat(((v.totalAmount/total1)*100).toFixed(1)), h: Math.min(parseFloat(((v.totalAmount / total1) * 100).toFixed(2)),50) } })