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