feiyue.teng

申报数据编辑总净重出现浮点精度问题处理

......@@ -913,8 +913,8 @@
totalNetWeight += Number(this.detailData[i].netWeight)
totalGoodsValue += Number(this.detailData[i].totalPrice)
}
this.formData.netWeight = totalNetWeight
this.formData.goodsValue = totalGoodsValue
this.formData.netWeight = totalNetWeight.toFixed(5)
this.formData.goodsValue = totalGoodsValue.toFixed(5)
},
deleteRow(row){
this.detailData = this.detailData.filter(item => item.gnum !=row.gnum).map((item, index) =>{
......