lilei 3 년 전
부모
커밋
a0b38fb6a7
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/views/expenseManagement/expenseReimbursement/epenseCdfModal.vue

+ 2 - 2
src/views/expenseManagement/expenseReimbursement/epenseCdfModal.vue

@@ -223,7 +223,7 @@ export default {
               if (dl && dl.length) {
                 let t = 0
                 dl.map(b => t = t + b.splitAmount)
-                hasError = (t != item.splitAmount) ? 2 : 0
+                hasError = (Number(t) != Number(item.splitAmount)) ? 2 : 0
               }
               item.childDetailSplitList = dl
             }
@@ -251,7 +251,7 @@ export default {
       row.childDetailSplitList.map(item => {
         totalFy = totalFy + item.splitAmount
       })
-      if (totalFy >= row.splitAmount) {
+      if (totalFy.toFixed(2) >= Number(row.splitAmount)) {
         this.$warning({
           title: '提示',
           content: '人员平摊费用合计必需等于费用承担金额'