Commit 13ff5aba by chenwq

领取详情

1 parent 9653feba
<!-- 领取详情 --> <!-- 领取详情 -->
<template> <template>
<div class="marketing pro-group p-t-20"> <div class="marketing pro-group p-t-20">
<div class="marketing edit-box">
<div class="container edit-container m-b-20">
<p class="edit-title">优惠券信息</p>
<el-form class="flex-wrap" label-width="120px">
<el-form-item class="info-item" v-for="(item, index) in couponFormData" :key="index" :label="item.label + ':'">{{ coupon[item.name] }}</el-form-item>
</el-form>
</div>
</div>
<div class="container"> <div class="container">
<div> <div>
<glsx-combi-form ref="showSearch" :formObj="searchForm" :formData="searchFormData"> <glsx-combi-form ref="showSearch" :formObj="searchForm" :formData="searchFormData">
<span slot="footer" class="footer-btns"> <span slot="footer" class="footer-btns">
<el-button :size="size" @click="handleReset">重置</el-button> <el-button :size="size" @click="handleReset">重置</el-button>
<el-button :size="size" type="primary" @click="handleSearch">查询</el-button> <el-button :size="size" type="primary" @click="handleSearch">查询</el-button>
<el-button :size="size" type="primary" @click="exportExcel">导出</el-button>
<el-button :size="size" @click="goback">返回</el-button> <el-button :size="size" @click="goback">返回</el-button>
</span> </span>
</glsx-combi-form> </glsx-combi-form>
...@@ -21,7 +28,7 @@ ...@@ -21,7 +28,7 @@
<span>有效期:<i>{{effective}}</i></span> <span>有效期:<i>{{effective}}</i></span>
<span>使用限制:<i>{{useB}}</i></span> <span>使用限制:<i>{{useB}}</i></span>
</div> --> </div> -->
<div class="list-tips"> <!-- <div class="list-tips">
<img class="tips-img" src="@/assets/icon-info.png" /> <img class="tips-img" src="@/assets/icon-info.png" />
<span> <span>
优惠券名称: 优惠券名称:
...@@ -47,6 +54,11 @@ ...@@ -47,6 +54,11 @@
使用限制: 使用限制:
<span class="red-txt">{{ useB }}&nbsp;</span> <span class="red-txt">{{ useB }}&nbsp;</span>
</span> </span>
</div> -->
<div class="flex m-b-10 w-100-percent">
<span class="table-title">领取详情列表</span>
<el-button :size="size" class="default-blue-btn" type="default" @click="exportExcel">导出</el-button>
</div> </div>
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable ref="receiveList" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun"></GLTable> <GLTable ref="receiveList" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun"></GLTable>
...@@ -72,6 +84,37 @@ export default { ...@@ -72,6 +84,37 @@ export default {
}, },
effective: '', effective: '',
useB: '', useB: '',
// 优惠券信息
couponFormData: [
{
label: '券名称',
name: 'couponName'
},
{
label: '券类型',
name: ''
},
{
label: '有效期',
name: 'effectiveTxt'
},
{
label: '适用范围',
name: ''
},
{
label: '发行库存',
name: 'stock'
},
{
label: '已领取',
name: 'getAmount'
},
{
label: '已使用',
name: ''
}
],
// 表格 // 表格
searchForm: { searchForm: {
phone: '', phone: '',
...@@ -199,13 +242,14 @@ export default { ...@@ -199,13 +242,14 @@ export default {
//有效期 //有效期
if (coupon.effectiveType == 1) { if (coupon.effectiveType == 1) {
//固定天数,领取后计算 //固定天数,领取后计算
this.effective = coupon.effectiveDays + '天' // this.effective = coupon.effectiveDays + '天'
this.coupon.effectiveTxt = coupon.effectiveDays + '天'
} else if (coupon.effectiveType == 2) { } else if (coupon.effectiveType == 2) {
//时间段 //时间段
this.effective = coupon.effectiveStartTime + ' - ' + coupon.effectiveEndTime this.coupon.effectiveTxt = coupon.effectiveStartTime + ' - ' + coupon.effectiveEndTime
} else if (coupon.effectiveType == 3) { } else if (coupon.effectiveType == 3) {
//无有效期 //无有效期
this.effective = '无有效期' this.coupon.effectiveTxt = '无有效期'
} }
if (coupon.discountType == 3) { if (coupon.discountType == 3) {
...@@ -331,4 +375,8 @@ export default { ...@@ -331,4 +375,8 @@ export default {
top: 8px; top: 8px;
left: 10px; left: 10px;
} }
.info-item {
box-sizing: border-box;
width: 33.33%;
}
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!