gjy 3 years ago
parent
commit
7eeb4216f1

+ 2 - 2
src/views/houseSelfCollect/acquisitionManagement.vue

@@ -170,7 +170,7 @@ export default {
       for (let i = 0; i < this.warehouseList.length; i++) {
         if (this.warehouseList[i].id == this.selectVal) {
           localStorage.setItem(
-            'houseSelfCollect_house1',
+            'houseSelfCollect_house',
             JSON.stringify(this.warehouseList[i])
           )
           this.warehouseName = this.warehouseList[i].warehouseName
@@ -229,7 +229,7 @@ export default {
           // if(this.userJurisdiction){
           //   this.warehouseList.unshift({warehouseName:response[0].flag})
           // }
-          let _wareHouse = localStorage.getItem('houseSelfCollect_house1')
+          let _wareHouse = localStorage.getItem('houseSelfCollect_house')
           if (_wareHouse) {
             _wareHouse = JSON.parse(_wareHouse)
             this.selectVal = _wareHouse.id

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

@@ -226,13 +226,13 @@ export default {
         this.deptBudgetList.cumulativeStockIn -
         this.deptBudgetList.cumulativeStockOut -
         this.deptBudgetList.physicalInventory
-      )
+      ).toFixed(3)
     },
     surplusInventory1: function () {
       return (
         this.deptBudgetList.cumulativeStockIn -
         this.deptBudgetList.cumulativeStockOut
-      )
+      ).toFixed(3)
     },
     inventoryRatio1: function () {
       var loss =
@@ -413,6 +413,8 @@ export default {
       })
         .toPromise()
         .then((response) => {
+          response.cumulativeStockIn=response.cumulativeStockIn.toFixed(3)
+          response.cumulativeStockOut=response.cumulativeStockOut.toFixed(3)
           this.deptBudgetList = response
         })
     },