StoreInfo.vue
2.03 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<template>
<div class="store-components gl-form-page">
<div class="title">门店信息</div>
<template>
<div class="content">
<div class="detail">
<div class="label">业务场景:</div>
<div class="value">{{ sceneList[storeInfo.sceneType] || '-' }}</div>
</div>
<div class="detail">
<div class="label">上架门店:</div>
<div class="value">
<GLTable ref="mutiProRef" :tableData="storeInfo.merchantGoodsRefList" :hasPage="false" :tableParams="tableParams">
</GLTable>
</div>
</div>
</div>
</template>
</div>
</template>
<script>
export default {
name: 'StoreInfo',
props: {
storeInfo: Object
},
data() {
return {
tableParams: {
listName: 'list',
tableColumns: [
{
label: '门店名称',
prop: 'merchantName',
formatter: cellValue => {
return cellValue.merchantName || '-'
}
},
{
label: '门店商户号',
prop: 'merchantId',
formatter: cellValue => {
return cellValue.merchantId || '-'
}
}
]
},
sceneList: {
1: "精品升级",
2: "次新车转化",
3: "售后众筹",
0: "会员权益/升级",
4: "积分商城"
}
}
},
created() {
},
methods: {
}
}
</script>
<style lang="scss" scoped>
.store-components{
margin-top: 10px;
background: white;
.title {
padding: 0 20px;
font-size: 16px;
font-weight: bold;
height: 58px;
line-height: 58px;
border-bottom: 1px solid #d8d8d8;
margin: 0 0;
color: #333;
}
.content {
padding: 32px 0 12px;
font-size: 14px;
.detail {
display: flex;
margin-bottom: 20px;
.label {
width: 154px;
text-align: right;
color: #666666;
}
.value{
flex: 0 0 50%;
}
}
}
}
</style>