This commit is contained in:
liushuai
2020-03-24 17:40:29 +08:00
parent b52efdee42
commit 95c0bcf29b
9 changed files with 547 additions and 185 deletions

View File

@@ -52,9 +52,9 @@
{{ scope.row.采购合同编号 ? scope.row.采购合同编号 : scope.row.离线合同编号 }}
</template>
</el-table-column>
<el-table-column width="110" align="center" label="合同总额(元)" prop="合同总额">
<el-table-column width="110" align="center" label="合同总额(元)" prop="合同总额">
<template slot-scope="scope">
{{ parseFloat(scope.row.合同总额).toFixed(2) }}
{{ parseFloat(scope.row.合同总).toFixed(2) }}
</template>
</el-table-column>
<el-table-column width="110" align="center" label="到货金额(元)" prop="到货金额">
@@ -231,7 +231,7 @@ export default {
if (index === 0) {
sums[index] = '总价'
return
} else if (index === 2 || index === 3) {
} else if (index === 1 || index === 2 || index === 3 || index === 4) {
const values = data.map(item => Number(item[column.property]))
if (!values.every(value => isNaN(value))) {
sums[index] = values.reduce((prev, curr) => {