|
|
|
@ -1338,16 +1338,16 @@ export default {
|
|
|
|
|
if (index == this.selectArr[0]) {
|
|
|
|
|
for (let index = 0; index < item.ctnnum; index++) {
|
|
|
|
|
num = num + 1
|
|
|
|
|
totalPkgs = totalPkgs + parseFloat(item.pkgs)
|
|
|
|
|
totalKgs = totalKgs + parseFloat(item.kgs)
|
|
|
|
|
totalCbm = totalCbm + parseFloat(item.cbm)
|
|
|
|
|
parseFloat(item.pkgs) ? (totalPkgs = totalPkgs + parseFloat(item.pkgs)) : ''
|
|
|
|
|
parseFloat(item.kgs) ? (totalKgs = totalKgs + parseFloat(item.kgs)) : ''
|
|
|
|
|
parseFloat(item.cbm) ? (totalCbm = totalCbm + parseFloat(item.cbm)) : ''
|
|
|
|
|
data.push({ ...item, ctnnum: 1, rowKey: num })
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
num = num + 1
|
|
|
|
|
totalPkgs = totalPkgs + parseFloat(item.pkgs)
|
|
|
|
|
totalKgs = totalKgs + parseFloat(item.kgs)
|
|
|
|
|
totalCbm = totalCbm + parseFloat(item.cbm)
|
|
|
|
|
parseFloat(item.pkgs) ? (totalPkgs = totalPkgs + parseFloat(item.pkgs)) : ''
|
|
|
|
|
parseFloat(item.kgs) ? (totalKgs = totalKgs + parseFloat(item.kgs)) : ''
|
|
|
|
|
parseFloat(item.cbm) ? (totalCbm = totalCbm + parseFloat(item.cbm)) : ''
|
|
|
|
|
data.push({ ...item, rowKey: num })
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|