Commit aecfa9d3 authored by 华国豪's avatar 华国豪 🙄

修复NaN

parent 2f739f2d
...@@ -361,13 +361,14 @@ export default { ...@@ -361,13 +361,14 @@ export default {
// this.apipost('Financial_post_GetDetail',{ID:id}, res => { // this.apipost('Financial_post_GetDetail',{ID:id}, res => {
// if(res.data.resultCode == 1) { // if(res.data.resultCode == 1) {
let data = this.GetDetail; let data = this.GetDetail;
data.DetailList.forEach(x=>{ console.log(data.DetailList)
x.UnitPrice = this.$commonUtils.addCommas(Math.round(x.UnitPrice * 100) / 100) // this.GetDetail.DetailList.forEach(x=>{
x.Money = Math.round(x.Money * 100) / 100 // x.UnitPrice = this.$commonUtils.addCommas(Math.round(x.UnitPrice * 100) / 100)
x.OriginalMoney = Math.round(x.OriginalMoney * 100) / 100 // x.Money = Math.round(x.Money * 100) / 100
this.currentMoney += parseFloat(x.OriginalMoney); // x.OriginalMoney = Math.round(x.OriginalMoney * 100) / 100
this.benMoney += parseFloat(x.Money); // this.currentMoney += parseFloat(x.OriginalMoney);
}) // this.benMoney += parseFloat(x.Money);
// })
this.currentMoney = Math.round(this.currentMoney * 100) / 100; this.currentMoney = Math.round(this.currentMoney * 100) / 100;
this.benMoney = Math.round(this.benMoney * 100) / 100; this.benMoney = Math.round(this.benMoney * 100) / 100;
this.$emit('headCallBack', this.currentMoney); this.$emit('headCallBack', this.currentMoney);
......
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