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