优化财务单据的数值计算

This commit is contained in:
季圣华
2021-06-02 23:33:42 +08:00
parent c25b6dd41e
commit faf5710133
5 changed files with 6 additions and 4 deletions

View File

@@ -165,7 +165,8 @@
for(let item of detailArr){
totalPrice += item.eachAmount-0
}
billMain.totalPrice = totalPrice
billMain.totalPrice = 0-totalPrice
billMain.changeAmount = 0-billMain.changeAmount
if(this.model.id){
billMain.id = this.model.id
}