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) {
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
})
}
}
})
// })
}
}
//

Loading…
Cancel
Save