Commit cb66fe21 by 王志慧

commit

1 parent a379853a
...@@ -73,7 +73,18 @@ html { ...@@ -73,7 +73,18 @@ html {
width: 36px; width: 36px;
height: 36px; height: 36px;
} }
.text-6{
color: #666666;
}
.text-3{
color: #333333;
}
.font-12{
font-size: 12px;
}
.weight-6 {
font-weight: 600;
}
.carIcon { .carIcon {
display: inline-block; display: inline-block;
width: 22px; width: 22px;
...@@ -82,3 +93,17 @@ html { ...@@ -82,3 +93,17 @@ html {
background-size: 100% 100%; background-size: 100% 100%;
margin-right: 4px; margin-right: 4px;
} }
.el-tooltip__popper.is-light {
background: #ffffff;
box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.08);
border: 1px solid #e4e7ed !important;
width: 177px;
box-sizing: border-box;
}
.el-tooltip__popper[x-placement^='top'] .popper__arrow {
border-color: #e4e7ed !important;
}
.el-tooltip__popper[x-placement^='top'] .popper__arrow:after {
border-bottom-color: #e4e7ed !important;
}
...@@ -9,6 +9,19 @@ ...@@ -9,6 +9,19 @@
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable ref="commofityRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun"> <GLTable ref="commofityRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<div slot="merchantName" slot-scope="scope">
<span v-if="scope.scope.merchantList.length == 1">{{ scope.scope.merchantList[0].merchantName }}</span>
<el-tooltip v-else placement="top" effect="light">
<div slot="content">
<div class="text-3 font-12 weight-6" style="line-height:24px">上家门店</div>
<div class="text-6 font-12" style="line-height:24px" v-for="item in scope.scope.merchantList" :key="item">{{item.merchantName}}</div>
</div>
<div class="use-store">
<img src="@/assets/store.png" />
x {{ scope.scope.merchantList.length }}
</div>
</el-tooltip>
</div>
<div class="table-btns" slot="auth-button" slot-scope="scope"> <div class="table-btns" slot="auth-button" slot-scope="scope">
<GLTableButton :buttonList="tableButtonList" :buttonItem="scope.scope" :buttonNum="3"></GLTableButton> <GLTableButton :buttonList="tableButtonList" :buttonItem="scope.scope" :buttonNum="3"></GLTableButton>
</div> </div>
...@@ -50,12 +63,14 @@ export default { ...@@ -50,12 +63,14 @@ export default {
{ {
label: '商品名称', label: '商品名称',
prop: 'goodsName', prop: 'goodsName',
width: '200' width: '150',
line: 1
}, },
{ {
label: '商品编码', label: '商品编码',
prop: 'type', prop: 'type',
width: '110' width: '110',
line: 1
}, },
{ {
label: '所属系列', label: '所属系列',
...@@ -79,7 +94,7 @@ export default { ...@@ -79,7 +94,7 @@ export default {
{ {
label: '最低售价/元', label: '最低售价/元',
prop: 'minSellPrice', prop: 'minSellPrice',
width: 120, width: 120
}, },
{ {
label: '赠送成本', label: '赠送成本',
...@@ -92,16 +107,17 @@ export default { ...@@ -92,16 +107,17 @@ export default {
{ {
label: '质保年限/年', label: '质保年限/年',
prop: 'warrantyPeriod', prop: 'warrantyPeriod',
width: 120, width: 120
}, },
{ {
label: '使用门店', label: '使用门店',
prop: '', prop: '',
formatter: cellValue => { addHtml: 'merchantName',
return cellValue.merchantList?.map(item => item.merchantName).join(',') // formatter: cellValue => {
}, // return cellValue.merchantList.length==1?cellValue.merchantList?.map(item => item.merchantName).join(','):cellValue.merchantList.length
width: 200, // },
line: 1 width: 150
// line: 1
}, },
{ {
label: '创建日期', label: '创建日期',
...@@ -255,4 +271,16 @@ export default { ...@@ -255,4 +271,16 @@ export default {
} }
} }
</script> </script>
<style scoped></style> <style scoped lang="scss">
.use-store {
display: flex;
font-size: 14px;
color: #5850ff;
align-items: center;
img {
width: 14px;
height: 12.98px;
margin-right: 8px;
}
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!