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 68d0b00e
authored
Nov 06, 2023
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
ef918f30
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
135 additions
and
68 deletions
src/api/modules/withdraw.js
src/views/withdraw/detail.vue
src/views/withdraw/index.vue
src/api/modules/withdraw.js
View file @
68d0b00
...
@@ -79,9 +79,9 @@ const getSms = params => {
...
@@ -79,9 +79,9 @@ const getSms = params => {
})
})
}
}
//
用户积分明细详情-客户积分详情
//
积分提现获取有业务的门店名列表
const
customerDetail
=
params
=>
{
const
getMerchantList
=
params
=>
{
params
.
method
=
`scrm.api.shopmall.integral
customer.detail
`
params
.
method
=
`scrm.api.shopmall.integral
.transfer.out.merchant.list
`
return
http
({
return
http
({
url
:
'rop-scrm-shopmall/router'
,
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
method
:
'POST'
,
...
@@ -90,4 +90,15 @@ const customerDetail = params => {
...
@@ -90,4 +90,15 @@ const customerDetail = params => {
})
})
}
}
export
default
{
getList
,
getAdmin
,
orderExport
,
integralpay
,
integralApprove
,
integralOut
,
getSms
,
customerDetail
}
// 根据id列表获取提现金额(分)合计
const
getAllpayAmount
=
params
=>
{
params
.
method
=
`scrm.api.shopmall.integral.transfer.out.pay.amount`
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
export
default
{
getList
,
getAdmin
,
orderExport
,
integralpay
,
integralApprove
,
integralOut
,
getSms
,
getMerchantList
,
getAllpayAmount
}
src/views/withdraw/detail.vue
View file @
68d0b00
...
@@ -7,7 +7,10 @@
...
@@ -7,7 +7,10 @@
<el-form
label-width=
"154px"
:inline=
"true"
>
<el-form
label-width=
"154px"
:inline=
"true"
>
<el-row
v-for=
"(item, index) in withdrawDataRow"
:key=
"index"
>
<el-row
v-for=
"(item, index) in withdrawDataRow"
:key=
"index"
>
<el-form-item
v-for=
"(subItem, subIndex) in item.rowList"
:key=
"subIndex"
:label=
"subItem.label + ':'"
class=
"row-item"
>
<el-form-item
v-for=
"(subItem, subIndex) in item.rowList"
:key=
"subIndex"
:label=
"subItem.label + ':'"
class=
"row-item"
>
<span
class=
"detail-txt ellipsis-1"
:title=
"recordInfo[subItem.name]"
>
{{
recordInfo
[
subItem
.
name
]
?
recordInfo
[
subItem
.
name
]
+
(
subItem
.
suffix
||
''
)
:
'-'
}}
</span>
<span
v-if=
"subItem.addHtml"
>
{{
subItem
.
addHtml
(
recordInfo
)
}}
</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-form>
</el-form>
...
@@ -17,25 +20,37 @@
...
@@ -17,25 +20,37 @@
<el-form
label-width=
"154px"
:inline=
"true"
>
<el-form
label-width=
"154px"
:inline=
"true"
>
<el-row
v-for=
"(item, index) in paymentDataRow"
:key=
"index"
>
<el-row
v-for=
"(item, index) in paymentDataRow"
:key=
"index"
>
<el-form-item
v-for=
"(subItem, subIndex) in item.rowList"
:key=
"subIndex"
:label=
"subItem.label + ':'"
class=
"row-item"
>
<el-form-item
v-for=
"(subItem, subIndex) in item.rowList"
:key=
"subIndex"
:label=
"subItem.label + ':'"
class=
"row-item"
>
<span
class=
"detail-txt ellipsis-1"
:title=
"recordInfo[subItem.name]"
>
{{
recordInfo
[
subItem
.
name
]
?
recordInfo
[
subItem
.
name
]
+
(
subItem
.
suffix
||
''
)
:
'-'
}}
</span>
<span
v-if=
"subItem.addHtml"
class=
"flex_sc"
>
<div
class=
"table_point"
:style=
"
{ background: subItem.addHtml(recordInfo).color }">
</div>
{{
subItem
.
addHtml
(
recordInfo
).
status
}}
</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-form>
</el-form>
</div>
</div>
<div>
<div
v-if=
"recordInfo.operationList"
>
<p
class=
"edit-title"
>
操作记录
</p>
<p
class=
"edit-title"
>
操作记录
</p>
<el-form
label-width=
"154px"
:inline=
"true"
>
<template
v-for=
"(record, recordIdx) in recordInfo.operationList"
>
<el-form
label-width=
"154px"
:inline=
"true"
:key=
"recordIdx"
>
<el-row
v-for=
"(item, index) in operationDataRow"
:key=
"index"
>
<el-row
v-for=
"(item, index) in operationDataRow"
:key=
"index"
>
<el-form-item
v-for=
"(subItem, subIndex) in item.rowList"
:key=
"subIndex"
:label=
"subItem.label + ':'"
class=
"row-item"
>
<el-form-item
v-for=
"(subItem, subIndex) in item.rowList"
:key=
"subIndex"
:label=
"subItem.label + ':'"
class=
"row-item"
>
<span
class=
"detail-txt ellipsis-1"
:title=
"recordInfo[subItem.name]"
>
{{
recordInfo
[
subItem
.
name
]
?
recordInfo
[
subItem
.
name
]
+
(
subItem
.
suffix
||
''
)
:
'-'
}}
</span>
<span
v-if=
"subItem.addHtml"
class=
"flex_sc"
>
<div
class=
"table_point"
:style=
"
{ background: subItem.addHtml(record).color }">
</div>
{{
subItem
.
addHtml
(
record
).
status
}}
</span>
<span
v-else
class=
"detail-txt ellipsis-1"
:title=
"record[subItem.name]"
>
{{
record
[
subItem
.
name
]
?
record
[
subItem
.
name
]
+
(
subItem
.
suffix
||
''
)
:
'-'
}}
</span>
</el-form-item>
</el-form-item>
</el-row>
</el-row>
</el-form>
</el-form>
</
template
>
</div>
</div>
</div>
</div>
</GLDialog>
</GLDialog>
</template>
</template>
<
script
>
<
script
>
const
tableStatus
=
[
'待审核'
,
'已审核'
,
'第三方处理'
,
'成功'
,
'失败'
,
'驳回'
]
const
colors
=
[
'#FDB757'
,
'#2CCA74'
,
'#5850FF'
,
'#2CCA74'
,
'#999999'
,
'#EB4E4E'
]
export
default
{
export
default
{
name
:
'DetailDialog'
,
name
:
'DetailDialog'
,
data
()
{
data
()
{
...
@@ -68,7 +83,7 @@ export default {
...
@@ -68,7 +83,7 @@ export default {
computed
:
{},
computed
:
{},
mounted
()
{},
mounted
()
{},
methods
:
{
methods
:
{
async
getConfig
()
{
getConfig
()
{
let
withdrawData
=
[
let
withdrawData
=
[
{
{
label
:
'提现单号'
,
label
:
'提现单号'
,
...
@@ -88,7 +103,10 @@ export default {
...
@@ -88,7 +103,10 @@ export default {
},
},
{
{
label
:
'提现金额'
,
label
:
'提现金额'
,
name
:
'payAmount'
name
:
'payAmount'
,
addHtml
:
obj
=>
{
return
(
obj
.
payAmount
/
100
).
toFixed
(
2
)
}
},
},
{
{
label
:
'所属门店'
,
label
:
'所属门店'
,
...
@@ -96,7 +114,7 @@ export default {
...
@@ -96,7 +114,7 @@ export default {
},
},
{
{
label
:
'申请时间'
,
label
:
'申请时间'
,
name
:
'
createdDate
'
name
:
'
applyDateStart
'
}
}
],
],
paymentData
=
[
paymentData
=
[
...
@@ -114,8 +132,7 @@ export default {
...
@@ -114,8 +132,7 @@ export default {
},
},
{
{
label
:
'收款银行'
,
label
:
'收款银行'
,
name
:
'recvBank'
,
name
:
'recvBank'
suffix
:
'%'
},
},
{
{
label
:
'收款手机号'
,
label
:
'收款手机号'
,
...
@@ -127,39 +144,66 @@ export default {
...
@@ -127,39 +144,66 @@ export default {
},
},
{
{
label
:
'状态'
,
label
:
'状态'
,
name
:
'status'
name
:
'status'
,
addHtml
:
obj
=>
{
return
{
status
:
tableStatus
[
obj
.
status
],
color
:
colors
[
obj
.
status
]
}
}
},
},
{
{
label
:
'失败原因'
,
label
:
'失败原因'
,
name
:
'
crowdFundingPric
e'
name
:
'
errorMessag
e'
}
}
],
],
operationData
=
[
operationData
=
[
{
{
label
:
'审核'
,
label
:
'审核'
,
name
:
'shipAddress'
name
:
'type'
,
addHtml
:
obj
=>
{
return
{
status
:
tableStatus
[
obj
.
type
],
color
:
colors
[
obj
.
type
]
}
}
},
},
{
{
label
:
'审核人'
,
label
:
'审核人'
,
name
:
'
weChatName
'
name
:
'
createdBy
'
},
},
{
{
label
:
'审核时间'
,
label
:
'审核时间'
,
name
:
'
activityNam
e'
name
:
'
createdDat
e'
},
},
{
{
label
:
'备注'
,
label
:
'备注'
,
name
:
'
goodsName
'
name
:
'
remark
'
}
}
]
]
if
(
this
.
recordInfo
.
status
!==
4
)
{
this
.
handleJudgment
(
paymentData
,
'errorMessage'
)
}
this
.
withdrawData
=
withdrawData
this
.
withdrawData
=
withdrawData
this
.
paymentData
=
paymentData
this
.
operationData
=
operationData
this
.
operationData
=
operationData
// this.getInfo()
this
.
formToRow
(
'withdrawData'
)
this
.
formToRow
(
'withdrawData'
)
this
.
formToRow
(
'paymentData'
)
this
.
formToRow
(
'operationData'
)
this
.
formToRow
(
'operationData'
)
},
},
handleJudgment
(
target
,
key
)
{
let
arr
=
target
,
len
=
arr
.
length
,
item
for
(
let
i
=
0
;
i
<
len
;
i
++
)
{
item
=
arr
[
i
]
if
(
item
.
name
==
key
)
{
arr
.
splice
(
i
,
1
)
}
}
this
.
paymentData
=
arr
this
.
formToRow
(
'paymentData'
)
},
formToRow
(
formName
,
numOfRow
=
3
)
{
formToRow
(
formName
,
numOfRow
=
3
)
{
var
rowNum
=
Math
.
ceil
(
this
[
formName
].
length
/
numOfRow
)
var
rowNum
=
Math
.
ceil
(
this
[
formName
].
length
/
numOfRow
)
for
(
var
i
=
0
;
i
<
rowNum
;
i
++
)
{
for
(
var
i
=
0
;
i
<
rowNum
;
i
++
)
{
...
@@ -174,10 +218,9 @@ export default {
...
@@ -174,10 +218,9 @@ export default {
}
}
}
}
}
}
console
.
log
(
this
[
formName
+
'Row'
])
},
},
handleClose
()
{
handleClose
()
{
this
.
isVisible
=
false
this
.
isVisible
=
false
this
.
$emit
(
'dialogClose'
)
this
.
$emit
(
'dialogClose'
)
}
}
}
}
...
@@ -189,7 +232,7 @@ export default {
...
@@ -189,7 +232,7 @@ export default {
/deep/
{
/deep/
{
.el-form-item__content
{
.el-form-item__content
{
height
:
30px
;
height
:
30px
;
}
}
}
}
}
}
.detail-txt
{
.detail-txt
{
...
@@ -206,7 +249,12 @@ export default {
...
@@ -206,7 +249,12 @@ export default {
margin-top
:
20px
;
margin-top
:
20px
;
}
}
/
deep
/
.el-form-item
{
/
deep
/
.el-form-item
{
margin-bottom
:
0
;
margin-bottom
:
0
;
}
.table_point
{
width
:
6px
;
height
:
6px
;
border-radius
:
50%
;
margin-right
:
8px
;
}
}
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
src/views/withdraw/index.vue
View file @
68d0b00
...
@@ -73,7 +73,8 @@ export default {
...
@@ -73,7 +73,8 @@ export default {
customerName
:
''
,
customerName
:
''
,
customerPhone
:
''
,
customerPhone
:
''
,
status
:
''
,
status
:
''
,
channel
:
''
channel
:
''
,
merchantName
:
''
},
},
tableSearchForm
:
{},
tableSearchForm
:
{},
showFormData
:
[
showFormData
:
[
...
@@ -122,6 +123,15 @@ export default {
...
@@ -122,6 +123,15 @@ export default {
pickerOptions
:
'beforeRangePickerOptions'
pickerOptions
:
'beforeRangePickerOptions'
},
},
{
{
label
:
'所属门店'
,
name
:
'merchantName'
,
type
:
'select'
,
optionList
:
[],
optionId
:
'merchantName'
,
optionLabel
:
'merchantName'
,
optionsName
:
'merchantList'
},
{
label
:
'付款渠道'
,
label
:
'付款渠道'
,
name
:
'channel'
,
name
:
'channel'
,
type
:
'select'
,
type
:
'select'
,
...
@@ -204,7 +214,7 @@ export default {
...
@@ -204,7 +214,7 @@ export default {
label
:
'提现单号'
,
label
:
'提现单号'
,
prop
:
'outSettleOrderId'
,
prop
:
'outSettleOrderId'
,
line
:
1
,
line
:
1
,
width
:
18
0
minWidth
:
20
0
},
},
{
{
label
:
'客户名称'
,
label
:
'客户名称'
,
...
@@ -230,10 +240,13 @@ export default {
...
@@ -230,10 +240,13 @@ export default {
{
{
label
:
'提现金额'
,
label
:
'提现金额'
,
prop
:
'payAmount'
,
prop
:
'payAmount'
,
width
:
100
width
:
100
,
formatter
:
cellValue
=>
{
return
(
cellValue
.
payAmount
/
100
).
toFixed
(
2
)
}
},
},
{
{
label
:
'收
货
人姓名'
,
label
:
'收
款
人姓名'
,
prop
:
'name'
,
prop
:
'name'
,
width
:
'110px'
width
:
'110px'
},
},
...
@@ -266,7 +279,7 @@ export default {
...
@@ -266,7 +279,7 @@ export default {
},
},
{
{
label
:
'申请时间'
,
label
:
'申请时间'
,
prop
:
'
createdDate
'
,
prop
:
'
applyDateStart
'
,
width
:
'200px'
width
:
'200px'
},
},
{
{
...
@@ -284,6 +297,7 @@ export default {
...
@@ -284,6 +297,7 @@ export default {
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'currentPage'
,
totalCount
:
'total'
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'currentPage'
,
totalCount
:
'total'
},
// 基本数据
// 基本数据
baseData
:
{
baseData
:
{
merchantList
:
[],
auditStatusStatusList
:
[
auditStatusStatusList
:
[
{
{
confId
:
'0'
,
confId
:
'0'
,
...
@@ -391,8 +405,19 @@ export default {
...
@@ -391,8 +405,19 @@ export default {
mounted
()
{
mounted
()
{
this
.
$utils
.
getOptionsList
(
this
,
'showFormData'
)
this
.
$utils
.
getOptionsList
(
this
,
'showFormData'
)
this
.
getMerchantList
()
},
},
methods
:
{
methods
:
{
getMerchantList
()
{
this
.
$apis
.
withdraw
.
getMerchantList
({}).
then
(
res
=>
{
this
.
baseData
.
merchantList
=
res
.
map
(
item
=>
{
return
{
merchantName
:
item
}
})
this
.
$utils
.
getOptionsList
(
this
,
'showFormData'
,
false
,
'merchantName'
)
})
},
getParams
()
{
getParams
()
{
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
if
(
this
.
searchForm
.
applyDateStr
)
{
if
(
this
.
searchForm
.
applyDateStr
)
{
...
@@ -410,7 +435,8 @@ export default {
...
@@ -410,7 +435,8 @@ export default {
beforeSearchFn
()
{
beforeSearchFn
()
{
return
new
Promise
(
resolve
=>
{
return
new
Promise
(
resolve
=>
{
this
.
tableSearchForm
=
this
.
getParams
()
this
.
tableSearchForm
=
this
.
getParams
()
delete
this
.
tableSearchForm
.
verificationTimeStr
delete
this
.
tableSearchForm
.
payTimeStr
delete
this
.
tableSearchForm
.
applyDateStr
resolve
()
resolve
()
})
})
},
},
...
@@ -419,50 +445,23 @@ export default {
...
@@ -419,50 +445,23 @@ export default {
},
},
handleReset
()
{
handleReset
()
{
this
.
searchForm
=
{
this
.
searchForm
=
{
settlementStatus
:
''
outSettleOrderId
:
''
,
customerName
:
''
,
customerPhone
:
''
,
status
:
''
,
channel
:
''
,
merchantName
:
''
}
}
this
.
handleSearch
()
this
.
handleSearch
()
},
},
handleSettlement
(
row
)
{
const
params
=
{
id
:
row
.
id
,
settlementStatus
:
row
.
settlementStatus
?
0
:
1
}
this
.
$utils
.
secondConfirm
(
this
,
'结算'
,
'是否要'
+
(
row
.
settlementStatus
?
'取消结算'
:
'结算'
)
+
'?'
,
'points'
,
'integralorderSettle'
,
params
)
},
handleDetail
(
row
)
{
handleDetail
(
row
)
{
// console.log(row)
// console.log(row)
this
.
recordInfo
=
row
this
.
recordInfo
=
row
this
.
detailVisible
=
true
this
.
detailVisible
=
true
},
},
handleImport
(
e
)
{
var
reader
=
new
FileReader
()
var
file
=
e
.
srcElement
.
files
[
0
]
const
isLt
=
file
.
size
/
1024
/
1024
<
10
if
(
isLt
>
10
)
{
this
.
$message
({
message
:
'文件大小不能超过10M'
,
type
:
'error'
})
return
true
}
reader
.
readAsDataURL
(
file
)
reader
.
onload
=
e
=>
{
const
imgFile
=
e
.
target
.
result
const
base64
=
file
.
name
.
split
(
'.'
)[
file
.
name
.
split
(
'.'
).
length
-
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
this
.
$apis
.
points
.
orderImport
({
file
:
base64
}).
then
(
res
=>
{
this
.
$message
({
message
:
res
.
code
==
'0'
?
'操作成功'
:
res
.
message
,
type
:
res
.
code
==
'0'
?
'success'
:
'error'
})
document
.
getElementById
(
'fileUpload'
).
value
=
''
this
.
handleSearch
()
})
}
},
exportExcel
()
{
exportExcel
()
{
const
params
=
this
.
getParams
()
const
params
=
this
.
getParams
()
this
.
$apis
.
points
.
orderExport
(
params
).
then
(
res
=>
{
this
.
$apis
.
withdraw
.
orderExport
(
params
).
then
(
res
=>
{
this
.
$utils
.
aToExport
(
res
)
this
.
$utils
.
aToExport
(
res
)
})
})
},
},
...
@@ -492,7 +491,9 @@ export default {
...
@@ -492,7 +491,9 @@ export default {
//付款
//付款
handlePay
(
row
)
{
handlePay
(
row
)
{
if
(
row
)
{
if
(
row
)
{
console
.
log
(
row
)
this
.
ids
=
[
row
.
id
]
this
.
ids
=
[
row
.
id
]
this
.
payForm
.
payMoney
=
(
row
.
payAmount
/
100
).
toFixed
(
2
)
this
.
$refs
.
withdrawRef
.
clearMutiSelect
()
this
.
$refs
.
withdrawRef
.
clearMutiSelect
()
}
else
{
}
else
{
if
(
!
this
.
ids
)
{
if
(
!
this
.
ids
)
{
...
@@ -502,10 +503,17 @@ export default {
...
@@ -502,10 +503,17 @@ export default {
})
})
return
return
}
}
this
.
getAllpayAmount
()
}
}
this
.
getAdmin
()
this
.
getAdmin
()
this
.
isPay
=
true
this
.
isPay
=
true
},
},
//获取批量付款的金额
getAllpayAmount
(){
this
.
$apis
.
withdraw
.
getAllpayAmount
({
ids
:
this
.
ids
}).
then
(
res
=>
{
this
.
payForm
.
payMoney
=
(
res
/
100
).
toFixed
(
2
)
})
},
getAdmin
()
{
getAdmin
()
{
this
.
$apis
.
withdraw
.
getAdmin
({}).
then
(
res
=>
{
this
.
$apis
.
withdraw
.
getAdmin
({}).
then
(
res
=>
{
this
.
payForm
.
admin
=
`
${
res
.
name
}
${
res
.
phone
}
`
this
.
payForm
.
admin
=
`
${
res
.
name
}
${
res
.
phone
}
`
...
...
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