Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-pay
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 33ae0eb2
authored
Dec 24, 2021
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优惠券-有效期
1 parent
64c067eb
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
3 deletions
src/views/couponManage/editCashCoupon.vue
src/views/couponManage/editDiscountCoupon.vue
src/views/couponManage/editExchangeCoupon.vue
src/views/couponManage/editCashCoupon.vue
View file @
33ae0eb
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
<br
/>
<br
/>
<el-form-item
prop=
"effectiveTime"
ref=
"effectiveTime"
style=
"margin-top: 12px;display: block;"
>
<el-form-item
prop=
"effectiveTime"
ref=
"effectiveTime"
style=
"margin-top: 12px;display: block;"
>
<el-radio
v-model=
"editForm.effectiveType"
label=
"2"
:disabled=
"apear != 'couponAdd'"
>
<el-radio
v-model=
"editForm.effectiveType"
label=
"2"
:disabled=
"apear != 'couponAdd'"
>
<el-date-picker
v-model=
"editForm.effectiveTime"
type=
"daterange"
style=
"width:295px"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd"
:disabled=
"editForm.effectiveType != 2 || apear != 'couponAdd'"
clearable
></el-date-picker>
<el-date-picker
v-model=
"editForm.effectiveTime"
type=
"daterange"
style=
"width:295px"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd"
:
picker-options=
"pickerOption"
:
disabled=
"editForm.effectiveType != 2 || apear != 'couponAdd'"
clearable
></el-date-picker>
</el-radio>
</el-radio>
</el-form-item>
</el-form-item>
<el-form-item
prop=
"effectiveDays"
ref=
"effectiveDays"
>
<el-form-item
prop=
"effectiveDays"
ref=
"effectiveDays"
>
...
@@ -159,6 +159,15 @@ export default {
...
@@ -159,6 +159,15 @@ export default {
}
}
]
]
},
},
pickerOption
:
{
disabledDate
(
date
)
{
const
yesterday
=
new
Date
(
new
Date
().
setDate
(
new
Date
().
getDate
()
-
1
))
if
(
date
<
yesterday
)
{
return
true
}
return
false
}
},
searchProForm
:
{
searchProForm
:
{
name
:
''
name
:
''
},
},
...
...
src/views/couponManage/editDiscountCoupon.vue
View file @
33ae0eb
...
@@ -52,7 +52,7 @@
...
@@ -52,7 +52,7 @@
<template
slot=
"effectiveHtml"
>
<template
slot=
"effectiveHtml"
>
<el-form-item
prop=
"effectiveTime"
ref=
"effectiveTime"
style=
"margin-top: 12px; display: block"
>
<el-form-item
prop=
"effectiveTime"
ref=
"effectiveTime"
style=
"margin-top: 12px; display: block"
>
<el-radio
v-model=
"editForm.effectiveType"
label=
"2"
:disabled=
"apear != 'couponAdd'"
>
<el-radio
v-model=
"editForm.effectiveType"
label=
"2"
:disabled=
"apear != 'couponAdd'"
>
<el-date-picker
v-model=
"editForm.effectiveTime"
type=
"daterange"
style=
"width: 295px"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd"
:disabled=
"editForm.effectiveType != 2 || apear != 'couponAdd'"
clearable
></el-date-picker>
<el-date-picker
v-model=
"editForm.effectiveTime"
type=
"daterange"
style=
"width: 295px"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd"
:
picker-options=
"pickerOption"
:
disabled=
"editForm.effectiveType != 2 || apear != 'couponAdd'"
clearable
></el-date-picker>
</el-radio>
</el-radio>
</el-form-item>
</el-form-item>
<el-form-item
prop=
"effectiveDays"
ref=
"effectiveDays"
>
<el-form-item
prop=
"effectiveDays"
ref=
"effectiveDays"
>
...
@@ -104,6 +104,15 @@ export default {
...
@@ -104,6 +104,15 @@ export default {
addOrEdit
:
1
,
addOrEdit
:
1
,
id
:
''
id
:
''
},
},
pickerOption
:
{
disabledDate
(
date
)
{
const
yesterday
=
new
Date
(
new
Date
().
setDate
(
new
Date
().
getDate
()
-
1
))
if
(
date
<
yesterday
)
{
return
true
}
return
false
}
},
apear
:
''
,
apear
:
''
,
isDisabled
:
true
,
isDisabled
:
true
,
couponTime
:
''
,
couponTime
:
''
,
...
...
src/views/couponManage/editExchangeCoupon.vue
View file @
33ae0eb
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
<template
slot=
"effectiveHtml"
>
<template
slot=
"effectiveHtml"
>
<el-form-item
prop=
"effectiveTime"
ref=
"effectiveTime"
style=
"margin-top: 12px;display: block;"
>
<el-form-item
prop=
"effectiveTime"
ref=
"effectiveTime"
style=
"margin-top: 12px;display: block;"
>
<el-radio
v-model=
"editForm.effectiveType"
label=
"2"
:disabled=
"apear != 'couponAdd'"
>
<el-radio
v-model=
"editForm.effectiveType"
label=
"2"
:disabled=
"apear != 'couponAdd'"
>
<el-date-picker
v-model=
"editForm.effectiveTime"
type=
"daterange"
style=
"width:295px"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd"
:disabled=
"editForm.effectiveType != 2 || apear != 'couponAdd'"
clearable
></el-date-picker>
<el-date-picker
v-model=
"editForm.effectiveTime"
type=
"daterange"
style=
"width:295px"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd"
:
picker-options=
"pickerOption"
:
disabled=
"editForm.effectiveType != 2 || apear != 'couponAdd'"
clearable
></el-date-picker>
</el-radio>
</el-radio>
</el-form-item>
</el-form-item>
<el-form-item
prop=
"effectiveDays"
ref=
"effectiveDays"
>
<el-form-item
prop=
"effectiveDays"
ref=
"effectiveDays"
>
...
@@ -86,6 +86,15 @@ export default {
...
@@ -86,6 +86,15 @@ export default {
apear
:
''
,
apear
:
''
,
isDisabled
:
true
,
isDisabled
:
true
,
couponTime
:
''
,
couponTime
:
''
,
pickerOption
:
{
disabledDate
(
date
)
{
const
yesterday
=
new
Date
(
new
Date
().
setDate
(
new
Date
().
getDate
()
-
1
))
if
(
date
<
yesterday
)
{
return
true
}
return
false
}
},
editForm
:
{
editForm
:
{
couponName
:
''
,
couponName
:
''
,
effectiveType
:
'2'
,
effectiveType
:
'2'
,
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment