From 0358c535963edb19780cd53c8e133bf298da6419 Mon Sep 17 00:00:00 2001 From: zuozhengqing <a13193816592@163.com> Date: 星期二, 31 十月 2023 10:14:47 +0800 Subject: [PATCH] 上架规则列表修改 --- src/components/makepager/CommonFormTableView.vue | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/components/makepager/CommonFormTableView.vue b/src/components/makepager/CommonFormTableView.vue index 9d3349d..1962ce1 100644 --- a/src/components/makepager/CommonFormTableView.vue +++ b/src/components/makepager/CommonFormTableView.vue @@ -216,7 +216,10 @@ v-for="item in productTypeNameOptions" :key="item.id" :label="item.name" - :value="item.name" + :value="{ + value: item.id, + label: item.name, + }" > </el-option> </el-select> @@ -463,7 +466,6 @@ }, // 閫夋嫨浜у搧 selProductClick(item) { - console.log(item) this.tableList.tableData.map((ite) => { if (ite.productName.label === item.label) { ite.productId = item.value @@ -491,6 +493,12 @@ }, // 閫夋嫨浜у搧绫诲瀷 selProductTypeClick(item) { + this.tableList.tableData.map((ite) => { + if (ite.productCategory.label === item.label) { + ite.productCategoryId = item.value + ite.productCategory = item.label + } + }) if (this.isinventory) { this.getProductCategoryList() } -- Gitblit v1.8.0