From 2b78cf0cd68e1809bc4cad7d730bef6ab9c4c118 Mon Sep 17 00:00:00 2001
From: zzq <a13193816592@163.com>
Date: 星期四, 28 九月 2023 15:30:45 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.5.5:10010/r/web/WMS

---
 src/views/reportForm/inventoryReport/index.vue |   72 +++++++++++++++++++++++-------------
 1 files changed, 46 insertions(+), 26 deletions(-)

diff --git a/src/views/reportForm/inventoryReport/index.vue b/src/views/reportForm/inventoryReport/index.vue
index 6bd8e38..7738753 100644
--- a/src/views/reportForm/inventoryReport/index.vue
+++ b/src/views/reportForm/inventoryReport/index.vue
@@ -143,8 +143,9 @@
       warehouseListName: "", // 浠撳簱鍚嶇О
       stashRadio: "1",
       pageSizes: [15, 30],
-      oldRadioBtn: ""
-    }
+      oldRadioBtn: "",
+      metaTitle: this.$route.meta.title,
+    };
   },
   created() {
     this.setTable()
@@ -157,19 +158,17 @@
   },
   methods: {
     checkListHandler(e) {
-      this.categoryListId = e
-      this.getData()
-      console.log(this.categoryListId, e, " 閫変腑鐨勪骇鍝乮d")
+      this.categoryListId = e;
+      this.getData();
     },
     radioHandleChange(e) {
-      this.warehouseListName = e
-      this.getData()
-      console.log(e, "鍗曢��")
+      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: [],
@@ -288,12 +287,36 @@
     },
     // 鍘嗗彶
     handleHistoryClick(row) {
-      console.log(row)
-      this.$router.push("/operate/allot")
+      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",
+          },
+        },
+      });
     },
+
     // 琛ヨ揣
     handleAddGoods(row) {
-      console.log(row)
+      console.log(row);
     },
     // 浣嶇疆
     handleLocation() {
@@ -314,11 +337,10 @@
           inStorage: item.inStorage, // 鍏ュ簱
           toStore: item.toStore, // 鍑哄簱
           forecast: item.forecast, //棰勬祴
-          unit: item.unit //鍗曚綅
-        }
-        this.testArr.push(obj)
-        console.log(this.testArr, "this")
-      })
+          unit: item.unit, //鍗曚綅
+        };
+        this.testArr.push(obj);
+      });
     },
 
     //鎺ュ彛璇锋眰-----------------------------------------------------------------------------------------------
@@ -332,10 +354,9 @@
       }
       await getInventoryData(params).then((res) => {
         if (res.code === 200) {
-          console.log(res.data, "鎺ュ彛璇锋眰鎴愬姛")
-          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;
         }
       })
     },
@@ -344,7 +365,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
@@ -356,11 +377,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
-          console.log(this.warehouseList, "warehouseList")
+          this.warehouseList = res.data.data;
         }
       })
     }

--
Gitblit v1.8.0