Browse Source

修改刷新页面检斤车辆信息 错误

mxx 3 years ago
parent
commit
90f48b1fb1

+ 2 - 0
src/views/houseSelfCollect/weighingManagement.vue

@@ -200,6 +200,7 @@ export default {
           this.allowEdit = this.warehouseList[i].allowEdit
           this.allowEdit = this.warehouseList[i].allowEdit
             this.WAREHOUSE[2].payname = this.warehouseList[i].value
             this.WAREHOUSE[2].payname = this.warehouseList[i].value
              this.common.name  =  this.warehouseList[0].value
              this.common.name  =  this.warehouseList[0].value
+            sessionStorage.setItem('ck',this.common.name)
         }
         }
       }
       }
       this.getList()
       this.getList()
@@ -264,6 +265,7 @@ export default {
           this.warehouseId = this.warehouseList[0].warehouseId
           this.warehouseId = this.warehouseList[0].warehouseId
           this.purchasePriceList = this.warehouseList[0].warehouseList
           this.purchasePriceList = this.warehouseList[0].warehouseList
            this.common.name  =  this.warehouseList[0].value
            this.common.name  =  this.warehouseList[0].value
+           sessionStorage.setItem('ck',this.common.name)
          this.getList()
          this.getList()
         })
         })
     },
     },

+ 1 - 1
src/views/houseSelfCollect/weightCheck.vue

@@ -251,7 +251,7 @@
             currentPage: this.currentPage,
             currentPage: this.currentPage,
             pageSize: this.pageSize,
             pageSize: this.pageSize,
             searchKeyWord: '',
             searchKeyWord: '',
-            warehouseName: this.common.name,
+            warehouseName: sessionStorage.getItem('ck'),
             managementType: 1
             managementType: 1
           })
           })
           .toPromise()
           .toPromise()