数据
This commit is contained in:
@@ -645,8 +645,9 @@ export default {
|
||||
seriesData.push({name: e.materialCode, value: e.qty})
|
||||
seriesName.push({name: e.materialCode})
|
||||
})
|
||||
let total = this.inventory.reduce((a, b) => {
|
||||
return a + Number(b.value)
|
||||
let total = 0
|
||||
this.inventory.map(e => {
|
||||
total = total + e.qty
|
||||
}, 0)
|
||||
let option = {
|
||||
color: colors,
|
||||
@@ -666,7 +667,7 @@ export default {
|
||||
subtext: total,
|
||||
textAlign: 'center',
|
||||
textStyle: {
|
||||
fontSize: 16,
|
||||
fontSize: 14,
|
||||
lineHeight: 20,
|
||||
color: '#A8C3E6',
|
||||
fontFamily: 'SourceHanSansCN-Regular'
|
||||
|
||||
Reference in New Issue
Block a user