瀏覽代碼

fix(库存管理): 优化库存台账缓存键设置逻辑并修正仓库类型键值

yusheng 8 月之前
父節點
當前提交
6226ec92d7

+ 4 - 0
src/views/warehouseManagement/stockLedger/components/item-list.vue

@@ -703,6 +703,10 @@
         this.cacheKeyUrl = this.diffCacheKeyUrl + val;
         this.getTabColumns();
       },
+      setCacheKeyUrl(val) {
+        this.cacheKeyUrl = val;
+        this.getTabColumns();
+      },
       getSummaries(param) {
         let key = ['totalMoney'];
         const { columns, data } = param;

+ 2 - 3
src/views/warehouseManagement/stockLedger/index.vue

@@ -80,7 +80,6 @@
         currentId: '',
         treeList: [],
         treeLoading: false,
-        cacheKeyUrl: 'eos-439decaa-warehouseManagement-stockLedger-products2'
       };
     },
     async created() {
@@ -95,10 +94,10 @@
         if (val === 'products') {
           this.cacheKeyUrl= "eos-439decaa-warehouseManagement-stockLedger-products2"
         } else if (val === 'warehouse') {
-          this.cacheKeyUrl= "eos-439decaa-warehouseManagement-stockLedger-warehouse"
+          this.cacheKeyUrl= "eos-439decaa-warehouseManagement-stockLedger-products3"
         }
 
-        this.$refs.listRef.getTabColumns(this.cacheKeyUrl)
+        this.$refs.listRef.setCacheKeyUrl(this.cacheKeyUrl)
       },
       async getTreeData() {
         try {