|
@@ -17,6 +17,14 @@
|
|
@keyup.enter.native="getCouponList"
|
|
@keyup.enter.native="getCouponList"
|
|
/>
|
|
/>
|
|
<div class="ge"></div>
|
|
<div class="ge"></div>
|
|
|
|
+ <div>使用场景:</div>
|
|
|
|
+ <el-select v-model="type" placeholder="请选择使用场景" clearable @keyup.enter.native="getCouponList">
|
|
|
|
+ <el-option label="全部" value=""/>
|
|
|
|
+ <el-option label="门店消费" :value="2"/>
|
|
|
|
+ <el-option label="盲票购买" :value="1"/>
|
|
|
|
+ <el-option label="采购商品核销" :value="4"/>
|
|
|
|
+ </el-select>
|
|
|
|
+ <div class="ge"></div>
|
|
<el-button
|
|
<el-button
|
|
type="primary"
|
|
type="primary"
|
|
icon="el-icon-search"
|
|
icon="el-icon-search"
|
|
@@ -106,6 +114,7 @@ export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
loading: false,
|
|
loading: false,
|
|
|
|
+ type: '',
|
|
couponTitle: "", // 券名称
|
|
couponTitle: "", // 券名称
|
|
couponList: [], // 卡券列表
|
|
couponList: [], // 卡券列表
|
|
couponTotal: 0, // 卡券总数
|
|
couponTotal: 0, // 卡券总数
|
|
@@ -129,7 +138,7 @@ export default {
|
|
"&pageSize=" +
|
|
"&pageSize=" +
|
|
this.pageParams.pageSize +
|
|
this.pageParams.pageSize +
|
|
"&",
|
|
"&",
|
|
- { title: this.couponTitle, status: "on" }
|
|
|
|
|
|
+ { title: this.couponTitle,type: this.type, status: "on" }
|
|
).then((res) => {
|
|
).then((res) => {
|
|
this.couponList = res.rows.map((item) => {
|
|
this.couponList = res.rows.map((item) => {
|
|
return {
|
|
return {
|