Ver código fonte

Merge branch 'dev0.3' of http://36.137.93.232:3000/hf/byte-sailing-new into dev0.3

cz 1 ano atrás
pai
commit
7b455551c7
1 arquivos alterados com 4 adições e 2 exclusões
  1. 4 2
      src/components/process/SendFunds.vue

+ 4 - 2
src/components/process/SendFunds.vue

@@ -111,7 +111,7 @@
                 <el-input-number
                   onmousewheel="return false;"
                   v-model="row.amount"
-                  :precision="4"
+                  :precision="2"
                   :controls="false"
                   :min="0"
                   style="width: 100%"
@@ -650,7 +650,9 @@ const handleChangeAmount = () => {
   let sum = 0;
   for (let i = 0; i < formData.data.accountRequestFundsDetailList.length; i++) {
     const e = formData.data.accountRequestFundsDetailList[i];
-    sum += e.amount;
+    if (e.amount) {
+      sum = Number(parseFloat(Number(sum) + Number(e.amount)).toFixed(2))
+    }
   }
   formData.data.total = sum;
 };