From faa422acb49ba54255f65f35164fa2ed40153cb0 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Thu, 11 Jul 2024 18:03:29 +0800 Subject: [PATCH] =?UTF-8?q?SCP=20=E4=BE=9B=E5=BA=94=E5=95=86=E5=8F=91?= =?UTF-8?q?=E8=B4=A7=E7=94=B3=E8=AF=B7=20=E7=94=9F=E6=88=90=E6=A0=87?= =?UTF-8?q?=E7=AD=BE=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../supplierdeliverRequestMain/labelForm.vue | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) 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 }) } } - }) + // }) } } //在托下方的箱数量失去焦点