@dongkboy 3 месяцев назад
Родитель
Сommit
c5ed5c08bb
1 измененных файлов с 5 добавлено и 5 удалено
  1. 5 5
      src/views/finance/modules/auditDetail.vue

+ 5 - 5
src/views/finance/modules/auditDetail.vue

@@ -658,7 +658,7 @@
                 <div v-else>{{ detailData?.costRatio?.jqExportRatio }}%</div>
               </th>
               <th>
-                <div>¥{{ Math.floor(Number(detailData?.insFeeOrders?.jqExportPremium) * 100) / 100 || '--' }}</div>
+                <div>¥{{ (new Decimal(detailData?.insFeeOrders?.jqExportPremium || 0).mul(100).floor().div(100).toFixed(2)) || '--' }}</div>
               </th>
 
               <th>
@@ -729,7 +729,7 @@
                 <div v-else>{{ detailData?.costRatio?.syExportRatio }}%</div>
               </th>
               <th>
-                <div>¥{{ Math.floor(Number(detailData?.insFeeOrders?.syExportPremium) * 100) / 100 || '--' }}</div>
+                <div>¥{{ (new Decimal(detailData?.insFeeOrders?.syExportPremium || 0).mul(100).floor().div(100).toFixed(2)) || '--' }}</div>
               </th>
 
               <th>
@@ -800,7 +800,7 @@
                 <div v-else>{{ detailData?.costRatio?.jyExportRatio }}%</div>
               </th>
               <th>
-                <div>¥{{ Math.floor(Number(detailData?.insFeeOrders?.jyExportPremium) * 100) / 100 || '--' }}</div>
+                <div>¥{{ (new Decimal(detailData?.insFeeOrders?.jyExportPremium || 0).mul(100).floor().div(100).toFixed(2)) || '--' }}</div>
               </th>
 
               <th>
@@ -972,7 +972,7 @@ import file1 from '@/assets/images/additional/file1.png'
 
 import api from '@/api'
 import { useRoute, useRouter } from 'vue-router'
-
+import Decimal from 'decimal.js'
 import image from "@/assets/images/image.png";
 import pdf from "@/assets/images/pdf.png";
 import word from "@/assets/images/word.png";
@@ -1878,4 +1878,4 @@ onUnmounted(() => {
     display: none;
   }
 }
-</style>
+</style>