parentDetail.vue
1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<!-- 套餐详情 -->
<template>
<div v-if="pageShow">
<!-- 套餐信息 -->
<meal-combo :editForm="editForm"></meal-combo>
<!-- 商品信息 -->
<goods-info :goodsInfo="editForm.merchantGoodsInfoList"></goods-info>
<!-- 门店信息 -->
<store-info :storeInfo="editForm"></store-info>
</div>
</template>
<script>
import MealCombo from "./components/MealCombo.vue"
import GoodsInfo from "./components/GoodsInfo.vue"
import StoreInfo from "./components/StoreInfo.vue"
export default {
name: 'packageDetail',
components: {
MealCombo,
GoodsInfo,
StoreInfo
},
data() {
return {
pageShow: false,
editForm: {}
}
},
created() {
this.routerInfo = JSON.parse(decodeURIComponent(this.$route.params.id))
},
mounted() {
this.getParentDetailInfo()
},
methods: {
getParentDetailInfo() {
let params = {
parentId: this.routerInfo?.parentId
}
this.$apis.contractManager.getProdPackageDetailApi(params).then(res => {
this.editForm = res || {}
this.pageShow = true
})
}
}
}
</script>