Browse Source

修改盘损计算错误

mxx 3 years ago
parent
commit
42af05473a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/warehouse/warehouseManagementIoss.vue

+ 2 - 2
src/views/warehouse/warehouseManagementIoss.vue

@@ -234,7 +234,7 @@ export default {
         this.deptBudgetList.cumulativeStockOut
       )
     },
-    inventoryRatio1: function () {
+    inventoryRatio1: function () {debugger
       var loss =
         this.deptBudgetList.cumulativeStockIn -
         this.deptBudgetList.cumulativeStockOut -
@@ -246,7 +246,7 @@ export default {
         var num = 0
       } else {
         // .占比=损耗量÷(累计入库-实际库存)
-        num = Math.floor((loss / defect) * 1000000) / 1000
+        num = ((loss / defect)*100).toFixed(3)
       }
       // this.deptBudgetList.inventoryRatio = this.deptBudgetList.inventoryRatio.toFixed(3)
       //  this.deptBudgetList.inventoryRatio = num