|
|
|
|
@ -1,21 +1,5 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div class="container">
|
|
|
|
|
<!-- <vab-query-form>
|
|
|
|
|
<vab-query-form-left-panel :span="12">
|
|
|
|
|
<el-button icon="el-icon-s-promotion" type="primary" @click="handleIssue">发布</el-button>
|
|
|
|
|
<el-button icon="el-icon-full-screen" type="warning" @click="handleVerification">核销</el-button>
|
|
|
|
|
</vab-query-form-left-panel>
|
|
|
|
|
<vab-query-form-right-panel :span="12">
|
|
|
|
|
<el-form :inline="true" class="docTime" :model="queryForm" @submit.native.prevent>
|
|
|
|
|
<el-form-item>
|
|
|
|
|
<el-input v-model="queryForm.name" placeholder="优惠券名称" clearable style="width: 150px"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item>
|
|
|
|
|
<el-button icon="el-icon-search" type="primary" @click="queryData">查询</el-button>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
|
</vab-query-form-right-panel>
|
|
|
|
|
</vab-query-form> -->
|
|
|
|
|
<div class="query-form">
|
|
|
|
|
<div class="query-form-left-panel">
|
|
|
|
|
<el-button icon="el-icon-s-promotion" type="primary" size="mini" @click="handleIssue">发布</el-button>
|
|
|
|
|
@ -35,7 +19,7 @@
|
|
|
|
|
<el-table style="width: 100%;margin-top:5px" max-height="650" :header-cell-style="{background: 'linear-gradient(#6cb3ff, #1873d4)' ,color:'#eeeeee'}" ref="list" class="custom-table" highlight-current-row border v-loading="listLoading" :data="list" :element-loading-text="elementLoadingText" @row-dblclick="handleGoter">
|
|
|
|
|
<el-table-column show-overflow-tooltip align="center" min-width="130" prop="name" label="优惠券名称"></el-table-column>
|
|
|
|
|
<el-table-column show-overflow-tooltip align="center" min-width="130" prop="name" label="优惠券类型"></el-table-column>
|
|
|
|
|
<el-table-column show-overflow-tooltip align="center" min-width="130" prop="couponNum" label="发行数量"></el-table-column>
|
|
|
|
|
<el-table-column show-overflow-tooltip align="center" min-width="130" prop="couponNumber" label="优惠券数量"></el-table-column>
|
|
|
|
|
<el-table-column show-overflow-tooltip align="center" min-width="130" prop="deductionAmount" label="优惠"></el-table-column>
|
|
|
|
|
<el-table-column show-overflow-tooltip align="center" min-width="130" prop="shareAmount" label="分润"></el-table-column>
|
|
|
|
|
<!-- <el-table-column show-overflow-tooltip align="center" min-width="130" prop="phone" label="手机号码"></el-table-column> -->
|
|
|
|
|
@ -65,7 +49,8 @@
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import Verification from './components/verification'
|
|
|
|
|
import Verification from './components/verification';
|
|
|
|
|
import { getList } from "@/api/discount-coupon/management.js";
|
|
|
|
|
export default {
|
|
|
|
|
name: 'active',
|
|
|
|
|
components: { Verification },
|
|
|
|
|
@ -82,6 +67,9 @@ export default {
|
|
|
|
|
layout: 'total, sizes, prev, pager, next, jumper',
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
this.fetchData()
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
// 分页-一页多少条
|
|
|
|
|
handleSizeChange(val) {
|
|
|
|
|
@ -99,7 +87,15 @@ export default {
|
|
|
|
|
this.fetchData()
|
|
|
|
|
},
|
|
|
|
|
// 获取优惠券活动数据
|
|
|
|
|
fetchData() { },
|
|
|
|
|
async fetchData() {
|
|
|
|
|
this.listLoading = true
|
|
|
|
|
let { list, pageNum, pageSize } = await getList(this.queryForm)
|
|
|
|
|
this.listLoading = false
|
|
|
|
|
this.list = Array.from(list);
|
|
|
|
|
this.queryForm.pageNum = pageNum
|
|
|
|
|
this.queryForm.pageSize = pageSize
|
|
|
|
|
// console.log('res', res);
|
|
|
|
|
},
|
|
|
|
|
// 查询所有领取人
|
|
|
|
|
handleGoter(row) {
|
|
|
|
|
this.$router.push({ name: 'AllGot', params: row })
|
|
|
|
|
|