采购审批

This commit is contained in:
Vergil
2020-03-10 17:22:12 +08:00
parent f0767ea8f9
commit f37dd57e61
2 changed files with 2 additions and 2 deletions

View File

@@ -172,7 +172,7 @@ export default {
const sums = []
columns.forEach((column, index) => {
if (index === 0) {
sums[index] = '总价'
sums[index] = '合计'
} else if (index === 3) {
const values = data.map(item => Number(parseFloat(item['数量'])))
if (!values.every(value => isNaN(value))) {

View File

@@ -162,7 +162,7 @@ export default {
const sums = []
columns.forEach((column, index) => {
if (index === 0) {
sums[index] = '总价'
sums[index] = '合计'
return
} else if (index === 2 || index === 3) {
const values = data.map(item => Number(item[column.property]))