Bladeren bron

fix:库存统计点击商品成本查看详情

snow 1 jaar geleden
bovenliggende
commit
b8448c0f0f

+ 3 - 5
src/views/stock/stockCount/components/productWeido/index.vue

@@ -162,16 +162,14 @@ export default {
   computed: {
     ...mapGetters(["tablebtnSize", "searchSize", "size"]),
     powers() {
-      const { btnList } = ths.$store.getters;
+      const { btnList } = this.$store.getters;
       const tran = btnList.find(item => item.menu_route == "stockCount") || {};
       const { action } = tran ?? {};
       return action ?? [];
     },
     goodCostPremission() {
-      const tran =
-        this.$store.getters.btnList.find(
-          item => item.menu_route == "goodsCost"
-        ) || {};
+      const { btnList } = this.$store.getters;
+      const tran = btnList.find(item => item.menu_route == "goodsCost") || {};
       const { action } = tran ?? {};
       return action ?? [];
     }

+ 0 - 1
src/views/stock/stockCount/index.vue

@@ -16,7 +16,6 @@
         </el-row>
       </div>
     </div>
-
     <div v-else>
       <no-auth />
     </div>