|
@ -336,7 +336,7 @@ const addT = (oneRow) => { |
|
|
oneId.value++ |
|
|
oneId.value++ |
|
|
oneRow.packageList.push({ |
|
|
oneRow.packageList.push({ |
|
|
id: oneId.value, |
|
|
id: oneId.value, |
|
|
tPoNumber: (oneRow.packageList[oneRow.packageList.length - 1]?.tPoNumber || 0) + 1, //行号是上一行的行号加1 |
|
|
tPoNumber: oneRow?.packageList?.length>0?oneRow.packageList[oneRow.packageList.length - 1]?.tPoNumber + 1 :1, //行号是上一行的行号加1 |
|
|
xNumber: '', |
|
|
xNumber: '', |
|
|
qtyOne: '' |
|
|
qtyOne: '' |
|
|
}) |
|
|
}) |
|
@ -355,9 +355,7 @@ const addX = (oneRow, oneIndex, twoRow, twoIndex, type) => { |
|
|
// 在托下添加箱 |
|
|
// 在托下添加箱 |
|
|
twoRow.children.push({ |
|
|
twoRow.children.push({ |
|
|
id: twoId.value, |
|
|
id: twoId.value, |
|
|
xPoNumber: twoRow?.children[twoRow.children.length - 1]?.xPoNumber |
|
|
xPoNumber: twoRow?.children?.length>0? twoRow?.children[twoRow.children.length - 1]?.xPoNumber + 1 :1, |
|
|
? twoRow?.children[twoRow.children.length - 1]?.xPoNumber |
|
|
|
|
|
: 0 + 1, |
|
|
|
|
|
qtyOne: '' |
|
|
qtyOne: '' |
|
|
}) |
|
|
}) |
|
|
twoRow.xNumber = twoRow.children.length |
|
|
twoRow.xNumber = twoRow.children.length |
|
@ -365,7 +363,7 @@ const addX = (oneRow, oneIndex, twoRow, twoIndex, type) => { |
|
|
// 直接添加箱 |
|
|
// 直接添加箱 |
|
|
twoRow.children.push({ |
|
|
twoRow.children.push({ |
|
|
id: twoId.value, |
|
|
id: twoId.value, |
|
|
xPoNumber: twoRow.children[twoRow.children.length - 1].xPoNumber + 1, |
|
|
xPoNumber:twoRow.children.length>0? twoRow.children[twoRow.children.length - 1].xPoNumber + 1:1, |
|
|
qtyTwo: '' |
|
|
qtyTwo: '' |
|
|
}) |
|
|
}) |
|
|
oneRow.allTuoQty = twoRow.children.length |
|
|
oneRow.allTuoQty = twoRow.children.length |
|
|