YY 2 лет назад
Родитель
Сommit
9ce4c1233c

+ 1 - 1
src/views/platActivi/act/parts/goods/goodsDetail.vue

@@ -76,7 +76,7 @@ export default {
     },
     // 新增
     async toAdd({ data }) {
-      let query = { platform_act: this.id, shop: data.shop, goods: data._id, platform_act_type: this.type };
+      let query = { platform_act: this.id, shop: data.shop, goods: data._id, platform_act_type: this.type, status: data.status };
       if (this.type == '4') query.goods_type = this.goods_type;
       this.$router.push({ path: './goodsSpec', query: query });
     },

+ 11 - 1
src/views/platActivi/act/parts/goods/goodsSpec.vue

@@ -60,7 +60,14 @@ export default {
     },
     // 新增
     async toAdd({ data }) {
-      let form = { platform_act: this.platform_act, shop: this.shop, goods: this.goods, platform_act_type: this.platform_act_type, spec: data._id };
+      let form = {
+        platform_act: this.platform_act,
+        shop: this.shop,
+        goods: this.goods,
+        platform_act_type: this.platform_act_type,
+        spec: data._id,
+        status: this.status,
+      };
       if (this.platform_act_type == '4') {
         let config = { goods_type: this.goods_type };
         form.config = config;
@@ -99,6 +106,9 @@ export default {
     goods_type() {
       return this.$route.query.goods_type;
     },
+    status() {
+      return this.$route.query.status;
+    },
   },
   metaInfo() {
     return { title: this.$route.meta.title };