From 6d5a9b68644735008e5fe5a70b2aa483ba3d9a7c Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期一, 22 四月 2024 10:50:37 +0800
Subject: [PATCH] 库存调整模块 添加点击自身报错位置id的问题修改

---
 src/views/operate/inventoryAdjustment/index.vue |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/views/operate/inventoryAdjustment/index.vue b/src/views/operate/inventoryAdjustment/index.vue
index bae996e..cc23f7f 100644
--- a/src/views/operate/inventoryAdjustment/index.vue
+++ b/src/views/operate/inventoryAdjustment/index.vue
@@ -35,8 +35,8 @@
                   <i class="el-icon-setting"></i>
                   <span>璁剧疆</span>
                 </span> -->
-                <template v-if="scope.row.status === 3">
-                  <span @click.stop="handleUseClick(scope.row)" class="margin_left_5px">
+                <template v-if="scope.row.status == 3">
+                  <span @click.stop="handleUseClick(scope.row)" class="margin_left_5px cursor_pointer">
                     <i class="el-icon-document"></i>
                     <span>搴旂敤</span>
                   </span>
@@ -275,13 +275,13 @@
     },
     // 琛岀偣鍑�
     tableRowClick(row, rowIndex) {
-      this.locationId = row.locationId
-      this.rowIndex = rowIndex
       this.isSel()
       //!this.isNoProduct && this.currentRowId == 0
       if (!this.isNoProduct) {
         this.$message.error("璇峰畬鎴愬綋鍓嶄繚瀛樻垨鍙栨秷淇濆瓨锛�")
       } else {
+        this.locationId = row.locationId
+        this.rowIndex = rowIndex
         this.currentRowId = row.id
         this.addTitle = "淇濆瓨"
         this.showDiscard = true

--
Gitblit v1.8.0