Commit 9809a98a authored by 黄奎's avatar 黄奎

页面修改

parent a73e55c8
......@@ -150,8 +150,8 @@
<i class="elzk el-tooltip el-icon-info"></i>
</el-tooltip>
</template>
<goodsSpe v-show="IsShowSpec" @getSpecList="getSpecList" @getSpecPriceList="getSpecPriceList" :SpecList="TempSpecList"
:SpecPriceList="TempSpecPriceList"></goodsSpe>
<goodsSpe v-show="IsShowSpec" @getSpecList="getSpecList" @getSpecPriceList="getSpecPriceList"
:SpecList="TempSpecList" :SpecPriceList="TempSpecPriceList"></goodsSpe>
</el-form-item>
<el-form-item label="商品货号">
<el-input v-model="addMsg.Goods_no" size="small" :disabled="true" placeholder="请输入商品货号"
......@@ -392,8 +392,8 @@
</el-card>
</el-tab-pane>
<el-tab-pane label="阶梯团设置">
<groupStep :Goods="addMsg" :GroupList="GroupList" @getGroup="getGroup" :SpecList="TempSpecList"
:GroupPriceList="TempGroupPriceList" :SpecPriceList="TempSpecPriceList"></groupStep>
<groupStep @getGroup="getGroup" :SpecList="TempSpecList" :GroupPriceList="TempGroupPriceList"
:SpecPriceList="TempSpecPriceList"></groupStep>
</el-tab-pane>
<el-tab-pane label="分销价设置">
<distributePrice :shareGroup_list="shareGroup_list"></distributePrice>
......@@ -531,7 +531,7 @@
GroupList: [], //阶梯价格列表
TempSpecList: [], //规格列表
TempSpecPriceList: [], //规格价格列表
TempGroupPriceList:[],//阶梯团价
TempGroupPriceList: [], //阶梯团价
serviceDig: false,
serviceList: [], //新增服务弹出数据
......@@ -566,7 +566,7 @@
ActivityId: this.addMsg.ActivityId
}
this.apipost("/api/GroupBuy/GetGroupbuyActivity", qMsg, res => {
console.log("GetGroupbuyActivity", res);
console.log("GetGroupbuyActivity", res.data.data);
if (res.data.resultCode == 1) {
let Mydata = res.data.data;
this.addMsg.StartTime = Mydata.StartTimeStr;
......@@ -603,16 +603,21 @@
this.addMsg.App_share_title = Mydata.App_share_title;
this.addMsg.App_share_pic = Mydata.App_share_pic;
this.addMsg.IsCustomSpecification = Mydata.IsCustomSpecification;
if(Mydata.SpecificationList&&Mydata.SpecificationList.length>0){
if (Mydata.SpecificationList && Mydata.SpecificationList.length > 0) {
this.addMsg.SpecificationList = Mydata.SpecificationList; //规格赋值
this.TempSpecList = Mydata.SpecificationList;
}
if(Mydata.SpecificationPriceList&&Mydata.SpecificationPriceList.length>0){
if (Mydata.SpecificationPriceList && Mydata.SpecificationPriceList.length > 0) {
this.addMsg.SpecificationPriceList = Mydata.SpecificationPriceList; //规格列表赋值
this.TempSpecPriceList = JSON.parse(JSON.stringify(Mydata.SpecificationPriceList));
}
this.IsShowSpec=true;
if (Mydata.GroupList && Mydata.GroupList.length > 0) {
this.addMsg.GroupList = Mydata.GroupList;
this.TempGroupPriceList = Mydata.GroupList;
}
this.IsShowSpec = true;
} else {
this.Error(res.data.message);
}
......@@ -746,15 +751,15 @@
},
//获取子组件group_list
getGroup(group_list) {
this.shareGroup_list = group_list
this.TempGroupPriceList = group_list;
this.addMsg.GroupList = group_list;
},
//获取子组件规格
getSpecList(val){
getSpecList(val) {
this.addMsg.SpecificationList = val;
},
//获取子组件规格价格列表
getSpecPriceList(val){
getSpecPriceList(val) {
this.addMsg.SpecificationPriceList = val;
}
}
......
......@@ -18,13 +18,13 @@
<div class="header-require">拼团人数</div>
</template>
<template slot-scope="scope">
<el-input v-model="scope.row.people_num" size="small" type="text" maxlength="5"
<el-input v-model="scope.row.People_Num" size="small" type="text" maxlength="5"
oninput="this.value = this.value.replace(/[^0-9]/, '')" placeholder="请输入拼团人数"></el-input>
</template>
</el-table-column>
<el-table-column label="团长优惠" width="200">
<template slot-scope="scope">
<el-input type="text" v-model="scope.row.preferential_price" size="small" placeholder="请输入团长优惠">
<el-input type="text" v-model="scope.row.Preferential_Price" size="small" placeholder="请输入团长优惠">
</el-input>
</template>
</el-table-column>
......@@ -33,7 +33,7 @@
<div class="header-require">拼团时间</div>
</template>
<template slot-scope="scope">
<el-input v-model="scope.row.pintuan_time" maxlength="4" type="text" size="small"
<el-input v-model="scope.row.Pintuan_Time" maxlength="4" type="text" size="small"
oninput="this.value = this.value.replace(/[^0-9]/, '')" placeholder="请输入拼团时间">
<template slot="append">小时</template>
</el-input>
......@@ -41,7 +41,7 @@
</el-table-column>
<el-table-column label="最多开团数量" :render-header="delegation" width="200">
<template slot-scope="scope">
<el-input v-model="scope.row.group_num" type="text" size="small" maxlength="5"
<el-input v-model="scope.row.Group_Num" type="text" size="small" maxlength="5"
oninput="this.value = this.value.replace(/[^0-9]/, '')" placeholder="请输入团长数量">
<template slot="append"></template>
</el-input>
......@@ -65,7 +65,7 @@
<el-card v-for="(item, index) in group_list" style="margin-top: 24px;" :key="index" shadow="never">
<div slot="header">
<el-tag type="danger">{{item.people_num}}人团</el-tag>
<el-tag type="danger">{{item.People_Num}}人团</el-tag>
</div>
<el-form-item>
<div>价格与库存</div>
......@@ -92,10 +92,9 @@
};
},
watch: {
'GroupList': {
'GroupPriceList': {
handler: function (val, oldval) {
this.group_list = JSON.parse(JSON.stringify(val));
console.log("this.group_list",this.group_list);
},
},
'SpecList': {
......@@ -167,10 +166,11 @@
})
}
this.group_list.push({
people_num: 2,
preferential_price: 1,
pintuan_time: 1,
People_Num: 2,
Preferential_Price: 1,
Pintuan_Time: 1,
goods_id: 0,
Group_Num:0,
StepPriceList: attr
});
this.$emit('getGroup', this.group_list); //params是传递的参数
......
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