Browse Source

SCP 供应商发货申请 生成标签时,想少发几箱,把箱移出后,修改剩余箱中的数量。无法进行修改。

hella_online_20240829
zhang_li 5 months ago
parent
commit
b5762ad1f3
  1. 18
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/labelForm.vue

18
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/labelForm.vue

@ -475,11 +475,11 @@ const blurOne = (oneRow, twoRow) => {
} }
// //
const blurTwo = (oneRow, twoRow, threeRow) => { const blurTwo = (oneRow, twoRow, threeRow) => {
if (parseFloat(threeRow.qtyTwo) > parseFloat(oneRow.packQty)) { // if (parseFloat(threeRow.qtyTwo) > parseFloat(oneRow.packQty)) {
message.warning('数量最多为' + oneRow.packQty) // message.warning('' + oneRow.packQty)
threeRow.qtyTwo = oneRow.packQty // threeRow.qtyTwo = oneRow.packQty
return // return
} // }
let num = 0 let num = 0
twoRow.children.forEach((item) => { twoRow.children.forEach((item) => {
num += parseFloat(item.qtyTwo) || 0 num += parseFloat(item.qtyTwo) || 0
@ -488,10 +488,10 @@ const blurTwo = (oneRow, twoRow, threeRow) => {
} }
// //
const blurThree = (oneRow, twoRow, thereeRow) => { const blurThree = (oneRow, twoRow, thereeRow) => {
if (parseFloat(thereeRow.qtyTwo) > parseFloat(oneRow.packQty)) { // if (parseFloat(thereeRow.qtyTwo) > parseFloat(oneRow.packQty)) {
message.warning('每箱个数最多' + oneRow.packQty) // message.warning('' + oneRow.packQty)
thereeRow.qtyTwo = oneRow.packQty // thereeRow.qtyTwo = oneRow.packQty
} // }
let num = 0 let num = 0
twoRow.children.forEach((item) => { twoRow.children.forEach((item) => {
num += parseFloat(item.qtyTwo) || 0 num += parseFloat(item.qtyTwo) || 0

Loading…
Cancel
Save