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
a06d686c
Commit
a06d686c
authored
Aug 02, 2022
by
lixiaomin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改优惠券
parent
eb0f9e5f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
src/views/coupon/coupon/index.vue
+6
-6
No files found.
src/views/coupon/coupon/index.vue
View file @
a06d686c
...
@@ -162,7 +162,7 @@
...
@@ -162,7 +162,7 @@
<el-cascader
:options=
"shopRangeList"
v-model=
"shopRange"
clearable
placeholder=
"请选择使用商品范围"
class=
"width"
:props=
"{ multiple: true}"
collapse-tags
:show-all-levels=
"false"
/>
<el-cascader
:options=
"shopRangeList"
v-model=
"shopRange"
clearable
placeholder=
"请选择使用商品范围"
class=
"width"
:props=
"{ multiple: true}"
collapse-tags
:show-all-levels=
"false"
/>
<el-cascader
ref=
"area"
:options=
"shopAreaTreeList"
v-model=
"storesRange"
:props=
"{ multiple: true }"
clearable
collapse-tags
placeholder=
"请选择地区门店"
<el-cascader
ref=
"area"
:options=
"shopAreaTreeList"
v-model=
"storesRange"
:props=
"{ multiple: true }"
clearable
collapse-tags
placeholder=
"请选择地区门店"
:show-all-levels=
"false"
style=
"margin-left:55px;width:300px;"
/>
:show-all-levels=
"false"
style=
"margin-left:55px;width:300px;"
/>
<el-select
v-model=
"form.week
Limit
"
placeholder=
"请选择可用日期"
multiple
collapse-tags
style=
"margin-left: 130px;width: 328px;"
clearable
>
<el-select
v-model=
"form.week"
placeholder=
"请选择可用日期"
multiple
collapse-tags
style=
"margin-left: 130px;width: 328px;"
clearable
>
<el-option
<el-option
v-for=
"item in weekList"
v-for=
"item in weekList"
:key=
"item.value"
:key=
"item.value"
...
@@ -252,7 +252,8 @@ export default {
...
@@ -252,7 +252,8 @@ export default {
city
:[],
city
:[],
province
:[],
province
:[],
userLimit
:
null
,
userLimit
:
null
,
daysLimit
:
null
daysLimit
:
null
,
week
:[]
},
},
// 表单校验
// 表单校验
rules
:
{
rules
:
{
...
@@ -483,7 +484,6 @@ export default {
...
@@ -483,7 +484,6 @@ export default {
this
.
getShopAreaTree
();
this
.
getShopAreaTree
();
this
.
getMessageMoudle
();
this
.
getMessageMoudle
();
getCouponDetail
(
row
.
id
).
then
((
response
)
=>
{
getCouponDetail
(
row
.
id
).
then
((
response
)
=>
{
console
.
log
(
"response"
,
response
.
data
);
if
(
response
.
code
==
200
){
if
(
response
.
code
==
200
){
this
.
form
.
id
=
response
.
data
.
id
;
this
.
form
.
id
=
response
.
data
.
id
;
this
.
form
.
name
=
response
.
data
.
name
;
this
.
form
.
name
=
response
.
data
.
name
;
...
@@ -524,9 +524,9 @@ export default {
...
@@ -524,9 +524,9 @@ export default {
this
.
form
.
relativeTime
=
response
.
data
.
relativeTime
;
this
.
form
.
relativeTime
=
response
.
data
.
relativeTime
;
this
.
form
.
receivableTime
=
response
.
data
.
receivableTime
;
this
.
form
.
receivableTime
=
response
.
data
.
receivableTime
;
if
(
response
.
data
.
weekLimit
[
0
]
==
0
){
if
(
response
.
data
.
weekLimit
[
0
]
==
0
){
this
.
form
.
week
Limit
=
[];
this
.
form
.
week
=
[];
}
else
{
}
else
{
this
.
form
.
week
Limit
=
response
.
data
.
weekLimit
;
this
.
form
.
week
=
response
.
data
.
weekLimit
;
}
}
//短信通知
//短信通知
if
(
response
.
data
.
sendMsg
){
if
(
response
.
data
.
sendMsg
){
...
@@ -756,7 +756,7 @@ export default {
...
@@ -756,7 +756,7 @@ export default {
}
else
if
(
this
.
form
.
sendMsgTag
==
2
){
}
else
if
(
this
.
form
.
sendMsgTag
==
2
){
this
.
form
.
sendMsg
=
false
;
this
.
form
.
sendMsg
=
false
;
}
}
if
(
this
.
form
.
week
Limit
.
length
==
0
){
if
(
this
.
form
.
week
.
length
==
0
){
this
.
form
.
weekLimit
=
[
0
]
this
.
form
.
weekLimit
=
[
0
]
}
}
console
.
log
(
"this.form"
,
this
.
form
);
console
.
log
(
"this.form"
,
this
.
form
);
...
...
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