Commit 360120c5 authored by zhengke's avatar zhengke

修改

parent cc8544d9
......@@ -492,8 +492,8 @@
activeName: "first",
addMsg: {
ActivityId: 0, //活动Id
StartTime: '2020-08-12 08:00:00', //开始时间
EndTime: '2020-09-30 23:59:59', //结束时间
StartTime: '', //开始时间
EndTime: '', //结束时间
GoodId: 0, //商品编号
name: '', //商品名称
GoodsStatus: 1, //上架状态(0-未开始,1-上架,2-下架中,3-删除)
......@@ -561,12 +561,38 @@
methods: {
//获取商品数据
getData() {
var qMsg = {
var qMsg = {
ActivityId: this.addMsg.ActivityId
}
this.apipost("/api/GroupBuy/GetGroupbuyActivity", qMsg, res => {
console.log("GetGroupbuyActivity", res);
if (res.data.resultCode == 1) {
let Mydata = res.data.data;
this.addMsg.StartTime = Mydata.StartTimeStr;
this.addMsg.EndTime = Mydata.EndTimeStr;
this.addMsg.GoodId = Mydata.GoodId;
this.addMsg.name = Mydata.QGoodName;
this.addMsg.GoodsStatus = Mydata.GoodsStatus;
this.addMsg.Sort = Mydata.Sort;
this.addMsg.SellingPrice = Mydata.SellingPrice;
this.addMsg.Original_Price = Mydata.Original_Price;
this.addMsg.Goods_Stock = Mydata.Goods_Stock;
this.addMsg.Goods_unit = Mydata.Goods_unit;
this.addMsg.Goods_no = Mydata.Goods_no;
this.addMsg.Goods_weight = Mydata.Goods_weight;
this.addMsg.Is_Auto_Add_Robot = Mydata.Is_Auto_Add_Robot;
this.addMsg.Virtual_Sales = Mydata.Virtual_Sales;
this.addMsg.Is_Alone_Buy = Mydata.Is_Alone_Buy;
this.addMsg.IsDefaultService = Mydata.IsDefaultService;
this.addMsg.ServiceList = Mydata.ServiceList;
this.addMsg.FreightId = Mydata.FreightId;
this.addMsg.FormsId = Mydata.FormsId;
this.addMsg.Confine_Count = Mydata.Confine_Count;
this.addMsg.Confine_Order_Count = Mydata.Confine_Order_Count;
this.addMsg.Pieces = Mydata.Pieces;
this.addMsg.Forehead = Mydata.Forehead;
this.addMsg.Is_Area_Limit = Mydata.Is_Area_Limit;
} else {
......@@ -583,9 +609,6 @@
},
//保存拼团活动
SaveActivity() {
// 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) {
this.addMsg.IsCustomSpecification = 1;
......@@ -706,6 +729,7 @@
//获取子组件group_list
getGroup(group_list) {
this.shareGroup_list = group_list
this.addMsg.GroupList = group_list;
},
//获取子组件规格
getSpecList(val){
......
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