Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
soss
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hooloo
web
soss
Commits
3d062957
Commit
3d062957
authored
Jul 27, 2022
by
lixiaomin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改领取信息列表查询
parent
52a3e6c6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
12 deletions
+32
-12
src/views/coupon/couponInfo/index.vue
+32
-12
No files found.
src/views/coupon/couponInfo/index.vue
View file @
3d062957
<
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
.
i
d
;
this
.
customerId
=
row
.
custI
d
;
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment