This commit is contained in:
2024-01-08 16:18:21 +08:00
parent 6b0ee6b02f
commit ba8de0f965

View File

@@ -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'