Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
link-tools
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
vue-plugins
link-tools
Commits
857ed225
Commit
857ed225
authored
Dec 24, 2018
by
member
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改卡券接口
parent
23609965
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
40 deletions
+20
-40
card-list.vue
card-list.vue
+18
-38
linktools.vue
linktools.vue
+1
-1
linktoolspage.vue
linktoolspage.vue
+1
-1
No files found.
card-list.vue
View file @
857ed225
...
...
@@ -23,35 +23,15 @@
>
<el-table-column
label
width=
"55"
>
<template
slot-scope=
"scope"
>
<el-radio
class=
"radio-style"
:label=
"scope.row.
coupCard
Id"
v-model=
"radio"
>
</el-radio>
<el-radio
class=
"radio-style"
:label=
"scope.row.
integralMallPro
Id"
v-model=
"radio"
>
</el-radio>
</
template
>
</el-table-column>
<el-table-column
label=
"卡券名称"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
cardName
}}
</
template
>
<el-table-column
label=
"卡券名称"
prop=
"cardName"
>
</el-table-column>
<el-table-column
prop=
"subName"
label=
"备注名"
></el-table-column>
<el-table-column
prop
label=
"有效期"
>
<
template
slot-scope=
"scope"
>
<div
v-if=
"scope.row.cardEffectiveMode == 0"
>
{{
scope
.
row
.
beginDate
+
'-'
+
scope
.
row
.
endDate
}}
</div>
<div
v-if=
"scope.row.cardEffectiveMode == 1"
>
领取
{{
scope
.
row
.
startDay
+
'-'
+
scope
.
row
.
limitDay
}}
天后,可以使用
</div>
</
template
>
</el-table-column>
<el-table-column
prop
label=
"领取限制"
>
<
template
slot-scope=
"scope"
>
每人限制
{{
scope
.
row
.
cardLimit
}}
张
</
template
>
</el-table-column>
<el-table-column
prop
label=
"适用门店"
>
<
template
slot-scope=
"scope"
>
<div
v-if=
"scope.row.storeMode == 0"
>
所有门店
</div>
<div
v-if=
"scope.row.storeMode == 1"
>
部分分组
</div>
<div
v-if=
"scope.row.storeMode == 2"
>
部分门店
</div>
</
template
>
</el-table-column>
<el-table-column
prop=
"couponStock"
label=
"库存"
></el-table-column>
<el-table-column
prop=
"proSubName"
label=
"备注名"
></el-table-column>
<el-table-column
prop=
"integralCost"
label=
"兑换限制"
></el-table-column>
<el-table-column
prop=
"virtualStock"
label=
"库存"
></el-table-column>
</el-table>
<div
class=
"pagination"
v-if=
"total>0"
>
<el-pagination
...
...
@@ -97,7 +77,7 @@ export default {
// 当某行点击的时候
handleCurrentChangeRow
(
row
)
{
this
.
$nextTick
(
_
=>
{
if
(
row
.
coupCard
Id
==
this
.
radio
)
{
if
(
row
.
integralMallPro
Id
==
this
.
radio
)
{
this
.
$emit
(
'pass-id'
,
row
);
}
});
...
...
@@ -112,25 +92,25 @@ export default {
searchParam
:
this
.
cardName
};
this
.
axios
.
post
(
this
.
baseUrl
+
"/api-
plug/get-coupon-list
"
,
qs
.
stringify
(
param
))
.
post
(
this
.
baseUrl
+
"/api-
integral-mall/page-cards
"
,
qs
.
stringify
(
param
))
.
then
(
res
=>
{
const
resData
=
res
.
data
;
if
(
resData
.
errorCode
==
0
)
{
if
(
!!
resData
.
result
)
{
if
(
!!
resData
.
result
.
r
esult
)
{
resData
.
result
.
result
.
forEach
((
ele
,
index
)
=>
{
if
(
!!
ele
.
beginDate
)
{
ele
.
beginDate
=
this
.
formatDate
(
ele
.
beginDate
,
"."
);
}
if
(
!!
ele
.
endDate
)
{
ele
.
endDate
=
this
.
formatDate
(
ele
.
endDate
,
"."
);
}
});
this
.
cardData
=
resData
.
result
.
r
esult
;
if
(
!!
resData
.
result
.
r
ows
)
{
// resData.result.rows
.forEach((ele, index) => {
//
if (!!ele.beginDate) {
//
ele.beginDate = this.formatDate(ele.beginDate, ".");
//
}
//
if (!!ele.endDate) {
//
ele.endDate = this.formatDate(ele.endDate, ".");
//
}
//
});
this
.
cardData
=
resData
.
result
.
r
ows
;
}
else
{
this
.
cardData
=
[];
}
this
.
total
=
resData
.
result
.
total
Count
;
this
.
total
=
resData
.
result
.
total
;
}
}
else
{
this
.
$message
.
error
({
duration
:
1000
,
message
:
resData
.
message
});
...
...
linktools.vue
View file @
857ed225
...
...
@@ -670,7 +670,7 @@ export default {
this
.
chooseFlag
=
true
;
// 先保存下来
this
.
cardName
=
row
.
cardName
;
this
.
cardUrl
=
row
.
coupCard
Id
;
this
.
cardUrl
=
row
.
integralMallPro
Id
;
},
// --------------------------------------------------
// 选择类型改变 (一级选择,保存选择类型)
...
...
linktoolspage.vue
View file @
857ed225
...
...
@@ -639,7 +639,7 @@ export default {
this
.
chooseFlag
=
true
;
// 先保存下来
this
.
cardName
=
row
.
cardName
;
this
.
cardUrl
=
row
.
coupCard
Id
;
this
.
cardUrl
=
row
.
integralMallPro
Id
;
},
// --------------------------------------------------
// 选择类型改变 (一级选择,保存选择类型)
...
...
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