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
b01f8f65
Commit
b01f8f65
authored
Mar 09, 2021
by
caoyanzhi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/3.0年后需求-卡券调整' into dev
parents
9e9cafed
0d5c46c5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
card-item.vue
src/views/card/partials/card-item.vue
+1
-1
status-render.js
src/views/card/partials/status-render.js
+3
-3
lib-card.vue
src/views/ecm/marketing-event/components/lib-card.vue
+2
-2
No files found.
src/views/card/partials/card-item.vue
View file @
b01f8f65
...
...
@@ -62,7 +62,7 @@
</p>
</div>
<div
class=
"card-item_foot clearfix"
>
<div
class=
"fl"
>
<div
class=
"fl"
v-if=
"item.gicCouponType != 3 && item.gicCouponType != 4"
>
<!-- 由外部api创建 仅展示详情、删除、报表按钮 -->
<span
v-if=
"item.auditingStatus !== -1"
>
剩余库存:
{{
item
.
couponStock
}}
<a
title=
"编辑库存"
v-if=
"!shelfFlag && item.useCustomCode === 0 && item.canEdit !== false && !item.isApiCreate"
@
click=
"preAdjustStock(item)"
><i
class=
"el-icon-edit"
></i></a
...
...
src/views/card/partials/status-render.js
View file @
b01f8f65
...
...
@@ -16,8 +16,8 @@ export default Vue.component('render-temp', {
const
canGroupSend
=
this
.
item
.
putEffectiveMode
==
1
?
true
:
new
Date
()
>
new
Date
(
this
.
item
.
putBeginDate
)
&&
new
Date
()
<
new
Date
(
this
.
item
.
putEndDate
);
const
isWeimo
=
this
.
item
.
gicCouponType
==
3
;
const
isCommon
=
this
.
item
.
gicCouponType
==
4
;
// 微盟外部券:领取记录、
复制、
投放、报表
// 通用外部券:领取记录、
复制、
报表
// 微盟外部券:领取记录、投放、报表
// 通用外部券:领取记录、报表
const
bind1
=
(
canEdit
&&
!
isApiCreate
&&
canGroupSend
&&
!
isCommon
)
||
isWeimo
?
(
<
a
title
=
"投放"
onClick
=
{
this
.
handler
.
bind
(
null
,
1
)}
>
...
...
@@ -53,7 +53,7 @@ export default Vue.component('render-temp', {
<
/a
>
);
const
bind6
=
(
canEdit
&&
!
isApiCreate
)
||
isWeimo
||
isCommon
?
(
canEdit
&&
!
isApiCreate
&&
!
isWeimo
&&
!
isCommon
?
(
<
a
title
=
"复制"
onClick
=
{
this
.
handler
.
bind
(
null
,
6
)}
>
<
i
class
=
"iconfont icon-wxcard-copy"
/>
<
/a
>
...
...
src/views/ecm/marketing-event/components/lib-card.vue
View file @
b01f8f65
...
...
@@ -52,7 +52,7 @@
{{
scope
.
row
.
storeMode
===
0
?
'所有门店'
:
scope
.
row
.
storeMode
===
1
?
'部分分组'
:
'部分门店'
}}
</
template
>
</el-table-column>
<el-table-column
:show-overflow-tooltip=
"false"
:width=
"100"
align=
"left"
prop=
"couponStock"
label=
"库存"
></el-table-column>
<el-table-column
:show-overflow-tooltip=
"false"
:width=
"100"
align=
"left"
prop=
"couponStock"
label=
"库存"
:formatter=
"(row, col, val) => (showOutCouponIcon ? '--' : val)"
></el-table-column>
</el-table>
<dm-pagination
v-show=
"tableList.length"
class=
"dm-pagination"
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page=
"listParams.currentPage"
:page-sizes=
"[20, 40, 60, 80]"
:page-size=
"listParams.pageSize"
layout=
"prev, pager, next"
:total=
"total"
></dm-pagination>
<span
slot=
"footer"
class=
"dialog-footer"
>
...
...
@@ -143,7 +143,7 @@ export default {
},
getCardList
()
{
this
.
loading
=
true
;
getCardList
(
this
.
listParams
).
then
(
res
=>
{
getCardList
(
Object
.
assign
({},
this
.
listParams
,
this
.
showOutCouponIcon
?
{
useExtCard
:
1
}
:
{})
).
then
(
res
=>
{
if
(
res
.
errorCode
===
0
)
{
this
.
tableList
=
(
res
.
result
.
result
||
[]).
map
(
el
=>
{
// 如果是外部券,而且配置显示外部券标识,需要缩短cardName的显示长度
...
...
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