浏览代码

bug 修复

lilei 3 年之前
父节点
当前提交
3530714a09
共有 2 个文件被更改,包括 6 次插入5 次删除
  1. 1 1
      public/version.json
  2. 5 4
      src/views/expenseManagement/expenseReimbursement/epenseCdfModal.vue

+ 1 - 1
public/version.json

@@ -1,4 +1,4 @@
 {
-    "version": "1.1.0",
+    "version": "1.1.1",
     "message": "发现有新版本发布,确定更新系统?"
 }

+ 5 - 4
src/views/expenseManagement/expenseReimbursement/epenseCdfModal.vue

@@ -249,19 +249,20 @@ export default {
       // 校验承担费用合计是否超过费用承担金额
       let totalFy = 0
       row.childDetailSplitList.map(item => {
-        totalFy = totalFy + item.splitAmount
+        totalFy = totalFy + Number(item.splitAmount)
       })
-      if (totalFy.toFixed(2) >= Number(row.splitAmount)) {
+      console.log(Number(totalFy).toFixed(2), Number(row.splitAmount).toFixed(2))
+      if (Number(totalFy).toFixed(2) >= Number(row.splitAmount).toFixed(2)) {
         this.$warning({
           title: '提示',
           content: '人员平摊费用合计必需等于费用承担金额'
         })
         return
       }
-      // 以适用费用
+      // 已使用费用
       let ysyAmount = 0
       row.childDetailSplitList.map(item => {
-        ysyAmount = ysyAmount + item.splitAmount
+        ysyAmount = ysyAmount + Number(item.splitAmount)
       })
       // 添加
       row.childDetailSplitList.push({