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