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
5cb2c7cb
Commit
5cb2c7cb
authored
Jul 28, 2022
by
lixiaomin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改优惠券修改页面
parent
949c7129
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
7 deletions
+48
-7
src/views/coupon/coupon/index.vue
+48
-7
No files found.
src/views/coupon/coupon/index.vue
View file @
5cb2c7cb
...
@@ -208,7 +208,6 @@ import {listSpu} from "@/api/system/goods";
...
@@ -208,7 +208,6 @@ import {listSpu} from "@/api/system/goods";
import
{
listShop
,
getShopAreaTree
}
from
"@/api/system/shop"
;
import
{
listShop
,
getShopAreaTree
}
from
"@/api/system/shop"
;
import
piovince
from
'@/utils/piovince'
import
piovince
from
'@/utils/piovince'
export
default
{
export
default
{
name
:
"Class"
,
components
:
{
GiveCoupon
},
components
:
{
GiveCoupon
},
data
()
{
data
()
{
return
{
return
{
...
@@ -233,7 +232,15 @@ export default {
...
@@ -233,7 +232,15 @@ export default {
},
},
// 表单参数
// 表单参数
form
:
{
form
:
{
id
:
null
,
name
:
null
,
categoryId
:
null
,
categoryIds
:[],
categoryIds
:[],
userNumber
:
null
,
times
:[],
relativeTime
:
null
,
receivableTime
:
null
,
weekLimit
:[],
goodsIds
:[],
goodsIds
:[],
sendMsgTag
:
2
,
sendMsgTag
:
2
,
shopIds
:[],
shopIds
:[],
...
@@ -458,12 +465,45 @@ export default {
...
@@ -458,12 +465,45 @@ export default {
/** 修改按钮操作 */
/** 修改按钮操作 */
handleUpdate
(
row
)
{
handleUpdate
(
row
)
{
this
.
reset
();
this
.
open
=
true
;
const
id
=
row
.
id
||
this
.
ids
;
this
.
title
=
"修改优惠券"
;
getClass
(
id
).
then
((
response
)
=>
{
this
.
getShopRangeList
();
this
.
form
=
response
.
data
;
this
.
getShopAreaTree
();
this
.
open
=
true
;
getCouponDetail
(
row
.
id
).
then
((
response
)
=>
{
this
.
title
=
"修改优惠券"
;
console
.
log
(
"response"
,
response
.
data
);
if
(
response
.
code
==
200
){
this
.
form
.
id
=
response
.
data
.
id
;
this
.
form
.
name
=
response
.
data
.
name
;
this
.
form
.
categoryId
=
response
.
data
.
categoryId
;
this
.
type
=
response
.
data
.
type
;
if
(
this
.
type
==
"1"
){
this
.
firstRadioValue
=
1
;
}
else
{
this
.
firstRadioValue
=
1
;
this
.
twoRadioValue
=
3
;
}
if
(
response
.
data
.
daysLimit
==
0
){
this
.
form
.
userNumber
=
2
}
else
if
(
response
.
data
.
daysLimit
!=
0
){
this
.
form
.
userNumber
=
1
}
this
.
form
.
times
.
push
(
response
.
data
.
useEndTime
);
this
.
form
.
times
.
push
(
response
.
data
.
useStartTime
);
this
.
form
.
relativeTime
=
response
.
data
.
relativeTime
;
this
.
form
.
receivableTime
=
response
.
data
.
receivableTime
;
this
.
form
.
weekLimit
=
response
.
data
.
weekLimit
;
if
(
response
.
data
.
categoryIds
.
length
>
0
){
if
(
response
.
data
.
categoryIds
[
0
][
0
]
==
'0'
){
this
.
shopRange
=
[
0
];
}
else
{
}
}
this
.
form
.
goodsIds
=
goodSList
;
}
});
});
},
},
/** 提交按钮 */
/** 提交按钮 */
...
@@ -516,6 +556,7 @@ export default {
...
@@ -516,6 +556,7 @@ export default {
this
.
form
.
useStartTime
=
this
.
form
.
times
[
0
];
this
.
form
.
useStartTime
=
this
.
form
.
times
[
0
];
this
.
form
.
useEndTime
=
this
.
form
.
times
[
1
]
this
.
form
.
useEndTime
=
this
.
form
.
times
[
1
]
}
}
//适用下拉商品类范围
if
(
this
.
shopRange
.
length
>
0
){
if
(
this
.
shopRange
.
length
>
0
){
let
cateList
=
[];
let
cateList
=
[];
let
goodSList
=
[];
let
goodSList
=
[];
...
...
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