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