Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-3
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
office
haoban-3
Commits
fa70fc8e
Commit
fa70fc8e
authored
May 19, 2022
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 卡券列表
parent
48bc2fc9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
5 deletions
+25
-5
cardList.vue
src/views/apps/card/cardList.vue
+25
-5
No files found.
src/views/apps/card/cardList.vue
View file @
fa70fc8e
...
@@ -14,28 +14,48 @@
...
@@ -14,28 +14,48 @@
<el-button
v-if=
"$getButtonLimit($buttonCode.addCard)"
:limit-code=
"$buttonCode.addCard"
type=
"primary"
@
click=
"toNewCard"
:disabled=
"$store.state.wxEnterpriseType"
>
新增卡券
</el-button>
<el-button
v-if=
"$getButtonLimit($buttonCode.addCard)"
:limit-code=
"$buttonCode.addCard"
type=
"primary"
@
click=
"toNewCard"
:disabled=
"$store.state.wxEnterpriseType"
>
新增卡券
</el-button>
</div>
</div>
<el-table
class=
"select-table"
ref=
"multipleTable"
v-loading=
"loading"
:data=
"tableData"
tooltip-effect=
"dark"
style=
"width: calc(100% - 3px);"
>
<el-table
class=
"select-table"
ref=
"multipleTable"
v-loading=
"loading"
:data=
"tableData"
tooltip-effect=
"dark"
style=
"width: calc(100% - 3px);"
>
<el-table-column
prop=
""
label=
"卡券名称"
show-overflow-tooltip
>
<el-table-column
prop=
""
label=
"卡券名称"
show-overflow-tooltip
min-width=
"200px"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
{{
scope
.
row
.
cardName
}}
{{
scope
.
row
.
cardName
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
""
label=
"卡券类型"
>
<el-table-column
prop=
""
label=
"卡券类型"
min-width=
"80px"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.cardType == 0"
>
抵金券
</span>
<span
v-if=
"scope.row.cardType == 0"
>
抵金券
</span>
<span
v-if=
"scope.row.cardType == 1"
>
折扣券
</span>
<span
v-if=
"scope.row.cardType == 1"
>
折扣券
</span>
<span
v-if=
"scope.row.cardType == 2"
>
兑换券
</span>
<span
v-if=
"scope.row.cardType == 2"
>
兑换券
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
""
label=
"
有效期"
show-overflow-tooltip
>
<el-table-column
prop=
""
label=
"
卡券模板有效期"
show-overflow-tooltip
min-width=
"260px"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
effectDateString
||
'--'
}}
</
template
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
effectDateString
||
'--'
}}
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
""
label=
"库存"
>
<el-table-column
prop=
""
label=
"库存"
min-width=
"100px"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<div>
{{
scope
.
row
.
couponStock
}}
</div>
<div>
{{
scope
.
row
.
couponStock
}}
</div>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
""
label=
"操作"
show-overflow-tooltip
v-if=
"$getButtonLimit($buttonCode.editCard) || $getButtonLimit($buttonCode.delCard)"
>
<el-table-column
label=
"卡券状态"
prop=
"cardStatus"
min-width=
"90px"
>
<
template
slot-scope=
"{ row }"
>
<!-- 0删除1有效 2已过期 3未开始 -->
<span
class=
"state-point state-point-error"
v-if=
"row.cardStatus == 0"
>
已删除
</span>
<span
class=
"state-point state-point-success"
v-if=
"row.cardStatus == 1"
>
正常
</span>
<span
class=
"state-point state-point-error"
v-if=
"row.cardStatus == 2"
>
已过期
</span>
<span
class=
"state-point state-point-default"
v-if=
"row.cardStatus == 3"
>
未生效
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"创建人"
prop=
"creatorName"
show-overflow-tooltip
min-width=
"120px"
></el-table-column>
<el-table-column
label=
"编辑人"
prop=
"modifierName"
show-overflow-tooltip
min-width=
"120px"
></el-table-column>
<el-table-column
label=
"创建时间"
prop=
"createTime"
min-width=
"120px"
>
<div
slot-scope=
"{ row }"
style=
"line-height: normal"
>
<
template
v-if=
"row.createTime"
>
<p>
{{
row
.
createTime
|
timeStampToYmd
}}
</p>
<p>
{{
row
.
createTime
|
timeStampToHms
}}
</p>
</
template
>
<
template
v-else
>
--
</
template
>
</div>
</el-table-column>
<el-table-column
prop=
""
label=
"操作"
show-overflow-tooltip
v-if=
"$getButtonLimit($buttonCode.editCard) || $getButtonLimit($buttonCode.delCard)"
min-width=
"150px"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
v-if=
"$getButtonLimit($buttonCode.editCard)"
:limit-code=
"$buttonCode.editCard"
type=
"text"
@
click=
"toEdit(scope.$index, scope.row)"
:disabled=
"$store.state.wxEnterpriseType"
>
编辑
</el-button>
<el-button
v-if=
"$getButtonLimit($buttonCode.editCard)"
:limit-code=
"$buttonCode.editCard"
type=
"text"
@
click=
"toEdit(scope.$index, scope.row)"
:disabled=
"$store.state.wxEnterpriseType"
>
编辑
</el-button>
<el-button
v-if=
"$getButtonLimit($buttonCode.delCard)"
:limit-code=
"$buttonCode.delCard"
type=
"text"
@
click=
"toDel(scope.$index, scope.row)"
:disabled=
"$store.state.wxEnterpriseType"
>
删除
</el-button>
<el-button
v-if=
"$getButtonLimit($buttonCode.delCard)"
:limit-code=
"$buttonCode.delCard"
type=
"text"
@
click=
"toDel(scope.$index, scope.row)"
:disabled=
"$store.state.wxEnterpriseType"
>
删除
</el-button>
...
...
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