采购审批
This commit is contained in:
@@ -172,7 +172,7 @@ export default {
|
|||||||
const sums = []
|
const sums = []
|
||||||
columns.forEach((column, index) => {
|
columns.forEach((column, index) => {
|
||||||
if (index === 0) {
|
if (index === 0) {
|
||||||
sums[index] = '总价'
|
sums[index] = '合计'
|
||||||
} else if (index === 3) {
|
} else if (index === 3) {
|
||||||
const values = data.map(item => Number(parseFloat(item['数量'])))
|
const values = data.map(item => Number(parseFloat(item['数量'])))
|
||||||
if (!values.every(value => isNaN(value))) {
|
if (!values.every(value => isNaN(value))) {
|
||||||
|
|||||||
@@ -162,7 +162,7 @@ export default {
|
|||||||
const sums = []
|
const sums = []
|
||||||
columns.forEach((column, index) => {
|
columns.forEach((column, index) => {
|
||||||
if (index === 0) {
|
if (index === 0) {
|
||||||
sums[index] = '总价'
|
sums[index] = '合计'
|
||||||
return
|
return
|
||||||
} else if (index === 2 || index === 3) {
|
} else if (index === 2 || index === 3) {
|
||||||
const values = data.map(item => Number(item[column.property]))
|
const values = data.map(item => Number(item[column.property]))
|
||||||
|
|||||||
Reference in New Issue
Block a user