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

页面修改

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