Commit 3d062957 by lixiaomin

修改领取信息列表查询

parent 52a3e6c6
<template>
<div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="100px">
<el-form-item label="优惠券类别" >
<el-input v-model="queryParams.name" clearable @keyup.enter.native="handleQuery"></el-input>
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="80px">
<el-form-item label="渠道入口">
<el-input placeholder="请输入渠道入口" clearable @keyup.enter.native="handleQuery" />
</el-form-item>
<el-form-item label="优惠券">
<el-select v-model="queryParams.couponId" placeholder="请选择优惠券" clearable @keyup.enter.native="handleQuery" filterable>
<el-option
v-for="item in couponList"
:key="item.id"
:label="item.name"
:value="item.id">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="状态">
<el-select v-model="queryParams.state" placeholder="请选择状态" clearable @keyup.enter.native="handleQuery">
......@@ -86,6 +96,7 @@
import {getCouponInfoList} from "@/api/coupon/coupon";
import {getCustomer} from "@/api/system/customer";
import OrderTable from "../../customer/orderTable.vue";
import {listCoupon} from "@/api/coupon/coupon";
export default {
components: { OrderTable },
data() {
......@@ -103,18 +114,19 @@ export default {
queryParams: {
pageNum: 1,
pageSize: 10,
name: null,
state: null
},
options: [{
value: null,
label: '全部'
},{
value: '1',
label: '生效中'
label: '有效'
},{
value: '2',
label: '未生效'
label: '被使用'
},{
value: '3',
label: '过期失效'
}],
activeName:"first" ,
title: "",
......@@ -127,10 +139,13 @@ export default {
orderTotal:0,
orderPageNum:1,
orderPageSize: 10,
customerId:null,
couponList:[]
};
},
created() {
this.getList();
this.getCouponList();
},
methods: {
formateTime(val){
......@@ -161,7 +176,7 @@ export default {
},
getDetial(row){
this.orderLoading=true;
this.customerId=row.id;
this.customerId=row.custId;
this.userName=row.custName;
this.phoneNumber=row.custPhone;
this.amount=row.amount;
......@@ -199,10 +214,14 @@ export default {
cancel() {
this.open = false;
},
/** 查询优惠券列表 */
getCouponList() {
listCoupon({pageNum: 1,pageSize: 1000,state: 1}).then((response) => {
if(response.code==200){
this.couponList = response.rows;
}
});
}
},
};
</script>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment