pull/1/head
张同海 2 years ago
parent c96841e323
commit 0555690fb5

@ -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 })
}
})

Loading…
Cancel
Save