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

页面修改

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