gjy 3 سال پیش
والد
کامیت
7eeb4216f1
2فایلهای تغییر یافته به همراه6 افزوده شده و 4 حذف شده
  1. 2 2
      src/views/houseSelfCollect/acquisitionManagement.vue
  2. 4 2
      src/views/warehouse/warehouseManagementIoss.vue

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

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

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

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