소스 검색

bug 修复

lilei 3 년 전
부모
커밋
d743fe49ea
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      src/views/financialManagement/financialCollection/list.vue
  2. 1 1
      src/views/financialManagement/financialPayment/list.vue

+ 1 - 1
src/views/financialManagement/financialCollection/list.vue

@@ -255,7 +255,7 @@ export default {
           ret = ret + item.unsettleAmount
         })
       }
-      return ret
+      return ret ? Number(ret).toFixed(2) : 0
     }
   },
   methods: {

+ 1 - 1
src/views/financialManagement/financialPayment/list.vue

@@ -210,7 +210,7 @@ export default {
           ret = ret + item.unsettleAmount
         })
       }
-      return ret.toFixed(2)
+      return ret ? Number(ret).toFixed(2) : 0
     }
   },
   methods: {