|
|
@ -475,11 +475,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 += parseFloat(item.qtyTwo) || 0 |
|
|
@ -488,10 +488,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 += parseFloat(item.qtyTwo) || 0 |
|
|
|