|
|
@ -566,11 +566,11 @@ const blurOne = (oneRow, twoRow) => { |
|
|
|
} |
|
|
|
//在托下方的箱数量失去焦点 |
|
|
|
const blurTwo = (oneRow, twoRow, threeRow) => { |
|
|
|
// if (parseFloat(threeRow.qtyTwo) > parseFloat(oneRow.packQty)) { |
|
|
|
// message.warning('数量最多为' + oneRow.packQty) |
|
|
|
// threeRow.qtyTwo = oneRow.packQty |
|
|
|
// return |
|
|
|
// } |
|
|
|
if (parseFloat(threeRow.qtyTwo) > parseFloat(oneRow.packQty)) { |
|
|
|
message.warning('数量最多为' + oneRow.packQty) |
|
|
|
threeRow.qtyTwo = oneRow.packQty |
|
|
|
return |
|
|
|
} |
|
|
|
let num = 0 |
|
|
|
twoRow.children.forEach((item) => { |
|
|
|
num = accuracyFun.add(parseFloat(num), parseFloat(item.qtyTwo)) |
|
|
@ -579,10 +579,10 @@ const blurTwo = (oneRow, twoRow, threeRow) => { |
|
|
|
} |
|
|
|
// 箱数量失去焦点 |
|
|
|
const blurThree = (oneRow, twoRow, thereeRow) => { |
|
|
|
// if (parseFloat(thereeRow.qtyTwo) > parseFloat(oneRow.packQty)) { |
|
|
|
// message.warning('每箱个数最多' + oneRow.packQty) |
|
|
|
// thereeRow.qtyTwo = oneRow.packQty |
|
|
|
// } |
|
|
|
if (parseFloat(thereeRow.qtyTwo) > parseFloat(oneRow.packQty)) { |
|
|
|
message.warning('每箱个数最多' + oneRow.packQty) |
|
|
|
thereeRow.qtyTwo = oneRow.packQty |
|
|
|
} |
|
|
|
let num = 0 |
|
|
|
twoRow.children.forEach((item) => { |
|
|
|
num = accuracyFun.add(parseFloat(num), parseFloat(item.qtyTwo)) |
|
|
|