linwenxin 1 gadu atpakaļ
vecāks
revīzija
23b5c3bee0
1 mainītis faili ar 28 papildinājumiem un 28 dzēšanām
  1. 28 28
      src/views/mallManagement/goods/goods_add/index.vue

+ 28 - 28
src/views/mallManagement/goods/goods_add/index.vue

@@ -108,13 +108,13 @@
           </el-cascader>
         </el-form-item>
 
-        <el-form-item label="营销活动:" prop="marketing">
+        <!-- <el-form-item label="营销活动:" prop="marketing">
           <el-select v-model="step1Form.marketing" placeholder="请选择营销活动" style="width: 300px" clearable
             :disabled="!step1Form.classify">
             <el-option v-for="item in marketingList" :key="item.id" :label="item.name" :value="item.id">
             </el-option>
           </el-select>
-        </el-form-item>
+        </el-form-item> -->
 
         <el-form-item label="商品属性:" prop="attrs">
           <el-select v-model="step1Form.attrs" multiple placeholder="请选择商品属性" clearable style="width: 300px">
@@ -523,7 +523,7 @@ export default {
 
       editSpecImageIdx: null,
 
-      marketingList: [],
+      // marketingList: [],
 
       attrList: [],
       tagList: [],
@@ -596,24 +596,24 @@ export default {
       })
     },
 
-    getMarketingList() {
-      let classifyList = this.classifyList;
-      let categoryId = '';
-      this.classifyList.forEach(item => {
-        classifyList = classifyList.concat(item.children);
-      })
-      if (typeof this.step1Form.classify == 'string') {
-        categoryId = this.step1Form.classify;
-      } else {
-        categoryId = this.step1Form.classify[1];
-      }
-      let type = classifyList[this.$findElem(classifyList, 'categoryId', categoryId)].workOrderType;
-      getMarketingList({
-        type: type === "INSTALL" ? 1 : 2
-      }).then(res => {
-        this.marketingList = res.data;
-      })
-    },
+    // getMarketingList() {
+    //   let classifyList = this.classifyList;
+    //   let categoryId = '';
+    //   this.classifyList.forEach(item => {
+    //     classifyList = classifyList.concat(item.children);
+    //   })
+    //   if (typeof this.step1Form.classify == 'string') {
+    //     categoryId = this.step1Form.classify;
+    //   } else {
+    //     categoryId = this.step1Form.classify[1];
+    //   }
+    //   let type = classifyList[this.$findElem(classifyList, 'categoryId', categoryId)].workOrderType;
+    //   getMarketingList({
+    //     type: type === "INSTALL" ? 1 : 2
+    //   }).then(res => {
+    //     this.marketingList = res.data;
+    //   })
+    // },
 
     getTagList() {
       getTagList({
@@ -681,7 +681,7 @@ export default {
           // showDate: data.logoStartTime ? [data.logoStartTime.slice(0, 10), data.logoEndTime.slice(0, 10)] : [],
         }
         this.$set(this.step1Form, 'images', data.images);
-        this.getMarketingList();
+        // this.getMarketingList();
 
         this.step2Form = {
           specType: data.hasSpec,
@@ -740,7 +740,7 @@ export default {
 
     changeClassify() {
       this.step1Form.marketing = '';
-      this.getMarketingList();
+      // this.getMarketingList();
     },
 
     // 将数组加上索引
@@ -927,10 +927,10 @@ export default {
         categoryId = this.step1Form.classify[1];
       }
 
-      let marketingName = '';
-      if (this.step1Form.marketing) {
-        marketingName = this.marketingList[this.$findElem(this.marketingList, 'id', this.step1Form.marketing)].name;
-      }
+      // let marketingName = '';
+      // if (this.step1Form.marketing) {
+      //   marketingName = this.marketingList[this.$findElem(this.marketingList, 'id', this.step1Form.marketing)].name;
+      // }
 
       let params = {
         goodsName: this.step1Form.goodsName,
@@ -940,7 +940,7 @@ export default {
         vedio: this.step1Form.videoUrl,
         categoryId: categoryId,
         marketingId: this.step1Form.marketing,
-        marketingName: marketingName,
+        // marketingName: marketingName,
         tags: this.step1Form.attrs,
         tagsLabel: this.step1Form.tags,
         // logo: this.step1Form.logoUrl,