Files
kengee-data-screen/src/views/AppStoresTable.vue

116 lines
3.0 KiB
Vue
Raw Normal View History

2024-06-17 18:20:13 +08:00
<script>
export default {
2024-06-18 17:09:25 +08:00
name: "AppStoresTable",
2024-06-17 23:18:11 +08:00
label: "多店监控",
data() {
return {
2024-06-18 17:09:25 +08:00
stores: [
{}, {}, {}, {}, {}
],
2024-06-17 23:18:11 +08:00
columns: {
品类销售情况: [
{label: "品类", prop: "categoryName"},
{label: "销售额", prop: "sales"},
{label: "库存金额", prop: "inventoryAmount"},
{label: "同/环比销售额", prop: "compareSales"},
{label: "同/环比库存金额", prop: "compareInventoryAmount"},
{label: "前四周日军销售额", prop: "averageSales"},
],
重点单品情况: [
{label: "重点单品", prop: "categoryName"},
{label: "当日目标", prop: "sales"},
{label: "销售数量", prop: "inventoryAmount"},
{label: "库存数量", prop: "compareSales"},
{label: "剩余时间预计销售数量", prop: "compareInventoryAmount"},
{label: "提醒", prop: "averageSales"},
]
},
}
}
2024-06-17 18:20:13 +08:00
}
</script>
<template>
2024-06-18 17:09:25 +08:00
<section class="AppStoresTable">
<div class="layout">
<div class="store" v-for="store in stores" :key="store.id">
<div class="header" v-text="'郑州朗程康桥店'"/>
<el-carousel indicator-position="none" height="250px">
<el-carousel-item></el-carousel-item>
</el-carousel>
<div class="title" v-text="'品类销售情况'"/>
<el-table size="mini" header-cell-class-name="tableHeader" cell-class-name="tableCell" max-height="275px">
<el-table-column v-for="column in columns.品类销售情况" v-bind="column" :key="column.prop"/>
</el-table>
<div class="title" v-text="'重点单品情况'"/>
<el-table size="mini" header-cell-class-name="tableHeader" cell-class-name="tableCell" max-height="275px">
<el-table-column v-for="column in columns.重点单品情况" v-bind="column" :key="column.prop"/>
</el-table>
</div>
</div>
2024-06-17 21:55:16 +08:00
</section>
2024-06-17 18:20:13 +08:00
</template>
<style scoped>
2024-06-18 17:09:25 +08:00
.AppStoresTable {
2024-06-17 23:18:11 +08:00
color: #fff;
box-sizing: border-box;
}
:deep(.tableHeader) {
background: rgba(13, 48, 99, 0.6) !important;
color: #fff;
border-color: transparent !important;
}
2024-06-18 17:09:25 +08:00
:deep(.el-table tr) {
background: transparent;
}
2024-06-17 23:18:11 +08:00
:deep(.el-table) {
background: transparent;
border-color: transparent;
}
:deep(.el-table:before) {
background: transparent;
}
:deep(.tableCell) {
color: #fff;
border-color: transparent;
}
.header {
height: 48px;
padding: 8px 0 8px 38px;
margin-bottom: 24px;
box-sizing: border-box;
line-height: 32px;
2024-06-18 17:09:25 +08:00
background-image: url("http://10.0.97.209/img/kengee/kengee4.png");
background-repeat: no-repeat;
background-size: 100% 100%;
2024-06-17 23:18:11 +08:00
}
2024-06-17 21:55:16 +08:00
2024-06-17 23:18:11 +08:00
.title {
line-height: 20px;
2024-06-18 17:09:25 +08:00
width: fit-content;
2024-06-17 23:18:11 +08:00
margin: 24px auto 12px;
2024-06-18 17:09:25 +08:00
background-image: url("http://10.0.97.209/img/kengee/kengee5.png");
background-repeat: no-repeat;
background-size: 100% 2px;
background-position: center bottom;
}
.layout {
display: flex;
gap: 24px;
width: 100%;
overflow-x: auto;
}
.store {
width: calc(25% - 18px);
2024-06-17 18:20:13 +08:00
}
</style>