Commit 34ec0760 authored by dragondean@qq.com's avatar dragondean@qq.com

修复拆单页面数据精度问题

parent 49fef957
......@@ -941,7 +941,7 @@ export default {
if(!this.orderData || !this.orderData.orderItemVOList ||this.orderData.length==0){
return sums
}
var orderSum = 0
/*var orderSum = 0
var orderV = 0
var orderW = 0
var leviteSum = 0
......@@ -956,6 +956,17 @@ export default {
leviteW += column.warehouseInInfoVO?column.warehouseInInfoVO.weight:0
});
sums[1] = this.$t('下单统计')+' '+ orderSum+' '+this.$t('箱')+' '+ orderV.toFixed(2) +' m³ ' + orderW + ' kg ' + ' '+this.$t('入仓统计:')+ leviteSum+' '+this.$t('箱')+' '+ leviteV.toFixed(2) +' m³ ' + leviteW + ' kg'
*/
sums[1] = [
this.$t('下单统计'),
this.orderData.costVO?.totalNum + ' '+this.$t(''),
this.orderData.costVO?.totalVolume + '',
this.orderData.costVO?.totalWeight + ' kg',
this.$t('入仓统计:'),
this.orderData.sumNum +' '+this.$t(''),
this.orderData.sumVolume +'',
this.orderData.sumWeight +' kg'
].join(' ')
return sums;
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment