Browse Source

SCP 供应商发货申请 生成标签时

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

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

@ -438,24 +438,24 @@ const blurOne = (oneRow, twoRow) => {
// //
// //
if (oneRow.packUnit && oneRow.packQty) { if (oneRow.packUnit && oneRow.packQty) {
oneRow.packageList.forEach((cur, key) => { // oneRow.packageList.forEach((cur, key) => {
cur.children = [] twoRow.children = []
// //
cur.xLastNumber = parseFloat(cur.xNumber) % parseFloat(oneRow.packQty) twoRow.xLastNumber = parseFloat(twoRow.xNumber) % parseFloat(oneRow.packQty)
for (let j = 0; j < cur.xNumber; j++) { for (let j = 0; j < twoRow.xNumber; j++) {
twoId.value++ twoId.value++
// //
if (cur.xLastNumber) { if (twoRow.xLastNumber) {
// //
if (j == cur.xNumbery - 1) { if (j == twoRow.xNumbery - 1) {
cur.children.push({ twoRow.children.push({
id: twoId.value, id: twoId.value,
xPoNumber: j + 1, xPoNumber: j + 1,
qtyTwo: cur.xLastNumber qtyTwo: twoRow.xLastNumber
}) })
} else { } else {
// //
cur.children.push({ twoRow.children.push({
id: twoId.value, id: twoId.value,
xPoNumber: j + 1, xPoNumber: j + 1,
qtyTwo: oneRow.packQty qtyTwo: oneRow.packQty
@ -463,14 +463,14 @@ const blurOne = (oneRow, twoRow) => {
} }
} else { } else {
// , // ,
cur.children.push({ twoRow.children.push({
id: twoId.value, id: twoId.value,
xPoNumber: j + 1, xPoNumber: j + 1,
qtyTwo: oneRow.packQty qtyTwo: oneRow.packQty
}) })
} }
} }
}) // })
} }
} }
// //

Loading…
Cancel
Save