Commit 17a37757 authored by 黄奎's avatar 黄奎

页面修改

parent 9386d47a
...@@ -392,7 +392,7 @@ ...@@ -392,7 +392,7 @@
</el-card> </el-card>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="阶梯团设置"> <el-tab-pane label="阶梯团设置">
<groupStep @setNewVal="setNewVal" :SpecList="TempSpecList" :GroupPriceList="TempGroupPriceList" <groupStep v-if="TempSpecList&&TempSpecList.length>0" @setNewVal="setNewVal" :SpecList="TempSpecList" :GroupPriceList="TempGroupPriceList"
:SpecPriceList="TempSpecPriceList"></groupStep> :SpecPriceList="TempSpecPriceList"></groupStep>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="分销价设置"> <el-tab-pane label="分销价设置">
...@@ -529,7 +529,6 @@ ...@@ -529,7 +529,6 @@
GroupList:[],//阶梯价格 GroupList:[],//阶梯价格
}, },
IsShowSpec: false, //是否显示规格 IsShowSpec: false, //是否显示规格
TempSpecList: [], //规格列表 TempSpecList: [], //规格列表
TempSpecPriceList: [], //规格价格列表 TempSpecPriceList: [], //规格价格列表
TempGroupPriceList: [], //阶梯团价 TempGroupPriceList: [], //阶梯团价
...@@ -750,12 +749,13 @@ ...@@ -750,12 +749,13 @@
this.addMsg.App_share_pic = that.getIconLink(msg[0].url); this.addMsg.App_share_pic = that.getIconLink(msg[0].url);
this.imgDialog = false; this.imgDialog = false;
}, },
//设置阶梯价格
setNewVal(val){ setNewVal(val){
console.log("setNewVal",val); console.log("setNewVal",val);
this.TempGroupPriceList = val; var tempObj=JSON.parse(JSON.stringify(val));
this.addMsg.GroupList = val; this.TempGroupPriceList =tempObj ;
this.shareGroup_list = val; this.addMsg.GroupList = tempObj;
this.shareGroup_list = tempObj;
}, },
//获取子组件规格 //获取子组件规格
getSpecList(val) { getSpecList(val) {
......
...@@ -140,7 +140,7 @@ ...@@ -140,7 +140,7 @@
}; };
}, },
created() { created() {
console.log("attrGroups",this.attrGroups);
}, },
methods: { methods: {
......
...@@ -86,30 +86,15 @@ ...@@ -86,30 +86,15 @@
data() { data() {
return { return {
group_list: [], group_list: this.GroupPriceList,
new_attr_groups: [], new_attr_groups:this.SpecList,
new_SpecPriceList: [], new_SpecPriceList: this.SpecPriceList,
}; };
}, },
watch: { watch: {
'GroupPriceList': {
handler: function (val, oldval) {
this.group_list = JSON.parse(JSON.stringify(val));
},
},
'SpecList': {
handler: function (val, oldval) {
this.new_attr_groups = JSON.parse(JSON.stringify(val));
},
},
'SpecPriceList': {
handler: function (val, oldval) {
this.new_SpecPriceList = JSON.parse(JSON.stringify(val));
},
},
'group_list':{ 'group_list':{
handler: function (newVal) { handler: function (val, oldval) {
this.$emit('getGroup', newVal); //params是传递的参数 this.$emit('setNewVal', val); //params是传递的参数
}, },
deep:true deep:true
} }
...@@ -165,6 +150,7 @@ ...@@ -165,6 +150,7 @@
this.new_SpecPriceList.forEach(item => { this.new_SpecPriceList.forEach(item => {
var obj = { var obj = {
AttrList: item.AttrList, AttrList: item.AttrList,
SpecificationSort: item.SpecificationSort,
PinTuanPrice: 0, PinTuanPrice: 0,
PinTuanStock: 0 PinTuanStock: 0
} }
......
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