|
@@ -407,7 +407,9 @@ export default {
|
|
|
},
|
|
|
multipleTable(val) {
|
|
|
console.log(val);
|
|
|
-
|
|
|
+ val.forEach((e) => {
|
|
|
+ this.shopList.push(e);
|
|
|
+ });
|
|
|
let list = [];
|
|
|
val.forEach((e) => {
|
|
|
list.push({
|
|
@@ -416,17 +418,18 @@ export default {
|
|
|
});
|
|
|
});
|
|
|
this.shop.skuList = list;
|
|
|
+
|
|
|
this.shop.promotionId = this.ParticipateId;
|
|
|
- promotionSku(this.shop).then((res) => {
|
|
|
- if (res.code == 200) {
|
|
|
- this.$message({
|
|
|
- type: "success",
|
|
|
- message: "添加成功",
|
|
|
- });
|
|
|
- this.shopOpen = false;
|
|
|
- this.getShopList();
|
|
|
- }
|
|
|
- });
|
|
|
+ // promotionSku(this.shop).then((res) => {
|
|
|
+ // if (res.code == 200) {
|
|
|
+ // this.$message({
|
|
|
+ // type: "success",
|
|
|
+ // message: "添加成功",
|
|
|
+ // });
|
|
|
+ // this.shopOpen = false;
|
|
|
+ // this.getShopList();
|
|
|
+ // }
|
|
|
+ // });
|
|
|
this.shopOpen = false;
|
|
|
},
|
|
|
shopRemove(record) {
|
|
@@ -478,8 +481,8 @@ export default {
|
|
|
this.imageUrl = record.img;
|
|
|
|
|
|
this.form.dateRange = [
|
|
|
- moment(record.startTime).format("yyyy-MM-DD hh:mm:ss"),
|
|
|
- moment(record.endTime).format("yyyy-MM-DD hh:mm:ss"),
|
|
|
+ moment(record.startTime).format("yyyy-MM-DD HH:mm:ss"),
|
|
|
+ moment(record.endTime).format("yyyy-MM-DD HH:mm:ss"),
|
|
|
];
|
|
|
this.detailOpen = true;
|
|
|
},
|