From 3af52f6a984c5fe6671640dbfb1c40540416ea7d Mon Sep 17 00:00:00 2001
From: yangfeng <wanwan926_4@163.com>
Date: 星期三, 08 十一月 2023 16:40:51 +0800
Subject: [PATCH] 新建产品增加上传图片功能,增加vue-cropper插件

---
 src/views/reportForm/inventoryReport/index.vue |   19 +++++++++++++------
 1 files changed, 13 insertions(+), 6 deletions(-)

diff --git a/src/views/reportForm/inventoryReport/index.vue b/src/views/reportForm/inventoryReport/index.vue
index 8446864..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,15 +324,21 @@
 
     // 琛ヨ揣
     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:{
-          keyWord:row.row.productName,
+          // keyWord:row.row.productName,
+          wareHouseCode:this.warehouseListName,
+          productId:row.row.produceId,
           name:"搴撳瓨鎶ヨ〃"
         }
       })
@@ -397,8 +404,8 @@
         page: this.pagerOptions.currPage,
         pageSize: this.pagerOptions.pageSize
       }).then((res) => {
-        if (res.data.code === 200) {
-          this.warehouseList = res.data.data
+        if (res.code === 200) {
+          this.warehouseList = res.data
         }
       })
     }

--
Gitblit v1.8.0