Merge pull request '更新' (#22) from zyj into master

Reviewed-on: #22
pull/24/head^2
zhangyouji 1 year ago
commit ec225b7a02
  1. 17
      src/views/oilFinalStatement/oilFinalStatementListInfo.vue

@ -215,7 +215,7 @@ export default {
],
tableColumns: [
{
prop: 'orderSerialNumber',
prop: 'id',
minWidth: 180,
label: '订单号',
show: true,
@ -367,21 +367,6 @@ export default {
sums[index] = '合计'
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) {
switch (
column.property // column.property

Loading…
Cancel
Save