From f3a89a121bc426ba522635835a0fb159a84a8f06 Mon Sep 17 00:00:00 2001
From: zuozhengqing <a13193816592@163.com>
Date: 星期二, 07 十一月 2023 10:49:05 +0800
Subject: [PATCH] 库存报表跳转补货

---
 src/views/reportForm/inventoryReport/index.vue |   11 ++++++++---
 src/views/operate/orderPoint/index.vue         |   13 +++++++++++--
 2 files changed, 19 insertions(+), 5 deletions(-)

diff --git a/src/views/operate/orderPoint/index.vue b/src/views/operate/orderPoint/index.vue
index 092a1d9..0da0d1d 100644
--- a/src/views/operate/orderPoint/index.vue
+++ b/src/views/operate/orderPoint/index.vue
@@ -113,9 +113,17 @@
     }
   },
   created() {
+    if(this.$route.params.productId){
+      this.getData({
+        productId:this.$route.params.productId,
+        pageSize:15,
+        page:1
+      })
+    }else{
+      this.getData()
+    }
     this.setTable()
     this.searchTaskMap = [{ id: "0", type: this.type, title: "閲嶆柊璁㈣喘" }]
-    this.getData()
     this.getLocationList()
   },
   methods: {
@@ -144,7 +152,8 @@
         type: this.type,
         keyWord: data?.jointName,
         page: this.pagerOptions.currPage,
-        pageSize: this.pagerOptions.pageSize
+        pageSize: this.pagerOptions.pageSize,
+        productId:data?.productId
       }).then((res) => {
         if (res.code === 200) {
           console.log(res)
diff --git a/src/views/reportForm/inventoryReport/index.vue b/src/views/reportForm/inventoryReport/index.vue
index eaef51d..ec39be9 100644
--- a/src/views/reportForm/inventoryReport/index.vue
+++ b/src/views/reportForm/inventoryReport/index.vue
@@ -52,7 +52,8 @@
                     <i class="el-icon-refresh-left"></i>
                     <span>鍘嗗彶</span>
                   </span>
-                  <span @click="handleAddGoods(scope)" class="margin_left_5px no-cursor">
+                  <span @click="handleAddGoods(scope.row)" class="margin_left_5px;" style="cursor:pointer;"
+                  >
                     <i class="el-icon-refresh"></i>
                     <span>琛ヨ揣</span>
                   </span>
@@ -323,11 +324,15 @@
 
     // 琛ヨ揣
     handleAddGoods(row) {
-      console.log(row)
+      this.$router.push({
+        name: "orderPoint",
+        params: {
+          productId:row.produceId,
+        }
+      })
     },
     // 浣嶇疆
     handleLocation(row) {
-      console.log(row,"rowwww")
       this.$router.push({
         name:"locationReport",
         params:{

--
Gitblit v1.8.0