DuGuYang 3 лет назад
Родитель
Сommit
fe4fb3f720
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      Areas/Admin/Views/MainServer/ToChargeByStage/Add.cshtml

+ 1 - 1
Areas/Admin/Views/MainServer/ToChargeByStage/Add.cshtml

@@ -117,7 +117,7 @@
             chargeAmount = (totalAmount / count).toFixed(2);
             leave = (totalAmount - (chargeAmount * count)).toFixed(2);
             console.log(leave);
-            leaveAmount = chargeAmount + leave;
+            leaveAmount = Number(chargeAmount) + Number(leave);
             console.log(leaveAmount);
             num = 0;
             nums = 0;