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
86005f80
Commit
86005f80
authored
Jul 27, 2022
by
lixiaomin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改优惠券列表查询
parent
8a32f72c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
17 deletions
+21
-17
src/views/coupon/coupon/giveCoupon.vue
+2
-4
src/views/coupon/coupon/index.vue
+19
-13
No files found.
src/views/coupon/coupon/giveCoupon.vue
View file @
86005f80
...
...
@@ -126,10 +126,8 @@ export default {
/** 提交按钮 */
submitForm
()
{
let
userId
=
null
;
let
userPhone
=
null
;
if
(
this
.
customerList
.
length
>
0
){
userId
=
this
.
customerList
[
0
].
id
;
userPhone
=
this
.
customerList
[
0
].
phoneNumber
;
userId
=
this
.
customerList
[
0
].
id
;
}
else
{
this
.
$message
.
error
(
"请查询赠送优惠券的用户!"
);
return
;
...
...
@@ -139,7 +137,7 @@ export default {
this
.
$message
.
error
(
"请选择需要赠送的优惠券!"
);
return
;
}
giveCoupon
({
"userId"
:
userId
,
"
userPhone"
:
userPhone
,
"
couponId"
:
couponId
}).
then
((
response
)
=>
{
giveCoupon
({
"userId"
:
userId
,
"couponId"
:
couponId
}).
then
((
response
)
=>
{
if
(
response
.
code
==
200
){
this
.
$modal
.
msgSuccess
(
"赠送成功"
);
this
.
giveOpen
=
false
;
...
...
src/views/coupon/coupon/index.vue
View file @
86005f80
<
template
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:inline=
"true"
label-width=
"
68
px"
>
<el-form-item
label=
"分类名称 "
prop=
"name"
>
<el-input
v-model=
"queryParams.name"
placeholder=
"
分类名称
"
clearable
@
keyup
.
enter
.
native=
"handleQuery"
/>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:inline=
"true"
label-width=
"
100
px"
>
<el-form-item
label=
"分类名称 "
>
<el-input
v-model=
"queryParams.name"
placeholder=
"
请输入分类名称
"
clearable
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"
状态
"
>
<
!--
<el-select
v-model=
"queryParams.state"
placeholder=
"请选择
"
clearable
@
keyup
.
enter
.
native=
"handleQuery"
>
<el-form-item
label=
"
优惠券类别
"
>
<
el-select
v-model=
"queryParams.categoryId"
placeholder=
"请选择优惠券类别
"
clearable
@
keyup
.
enter
.
native=
"handleQuery"
>
<el-option
v-for=
"item in
options
"
:key=
"item.
value
"
:label=
"item.
label
"
:value=
"item.
value
"
>
v-for=
"item in
couCategoryList
"
:key=
"item.
id
"
:label=
"item.
name
"
:value=
"item.
id
"
>
</el-option>
</el-select>
-->
</el-select>
</el-form-item>
<el-form-item
label=
"状态"
>
<el-select
v-model=
"queryParams.state"
placeholder=
"请选择状态"
clearable
@
keyup
.
enter
.
native=
"handleQuery"
>
<el-option
label=
"生效中"
value=
"1"
></el-option>
<el-option
label=
"未生效"
value=
"2"
></el-option>
</el-select>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
v-hasPermi=
"['coupon:coupon:query']"
>
搜索
</el-button>
...
...
@@ -274,6 +280,7 @@ export default {
created
()
{
this
.
getList
();
this
.
getCategoryList
();
this
.
getcouCategoryList
();
this
.
getShopList
();
this
.
getCityList
();
},
...
...
@@ -437,12 +444,11 @@ export default {
this
.
reset
();
this
.
form
.
sendMsgTag
=
2
this
.
open
=
true
;
this
.
title
=
"新增优惠券"
;
this
.
getcouCategoryList
();
this
.
title
=
"新增优惠券"
;
this
.
getShopRangeList
();
this
.
getStoresList
();
},
/**
启用、禁用
按钮操作 */
/**
上线、下线
按钮操作 */
handleStatus
(
row
,
tag
)
{
let
mess
=
""
;
if
(
tag
==
'1'
){
...
...
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