diff --git a/src/views/product/goodsTool/GoodsItem.vue b/src/views/product/goodsTool/GoodsItem.vue index 8e1f146..c4a875a 100644 --- a/src/views/product/goodsTool/GoodsItem.vue +++ b/src/views/product/goodsTool/GoodsItem.vue @@ -310,6 +310,7 @@ specUnit: item.specUnit, description: item.description, sortOrder: item.sortOrder, + productNumber:item.productNumber })) // 过滤掉空项(新增模式下) @@ -343,6 +344,7 @@ if (res.status === 200) { this.$message.success('操作成功'); + this.$emit('refresh'); //刷新 this.drawerVisible = false; // 关闭抽屉 } else { this.$message.error('操作失败: ' + res.msg); diff --git a/src/views/product/goodsTool/index.vue b/src/views/product/goodsTool/index.vue index a7bf8cc..0de20f6 100644 --- a/src/views/product/goodsTool/index.vue +++ b/src/views/product/goodsTool/index.vue @@ -156,6 +156,7 @@ :mode="formMode" :shop-list-data="shopList" @success="handleSuccess" + @refresh="getGoodsList" />