From 3a94fefb02746237a8d7271e8f59b1a4261bf61e Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期一, 13 十一月 2023 18:19:49 +0800
Subject: [PATCH] 重订货点击空白显示对象问题 位置模块编辑查看的时候点击当前库存跳转到位置报表并且把当前位置商品列出来

---
 src/views/warehouseManage/position/AddDialog.vue |   15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/src/views/warehouseManage/position/AddDialog.vue b/src/views/warehouseManage/position/AddDialog.vue
index cc28fb6..30cdb4f 100644
--- a/src/views/warehouseManage/position/AddDialog.vue
+++ b/src/views/warehouseManage/position/AddDialog.vue
@@ -32,7 +32,7 @@
         size="mini"
       >
         <div class="content-number-bg">
-          <FormBtnsView :showPosition="true" :showWarehouse="false" @productClick="productClick" />
+          <FormBtnsView :showPosition="true" :showPositionCursor="this.editConfig.title != '鏂板缓'?true:false" @positionReport="positionReport" :showWarehouse="false" @productClick="productClick" />
         </div>
         <div class="basic-info">
           <div class="basic-info-view">
@@ -56,7 +56,7 @@
                     :disabled="editCommonConfig.title!='鏂板缓'"
                     style="width: 90%"
                   >
-                    <el-option v-for="item in positionList" :key="item.id" :label="item.name" :value="item.id">
+                    <el-option v-for="item in positionList" :key="item.id" :label="item.jointName" :value="item.id">
                     </el-option>
                   </el-select>
                 </el-form-item>
@@ -241,6 +241,17 @@
         callback()
       }
     },
+    // 褰撳墠搴撳瓨
+    positionReport(){
+      if(this.editConfig.title != '鏂板缓'){
+        this.$router.push({
+          name: "locationReport",
+          params: {
+            positionId: this.editConfig.infomation.id
+          }
+        })
+      }
+    },
     // 璺嚎
     productClick() {},
     // 璁剧疆鍒犻櫎/鎵撳嵃/缂栬緫鏄惁鏄剧ず

--
Gitblit v1.8.0