master
mabo 2021-06-24 17:13:26 +08:00
parent 84f3eaea10
commit e0a7bb86a6
1 changed files with 12 additions and 5 deletions

View File

@ -67,8 +67,7 @@
<span v-show="activeCategoryName3">> {{ activeCategoryName3 }}</span> <span v-show="activeCategoryName3">> {{ activeCategoryName3 }}</span>
</p> </p>
<template v-if="!$route.query.id && draftId"> <template v-if="!$route.query.id && draftId">
<Divider>已选商品模版:{{goodsTemplates.find(item=>{return item.id == draftId}).goodsName}}</Divider> <Divider>已选商品模版:{{checkedTemplate()}}</Divider>
</template> </template>
</div> </div>
@ -727,7 +726,8 @@ export default {
this.logisticsTemplate = res.result; this.logisticsTemplate = res.result;
} }
}) })
//
//
if (this.$route.query.id) { if (this.$route.query.id) {
this.activestep = 1; this.activestep = 1;
this.goodsId = this.$route.query.id; this.goodsId = this.$route.query.id;
@ -735,7 +735,7 @@ export default {
this.selectGoodsType = false; this.selectGoodsType = false;
} }
// //
else if (this.$route.query.draftId) { else if (this.$route.query.draftId) {
this.draftId = this.$route.query.draftId; this.draftId = this.$route.query.draftId;
this.activestep = 1; this.activestep = 1;
@ -776,7 +776,14 @@ export default {
this.GET_GoodsTemplate(); this.GET_GoodsTemplate();
this.GET_NextLevelCategory(); this.GET_NextLevelCategory();
}, },
//
checkedTemplate () {
if(this.goodsTemplates.length) {
return this.goodsTemplates.find(item=>{return item.id == this.draftId}).goodsName
} else {
return ""
}
},
// //
handleClickGoodsTemplate(val) { handleClickGoodsTemplate(val) {
this.draftId = val.id; this.draftId = val.id;