Commit b1a59a49 authored by zhengke's avatar zhengke

修改

parent 11895c97
......@@ -150,7 +150,7 @@
<i class="elzk el-tooltip el-icon-info"></i>
</el-tooltip>
</template>
<goodsSpe v-show="IsShowSpec" :SpecList="SpecificationList"
<goodsSpe v-show="IsShowSpec" @getSpecList="getSpecList" @getSpecPriceList="getSpecPriceList" :SpecList="SpecificationList"
:SpecPriceList="SpecificationPriceList"></goodsSpe>
</el-form-item>
<el-form-item label="商品货号">
......@@ -573,8 +573,8 @@
},
//保存拼团活动
SaveActivity() {
this.addMsg.SpecificationPriceList = this.SpecificationPriceList;
this.addMsg.SpecificationList = this.SpecificationList;
// this.addMsg.SpecificationPriceList = this.SpecificationPriceList;
// this.addMsg.SpecificationList = this.SpecificationPriceList;
this.addMsg.GroupList = this.GroupList;
// 是否自定义规格 1是 2否
if (this.addMsg.SpecificationList && this.addMsg.SpecificationList.length > 0) {
......@@ -696,6 +696,14 @@
//获取子组件group_list
getGroup(group_list) {
this.shareGroup_list = group_list
},
//获取子组件规格
getSpecList(val){
this.SpecificationList=val;
},
//获取子组件规格价格列表
getSpecPriceList(val){
this.SpecificationPriceList = val;
}
}
......
......@@ -300,6 +300,17 @@
this.SpecificationPriceList = JSON.parse(JSON.stringify(val));
},
},
'SpecificationList':{
handler: function (val, oldval) {
this.$emit('getSpecList',this.SpecificationList);
},
},
'SpecificationPriceList':{
handler: function (val, oldval) {
this.$emit('getSpecPriceList',this.SpecificationPriceList);
},
}
},
methods: {
// 添加规格模板
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment