|
@@ -359,7 +359,7 @@ export default {
|
|
columns.forEach((column, index) => {
|
|
columns.forEach((column, index) => {
|
|
if (index === 0) {
|
|
if (index === 0) {
|
|
sums[index] = '合计'
|
|
sums[index] = '合计'
|
|
- } else if (index === 5 || index === 7 || index === 8 || index === 9) {
|
|
|
|
|
|
+ } else if (index === 4 || index === 10 || index === 8 || index === 9|| index === 12 || index === 13 || index === 14 ) {
|
|
const values = data.map(item => Number(item[column.property]))
|
|
const values = data.map(item => Number(item[column.property]))
|
|
if (!values.every(value => isNaN(value))) {
|
|
if (!values.every(value => isNaN(value))) {
|
|
sums[index] = values.reduce((prev, curr) => {
|
|
sums[index] = values.reduce((prev, curr) => {
|