|
@@ -2022,7 +2022,7 @@
|
|
|
columns.forEach((column, index) => {
|
|
|
if (index === 0) {
|
|
|
sums[index] = '总计'
|
|
|
- } else if ( index ===10 || index ===11 || index ===12 ) {
|
|
|
+ } else if ( index ===13 || index ===11 || index ===12 ) {
|
|
|
const values = data.map(item => Number(item[column.property]))
|
|
|
if (!values.every(value => isNaN(value))) {
|
|
|
sums[index] = values.reduce((prev, curr) => {
|
|
@@ -2033,6 +2033,9 @@
|
|
|
return prev
|
|
|
}
|
|
|
}, 0)
|
|
|
+ if(index ===13 || index ===12){
|
|
|
+ sums[index] = (sums[index]/1000).toFixed(2) + '吨'
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
})
|
|
@@ -2999,6 +3002,7 @@
|
|
|
this.$set(this.dataList[li], 'fBsdate', Date.parse(this.dataList[li].fBsdate))
|
|
|
this.$set(this.dataList[li], 'fBusinessType', this.dataList[li].fBusinessType + '')
|
|
|
}
|
|
|
+ this.getList()
|
|
|
})
|
|
|
}
|
|
|
})
|