This commit is contained in:
xiongchengqiang 2020-12-18 11:32:04 +08:00
parent 5ef1d8c88b
commit ed6ba5d444

View File

@ -393,7 +393,7 @@ export default {
let weight = 0
let maxWeight = 0
const nullArray = arr.map(i => {
i.detailDtos.map(j => {
this.handleFilter(i.detailDtos).map(j => {
if (i.weight === null) maxWeight += j.checkWeight
weight += j.checkWeight
})
@ -407,7 +407,7 @@ export default {
} else {
for (let i in arr) {
let num = 0
arr[i].detailDtos.map(l => {
this.handleFilter(arr[i].detailDtos).map(l => {
num += l.checkWeight
})
if (num.toFixed(2) !== arr[i].weight.toFixed(2)) {
@ -470,7 +470,7 @@ export default {
let weight = 0
let maxWeight = 0
const nullArray = arr.map(i => {
i.detailDtos.map(j => {
this.handleFilter(i.detailDtos).map(j => {
if (i.weight === null) maxWeight += j.checkWeight
weight += j.checkWeight
})
@ -484,7 +484,7 @@ export default {
} else {
for (let i in arr) {
let num = 0
arr[i].detailDtos.map(l => {
this.handleFilter(arr[i].detailDtos).map(l => {
num += l.checkWeight
})
if (num.toFixed(2) !== arr[i].weight.toFixed(2)) {