DuGuYang 3 years ago
parent
commit
fe4fb3f720
1 changed files with 1 additions and 1 deletions
  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);
             chargeAmount = (totalAmount / count).toFixed(2);
             leave = (totalAmount - (chargeAmount * count)).toFixed(2);
             leave = (totalAmount - (chargeAmount * count)).toFixed(2);
             console.log(leave);
             console.log(leave);
-            leaveAmount = chargeAmount + leave;
+            leaveAmount = Number(chargeAmount) + Number(leave);
             console.log(leaveAmount);
             console.log(leaveAmount);
             num = 0;
             num = 0;
             nums = 0;
             nums = 0;