diff --git a/src/views/pms/product/components/ProductInfoDetail.vue b/src/views/pms/product/components/ProductInfoDetail.vue index 82ded47c1..7cf7d72b0 100644 --- a/src/views/pms/product/components/ProductInfoDetail.vue +++ b/src/views/pms/product/components/ProductInfoDetail.vue @@ -116,8 +116,10 @@ selectProductCateValue: function (newValue) { if (newValue != null && newValue.length === 2) { this.value.productCategoryId = newValue[1]; + this.value.productCategoryName= this.getCateNameById(this.value.productCategoryId); } else { this.value.productCategoryId = null; + this.value.productCategoryName=null; } } }, @@ -154,6 +156,18 @@ } }); }, + getCateNameById(id){ + let name=null; + for(let i=0;i { if (valid) { diff --git a/src/views/pms/product/index.vue b/src/views/pms/product/index.vue index fb0eaae0e..91de3bf20 100644 --- a/src/views/pms/product/index.vue +++ b/src/views/pms/product/index.vue @@ -216,7 +216,7 @@ :visible.sync="editSkuInfo.dialogVisible" width="40%"> 商品货号: - {{editSkuInfo.productName}} + {{editSkuInfo.productSn}} @@ -301,7 +301,7 @@ editSkuInfo:{ dialogVisible:false, productId:null, - productName:'', + productSn:'', productAttributeCategoryId:null, stockList:[], productAttr:[], @@ -435,7 +435,7 @@ handleShowSkuEditDialog(index,row){ this.editSkuInfo.dialogVisible=true; this.editSkuInfo.productId=row.id; - this.editSkuInfo.productName=row.name; + this.editSkuInfo.productSn=row.productSn; this.editSkuInfo.productAttributeCategoryId = row.productAttributeCategoryId; this.editSkuInfo.keyword=null; fetchSkuStockList(row.id,{keyword:this.editSkuInfo.keyword}).then(response=>{