|
@@ -175,8 +175,9 @@ export default {
|
|
|
if (data[i].bizAmount > 0) {
|
|
|
data[i].debitAmount = data[i].bizAmount
|
|
|
} else {
|
|
|
- data[i].creditorAmount = data[i].bizAmount
|
|
|
+ data[i].creditorAmount = data[i].bizAmount * -1
|
|
|
}
|
|
|
+ data[i].totalAmount = data[i].debitAmount || 0 - data[i].creditorAmount || 0
|
|
|
}
|
|
|
this.total = data.length || 0 + 1
|
|
|
this.disabled = false
|