瀏覽代碼

活动管理

潘超林 4 月之前
父節點
當前提交
fc47081798
共有 2 個文件被更改,包括 17 次插入14 次删除
  1. 16 13
      src/views/manage/active.vue
  2. 1 1
      src/views/manage/product.vue

+ 16 - 13
src/views/manage/active.vue

@@ -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;
     },

+ 1 - 1
src/views/manage/product.vue

@@ -27,7 +27,7 @@
         />
       </el-form-item>
 
-      <el-form-item label="商品状态">
+      <el-form-item label="商品状态" prop="spuStatus">
         <el-select v-model="queryParams.spuStatus" placeholder="请选择商品状态">
           <el-option label="售罄" value="2"> </el-option>
           <el-option label="上架" value="0"> </el-option>