This commit is contained in:
aihe 2024-09-03 14:12:12 +08:00
parent 63f254cb88
commit 92d3d3b334
2 changed files with 2 additions and 2 deletions

View File

@ -175,7 +175,7 @@
list.map(t=> { list.map(t=> {
totalVolume += (+t.volume) || 0 totalVolume += (+t.volume) || 0
}) })
this.modelInfo.totalVolume = totalVolume.toFixed(5) this.modelInfo.totalVolume = totalVolume.toFixed(4)
}, },
async calceOther() { async calceOther() {
let { totalVolume, productType, billWeight } = this.modelInfo let { totalVolume, productType, billWeight } = this.modelInfo

View File

@ -112,7 +112,7 @@
volume = length/100 * width/100 * height/100 * cargoQty volume = length/100 * width/100 * height/100 * cargoQty
} }
if(volume && volume.toFixed) { if(volume && volume.toFixed) {
volume = volume.toFixed(5) volume = volume.toFixed(4)
this.modelInfo.volume = volume this.modelInfo.volume = volume
} else { } else {
this.modelInfo.volume = 0 this.modelInfo.volume = 0