From 1aa122a34f98325fa2d049c1895ac476ab3e3347 Mon Sep 17 00:00:00 2001
From: zuozhengqing <a13193816592@163.com>
Date: 星期三, 18 十月 2023 10:02:17 +0800
Subject: [PATCH] 隐藏库存报表和位置报表的新建按钮

---
 src/views/reportForm/inventoryReport/index.vue |   67 ++++++++++++---------------------
 1 files changed, 25 insertions(+), 42 deletions(-)

diff --git a/src/views/reportForm/inventoryReport/index.vue b/src/views/reportForm/inventoryReport/index.vue
index 7738753..8b7c852 100644
--- a/src/views/reportForm/inventoryReport/index.vue
+++ b/src/views/reportForm/inventoryReport/index.vue
@@ -3,8 +3,9 @@
   <div class="rightContent">
     <div class="top">
       <SearchCommonView
+        :showAdd="false"
         :add-title="'鏂板缓'"
-        :placeholder="'璇疯緭鍏ュ弬鑰�'"
+        :placeholder="''"
         :amount-view="false"
         @addCommonClick="addBtnClick"
         @searchClick="getList"
@@ -144,8 +145,8 @@
       stashRadio: "1",
       pageSizes: [15, 30],
       oldRadioBtn: "",
-      metaTitle: this.$route.meta.title,
-    };
+      metaTitle: this.$route.meta.title
+    }
   },
   created() {
     this.setTable()
@@ -158,17 +159,17 @@
   },
   methods: {
     checkListHandler(e) {
-      this.categoryListId = e;
-      this.getData();
+      this.categoryListId = e
+      this.getData()
     },
     radioHandleChange(e) {
-      this.warehouseListName = e;
-      this.getData();
+      this.warehouseListName = e
+      this.getData()
     },
     setTable() {
       if (this.isIconIndex === "1") {
-        this.pageSizes = [30, 60];
-        this.pagerOptions.pageSize = 30;
+        this.pageSizes = [30, 60]
+        this.pagerOptions.pageSize = 30
       }
       this.tableList = {
         tableInfomation: [],
@@ -290,33 +291,15 @@
       this.$router.push({
         name: "inboundOutboundDetail",
         params: {
-          name: this.metaTitle,
-          product: {
-            page: this.pagerOptions.currPage,
-            pageSize: this.pagerOptions.pageSize,
-            produceId: row.produceId,
-            productName: row.productName,
-            unit: row.unit,
-          },
-          pageName:"鎶ヨ〃",
-          paramsKey: {
-            amount: "amount",
-            status: "status", //鐘舵��
-            productName:"productName", //浜у搧鍚嶇О
-            contactedName: "contactedName",
-            date: "date",
-            fromLocation: "fromLocation",
-            number: "number",
-            toLocation: "toLocation",
-            unit: "unit",
-          },
-        },
-      });
+          id: row.produceId,
+          name: "鎶ヨ〃"
+        }
+      })
     },
 
     // 琛ヨ揣
     handleAddGoods(row) {
-      console.log(row);
+      console.log(row)
     },
     // 浣嶇疆
     handleLocation() {
@@ -337,10 +320,10 @@
           inStorage: item.inStorage, // 鍏ュ簱
           toStore: item.toStore, // 鍑哄簱
           forecast: item.forecast, //棰勬祴
-          unit: item.unit, //鍗曚綅
-        };
-        this.testArr.push(obj);
-      });
+          unit: item.unit //鍗曚綅
+        }
+        this.testArr.push(obj)
+      })
     },
 
     //鎺ュ彛璇锋眰-----------------------------------------------------------------------------------------------
@@ -354,9 +337,9 @@
       }
       await getInventoryData(params).then((res) => {
         if (res.code === 200) {
-          const list = res.data;
-          this.tableList.tableInfomation = list || [];
-          this.pagerOptions.totalCount = res.total;
+          const list = res.data
+          this.tableList.tableInfomation = list || []
+          this.pagerOptions.totalCount = res.total
         }
       })
     },
@@ -365,7 +348,7 @@
       await getProductCategoryList({
         keyWord: "",
         page: this.pagerOptions.currPage,
-        pageSize: this.pagerOptions.pageSize,
+        pageSize: this.pagerOptions.pageSize
       }).then((res) => {
         if (res.code === 200) {
           this.categoryList = res.data
@@ -377,10 +360,10 @@
       await getWarehouseList({
         keyword: "",
         page: this.pagerOptions.currPage,
-        pageSize: this.pagerOptions.pageSize,
+        pageSize: this.pagerOptions.pageSize
       }).then((res) => {
         if (res.data.code === 200) {
-          this.warehouseList = res.data.data;
+          this.warehouseList = res.data.data
         }
       })
     }

--
Gitblit v1.8.0