소스 검색

小数点问题

Shannon_mu 3 년 전
부모
커밋
8869114112
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      operationSupport/src/views/newWorkBench/components/collectionRate.vue

+ 2 - 1
operationSupport/src/views/newWorkBench/components/collectionRate.vue

@@ -105,10 +105,11 @@ export default {
         getData() {
             this.$http.get('/sc-community/statisticsCollectionRate', this.mixins_query).then(({ data, msg, status }) => {
                 if (status == 0 && !!data) {
+                    debugger;
                     this.dataObj = {
                         receivableAmount: data.receivableAmount,
                         receivedAmount: data.receivedAmount,
-                        uncollected: parseInt((data.receivableAmount - data.receivedAmount || 0).toFixed(2))
+                        uncollected: (data.receivableAmount - data.receivedAmount || 0).toFixed(2)
                     };
                 } else {
                     this.dataObj = {