126 lines
3.7 KiB
Vue
126 lines
3.7 KiB
Vue
|
<template>
|
||
|
|
||
|
<div class="app-container">
|
||
|
<div class="filter-container">
|
||
|
<el-input v-model="listQuery.product_name" placeholder="产品名称" style="width: 200px;" class="filter-item" />
|
||
|
|
||
|
<el-cascader
|
||
|
v-model="listQuery.os_status"
|
||
|
placeholder="平台状态"
|
||
|
:options="os_arr"
|
||
|
class="filter-item"
|
||
|
@change="handleChange"
|
||
|
/>
|
||
|
|
||
|
<el-button class="filter-item" type="primary" icon="el-icon-search" @click="getList">
|
||
|
搜索
|
||
|
</el-button>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<el-table v-loading="listLoading" :data="list" border fit highlight-current-row style="width: 100%">
|
||
|
|
||
|
<el-table-column align="center" fixed label="产品名称" width="220" prop="product_name" />
|
||
|
|
||
|
<el-table-column align="center" fixed label="平台" width="80" prop="os" />
|
||
|
|
||
|
<el-table-column align="center" fixed label="订单数" width="80" prop="all" />
|
||
|
|
||
|
<el-table-column align="center" label="订单金额" width="180" prop="total" />
|
||
|
|
||
|
<el-table-column align="center" width="500px" label="待跟进" prop="wait" />
|
||
|
|
||
|
<el-table-column width="138px" align="center" label="跟进中" prop="doing" />
|
||
|
|
||
|
<el-table-column align="center" width="500px" label="核销数" prop="asset" />
|
||
|
|
||
|
<el-table-column width="138px" align="center" label="核销金额" prop="asset_price" />
|
||
|
|
||
|
<el-table-column align="center" width="500px" label="退款数" prop="asset" />
|
||
|
|
||
|
<el-table-column width="138px" align="center" label="退款金额" prop="asset_price" />
|
||
|
|
||
|
</el-table>
|
||
|
|
||
|
<pagination
|
||
|
v-show="total>0"
|
||
|
:total="total"
|
||
|
:page.sync="listQuery.page"
|
||
|
:limit.sync="listQuery.limit"
|
||
|
@pagination="getList"
|
||
|
/>
|
||
|
|
||
|
</div>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
// import Pagination from '@/components/Pagination'
|
||
|
import Pagination from '@/components/PaginationFixed'
|
||
|
|
||
|
export default {
|
||
|
name: 'productNameList',
|
||
|
components: { Pagination },
|
||
|
data() {
|
||
|
return {
|
||
|
active: 'follow',
|
||
|
types: { 0: '', 1: '', 2: '', 3: 'primary', 4: 'success', 5: 'warning' },
|
||
|
types2: { 1: 'primary', 2: 'success', 3: 'warning' },
|
||
|
status_arr: ['待跟进', '跟进中', '已核销', '核销失败', '放弃跟单'],
|
||
|
type_arr: ['-', '收益', '支出'],
|
||
|
timetype_arr: {},
|
||
|
order_status: ['#9e9f9c', '#04bcd9', '#fc9904', '#1193f4', '#48b14b', '#eb1662', '#9d1cb5'],
|
||
|
follow_status: ['#9e9f9c', '#04bcd9', '#fc9904', '#1193f4', '#48b14b', '#eb1662'],
|
||
|
options: [],
|
||
|
list: [],
|
||
|
total: 0,
|
||
|
listLoading: true,
|
||
|
listQuery: {
|
||
|
page: 1,
|
||
|
limit: 10,
|
||
|
product_name: ''
|
||
|
},
|
||
|
os_arr: { 1: '美团', 2: '快手', 3: '抖音' },
|
||
|
form: {},
|
||
|
rules:{
|
||
|
flowObj: [
|
||
|
{ required: true, message: '请选择活动区域', trigger: 'change' }
|
||
|
],
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
created() {
|
||
|
this.listQuery.status = this.$route.query.status || null
|
||
|
this.listQuery.zhubo = this.$route.query.zhubo || null
|
||
|
if (this.$route.query.start && this.$route.query.end) {
|
||
|
this.listQuery.times = [this.$route.query.start, this.$route.query.end]
|
||
|
}
|
||
|
|
||
|
this.getList()
|
||
|
},
|
||
|
methods: {
|
||
|
getList() {
|
||
|
this.$axios.get('/admin/index/productNameList', { params: this.listQuery }).then(response => {
|
||
|
this.list = response.data.data
|
||
|
this.total = response.data.total
|
||
|
this.timetype_arr = response.ext.timetype
|
||
|
this.oss = response.ext.oss
|
||
|
this.listLoading = false
|
||
|
}).catch(() => {
|
||
|
})
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<style scoped>
|
||
|
.app-container {
|
||
|
position: relative;
|
||
|
padding-bottom: 60px; /* 分页条的高度 */
|
||
|
}
|
||
|
|
||
|
.filter-container,
|
||
|
.el-table {
|
||
|
padding-bottom: 52px; /* 分页条的高度,以避免内容重叠 */
|
||
|
}
|
||
|
</style>
|