From 1888b426ff2b6a529f5fdef0f0453dadef71824b Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期三, 17 四月 2024 10:17:38 +0800
Subject: [PATCH] 隐藏多单位的问题

---
 src/views/warehouseManage/listingRules/index.vue |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/views/warehouseManage/listingRules/index.vue b/src/views/warehouseManage/listingRules/index.vue
index bd4fda5..32b3b4c 100644
--- a/src/views/warehouseManage/listingRules/index.vue
+++ b/src/views/warehouseManage/listingRules/index.vue
@@ -90,7 +90,6 @@
     this.setTable()
     let query = this.$route.query
     if (query) {
-      console.log("aaaaaaaaaaaaa", query)
       this.queryProductId = query.productId?.length ? query.productId : null
       this.categoryId = query.id ? Number(query.id) : null
       this.pagerOptions.currPage = 1
@@ -132,7 +131,7 @@
           const list = res.data.map((item) => {
             return {
               ...item,
-              areaName: { label: item.location.jointName, value: item.location.id },
+              areaName: { label: item.area.jointName, value: item.area.id },
               subLocation: { label: item.location.jointName, value: item.location.id },
               productName: item.product.name,
               productCategory: item.productCategory.name,
@@ -368,10 +367,11 @@
     },
     // 閫変腑浜у搧鏂规硶
     selProductClick(value, item) {
+      console.log(value, item)
       if (value === "product") {
         this.RuleType = 1
         this.tableList.tableColumn[2].productType = false
-        this.productId = item.id
+        this.productId = item.productId
         this.productCategoryId = item.categoryId
       } else if (value === "productType") {
         this.productCategoryId = item.id

--
Gitblit v1.8.0