From 81c27d42bf0e43bea7f3c3dfa75762c2c5ecaca8 Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期四, 25 四月 2024 15:23:56 +0800
Subject: [PATCH] wms 概述详情页根据不同的名称顶部名称不同

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

diff --git a/src/views/operate/inventoryAdjustment/index.vue b/src/views/operate/inventoryAdjustment/index.vue
index 1ec5461..aaa3b44 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>
@@ -119,7 +119,8 @@
     async getData() {
       await getInventoryAdjustmentList({
         page: this.pagerOptions.currPage,
-        pageSize: this.pagerOptions.pageSize
+        pageSize: this.pagerOptions.pageSize,
+        keyword:this.keyword,
       }).then((res) => {
         if (res.code === 200) {
           console.log(res)
@@ -149,8 +150,6 @@
     },
     // 鏂板
     addProductClick() {
-      console.log(this.tableData)
-      console.log(this.addTitle)
       this.isSel()
       if (this.isNoProduct && this.addTitle === "鏂板缓") {
         this.$refs.tablelistRef.getLocationList()
@@ -277,13 +276,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
@@ -309,6 +308,8 @@
     getList(val) {
       this.keyword = val
       this.pagerOptions.currPage = 1
+      this.addTitle = "鏂板缓"
+      this.showDiscard = false
       this.getData()
     },
     // 閫夋嫨浣嶇疆鏂规硶

--
Gitblit v1.8.0