2024-06-29 13:49:52 +08:00
|
|
|
<script>
|
|
|
|
|
export default {
|
|
|
|
|
name: "AppStoreMonitor",
|
|
|
|
|
label: "市场看板-门店运营监控表",
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
tableData: [],
|
|
|
|
|
columns: [
|
|
|
|
|
{label: "课区", prop: "groupName"},
|
|
|
|
|
{label: "课长", prop: "supervisorName"},
|
|
|
|
|
{label: "门店", prop: "storeName"},
|
|
|
|
|
{label: "门店现烤净收货额", prop: "bakeNetAmt"},
|
|
|
|
|
{label: "门店现烤销售额", prop: "bakeSaleAmt"},
|
|
|
|
|
{label: "门店现烤报损额", prop: "bakeBsAmt"},
|
|
|
|
|
{label: "门店现烤领用额", prop: "bakeLyAmt"},
|
|
|
|
|
{label: "门店现烤惜食", prop: "bakeXsSaleAmt"},
|
2024-06-30 20:10:23 +08:00
|
|
|
],
|
|
|
|
|
filter: ""
|
2024-06-29 13:49:52 +08:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
computed: {
|
2024-06-30 20:10:23 +08:00
|
|
|
search: v => v.$marketBoard.search,
|
|
|
|
|
list: v => v.tableData.filter(e => !v.filter || e.supervisorName == v.filter) || []
|
2024-06-29 13:49:52 +08:00
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
getTableData() {
|
|
|
|
|
const {$http, $waitFor} = window
|
|
|
|
|
$waitFor($http).then(() => $http.post("/data-boot/la/screen/marketBoard/storeMonitor", {
|
|
|
|
|
...this.search, limit: 999
|
|
|
|
|
})).then(res => {
|
|
|
|
|
if (res?.data) {
|
|
|
|
|
this.tableData = res.data?.page?.records || []
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-06-30 20:10:23 +08:00
|
|
|
watch: {
|
2024-06-29 13:49:52 +08:00
|
|
|
search: {
|
2024-06-30 20:10:23 +08:00
|
|
|
immediate: true, deep: true, handler() {
|
2024-06-29 13:49:52 +08:00
|
|
|
this.getTableData()
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
<section class="AppStoreMonitor">
|
2024-06-30 20:10:23 +08:00
|
|
|
<div class="flex" style="margin-bottom: 22px">
|
|
|
|
|
<div class="fill"/>
|
|
|
|
|
<el-select placeholder="全部" v-model="filter" size="small" clearable class="AppSelect">
|
|
|
|
|
<el-option v-for="(item,i) in tableData" :key="i" :label="item.supervisorName" :value="item.supervisorName"/>
|
|
|
|
|
</el-select>
|
|
|
|
|
</div>
|
|
|
|
|
<el-table :data="list" size="mini" header-cell-class-name="tableHeader" cell-class-name="tableCell" max-height="334px" show-summary stripe>
|
2024-06-29 13:49:52 +08:00
|
|
|
<table-column v-for="(column,i) in columns" :key="i" :column="column"/>
|
|
|
|
|
</el-table>
|
|
|
|
|
</section>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
.AppStoreMonitor {
|
|
|
|
|
color: #fff;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.AppStoreMonitor .tableHeader {
|
|
|
|
|
background: rgba(13, 48, 99, 0.6) !important;
|
|
|
|
|
color: #fff;
|
|
|
|
|
border-color: transparent !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.AppStoreMonitor .el-table tr {
|
|
|
|
|
background-color: transparent !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.AppStoreMonitor .el-table {
|
|
|
|
|
background: transparent;
|
|
|
|
|
border-color: transparent;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.AppStoreMonitor .el-table .el-table__footer-wrapper tr {
|
|
|
|
|
background: linear-gradient(90deg, rgba(1, 196, 236, 0.5) 0%, rgba(1, 196, 236, 0.01) 100%);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.AppStoreMonitor .el-table .el-table__footer-wrapper .is-leaf {
|
|
|
|
|
color: #66FFFF;
|
|
|
|
|
background: transparent;
|
|
|
|
|
border-color: transparent;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.AppStoreMonitor .el-table:before {
|
|
|
|
|
background: transparent;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.AppStoreMonitor .tableCell {
|
|
|
|
|
color: #fff;
|
|
|
|
|
border-color: transparent !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.AppStoreMonitor .el-table tr.el-table__row--striped {
|
|
|
|
|
--odd-bg: #09265B;
|
|
|
|
|
background-color: #081F48;
|
|
|
|
|
background-image: linear-gradient(
|
|
|
|
|
-45deg, var(--odd-bg) 0, var(--odd-bg) 10%, transparent 10%, transparent 50%,
|
|
|
|
|
var(--odd-bg) 50%, var(--odd-bg) 60%, transparent 60%, transparent);
|
|
|
|
|
background-size: 10px 10px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.AppStoreMonitor .el-table tr.el-table__row--striped .tableCell {
|
|
|
|
|
background-color: transparent !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.AppStoreMonitor .el-table tr:hover > .tableCell {
|
|
|
|
|
background-color: rgba(255, 255, 255, .1) !important;
|
|
|
|
|
}
|
|
|
|
|
|
2024-06-30 20:10:23 +08:00
|
|
|
.AppStoreMonitor .el-select {
|
|
|
|
|
width: 120px;
|
2024-06-29 13:49:52 +08:00
|
|
|
}
|
|
|
|
|
</style>
|