YY 2 years ago
parent
commit
76388a3f0a

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

@@ -33,7 +33,7 @@ export default {
     const that = this;
     return {
       // 列表
-      opera: [{ label: '选择规格', method: 'add' }],
+      opera: [{ label: '选择规格', method: 'add', display: (i) => i.status == '1' }],
       fields: [
         { label: '商品名称', model: 'name', showTip: false },
         // { label: '店铺名称', model: 'shop.name' },
@@ -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, status: '1'};
+      let query = { platform_act: this.id, shop: data.shop, goods: data._id, platform_act_type: this.type };
       if (this.type == '4') query.goods_type = this.goods_type;
       this.$router.push({ path: './goodsSpec', query: query });
     },

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

@@ -66,7 +66,6 @@ export default {
         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 };