From fe87d39adb4e995ccf96a45b142ae026c3cf5eae Mon Sep 17 00:00:00 2001
From: zuozhengqing <a13193816592@163.com>
Date: 星期三, 13 十二月 2023 18:10:09 +0800
Subject: [PATCH] 配置路由守卫导航重定向

---
 src/components/makepager/CommonFormTableView.vue |   15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/src/components/makepager/CommonFormTableView.vue b/src/components/makepager/CommonFormTableView.vue
index 038d5dc..06667cc 100644
--- a/src/components/makepager/CommonFormTableView.vue
+++ b/src/components/makepager/CommonFormTableView.vue
@@ -662,7 +662,16 @@
       } else {
         let selIndex = 0
         this.tableList.tableData.map((ite, index) => {
-          if (ite.id === row.id) {
+          // ite.id 鏄笂鏋惰鍒欑殑, ite.productId鏄簱瀛樿皟鏁寸殑
+          if (ite.id === row.id&&ite.id!=undefined&&row.id!=undefined) {
+            selIndex = index
+            ite.productId = item.id
+            ite.productName = item.name
+            ite.categoryId = item.categoryId
+            ite.productCategory = item.categoryName
+            ite.amount = item.amount
+            ite.unit = item.unit
+          }else if(ite.productId===row.productId){
             selIndex = index
             ite.productId = item.id
             ite.productName = item.name
@@ -873,7 +882,9 @@
     },
     // 琛岀偣鍑�
     tableRowClick(row) {
-      this.locacionName = row.location.name
+      if (this.isReorder) {
+        this.locacionName = row.location.name
+      }
       this.$emit("tableRowClick", row, row.index)
     },
     // 鍗曢�夎鐩稿叧

--
Gitblit v1.8.0