Bladeren bron

修改首页库存成本小数位过多问题

achao 3 jaren geleden
bovenliggende
commit
4b5572685b
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 2 2
      src/views/home/index.vue

+ 2 - 2
src/views/home/index.vue

@@ -403,8 +403,8 @@
         this.carCount1 = res[6].biViewInfoList[0].count
         this.carCount2 = res[6].biViewInfoList[1].count
         this.carCount3 = res[6].biViewInfoList[2].count
-        this.inventoryCost = res[7].biViewInfoList[0].count
-        this.inventoryValue = res[7].biViewInfoList[1].count
+        this.inventoryCost = parseInt(res[7].biViewInfoList[0].count).toFixed(0)
+        this.inventoryValue = parseInt(res[7].biViewInfoList[1].count).toFixed(0)
         this.totalReserves = res[8].biViewInfoList
         this.mapInfo = res[9]
         this.initCharts()