Commit cb66fe21 by 王志慧

commit

1 parent a379853a
......@@ -73,7 +73,18 @@ html {
width: 36px;
height: 36px;
}
.text-6{
color: #666666;
}
.text-3{
color: #333333;
}
.font-12{
font-size: 12px;
}
.weight-6 {
font-weight: 600;
}
.carIcon {
display: inline-block;
width: 22px;
......@@ -82,3 +93,17 @@ html {
background-size: 100% 100%;
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 @@
<!-- 表格区域 开始 -->
<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">
<GLTableButton :buttonList="tableButtonList" :buttonItem="scope.scope" :buttonNum="3"></GLTableButton>
</div>
......@@ -50,12 +63,14 @@ export default {
{
label: '商品名称',
prop: 'goodsName',
width: '200'
width: '150',
line: 1
},
{
label: '商品编码',
prop: 'type',
width: '110'
width: '110',
line: 1
},
{
label: '所属系列',
......@@ -79,7 +94,7 @@ export default {
{
label: '最低售价/元',
prop: 'minSellPrice',
width: 120,
width: 120
},
{
label: '赠送成本',
......@@ -89,19 +104,20 @@ export default {
label: '产品成本',
prop: 'productCost'
},
{
{
label: '质保年限/年',
prop: 'warrantyPeriod',
width: 120,
width: 120
},
{
label: '使用门店',
prop: '',
formatter: cellValue => {
return cellValue.merchantList?.map(item => item.merchantName).join(',')
},
width: 200,
line: 1
addHtml: 'merchantName',
// formatter: cellValue => {
// return cellValue.merchantList.length==1?cellValue.merchantList?.map(item => item.merchantName).join(','):cellValue.merchantList.length
// },
width: 150
// line: 1
},
{
label: '创建日期',
......@@ -255,4 +271,16 @@ export default {
}
}
</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!