Quellcode durchsuchen

Merge branch 'dev1.2.0' of http://192.168.0.200:3000/suf/factoring-trade-front-end-v2 into 1.2.0

lazy vor 3 Wochen
Ursprung
Commit
cdf96e65e9
1 geänderte Dateien mit 3 neuen und 2 gelöschten Zeilen
  1. 3 2
      src/views/divideAccountsManage/edit.vue

+ 3 - 2
src/views/divideAccountsManage/edit.vue

@@ -188,9 +188,10 @@ export default {
   },
   computed: {
     goodsMoney() {
-      return this.loanTableData.length ? this.loanTableData.reduce((total, item) => {
+      const num = this.loanTableData.reduce((total, item) => {
         return total * 1 + item.currentAssignAmount * 1
-      }, 0) : '0.00'
+      }, 0)
+      return this.loanTableData.length ? num.toFixed(2) : '0.00'
     },
     getloanCalc() {
       const obj = {