pull/22/head
zhangyouji 1 year ago
parent 75b5e3f91b
commit d1a7142f19
  1. 17
      src/views/oilFinalStatement/oilFinalStatementListInfo.vue

@ -218,7 +218,7 @@ export default {
], ],
tableColumns: [ tableColumns: [
{ {
prop: 'orderSerialNumber', prop: 'id',
minWidth: 180, minWidth: 180,
label: '订单号', label: '订单号',
show: true, show: true,
@ -370,21 +370,6 @@ export default {
sums[index] = '合计' sums[index] = '合计'
return return
} }
const values = data.map(item => Number(item[column.property]))
if (!values.every(value => isNaN(value))) {
sums[index] = values.reduce((prev, curr) => {
const value = Number(curr)
if (!isNaN(value)) {
return prev + curr
} else {
return prev
}
}, 0)
sums[index] = sums[index].toFixed(2)
sums[index] += ' 元'
} else {
sums[index] = ''
}
if (this.importData.settlementType == 1) { if (this.importData.settlementType == 1) {
switch ( switch (
column.property // column.property column.property // column.property

Loading…
Cancel
Save