Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
marketing
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
marketing-web
marketing
Commits
738f3b4a
Commit
738f3b4a
authored
Mar 22, 2021
by
crushh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 卡券刷新按钮
parent
b3cb58a6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
2 deletions
+21
-2
cardApi.js
src/service/api/cardApi.js
+3
-0
record-send.vue
src/views/card/record-send.vue
+14
-2
current-list.vue
src/views/ecm/current-list.vue
+4
-0
yarn.lock
yarn.lock
+0
-0
No files found.
src/service/api/cardApi.js
View file @
738f3b4a
...
...
@@ -75,6 +75,9 @@ export const exportBackCoupExcel = config.api + PREFIX + 'export-back-coup-excel
//卡券营销--卡券记录--投放记录--删除记录
export
const
deleteCardPuton
=
params
=>
requests
(
PREFIX
+
'delete-card-puton'
,
params
);
//卡券营销--卡券记录--投放记录--刷新记录
export
const
refreshPutOnCount
=
params
=>
requests
(
PREFIX
+
'refresh-put-on-count'
,
params
);
//卡券营销--卡券记录--领取记录--核销--(1)获取满足核销条件的订单
export
const
listCoupcardOrder
=
params
=>
requests
(
PREFIX
+
'list-coupcard-order'
,
params
);
...
...
src/views/card/record-send.vue
View file @
738f3b4a
...
...
@@ -37,8 +37,9 @@
</
template
>
</el-table-column>
<el-table-column
min-width=
"100"
align=
"left"
prop=
"creatorName"
label=
"创建人"
v-if=
"$store.state.marketing.openFlag"
></el-table-column>
<el-table-column
label=
"操作"
align=
"left"
width=
"1
5
0px"
fixed=
"right"
>
<el-table-column
label=
"操作"
align=
"left"
width=
"1
8
0px"
fixed=
"right"
>
<
template
slot-scope=
"scope"
>
<el-button
type=
"text"
@
click=
"refreshPutOnCount(scope.row.putonId)"
v-if=
"scope.row.issuingQuantity - scope.row.getedQuantity > 0"
>
刷新
</el-button>
<el-button
type=
"text"
v-if=
"scope.row.putonStatus === 2 || scope.row.putonStatus === 3"
@
click=
"$router.push('/card/groupinfo/' + scope.row.putonId)"
>
详情
</el-button>
<el-button
type=
"text"
v-if=
"scope.row.putonStatus !== 2 && scope.row.putonStatus !== 3 && scope.row.canEdit !== false"
@
click=
"$router.push('/card/groupsend/' + scope.row.putonId)"
>
编辑
</el-button>
<el-button
type=
"text"
v-if=
"scope.row.putonTime > nowDate"
@
click=
"$router.push('/card/record/sendInfo/' + scope.row.putonId)"
>
记录
</el-button>
...
...
@@ -52,7 +53,7 @@
</section>
</template>
<
script
>
import
{
cardRecordPage
,
deleteCardPuton
}
from
'@/service/api/cardApi.js'
;
import
{
cardRecordPage
,
deleteCardPuton
,
refreshPutOnCount
}
from
'@/service/api/cardApi.js'
;
import
{
formatDateTimeByType
}
from
'@/utils/index.js'
;
import
timeCounts
from
'@/components/timeCount/index.vue'
;
import
tableMethods
from
'@/mixins/tableMethods.js'
;
...
...
@@ -155,6 +156,17 @@ export default {
this
.
$tips
({
type
:
'error'
,
message
:
'删除失败!'
});
});
},
// 刷新当条营销记录
refreshPutOnCount
(
putonId
)
{
refreshPutOnCount
({
cardPutOnId
:
putonId
}).
then
(
res
=>
{
if
(
res
.
errorCode
===
0
)
{
this
.
$tips
({
type
:
'success'
,
message
:
'更新成功!'
});
this
.
getTableList
();
}
else
{
this
.
$tips
({
type
:
'error'
,
message
:
'更新失败!'
});
}
});
},
filterStatus
(
val
)
{
let
result
=
{
label
:
'执行错误'
,
type
:
'danger'
};
switch
(
val
)
{
...
...
src/views/ecm/current-list.vue
View file @
738f3b4a
...
...
@@ -5,6 +5,7 @@
<el-select
class=
"dm-select"
clearable
v-model=
"listParams.success"
placeholder=
"所有条件"
@
change=
"search"
>
<el-option
v-for=
"(v, i) in successOptions"
:key=
"i"
:label=
"v.label"
:value=
"v.value"
></el-option>
</el-select>
<!--
<el-button
type=
"text"
@
click=
"goHistory"
>
历史记录
</el-button>
-->
<el-button
icon=
"iconfont icon-icon_yunxiazai"
class=
"fr"
type=
"primary"
@
click=
"exportCurrentSendDetails"
>
导出列表
</el-button>
</div>
<div
class=
"dm-wrap"
>
...
...
@@ -185,6 +186,9 @@ export default {
this
.
listParams
.
ecmMarketingTypeRelationIds
=
list
;
this
.
ecmCurrentSendDetails
();
},
// goHistory() {
// },
search
()
{
this
.
listParams
.
currentPage
=
1
;
this
.
ecmCurrentSendInfos
();
...
...
yarn.lock
0 → 100644
View file @
738f3b4a
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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