From 69499591986af4a375eab01eaac0f890981b66b9 Mon Sep 17 00:00:00 2001
From: chenhc <2369838784@qq.com>
Date: Sat, 18 Jan 2025 12:07:05 +0800
Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/components/ShelfDisplay/index.vue    | 6 +++++-
 src/views/basic/workplace/rackManage.vue | 7 ++++++-
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/src/components/ShelfDisplay/index.vue b/src/components/ShelfDisplay/index.vue
index f53d119c..ae3fd5f0 100644
--- a/src/components/ShelfDisplay/index.vue
+++ b/src/components/ShelfDisplay/index.vue
@@ -1,7 +1,7 @@
 <template>
   <div class="shelf-container">
     <div class="shelf">
-      <el-divider>取货架编号:{{ freightCode }}</el-divider>
+      <el-divider>{{ freightName }}--{{ freightCode }}</el-divider>
       <div style="margin-top: 20px">
         <div
           v-for="(row, rowIndex) in shelfData"
@@ -91,6 +91,10 @@ export default {
     freightCode: {
       type: Object,
       required: true
+    },
+    freightName: {
+      type: Object,
+      required: true
     }
   },
   methods: {
diff --git a/src/views/basic/workplace/rackManage.vue b/src/views/basic/workplace/rackManage.vue
index f8f19695..b0b26dc7 100644
--- a/src/views/basic/workplace/rackManage.vue
+++ b/src/views/basic/workplace/rackManage.vue
@@ -38,7 +38,7 @@
   <!--  <el-button type="primary" @click.native="saveTest()">测试货架组件</el-button>-->
   <!--</el-button-group>-->
   <el-dialog
-    title="查看取货架"
+    :title=this.title
     :visible.sync="ShelfDisplayFlag"
     width="75%"
     v-if="ShelfDisplayFlag"
@@ -49,6 +49,7 @@
       :shelfData="this.layerList"
       @slot-click="handleSlotClick"
       :freightCode="freightCode"
+      :freightName="freightName"
     >
     </ShelfDisplay>
   </el-dialog>
@@ -80,6 +81,7 @@ export default {
       ],
       layerList:[],
       list:[],
+      title:"",
       freightQuery: {
         // page: 1,
         // limit: 10,
@@ -91,6 +93,7 @@ export default {
         // deptCode: this.$store.getters.locDeptCode
       },
       freightCode: '',
+      freightName: '',
     }
   },
   methods: {
@@ -137,7 +140,9 @@ export default {
 
     },
     handleClick(info){
+      this.title = info.name
       this.freightCode = info.code
+      this.freightName = info.name
       this.ShelfDisplayFlag = true
       this.getFreights()
     },