diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/labelForm.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/labelForm.vue index 65dbdc44a..83247227f 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/labelForm.vue +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/labelForm.vue @@ -438,24 +438,24 @@ const blurOne = (oneRow, twoRow) => { // 托信息修改的時候箱数据自动排列 // 判断箱信息是否存在 if (oneRow.packUnit && oneRow.packQty) { - oneRow.packageList.forEach((cur, key) => { - cur.children = [] + // oneRow.packageList.forEach((cur, key) => { + twoRow.children = [] // 数量除以托数量获取余数 - cur.xLastNumber = parseFloat(cur.xNumber) % parseFloat(oneRow.packQty) - for (let j = 0; j < cur.xNumber; j++) { + twoRow.xLastNumber = parseFloat(twoRow.xNumber) % parseFloat(oneRow.packQty) + for (let j = 0; j < twoRow.xNumber; j++) { twoId.value++ // 如果有余数 - if (cur.xLastNumber) { + if (twoRow.xLastNumber) { // 最后一条信息直接展示余数的信息 - if (j == cur.xNumbery - 1) { - cur.children.push({ + if (j == twoRow.xNumbery - 1) { + twoRow.children.push({ id: twoId.value, xPoNumber: j + 1, - qtyTwo: cur.xLastNumber + qtyTwo: twoRow.xLastNumber }) } else { // 其他数据展示一托的全部箱数和全部数量 - cur.children.push({ + twoRow.children.push({ id: twoId.value, xPoNumber: j + 1, qtyTwo: oneRow.packQty @@ -463,14 +463,14 @@ const blurOne = (oneRow, twoRow) => { } } else { // 如果沒有余数,直接展示一托的全部箱数和全部数量 - cur.children.push({ + twoRow.children.push({ id: twoId.value, xPoNumber: j + 1, qtyTwo: oneRow.packQty }) } } - }) + // }) } } //在托下方的箱数量失去焦点