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) } })