优化
This commit is contained in:
parent
5ef1d8c88b
commit
ed6ba5d444
@ -393,7 +393,7 @@ export default {
|
|||||||
let weight = 0
|
let weight = 0
|
||||||
let maxWeight = 0
|
let maxWeight = 0
|
||||||
const nullArray = arr.map(i => {
|
const nullArray = arr.map(i => {
|
||||||
i.detailDtos.map(j => {
|
this.handleFilter(i.detailDtos).map(j => {
|
||||||
if (i.weight === null) maxWeight += j.checkWeight
|
if (i.weight === null) maxWeight += j.checkWeight
|
||||||
weight += j.checkWeight
|
weight += j.checkWeight
|
||||||
})
|
})
|
||||||
@ -407,7 +407,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
for (let i in arr) {
|
for (let i in arr) {
|
||||||
let num = 0
|
let num = 0
|
||||||
arr[i].detailDtos.map(l => {
|
this.handleFilter(arr[i].detailDtos).map(l => {
|
||||||
num += l.checkWeight
|
num += l.checkWeight
|
||||||
})
|
})
|
||||||
if (num.toFixed(2) !== arr[i].weight.toFixed(2)) {
|
if (num.toFixed(2) !== arr[i].weight.toFixed(2)) {
|
||||||
@ -470,7 +470,7 @@ export default {
|
|||||||
let weight = 0
|
let weight = 0
|
||||||
let maxWeight = 0
|
let maxWeight = 0
|
||||||
const nullArray = arr.map(i => {
|
const nullArray = arr.map(i => {
|
||||||
i.detailDtos.map(j => {
|
this.handleFilter(i.detailDtos).map(j => {
|
||||||
if (i.weight === null) maxWeight += j.checkWeight
|
if (i.weight === null) maxWeight += j.checkWeight
|
||||||
weight += j.checkWeight
|
weight += j.checkWeight
|
||||||
})
|
})
|
||||||
@ -484,7 +484,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
for (let i in arr) {
|
for (let i in arr) {
|
||||||
let num = 0
|
let num = 0
|
||||||
arr[i].detailDtos.map(l => {
|
this.handleFilter(arr[i].detailDtos).map(l => {
|
||||||
num += l.checkWeight
|
num += l.checkWeight
|
||||||
})
|
})
|
||||||
if (num.toFixed(2) !== arr[i].weight.toFixed(2)) {
|
if (num.toFixed(2) !== arr[i].weight.toFixed(2)) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user