Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-points
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 7d7bf319
authored
Oct 11, 2024
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
积分管理需求开发
1 parent
d28247c8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
180 additions
and
28 deletions
src/views/withdraw/detail.vue
src/views/withdraw/index.vue
src/views/withdraw/detail.vue
View file @
7d7bf31
...
@@ -30,6 +30,12 @@
...
@@ -30,6 +30,12 @@
<span
v-else
class=
"detail-txt ellipsis-1"
:title=
"recordInfo[subItem.name]"
>
{{
recordInfo
[
subItem
.
name
]
?
recordInfo
[
subItem
.
name
]
+
(
subItem
.
suffix
||
''
)
:
'-'
}}
</span>
<span
v-else
class=
"detail-txt ellipsis-1"
:title=
"recordInfo[subItem.name]"
>
{{
recordInfo
[
subItem
.
name
]
?
recordInfo
[
subItem
.
name
]
+
(
subItem
.
suffix
||
''
)
:
'-'
}}
</span>
</el-form-item>
</el-form-item>
</el-row>
</el-row>
<el-row
v-if=
"this.recordInfo.status == 4"
>
<el-form-item
label=
"失败原因:"
>
<span>
{{
recordInfo
.
errorMessage
}}
</span>
<span
class=
"copy"
@
click=
"handleCopy"
>
复制
</span>
</el-form-item>
</el-row>
</el-form>
</el-form>
</div>
</div>
<div
v-if=
"recordInfo.operationList"
>
<div
v-if=
"recordInfo.operationList"
>
...
@@ -54,10 +60,11 @@
...
@@ -54,10 +60,11 @@
<
script
>
<
script
>
const
tableStatus
=
[
'待审核'
,
'已审核'
,
'第三方处理'
,
'成功'
,
'失败'
,
'驳回'
]
const
tableStatus
=
[
'待审核'
,
'已审核'
,
'第三方处理'
,
'成功'
,
'失败'
,
'驳回'
]
const
colors
=
[
'#FDB757'
,
'#2CCA74'
,
'#5850FF'
,
'#2CCA74'
,
'#999999'
,
'#EB4E4E'
]
const
colors
=
[
'#FDB757'
,
'#2CCA74'
,
'#5850FF'
,
'#2CCA74'
,
'#999999'
,
'#EB4E4E'
]
const
channelObj
=
{
const
channelObj
=
{
'TXIAT'
:
'熠轩'
,
TXIAT
:
'熠轩-银行卡'
,
'ZX'
:
'中雄'
,
ZX
:
'中雄-银行卡'
,
'YUNHUO'
:
'云获'
YUNHUO
:
'云获-银行卡'
,
'YUNHUO-WX'
:
'云获-微信'
}
}
export
default
{
export
default
{
name
:
'DetailDialog'
,
name
:
'DetailDialog'
,
...
@@ -70,7 +77,25 @@ export default {
...
@@ -70,7 +77,25 @@ export default {
withdrawData
:
[],
withdrawData
:
[],
paymentData
:
[],
paymentData
:
[],
operationData
:
[],
operationData
:
[],
isVisible
:
this
.
detailVisible
isVisible
:
this
.
detailVisible
,
sourceList
:
[
{
confId
:
'0'
,
confLabel
:
'车生活助手'
},
{
confId
:
'1'
,
confLabel
:
'系统导入'
},
{
confId
:
'2'
,
confLabel
:
'生意助手员工版'
},
{
confId
:
'3'
,
confLabel
:
'门店助手'
}
]
}
}
},
},
props
:
{
props
:
{
...
@@ -92,6 +117,21 @@ export default {
...
@@ -92,6 +117,21 @@ export default {
computed
:
{},
computed
:
{},
mounted
()
{},
mounted
()
{},
methods
:
{
methods
:
{
handleCopy
()
{
const
text
=
this
.
recordInfo
.
errorMessage
const
input
=
document
.
createElement
(
'input'
)
input
.
value
=
text
// 将临时输入框添加到页面中
document
.
body
.
appendChild
(
input
)
// 选中临时输入框的内容
input
.
select
()
const
isSuccessful
=
document
.
execCommand
(
'copy'
)
document
.
body
.
removeChild
(
input
)
if
(
isSuccessful
){
this
.
$message
.
success
(
'复制成功'
)
}
},
getDetails
()
{
getDetails
()
{
this
.
$apis
.
withdraw
.
getDetails
({
id
:
this
.
id
}).
then
(
res
=>
{
this
.
$apis
.
withdraw
.
getDetails
({
id
:
this
.
id
}).
then
(
res
=>
{
this
.
recordInfo
=
res
this
.
recordInfo
=
res
...
@@ -108,14 +148,21 @@ export default {
...
@@ -108,14 +148,21 @@ export default {
label
:
'提现类型'
,
label
:
'提现类型'
,
name
:
'transferType'
,
name
:
'transferType'
,
addHtml
:
obj
=>
{
addHtml
:
obj
=>
{
return
obj
.
transferType
==
0
?
'积分提现'
:
obj
.
transferType
==
1
?
'普通提现'
:
'阳光激励'
return
obj
.
transferType
==
0
?
'积分提现'
:
obj
.
transferType
==
1
?
'普通提现'
:
'阳光激励'
}
},
{
label
:
'提现方式'
,
name
:
'mode'
,
addHtml
:
obj
=>
{
return
obj
.
mode
===
1
?
'微信'
:
obj
.
mode
===
0
?
'银行卡'
:
'--'
}
}
},
},
{
{
label
:
'提现金额'
,
label
:
'提现金额'
,
name
:
'payAmount'
,
name
:
'payAmount'
,
addHtml
:
obj
=>
{
addHtml
:
obj
=>
{
return
obj
.
payAmount
?(
obj
.
payAmount
/
100
).
toFixed
(
2
):
'--'
return
obj
.
payAmount
?
(
obj
.
payAmount
/
100
).
toFixed
(
2
)
:
'--'
}
}
},
},
{
{
...
@@ -138,6 +185,14 @@ export default {
...
@@ -138,6 +185,14 @@ export default {
{
{
label
:
'申请时间'
,
label
:
'申请时间'
,
name
:
'createdDate'
name
:
'createdDate'
},
{
label
:
'来源'
,
name
:
'withdrawalSource'
,
addHtml
:
obj
=>
{
let
arr
=
this
.
sourceList
.
filter
(
item
=>
item
.
confId
==
obj
.
withdrawalSource
)
return
arr
.
length
>
0
?
arr
[
0
].
confLabel
:
'--'
}
}
}
]
]
this
.
paymentData
=
[
this
.
paymentData
=
[
...
@@ -162,6 +217,10 @@ export default {
...
@@ -162,6 +217,10 @@ export default {
name
:
'mobile'
name
:
'mobile'
},
},
{
{
label
:
'微信openid'
,
name
:
'customerOpenId'
},
{
label
:
'付款渠道'
,
label
:
'付款渠道'
,
name
:
'channel'
,
name
:
'channel'
,
addHtml
:
obj
=>
{
addHtml
:
obj
=>
{
...
@@ -172,7 +231,7 @@ export default {
...
@@ -172,7 +231,7 @@ export default {
label
:
'结算金额'
,
label
:
'结算金额'
,
name
:
'settleAmount'
,
name
:
'settleAmount'
,
addHtml
:
obj
=>
{
addHtml
:
obj
=>
{
return
obj
.
settleAmount
?(
obj
.
settleAmount
/
100
).
toFixed
(
2
):
'--'
return
obj
.
settleAmount
?
(
obj
.
settleAmount
/
100
).
toFixed
(
2
)
:
'--'
}
}
},
},
{
{
...
@@ -188,11 +247,11 @@ export default {
...
@@ -188,11 +247,11 @@ export default {
color
:
colors
[
obj
.
status
]
color
:
colors
[
obj
.
status
]
}
}
}
}
},
{
label
:
'失败原因'
,
name
:
'errorMessage'
}
}
// {
// label: '失败原因',
// name: 'errorMessage'
// }
]
]
this
.
operationData
=
[
this
.
operationData
=
[
{
{
...
@@ -202,7 +261,7 @@ export default {
...
@@ -202,7 +261,7 @@ export default {
name
:
'type'
,
name
:
'type'
,
addHtml
:
obj
=>
{
addHtml
:
obj
=>
{
let
status
=
'--'
,
let
status
=
'--'
,
color
;
color
if
(
obj
.
result
==
0
)
{
if
(
obj
.
result
==
0
)
{
status
=
'通过'
status
=
'通过'
color
=
'#2CCA74'
color
=
'#2CCA74'
...
@@ -219,7 +278,7 @@ export default {
...
@@ -219,7 +278,7 @@ export default {
{
{
// label: ['审核人', '付款人', '操作人'],
// label: ['审核人', '付款人', '操作人'],
label
:
obj
=>
{
label
:
obj
=>
{
let
arr
=
[
'审核人'
,
'付款人'
,
'受理人'
],
let
arr
=
[
'审核人'
,
'付款人'
,
'受理人'
],
label
label
if
(
obj
.
result
==
0
)
{
if
(
obj
.
result
==
0
)
{
label
=
arr
[
obj
.
type
]
label
=
arr
[
obj
.
type
]
...
@@ -232,7 +291,7 @@ export default {
...
@@ -232,7 +291,7 @@ export default {
},
},
{
{
label
:
obj
=>
{
label
:
obj
=>
{
let
arr
=
[
'审核时间'
,
'付款时间'
,
'受理时间'
],
let
arr
=
[
'审核时间'
,
'付款时间'
,
'受理时间'
],
label
label
if
(
obj
.
result
==
0
)
{
if
(
obj
.
result
==
0
)
{
label
=
arr
[
obj
.
type
]
label
=
arr
[
obj
.
type
]
...
@@ -250,9 +309,9 @@ export default {
...
@@ -250,9 +309,9 @@ export default {
name
:
'remark'
name
:
'remark'
}
}
]
]
if
(
this
.
recordInfo
.
status
!=
4
)
{
// if (
) {
this
.
handleJudgment
(
this
.
paymentData
,
'errorMessage'
)
//
this.handleJudgment(this.paymentData, 'errorMessage')
}
//
}
this
.
formToRow
(
'withdrawData'
)
this
.
formToRow
(
'withdrawData'
)
this
.
formToRow
(
'operationData'
)
this
.
formToRow
(
'operationData'
)
this
.
formToRow
(
'paymentData'
)
this
.
formToRow
(
'paymentData'
)
...
@@ -302,7 +361,7 @@ export default {
...
@@ -302,7 +361,7 @@ export default {
}
}
.detail-txt
{
.detail-txt
{
display
:
inline-block
;
display
:
inline-block
;
width
:
13
3
px
;
width
:
13
6
px
;
}
}
.edit-title
{
.edit-title
{
font-weight
:
600
;
font-weight
:
600
;
...
@@ -322,4 +381,9 @@ export default {
...
@@ -322,4 +381,9 @@ export default {
border-radius
:
50%
;
border-radius
:
50%
;
margin-right
:
8px
;
margin-right
:
8px
;
}
}
.copy
{
color
:
#5850ff
;
margin-left
:
20px
;
cursor
:
pointer
;
}
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
src/views/withdraw/index.vue
View file @
7d7bf31
...
@@ -5,13 +5,14 @@
...
@@ -5,13 +5,14 @@
<div
class=
"table-header"
>
<div
class=
"table-header"
>
<!--
<h2>
积分提现列表
</h2>
-->
<!--
<h2>
积分提现列表
</h2>
-->
<div
class=
"statistics"
>
<div
class=
"statistics"
>
累计结算金额:熠轩
累计结算金额:熠轩
-银行卡
<span
class=
"price"
>
{{
settleAmount
.
yiXuanSettleAmount
}}
</span>
<span
class=
"price"
>
{{
settleAmount
.
yiXuanSettleAmount
}}
</span>
元
, 中雄
元
, 中雄-银行卡
<span
class=
"price"
>
{{
settleAmount
.
zxSettleAmount
}}
</span>
<span
class=
"price"
>
{{
settleAmount
.
zxSettleAmount
}}
</span>
元
, 云获
元
,云获-银行卡
<span
class=
"price"
>
{{
settleAmount
.
yunHuoSettleAmount
}}
</span>
<span
class=
"price"
>
{{
settleAmount
.
yunHuoSettleAmount
}}
</span>
元
元, 云获-微信
<span
class=
"price"
>
{{
settleAmount
.
yunHuoWXSettleAmount
}}
</span>
</div>
</div>
<div>
<div>
<div
class=
"select-wrap flex"
>
<div
class=
"select-wrap flex"
>
...
@@ -153,7 +154,9 @@ export default {
...
@@ -153,7 +154,9 @@ export default {
status
:
''
,
status
:
''
,
channel
:
''
,
channel
:
''
,
merchantName
:
''
,
merchantName
:
''
,
transferType
:
''
transferType
:
''
,
mode
:
''
,
withdrawalSource
:
''
},
},
hasFooter
:
false
,
hasFooter
:
false
,
tableSearchForm
:
{},
tableSearchForm
:
{},
...
@@ -235,6 +238,24 @@ export default {
...
@@ -235,6 +238,24 @@ export default {
optionId
:
'confId'
,
optionId
:
'confId'
,
optionLabel
:
'confLabel'
,
optionLabel
:
'confLabel'
,
optionsName
:
'withdrawalTypeList'
optionsName
:
'withdrawalTypeList'
},
{
label
:
'提现方式'
,
name
:
'mode'
,
type
:
'select'
,
optionList
:
[],
optionId
:
'confId'
,
optionLabel
:
'confLabel'
,
optionsName
:
'modeTypeList'
},
{
label
:
'来源'
,
name
:
'withdrawalSource'
,
type
:
'select'
,
optionList
:
[],
optionId
:
'confId'
,
optionLabel
:
'confLabel'
,
optionsName
:
'sourceList'
}
}
],
],
tableButtonList
:
[
tableButtonList
:
[
...
@@ -316,6 +337,25 @@ export default {
...
@@ -316,6 +337,25 @@ export default {
minWidth
:
200
minWidth
:
200
},
},
{
{
label
:
'提现类型'
,
prop
:
'transferType'
,
width
:
'200px'
,
formatter
:
cellValue
=>
{
let
arr
=
this
.
baseData
.
withdrawalTypeList
.
filter
(
item
=>
item
.
confId
==
cellValue
.
transferType
)
return
arr
.
length
>
0
?
arr
[
0
].
confLabel
:
'--'
}
},
{
label
:
'提现方式'
,
prop
:
'mode'
,
width
:
'200px'
,
formatter
:
cellValue
=>
{
let
arr
=
this
.
baseData
.
modeTypeList
.
filter
(
item
=>
item
.
confId
==
cellValue
.
mode
)
return
arr
.
length
>
0
?
arr
[
0
].
confLabel
:
'--'
}
},
{
label
:
'客户名称'
,
label
:
'客户名称'
,
prop
:
'customerName'
,
prop
:
'customerName'
,
width
:
150
width
:
150
...
@@ -371,6 +411,11 @@ export default {
...
@@ -371,6 +411,11 @@ export default {
width
:
'130px'
width
:
'130px'
},
},
{
{
label
:
'微信openid'
,
prop
:
'customerOpenId'
,
width
:
'130px'
},
{
label
:
'状态'
,
label
:
'状态'
,
prop
:
'status'
,
prop
:
'status'
,
width
:
'200px'
,
width
:
'200px'
,
...
@@ -382,6 +427,15 @@ export default {
...
@@ -382,6 +427,15 @@ export default {
width
:
'200px'
width
:
'200px'
},
},
{
{
label
:
'来源'
,
prop
:
'withdrawalSource'
,
width
:
'200px'
,
formatter
:
cellValue
=>
{
let
arr
=
this
.
baseData
.
sourceList
.
filter
(
item
=>
item
.
confId
==
cellValue
.
withdrawalSource
)
return
arr
.
length
>
0
?
arr
[
0
].
confLabel
:
'--'
}
},
{
label
:
'付款时间'
,
label
:
'付款时间'
,
prop
:
'payDate'
,
prop
:
'payDate'
,
width
:
'200px'
width
:
'200px'
...
@@ -447,15 +501,19 @@ export default {
...
@@ -447,15 +501,19 @@ export default {
channelList
:
[
channelList
:
[
{
{
confId
:
'TXIAT'
,
confId
:
'TXIAT'
,
confLabel
:
'熠轩'
confLabel
:
'熠轩
-银行卡
'
},
},
{
{
confId
:
'ZX'
,
confId
:
'ZX'
,
confLabel
:
'中雄'
confLabel
:
'中雄
-银行卡
'
},
},
{
{
confId
:
'YUNHUO'
,
confId
:
'YUNHUO'
,
confLabel
:
'云获'
confLabel
:
'云获-银行卡'
},
{
confId
:
'YUNHUO-WX'
,
confLabel
:
'云获-微信'
}
}
],
],
withdrawalTypeList
:
[
withdrawalTypeList
:
[
...
@@ -472,6 +530,34 @@ export default {
...
@@ -472,6 +530,34 @@ export default {
confLabel
:
'阳光激励'
confLabel
:
'阳光激励'
}
}
],
],
modeTypeList
:
[
{
confId
:
'0'
,
confLabel
:
'银行卡'
},
{
confId
:
'1'
,
confLabel
:
'微信'
}
],
sourceList
:
[
{
confId
:
'0'
,
confLabel
:
'车生活助手'
},
{
confId
:
'1'
,
confLabel
:
'系统导入'
},
{
confId
:
'2'
,
confLabel
:
'生意助手员工版'
},
{
confId
:
'3'
,
confLabel
:
'门店助手'
}
],
payChannelList
:
[]
payChannelList
:
[]
},
},
showPassDialog
:
false
,
showPassDialog
:
false
,
...
@@ -703,7 +789,9 @@ export default {
...
@@ -703,7 +789,9 @@ export default {
customerPhone
:
''
,
customerPhone
:
''
,
status
:
''
,
status
:
''
,
channel
:
''
,
channel
:
''
,
merchantName
:
''
merchantName
:
''
,
mode
:
''
,
withdrawalSource
:
''
}
}
this
.
handleSearch
()
this
.
handleSearch
()
},
},
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment