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
e41b5a85
Commit
e41b5a85
authored
Oct 13, 2021
by
黑潮
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 文案修改
parent
9c80b2ad
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
8 deletions
+14
-8
recharge.js
src/router/modules/recharge.js
+1
-1
record.vue
src/views/recharge/record.vue
+13
-7
No files found.
src/router/modules/recharge.js
View file @
e41b5a85
...
...
@@ -17,7 +17,7 @@ export default {
},
{
path
:
'record'
,
name
:
'
充值
记录'
,
name
:
'记录'
,
component
:
()
=>
import
(
/* webpackChunkName: "recharge" */
'../../views/recharge/record.vue'
)
},
{
...
...
src/views/recharge/record.vue
View file @
e41b5a85
...
...
@@ -5,22 +5,23 @@
<el-select
style=
"width:180px"
clearable
v-model=
"listParams.feeType"
placeholder=
"全部记录类型"
@
change=
"onChangeFeeType"
>
<el-option
label=
"充值"
:value=
"1"
></el-option>
<el-option
label=
"扣款"
:value=
"2"
></el-option>
<el-option
label=
"退费"
:value=
"3"
></el-option>
</el-select>
<el-select
v-if=
"listParams.feeType == 2"
style=
"width:180px"
clearable
v-model=
"listParams.deductType"
placeholder=
"全部扣款类型"
@
change=
"onSearch"
>
<el-option
v-for=
"(value, key) in deductTypeList"
:key=
"key"
:label=
"value"
:value=
"key"
></el-option>
</el-select>
</div>
<el-table
tooltipEffect=
"dark"
:data=
"tableList"
style=
"width: 100%"
>
<el-table-column
align=
"left"
prop=
"timeEnd"
label=
"充值时间"
>
<el-table-column
align=
"left"
prop=
"timeEnd"
label=
"充值
/扣款/退费
时间"
>
<template
slot-scope=
"scope"
>
<p
style=
"color:#606266;"
>
{{
formatDateTimeByType
(
scope
.
row
.
timeEnd
,
'yyyy-MM-dd-HH-mm-ss'
,
true
).
y
}}
</p>
<p
style=
"color:#606266;"
>
{{
formatDateTimeByType
(
scope
.
row
.
timeEnd
,
'yyyy-MM-dd-HH-mm-ss'
,
true
).
h
}}
</p>
</
template
>
</el-table-column>
<el-table-column
align=
"left"
prop=
"transactionId"
label=
"充值流水号"
></el-table-column>
<el-table-column
align=
"left"
prop=
"transactionId"
label=
"充值
/扣款/退费
流水号"
></el-table-column>
<el-table-column
label=
"记录类型"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
feeType
==
1
?
'充值'
:
'扣款'
}}
{{
textMap
[
scope
.
row
.
feeType
]
}}
</
template
>
</el-table-column>
<el-table-column
label=
"扣款类型"
>
...
...
@@ -28,15 +29,15 @@
{{
deductTypeList
[
scope
.
row
.
deductType
]
}}
</
template
>
</el-table-column>
<el-table-column
align=
"left"
prop=
"payType"
label=
"充值方式"
>
<
!-- <
el-table-column align="left" prop="payType" label="充值方式">
<template slot-scope="scope">
{{ scope.row.payType | filterPayType }}
</template>
</el-table-column>
</el-table-column>
-->
<el-table-column
label=
"金额"
align=
"left"
prop=
"totalFee"
>
<
template
slot-scope=
"scope"
>
{{
(
scope
.
row
.
totalFee
/
100
).
toFixed
(
2
)
}}
元
</
template
>
</el-table-column>
<el-table-column
align=
"left"
prop=
"reason"
label=
"充值原因"
show-overflow-tooltip
></el-table-column>
<el-table-column
align=
"left"
prop=
"reason"
label=
"充值
/扣款/退费
原因"
show-overflow-tooltip
></el-table-column>
<el-table-column
label=
"图片凭证"
>
<
template
slot-scope=
"scope"
>
<!--
<el-image
v-for=
"(item, index) in getUrls(scope).slice(0, 3)"
:key=
"`$
{currentPage}-${item}`" style="width: 36px; height: 36px" :src="item" :preview-src-list="getUrls(scope, index)" lazy>
...
...
@@ -66,6 +67,11 @@ export default {
components
:
{
Viewer
},
data
()
{
return
{
textMap
:
{
1
:
'充值'
,
2
:
'扣款'
,
3
:
'退费'
},
formatDateTimeByType
,
dateTime
:
[
Date
.
now
()
-
30
*
24
*
60
*
60
*
1000
,
Date
.
now
()],
loading
:
false
,
...
...
@@ -84,7 +90,7 @@ export default {
},
created
()
{
this
.
rechargeRecord
();
this
.
$store
.
commit
(
'mutations_breadcrumb'
,
[{
name
:
'企业管理'
,
path
:
''
},
{
name
:
'计费中心'
,
path
:
'/recharge'
},
{
name
:
'
充值
记录'
,
path
:
''
}]);
// eslint-disable-line
this
.
$store
.
commit
(
'mutations_breadcrumb'
,
[{
name
:
'企业管理'
,
path
:
''
},
{
name
:
'计费中心'
,
path
:
'/recharge'
},
{
name
:
'记录'
,
path
:
''
}]);
// eslint-disable-line
},
methods
:
{
getUrls
(
scope
)
{
...
...
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