From 101ae06a200c513fcf3be01d047b310af7660b6c Mon Sep 17 00:00:00 2001
From: yangfeng <wanwan926_4@163.com>
Date: 星期四, 28 九月 2023 16:28:53 +0800
Subject: [PATCH] 出入库明细路由传值刷新实现问题

---
 src/views/reportForm/inventoryReport/index.vue |   64 +++++++++++--------------------
 1 files changed, 23 insertions(+), 41 deletions(-)

diff --git a/src/views/reportForm/inventoryReport/index.vue b/src/views/reportForm/inventoryReport/index.vue
index 7738753..bdba386 100644
--- a/src/views/reportForm/inventoryReport/index.vue
+++ b/src/views/reportForm/inventoryReport/index.vue
@@ -144,8 +144,8 @@
       stashRadio: "1",
       pageSizes: [15, 30],
       oldRadioBtn: "",
-      metaTitle: this.$route.meta.title,
-    };
+      metaTitle: this.$route.meta.title
+    }
   },
   created() {
     this.setTable()
@@ -158,17 +158,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 +290,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 +319,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 +336,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 +347,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 +359,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