Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ElectricitySheep
Project
Project
Details
Activity
Releases
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
黄媛媛
ElectricitySheep
Commits
ffb47658
Commit
ffb47658
authored
May 09, 2020
by
zhangjianguo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优惠券的新增 修改 和删除
parent
62832c9f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
383 additions
and
23 deletions
+383
-23
addCardTicket.vue
src/components/sallCenter/addCardTicket.vue
+4
-3
addCoupon.vue
src/components/sallCenter/addCoupon.vue
+377
-18
couponManage.vue
src/components/sallCenter/couponManage.vue
+2
-2
No files found.
src/components/sallCenter/addCardTicket.vue
View file @
ffb47658
...
...
@@ -147,11 +147,12 @@
this
.
apipost
(
"/api/Coupon/GetCouponDetail"
,{
'ID'
:
ID
}
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
msg
=
res
.
data
.
data
this
.
msg
.
value
=
''
this
.
msg
.
value
=
[]
if
(
res
.
data
.
data
.
IndateType
==
2
){
this
.
msg
.
value
.
push
(
res
.
data
.
data
.
StartDate
)
this
.
msg
.
value
.
push
(
res
.
data
.
data
.
EndDate
)
this
.
msg
.
value
.
push
(
res
.
data
.
data
.
StartDate
.
replace
(
"T"
,
" "
)
)
this
.
msg
.
value
.
push
(
res
.
data
.
data
.
EndDate
.
replace
(
"T"
,
" "
)
)
}
console
.
log
(
this
.
msg
.
value
)
if
(
res
.
data
.
data
.
TotalNum
!=-
1
){
this
.
checked
=
false
}
...
...
src/components/sallCenter/addCoupon.vue
View file @
ffb47658
This diff is collapsed.
Click to expand it.
src/components/sallCenter/couponManage.vue
View file @
ffb47658
...
...
@@ -160,7 +160,7 @@
},
Edit
(
row
){
this
.
$router
.
push
({
name
:
'addC
ardTicket
'
,
name
:
'addC
oupon
'
,
query
:
{
ID
:
row
.
ID
,
blank
:
"y"
...
...
@@ -171,7 +171,7 @@
let
that
=
this
;
that
.
Confirm
(
"是否删除?"
,
function
()
{
that
.
apipost
(
"/api/Coupon/Del
Rules
"
,
"/api/Coupon/Del
DiscountCoupon
"
,
{
Id
:
row
.
ID
},
res
=>
{
if
(
res
.
data
.
resultCode
==
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