Commit 570f95d3 by cwq0219
2 parents 90f57552 fcefed21
......@@ -4,8 +4,20 @@
<div class="m-b-20">
<el-button :size="size" type="primary" class="el-icon-plus" @click="addCashCoupon()">新建代金券</el-button>
<!-- <el-button :size="size" type="primary" class="el-icon-plus" style="margin-left:30px;" @click="addService()">新建会员服务</el-button> -->
<el-button :size="size" type="primary" class="el-icon-plus" style="margin-left:30px;" @click="addDiscountCoupon()">新建折扣劵</el-button>
<el-button :size="size" type="primary" class="el-icon-plus" style="margin-left:30px;" @click="addExchangeCoupon()">新建兑换券</el-button>
<el-button
:size="size"
type="primary"
class="el-icon-plus"
style="margin-left:30px;"
@click="addDiscountCoupon()"
>新建折扣劵</el-button>
<el-button
:size="size"
type="primary"
class="el-icon-plus"
style="margin-left:30px;"
@click="addExchangeCoupon()"
>新建兑换券</el-button>
</div>
<div class="container">
<div>
......@@ -18,13 +30,34 @@
</div>
<!-- 表格区域 开始 -->
<GLTable ref="coupon" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<GLTable
ref="coupon"
:getListApi="getListApi"
:noDataImg="url"
:searchForm="tableSearchForm"
:tableParams="tableParams"
:pageConf="pageConf"
:beforeSearchFn="beforeSearchFn"
@setTableFinishFun="setTableFinishFun"
>
<div class="table-btns" slot="auth-button" slot-scope="scope">
<el-button v-if="scope.scope.status == '1'" type="text" @click="start(scope.scope)">生效</el-button>
<el-button v-if="scope.scope.status == '2'" type="text" @click="end(scope.scope)">失效</el-button>
<el-button v-if="scope.scope.status == '1'" type="text" @click="handleEdit(2, scope.scope)">编辑</el-button>
<el-button v-if="scope.scope.status == '2' || scope.scope.status == '3'" type="text" @click="handleEdit(3, scope.scope)">查看</el-button>
<el-button v-if="scope.scope.status == '1' || scope.scope.status == '3'" type="text" @click="del(scope.scope)">删除</el-button>
<el-button
v-if="scope.scope.status == '1'"
type="text"
@click="handleEdit(2, scope.scope)"
>编辑</el-button>
<el-button
v-if="scope.scope.status == '2' || scope.scope.status == '3'"
type="text"
@click="handleEdit(3, scope.scope)"
>查看</el-button>
<el-button
v-if="scope.scope.status == '1' || scope.scope.status == '3'"
type="text"
@click="del(scope.scope)"
>删除</el-button>
<el-button type="text" @click="writeOffDetail(scope.scope)">核销详情</el-button>
<el-button type="text" @click="receiveDetail(scope.scope)">领取详情</el-button>
</div>
......@@ -148,7 +181,7 @@ export default {
discountTypeList: [
{
confId: '2',
confName: '折扣劵'
confName: '折扣券'
},
{
confId: '3',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!