From f45b159864ad79f326884ab3644269ef9eb7ee9d Mon Sep 17 00:00:00 2001
From: zuozhengqing <a13193816592@163.com>
Date: 星期四, 04 一月 2024 11:49:16 +0800
Subject: [PATCH] 出入库bug修复,调整仓库位置字段绑定,编辑时列表绑定源位置
---
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