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 5cd6143d
authored
Oct 31, 2025
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'SAAS+V5.2.0-1030' into 'master'
上线合并 See merge request
!18
2 parents
216ff96c
4c7c1cac
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
870 additions
and
275 deletions
src/api/modules/points.js
src/api/modules/withdraw.js
src/utils/constants.js
src/views/storeCredit/add.vue
src/views/storeCredit/index.vue
src/views/withdraw/approve.vue
src/views/withdraw/approveView.vue
src/views/withdraw/detail.vue
src/views/withdraw/list.vue
src/views/withdraw/payApproval.vue
src/api/modules/points.js
View file @
5cd6143
...
@@ -206,7 +206,8 @@ const updateCustomerIntegral = params => {
...
@@ -206,7 +206,8 @@ const updateCustomerIntegral = params => {
url
:
'rop-scrm-shopmall/router'
,
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
method
:
'POST'
,
data
:
params
,
data
:
params
,
sign
:
true
sign
:
true
,
returnAll
:
true
})
})
}
}
...
...
src/api/modules/withdraw.js
View file @
5cd6143
...
@@ -10,10 +10,9 @@ const getList = params => {
...
@@ -10,10 +10,9 @@ const getList = params => {
sign
:
true
sign
:
true
})
})
}
}
//付款渠道树形接口
// 获分提现获取管理员信息
const
getChannelTree
=
params
=>
{
const
getAdmin
=
params
=>
{
params
.
method
=
`scrm.api.shopmall.integral.transfer.channel.config.tree`
params
.
method
=
`scrm.api.shopmall.integral.transfer.out.getAdmin`
return
http
({
return
http
({
url
:
'rop-scrm-shopmall/router'
,
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
method
:
'POST'
,
...
@@ -21,6 +20,16 @@ const getAdmin = params => {
...
@@ -21,6 +20,16 @@ const getAdmin = params => {
sign
:
true
sign
:
true
})
})
}
}
// 获分提现获取管理员信息
// const getAdmin = params => {
// params.method = `scrm.api.shopmall.integral.transfer.out.getAdmin`
// return http({
// url: 'rop-scrm-shopmall/router',
// method: 'POST',
// data: params,
// sign: true
// })
// }
// 积分提现列表-导出
// 积分提现列表-导出
const
orderExport
=
params
=>
{
const
orderExport
=
params
=>
{
...
@@ -312,5 +321,43 @@ const payApprovalAgain = (params={}) => {
...
@@ -312,5 +321,43 @@ const payApprovalAgain = (params={}) => {
returnAll
:
true
returnAll
:
true
})
})
}
}
// (积分提现获取付款渠道列表)
export
default
{
payApprovalAgain
,
getChannelAccount
,
approvalDetail
,
removeApproval
,
getPaymentEntityList
,
applyApprovalOA
,
getApprovalLog
,
getApprovalPage
,
generateBatchCount
,
integralorderBatch
,
getPayAmount
,
getAllPayAmount
,
integralAllOut
,
integralAllpay
,
getList
,
getAdmin
,
orderExport
,
integralpay
,
integralApprove
,
integralOut
,
getSms
,
getMerchantList
,
getDetails
,
uploadXlsx
,
handleSaveImport
,
getBalance
,
getSettleAmount
,
getChannel
,
checkRecordsTransferType
}
const
getChannelList
=
(
params
=
{})
=>
{
params
.
method
=
`scrm.api.shopmall.integral.transfer.out.listChannel`
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
// 积分提现获取付款主体列表
const
getListPaymentEntity
=
(
params
=
{})
=>
{
params
.
method
=
`scrm.api.shopmall.integral.transfer.out.listPayEntity`
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
//(积分提现获取付款代征主体列表, paymentEntityId
const
getListPayLevy
=
(
params
=
{})
=>
{
params
.
method
=
`scrm.api.shopmall.integral.transfer.out.listPayLevy`
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
getAdmin
=
(
params
=
{})
=>
{
params
.
method
=
`scrm.api.shopmall.integral.transfer.channel.config.get`
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
export
default
{
getListPayLevy
,
getListPaymentEntity
,
getChannelList
,
getChannelTree
,
payApprovalAgain
,
getChannelAccount
,
approvalDetail
,
removeApproval
,
getPaymentEntityList
,
applyApprovalOA
,
getApprovalLog
,
getApprovalPage
,
generateBatchCount
,
integralorderBatch
,
getPayAmount
,
getAllPayAmount
,
integralAllOut
,
integralAllpay
,
getList
,
getAdmin
,
orderExport
,
integralpay
,
integralApprove
,
integralOut
,
getSms
,
getMerchantList
,
getDetails
,
uploadXlsx
,
handleSaveImport
,
getBalance
,
getSettleAmount
,
getChannel
,
checkRecordsTransferType
}
src/utils/constants.js
View file @
5cd6143
...
@@ -149,3 +149,53 @@ export const channelObj = {
...
@@ -149,3 +149,53 @@ export const channelObj = {
'BIRDWORK'
:
'智鸟-银行卡'
,
'BIRDWORK'
:
'智鸟-银行卡'
,
'SHENBIANYUN_JX'
:
'身边云(江西)-银行卡'
'SHENBIANYUN_JX'
:
'身边云(江西)-银行卡'
}
}
export
const
statisticsTypeList
=
[
{
confId
:
'yiXuanSettleAmount'
,
confLabel
:
'熠轩-银行卡'
},
{
confId
:
'zxSettleAmount'
,
confLabel
:
'中雄-银行卡'
},
{
confId
:
'yunHuoSettleAmount'
,
confLabel
:
'云获(嘀加)-银行卡'
},
{
confId
:
'yunHuoZYSettleAmount'
,
confLabel
:
'云获(中赢)-银行卡'
},
{
confId
:
'yunHuoWXSettleAmount'
,
confLabel
:
'云获(中赢)-微信'
},
{
confId
:
'shenBianYunXHSettleAmount'
,
confLabel
:
'身边云(翔禾)-银行卡'
},
{
confId
:
'shenBianYunYJSettleAmount'
,
confLabel
:
'身边云(雅钧)-银行卡'
},
{
confId
:
'shenBianYunBCSettleAmount'
,
confLabel
:
'身边云(博晟)-银行卡'
},
{
confId
:
'shenBianYunCJSettleAmount'
,
confLabel
:
'身边云(晨景)-银行卡'
},
{
confId
:
'birdWorkSettleAmount'
,
confLabel
:
'智鸟-银行卡'
},
{
confId
:
'shenBianYunJXSettleAmount'
,
confLabel
:
'身边云(江西)-银行卡'
},
{
confId
:
'xinXiangYunSettleAmount'
,
confLabel
:
'薪享云-银行卡'
}
]
\ No newline at end of file
\ No newline at end of file
src/views/storeCredit/add.vue
View file @
5cd6143
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
<
template
#
merchantId
>
<
template
#
merchantId
>
<
div
class
=
"upload"
>
<
div
class
=
"upload"
>
<
div
class
=
"upload-btn"
>
<
div
class
=
"upload-btn"
>
<
el
-
button
size
=
"small"
@
click
=
"relateStoreVisible = true"
:
disabled
=
"pageObject.id"
>
<
el
-
button
size
=
"small"
@
click
=
"relateStoreVisible = true"
:
disabled
=
"pageObject.id
|| $globalState.session.loginpath == '/login'
"
>
<
i
class
=
"el-icon-plus"
><
/i
>
<
i
class
=
"el-icon-plus"
><
/i
>
选择商户
选择商户
<
/el-button
>
<
/el-button
>
...
@@ -364,6 +364,33 @@ export default {
...
@@ -364,6 +364,33 @@ export default {
}
}
}
}
}
,
}
,
created() {
/** loginpath:标识系统
* 门店版:/login
* 1、默认带出商户,“选择商户”按钮置灰
* 2、导入充值人群,去掉“管理层”
* 运营版:/oss
*/
if (this.$globalState.session.loginpath == '/login') {
this.baseData.personTypeList.splice(1, 1)
this.configForm.merchantId = this.$globalState.session.merchantId
this.configForm.merchantName = this.$globalState.session.merchantName
this.loading = true
this.$apis.points.getMerchantCharge({ merchantId: this.configForm.merchantId
}
).then(res => {
if (res) {
this.totalFormData.map(e => {
if (['gasCardServiceCharge', 'passageServiceCharge'].includes(e.name)) {
const val = res[e.name] || 0
e.label = e.label.replace(/\d+/g, val)
this.chargeObject[e.name] = val
}
}
)
}
}
).finally(() => {
this.loading = false
}
)
}
}
,
mounted() {
mounted() {
const { id, type
}
= this.$route.query
const { id, type
}
= this.$route.query
if (id) this.getDetail(id, type)
if (id) this.getDetail(id, type)
...
@@ -413,6 +440,9 @@ export default {
...
@@ -413,6 +440,9 @@ export default {
handleConfirm() {
handleConfirm() {
const { disabled, id
}
= this.pageObject
const { disabled, id
}
= this.pageObject
if (disabled) return this.$router.go(-1)
if (disabled) return this.$router.go(-1)
if (this.loading) {
return true
}
this.$refs.fromRef.$refs.formRef.validate(async valid => {
this.$refs.fromRef.$refs.formRef.validate(async valid => {
if (valid) {
if (valid) {
try {
try {
...
@@ -460,14 +490,16 @@ export default {
...
@@ -460,14 +490,16 @@ export default {
}
}
if (id) params.id = id
if (id) params.id = id
const res = await this.$apis.points.updateCustomerIntegral(params)
const res = await this.$apis.points.updateCustomerIntegral(params)
if (res) {
console.log(res)
if (res.code == 0) {
this.$message({
this.$message({
message: id ? '编辑成功' : '创建成功',
message: id ? '编辑成功' : '创建成功',
type: 'success'
type: 'success'
}
)
}
)
setTimeout(() => this.$router.go(-1), 1e3)
setTimeout(() => this.$router.go(-1), 1e3)
}
}
else {
this.loading = false
this.loading = false
}
}
catch (error) {
}
catch (error) {
this.loading = false
this.loading = false
this.$message.error(error || '操作失败')
this.$message.error(error || '操作失败')
...
...
src/views/storeCredit/index.vue
View file @
5cd6143
...
@@ -15,8 +15,7 @@
...
@@ -15,8 +15,7 @@
@
click=
"jump"
@
click=
"jump"
size=
"small"
size=
"small"
>
门店客户积分充值
</el-button>
>
门店客户积分充值
</el-button>
<el-button
@
click=
"toSMS"
size=
"small"
>
提醒短信
<GLButton
@
click=
"toSMS"
fn=
"提醒短信"
size=
"small"
>
提醒短信
</GLButton>
</el-button>
<el-button
@
click=
"handleExport"
size=
"small"
>
导出
<el-button
@
click=
"handleExport"
size=
"small"
>
导出
</el-button>
</el-button>
</div>
</div>
...
@@ -187,6 +186,11 @@ export default {
...
@@ -187,6 +186,11 @@ export default {
addHtml
:
'status'
,
addHtml
:
'status'
,
}
,
}
,
{
{
label
:
'创建人'
,
prop
:
'createdByName'
,
minWidth
:
150
,
}
,
{
label
:
'创建时间'
,
label
:
'创建时间'
,
minWidth
:
150
,
minWidth
:
150
,
formatter
:
cell
=>
dayjs
(
cell
.
createdDate
).
format
(
'YYYY/MM/DD HH:mm:ss'
)
formatter
:
cell
=>
dayjs
(
cell
.
createdDate
).
format
(
'YYYY/MM/DD HH:mm:ss'
)
...
@@ -205,10 +209,11 @@ export default {
...
@@ -205,10 +209,11 @@ export default {
}
,
}
,
tableButtonList
:
[
tableButtonList
:
[
{
{
type
:
'
el-b
utton'
,
type
:
'
GLB
utton'
,
name
:
'审核'
,
name
:
'审核'
,
attrs
:
{
attrs
:
{
type
:
'text'
,
type
:
'text'
,
fn
:
'审核'
}
,
}
,
condition
:
row
=>
row
.
status
==
0
,
condition
:
row
=>
row
.
status
==
0
,
listeners
:
{
listeners
:
{
...
@@ -230,10 +235,11 @@ export default {
...
@@ -230,10 +235,11 @@ export default {
}
}
}
,
}
,
{
{
type
:
'
el-b
utton'
,
type
:
'
GLB
utton'
,
name
:
'编辑'
,
name
:
'编辑'
,
attrs
:
{
attrs
:
{
type
:
'text'
,
type
:
'text'
,
fn
:
'编辑'
}
,
}
,
condition
:
row
=>
row
.
status
==
0
,
condition
:
row
=>
row
.
status
==
0
,
listeners
:
{
listeners
:
{
...
@@ -247,6 +253,22 @@ export default {
...
@@ -247,6 +253,22 @@ export default {
auditObj
:
{
}
auditObj
:
{
}
}
}
}
,
}
,
created
()
{
/** loginpath:标识系统
* 门店版:/login
* 1、筛选去掉“商户名称”
* 2、去掉“提醒短信” - 系统权限控制
* 3、列表去掉“审核”和“编辑” - 系统权限控制
* 运营版:/oss
*/
if
(
this
.
$globalState
.
session
.
loginpath
==
'/login'
)
{
// 1、筛选去掉“商户名称”
const
searchIdx
=
this
.
searchFormData
.
findIndex
(
item
=>
item
.
name
==
'merchantName'
)
if
(
searchIdx
!=
-
1
)
{
this
.
searchFormData
.
splice
(
searchIdx
,
1
)
}
}
}
,
mounted
()
{
mounted
()
{
}
,
}
,
methods
:
{
methods
:
{
...
...
src/views/withdraw/approve.vue
View file @
5cd6143
...
@@ -2,7 +2,11 @@
...
@@ -2,7 +2,11 @@
<
template
>
<
template
>
<div
class=
"points"
>
<div
class=
"points"
>
<div
class=
"container"
>
<div
class=
"container"
>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"showFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"showFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
>
<template
slot=
"channelHtml"
>
<el-cascader
style=
"width: 100%"
:props=
"props"
v-model=
"searchForm.channelList"
:placeholder=
"'请选择'"
filterable
@
change=
"selectAddAttr($event, 'searchForm')"
></el-cascader>
</
template
>
</GLCombiForm>
<!-- 表格区域 开始 -->
<!-- 表格区域 开始 -->
<GLTable
ref=
"withdrawRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
@
selectionTable=
"selectionTable"
>
<GLTable
ref=
"withdrawRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
@
selectionTable=
"selectionTable"
>
<div
class=
"flex_sc"
slot=
"colorStatus"
slot-scope=
"scope"
>
<div
class=
"flex_sc"
slot=
"colorStatus"
slot-scope=
"scope"
>
...
@@ -26,7 +30,7 @@ import * as dayjs from 'dayjs'
...
@@ -26,7 +30,7 @@ import * as dayjs from 'dayjs'
import
url
from
'@/assets/empty.png'
import
url
from
'@/assets/empty.png'
import
DetailDialog
from
'./approveView.vue'
import
DetailDialog
from
'./approveView.vue'
import
PayApproval
from
'./payApproval.vue'
import
PayApproval
from
'./payApproval.vue'
import
{
colors
,
tableStatus
,
PayerelList
,
channelList
,
statusList
}
from
'@/utils/constants.js'
import
{
colors
,
tableStatus
,
PayerelList
,
channelList
,
statusList
}
from
'@/utils/constants.js'
export
default
{
export
default
{
components
:
{
components
:
{
DetailDialog
,
DetailDialog
,
...
@@ -46,6 +50,7 @@ export default {
...
@@ -46,6 +50,7 @@ export default {
url
:
url
,
url
:
url
,
searchForm
:
{
searchForm
:
{
batchNo
:
''
,
batchNo
:
''
,
channelList
:
[],
paymentChannel
:
''
,
paymentChannel
:
''
,
approvalTime
:
[],
approvalTime
:
[],
oaApprovalTime
:
[],
oaApprovalTime
:
[],
...
@@ -70,22 +75,23 @@ export default {
...
@@ -70,22 +75,23 @@ export default {
},
},
{
{
label
:
'付款渠道'
,
label
:
'付款渠道'
,
name
:
'
paymentChannel
'
,
name
:
'
channelList
'
,
type
:
'select'
,
type
:
'select'
,
addHtml
:
'channelHtml'
,
optionList
:
[],
optionList
:
[],
optionId
:
'confId'
,
optionId
:
'confId'
,
optionLabel
:
'confLabel'
,
optionLabel
:
'confLabel'
,
optionsName
:
'channelList'
optionsName
:
'channelList'
},
},
{
//
{
label
:
'付款主体'
,
//
label: '付款主体',
name
:
'paymentSubject'
,
//
name: 'paymentSubject',
type
:
'select'
,
//
type: 'select',
optionList
:
[],
//
optionList: [],
optionId
:
'confId'
,
//
optionId: 'confId',
optionLabel
:
'confLabel'
,
//
optionLabel: 'confLabel',
optionsName
:
'PayerelList'
//
optionsName: 'PayerelList'
},
//
},
{
{
label
:
'状态'
,
label
:
'状态'
,
name
:
'status'
,
name
:
'status'
,
...
@@ -137,7 +143,7 @@ export default {
...
@@ -137,7 +143,7 @@ export default {
fn
:
'编辑'
fn
:
'编辑'
},
},
condition
:
row
=>
{
condition
:
row
=>
{
return
row
.
status
==
0
||
row
.
status
==
3
return
row
.
status
==
0
||
row
.
status
==
3
},
},
listeners
:
{
listeners
:
{
click
:
row
=>
{
click
:
row
=>
{
...
@@ -153,7 +159,7 @@ export default {
...
@@ -153,7 +159,7 @@ export default {
fn
:
'付款审批'
fn
:
'付款审批'
},
},
condition
:
row
=>
{
condition
:
row
=>
{
return
row
.
status
==
0
||
row
.
status
==
3
return
row
.
status
==
0
||
row
.
status
==
3
},
},
listeners
:
{
listeners
:
{
click
:
row
=>
{
click
:
row
=>
{
...
@@ -169,7 +175,7 @@ export default {
...
@@ -169,7 +175,7 @@ export default {
fn
:
'到账明细'
fn
:
'到账明细'
},
},
condition
:
row
=>
{
condition
:
row
=>
{
return
row
.
status
==
5
||
row
.
status
==
6
return
row
.
status
==
5
||
row
.
status
==
6
},
},
listeners
:
{
listeners
:
{
click
:
row
=>
{
click
:
row
=>
{
...
@@ -229,7 +235,14 @@ export default {
...
@@ -229,7 +235,14 @@ export default {
prop
:
'paymentSubject'
,
prop
:
'paymentSubject'
,
width
:
'200px'
width
:
'200px'
},
},
{
label
:
'代征主体'
,
prop
:
'levyName'
,
width
:
'200px'
,
formatter
:
cellValue
=>
{
return
cellValue
.
channelAccount
?
cellValue
.
channelAccount
.
levyName
:
'--'
}
},
{
{
label
:
'状态'
,
label
:
'状态'
,
prop
:
'status'
,
prop
:
'status'
,
...
@@ -281,7 +294,38 @@ export default {
...
@@ -281,7 +294,38 @@ export default {
PayerelList
,
PayerelList
,
merchantList
:
[],
merchantList
:
[],
statusList
,
statusList
,
channelList
,
channelList
},
props
:
{
lazy
:
true
,
lazyLoad
:
(
node
,
resolve
)
=>
{
console
.
log
(
node
,
'node'
)
const
{
level
,
value
}
=
node
let
res
let
obj
=
{
0
:
async
()
=>
{
res
=
await
this
.
getlistChannel
()
resolve
(
res
)
},
1
:
async
()
=>
{
res
=
await
this
.
getListPaymentEntity
(
value
)
resolve
(
res
)
},
2
:
async
()
=>
{
this
.
searchForm
.
paymentSubjectId
=
value
let
channel
=
node
.
parent
?
node
.
parent
.
value
:
''
res
=
await
this
.
getListPayLevy
(
value
,
channel
)
resolve
(
res
)
},
3
:
async
()
=>
{
this
.
searchForm
.
paymentChannelId
=
value
// resolve({
// leaf:true
// })
}
}
obj
[
level
]()
}
}
}
}
}
},
},
...
@@ -290,6 +334,49 @@ export default {
...
@@ -290,6 +334,49 @@ export default {
this
.
$utils
.
getOptionsList
(
this
,
'showFormData'
)
this
.
$utils
.
getOptionsList
(
this
,
'showFormData'
)
},
},
methods
:
{
methods
:
{
async
getlistChannel
()
{
let
arr
=
await
this
.
$apis
.
withdraw
.
getChannelList
()
let
list
=
arr
.
map
(
item
=>
{
return
{
label
:
item
.
channelName
,
value
:
item
.
channel
}
})
return
list
},
async
getListPaymentEntity
(
value
)
{
let
arr
=
await
this
.
$apis
.
withdraw
.
getListPaymentEntity
({
channel
:
value
})
let
list
=
arr
.
map
(
item
=>
{
return
{
label
:
item
.
paymentEntityName
,
value
:
item
.
paymentEntityId
}
})
return
list
},
async
getListPayLevy
(
paymentEntityId
,
channel
)
{
let
arr
=
await
this
.
$apis
.
withdraw
.
getListPayLevy
({
paymentEntityId
,
channel
})
let
list
=
arr
.
map
(
item
=>
{
return
{
label
:
item
.
levyName
,
value
:
item
.
id
,
leaf
:
true
}
})
return
list
},
selectAddAttr
(
e
,
formName
)
{
let
[
value1
,
value2
,
value3
]
=
e
if
(
value2
)
this
[
formName
].
paymentSubjectId
=
value2
if
(
value3
)
this
[
formName
].
paymentChannelId
=
value3
//代征主体
},
dialogClose
()
{
dialogClose
()
{
this
.
detailVisible
=
false
this
.
detailVisible
=
false
},
},
...
@@ -308,7 +395,7 @@ export default {
...
@@ -308,7 +395,7 @@ export default {
},
},
//导出
//导出
handleExport
(
row
)
{
handleExport
(
row
)
{
const
params
=
{
approvalId
:
row
.
id
}
const
params
=
{
approvalId
:
row
.
id
}
this
.
$apis
.
withdraw
.
orderExport
(
params
).
then
(
res
=>
{
this
.
$apis
.
withdraw
.
orderExport
(
params
).
then
(
res
=>
{
this
.
$utils
.
aToExport
(
res
)
this
.
$utils
.
aToExport
(
res
)
})
})
...
@@ -342,12 +429,11 @@ export default {
...
@@ -342,12 +429,11 @@ export default {
params
.
userSettleTimeStart
=
dayjs
(
this
.
searchForm
.
userSettleTime
[
0
]).
format
(
'YYYY-MM-DD'
)
+
' 00:00:01'
params
.
userSettleTimeStart
=
dayjs
(
this
.
searchForm
.
userSettleTime
[
0
]).
format
(
'YYYY-MM-DD'
)
+
' 00:00:01'
params
.
userSettleTimeEnd
=
dayjs
(
this
.
searchForm
.
userSettleTime
[
1
]).
format
(
'YYYY-MM-DD'
)
+
' 23:59:59'
params
.
userSettleTimeEnd
=
dayjs
(
this
.
searchForm
.
userSettleTime
[
1
]).
format
(
'YYYY-MM-DD'
)
+
' 23:59:59'
}
}
console
.
log
(
this
.
searchForm
.
oaApprovalTime
)
if
(
this
.
searchForm
.
oaApprovalTime
&&
this
.
searchForm
.
oaApprovalTime
.
length
)
{
if
(
this
.
searchForm
.
oaApprovalTime
&&
this
.
searchForm
.
oaApprovalTime
.
length
)
{
params
.
oaApprovalTimeStart
=
dayjs
(
this
.
searchForm
.
oaApprovalTime
[
0
]).
format
(
'YYYY-MM-DD'
)
+
' 00:00:01'
params
.
oaApprovalTimeStart
=
dayjs
(
this
.
searchForm
.
oaApprovalTime
[
0
]).
format
(
'YYYY-MM-DD'
)
+
' 00:00:01'
params
.
oaApprovalTimeEnd
=
dayjs
(
this
.
searchForm
.
oaApprovalTime
[
1
]).
format
(
'YYYY-MM-DD'
)
+
' 23:59:59'
params
.
oaApprovalTimeEnd
=
dayjs
(
this
.
searchForm
.
oaApprovalTime
[
1
]).
format
(
'YYYY-MM-DD'
)
+
' 23:59:59'
}
}
delete
params
.
channelList
delete
params
.
userSettleTime
,
delete
params
.
approvalTime
,
delete
params
.
oaApprovalTime
delete
params
.
userSettleTime
,
delete
params
.
approvalTime
,
delete
params
.
oaApprovalTime
return
params
return
params
},
},
...
@@ -363,9 +449,10 @@ export default {
...
@@ -363,9 +449,10 @@ export default {
handleReset
()
{
handleReset
()
{
this
.
searchForm
=
{
this
.
searchForm
=
{
batchNo
:
''
,
batchNo
:
''
,
oaSpNo
:
''
,
oaSpNo
:
''
,
paymentSubject
:
''
,
paymentSubjectId
:
''
,
paymentChannel
:
''
,
channelList
:[],
paymentChannelId
:
''
,
approvalTime
:
[],
approvalTime
:
[],
oaApprovalTime
:
[],
oaApprovalTime
:
[],
userSettleTime
:
[]
userSettleTime
:
[]
...
@@ -392,6 +479,5 @@ export default {
...
@@ -392,6 +479,5 @@ export default {
.gl-form-page
/
deep
/
.el-dialog__footer
{
.gl-form-page
/
deep
/
.el-dialog__footer
{
text-align
:
center
!important
;
text-align
:
center
!important
;
}
}
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
src/views/withdraw/approveView.vue
View file @
5cd6143
...
@@ -166,6 +166,13 @@ export default {
...
@@ -166,6 +166,13 @@ export default {
label
:
'付款主体'
,
label
:
'付款主体'
,
name
:
'paymentSubject'
name
:
'paymentSubject'
},
},
{
label
:
'代征主体'
,
name
:
'levyName'
,
addHtml
:(
cellValue
)
=>
{
return
cellValue
.
channelAccount
?
cellValue
.
channelAccount
.
levyName
:
'-'
}
},
{
{
label
:
'渠道到账时间'
,
label
:
'渠道到账时间'
,
...
...
src/views/withdraw/detail.vue
View file @
5cd6143
...
@@ -38,7 +38,7 @@
...
@@ -38,7 +38,7 @@
</el-row>
</el-row>
</el-form>
</el-form>
</div>
</div>
<div
v-if=
"recordInfo.operationList
&&
recordInfo.operationList.length"
>
<div
v-if=
"recordInfo.operationList
&&
recordInfo.operationList.length"
>
<p
class=
"edit-title"
>
操作记录
</p>
<p
class=
"edit-title"
>
操作记录
</p>
<template
v-for=
"(record, recordIdx) in recordInfo.operationList"
>
<template
v-for=
"(record, recordIdx) in recordInfo.operationList"
>
<el-form
label-width=
"154px"
:inline=
"true"
:key=
"recordIdx"
>
<el-form
label-width=
"154px"
:inline=
"true"
:key=
"recordIdx"
>
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
const
tableStatus
=
[
'待审核'
,
'已审核'
,
'第三方处理'
,
'成功'
,
'失败'
,
'驳回'
]
const
tableStatus
=
[
'待审核'
,
'已审核'
,
'第三方处理'
,
'成功'
,
'失败'
,
'驳回'
]
const
colors
=
[
'#FDB757'
,
'#2CCA74'
,
'#5850FF'
,
'#2CCA74'
,
'#999999'
,
'#EB4E4E'
]
const
colors
=
[
'#FDB757'
,
'#2CCA74'
,
'#5850FF'
,
'#2CCA74'
,
'#999999'
,
'#EB4E4E'
]
import
{
channelObj
,
sourceList
}
from
'@/utils/constants.js'
import
{
sourceList
}
from
'@/utils/constants.js'
export
default
{
export
default
{
name
:
'DetailDialog'
,
name
:
'DetailDialog'
,
data
()
{
data
()
{
...
@@ -74,7 +74,10 @@ export default {
...
@@ -74,7 +74,10 @@ export default {
paymentData
:
[],
paymentData
:
[],
operationData
:
[],
operationData
:
[],
isVisible
:
this
.
detailVisible
,
isVisible
:
this
.
detailVisible
,
sourceList
:
sourceList
sourceList
:
sourceList
,
baseData
:
{
channelList
:
[]
}
}
}
},
},
props
:
{
props
:
{
...
@@ -94,8 +97,49 @@ export default {
...
@@ -94,8 +97,49 @@ export default {
}
}
},
},
computed
:
{},
computed
:
{},
mounted
()
{},
mounted
()
{
this
.
getChannelTree
()
},
methods
:
{
methods
:
{
removeEmptyChild
(
arr
)
{
return
arr
.
map
(
item
=>
{
// 如果有 child 字段,递归处理
if
(
item
.
child
)
{
item
.
child
=
this
.
removeEmptyChild
(
item
.
child
)
}
// 移除 child 为 null 或空数组的情况
if
(
item
.
child
===
null
||
(
Array
.
isArray
(
item
.
child
)
&&
item
.
child
.
length
===
0
))
{
delete
item
.
child
}
return
item
})
},
getChannelTree
()
{
this
.
$apis
.
withdraw
.
getChannelTree
({}).
then
(
res
=>
{
this
.
baseData
.
channelList
=
this
.
removeEmptyChild
(
res
)
})
},
findChannelByCode
(
list
,
code
)
{
for
(
let
item
of
list
)
{
// 如果当前项的 code 匹配,直接返回该项
if
(
item
.
code
===
code
)
{
return
item
}
// 如果有 child 字段且不为空数组,递归查找
if
(
item
.
child
&&
item
.
child
.
length
>
0
)
{
const
found
=
this
.
findChannelByCode
(
item
.
child
,
code
)
if
(
found
)
{
return
found
}
}
}
// 没有找到匹配项时返回 null
return
null
},
handleCopy
()
{
handleCopy
()
{
const
text
=
this
.
recordInfo
.
errorMessage
const
text
=
this
.
recordInfo
.
errorMessage
const
input
=
document
.
createElement
(
'input'
)
const
input
=
document
.
createElement
(
'input'
)
...
@@ -107,7 +151,7 @@ export default {
...
@@ -107,7 +151,7 @@ export default {
const
isSuccessful
=
document
.
execCommand
(
'copy'
)
const
isSuccessful
=
document
.
execCommand
(
'copy'
)
document
.
body
.
removeChild
(
input
)
document
.
body
.
removeChild
(
input
)
if
(
isSuccessful
)
{
if
(
isSuccessful
)
{
this
.
$message
.
success
(
'复制成功'
)
this
.
$message
.
success
(
'复制成功'
)
}
}
},
},
...
@@ -203,12 +247,17 @@ export default {
...
@@ -203,12 +247,17 @@ export default {
label
:
'付款渠道'
,
label
:
'付款渠道'
,
name
:
'channel'
,
name
:
'channel'
,
addHtml
:
obj
=>
{
addHtml
:
obj
=>
{
return
channelObj
[
obj
.
channel
]
?
channelObj
[
obj
.
channel
]
:
'--'
let
item
=
this
.
findChannelByCode
(
this
.
baseData
.
channelList
,
obj
.
channel
)
return
item
?
item
.
name
:
'--'
}
}
},
},
{
{
label
:
'付款主体'
,
label
:
'付款主体'
,
name
:
'paymentSubject'
name
:
'paymentEntityName'
},
{
label
:
'代征主体'
,
name
:
'levyName'
},
},
{
{
label
:
'结算金额'
,
label
:
'结算金额'
,
...
@@ -239,7 +288,7 @@ export default {
...
@@ -239,7 +288,7 @@ export default {
this
.
operationData
=
[
this
.
operationData
=
[
{
{
label
:
obj
=>
{
label
:
obj
=>
{
return
[
'审核'
,
'付款'
,
'受理'
][
obj
.
type
]
return
[
'审核'
,
'付款'
,
'受理'
][
obj
.
type
]
},
},
name
:
'type'
,
name
:
'type'
,
addHtml
:
obj
=>
{
addHtml
:
obj
=>
{
...
@@ -251,7 +300,7 @@ export default {
...
@@ -251,7 +300,7 @@ export default {
}
else
if
(
obj
.
result
==
1
)
{
}
else
if
(
obj
.
result
==
1
)
{
status
=
'驳回'
status
=
'驳回'
color
=
'#EB4E4E'
color
=
'#EB4E4E'
}
else
if
(
obj
.
result
==
2
)
{
}
else
if
(
obj
.
result
==
2
)
{
status
=
'失败'
status
=
'失败'
color
=
'#999999'
color
=
'#999999'
}
}
...
@@ -270,7 +319,7 @@ export default {
...
@@ -270,7 +319,7 @@ export default {
label
=
arr
[
obj
.
type
]
label
=
arr
[
obj
.
type
]
}
else
if
(
obj
.
result
==
1
)
{
}
else
if
(
obj
.
result
==
1
)
{
label
=
'操作人'
label
=
'操作人'
}
else
{
}
else
{
label
=
arr
[
obj
.
type
]
label
=
arr
[
obj
.
type
]
}
}
return
label
return
label
...
@@ -285,7 +334,7 @@ export default {
...
@@ -285,7 +334,7 @@ export default {
label
=
arr
[
obj
.
type
]
label
=
arr
[
obj
.
type
]
}
else
if
(
obj
.
result
==
1
)
{
}
else
if
(
obj
.
result
==
1
)
{
label
=
'操作时间'
label
=
'操作时间'
}
else
{
}
else
{
label
=
arr
[
obj
.
type
]
label
=
arr
[
obj
.
type
]
}
}
return
label
return
label
...
...
src/views/withdraw/list.vue
View file @
5cd6143
...
@@ -4,29 +4,25 @@
...
@@ -4,29 +4,25 @@
<div
class=
"container"
>
<div
class=
"container"
>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"showFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"showFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
>
<template
slot=
"channel"
>
<template
slot=
"channel"
>
<el-cascader
:options=
"baseData.channelList"
style=
"width: 100%"
v-model=
"searchForm.channel"
:placeholder=
"'请选择'"
filterable
@
change=
"selectAddAttr($event
)"
></el-cascader>
<el-cascader
:options=
"baseData.channelList"
:props=
"props"
style=
"width: 100%"
v-model=
"searchForm.channelList"
:placeholder=
"'请选择'"
filterable
@
change=
"selectAddAttr($event, 'searchForm'
)"
></el-cascader>
</
template
>
</
template
>
</GLCombiForm>
</GLCombiForm>
<div
class=
"table-header"
>
<div
class=
"statistics"
>
<h2>
积分提现列表
</h2>
<div
class=
"title"
>
累计结算金额
</div>
<div>
<div
class=
"content"
>
<div
class=
"select-wrap flex"
>
<div
class=
"content-item"
v-for=
"(item, index) in statisticsTypeList.slice(0, 4)"
:key=
"index"
>
<el-button
size=
"small"
style=
"margin-right: 10px"
@
click=
"handleAllBatch(true)"
>
全部生成批次
</el-button>
<div
class=
"content-item-title"
>
{{ item.confLabel }}
</div>
<el-select
v-model=
"operaForm.batch"
placeholder=
"批量操作"
class=
"selectBtn"
>
<div
class=
"content-item-price"
>
<el-option
v-for=
"(item, index) in batchOptions"
:key=
"index"
:label=
"item"
:value=
"index"
@
click
.
native=
"handleSelectBtn(index, 'batch')"
></el-option>
{{ settleAmount[item.confId] }}
</el-select>
<span
class=
"unit"
>
元
</span>
<el-select
v-model=
"operaForm.key"
placeholder=
"一键操作"
class=
"selectOneBtn"
>
<el-option
v-for=
"(item, index) in keyOptions"
:key=
"index"
:label=
"item"
:value=
"index"
@
click
.
native=
"handleSelectBtn(index, 'key')"
></el-option>
</el-select>
<!-- <el-button size="small" @click="handleCheck()" type="primary" plain>批量审核</el-button>
<el-button size="small" @click="handlePay()">批量付款</el-button> -->
<el-button
size=
"small"
@
click=
"handleImport"
>
提现导入
</el-button>
<el-button
size=
"small"
@
click=
"exportExcel"
>
导出
</el-button>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"statistics"
>
<div
class=
"fold"
@
click=
"isMore = true"
>
查看更多
<i
class=
"el-icon-arrow-right"
></i>
</div>
<!-- <div :class="['content', !isFold ? 'dynamic' : '']">
累计结算金额:熠轩-银行卡
累计结算金额:熠轩-银行卡
<span class="price">{{ settleAmount.yiXuanSettleAmount }}</span>
<span class="price">{{ settleAmount.yiXuanSettleAmount }}</span>
元, 中雄-银行卡
元, 中雄-银行卡
...
@@ -49,7 +45,30 @@
...
@@ -49,7 +45,30 @@
<span class="price">{{ settleAmount.birdWorkSettleAmount }}</span>
<span class="price">{{ settleAmount.birdWorkSettleAmount }}</span>
元, 身边云(江西)-银行卡
元, 身边云(江西)-银行卡
<span class="price">{{ settleAmount.shenBianYunJXSettleAmount }}</span>
<span class="price">{{ settleAmount.shenBianYunJXSettleAmount }}</span>
元, 薪享云-银行卡
<span class="price">{{ settleAmount.xinXiangYunSettleAmount }}</span>
</div> -->
</div>
<div
class=
"table-header"
>
<h2>
积分提现列表
</h2>
<div>
<div
class=
"select-wrap flex"
>
<el-button
size=
"small"
style=
"margin-right: 10px"
@
click=
"handleAllBatch(true)"
>
全部生成批次
</el-button>
<el-select
v-model=
"operaForm.batch"
placeholder=
"批量操作"
class=
"selectBtn"
>
<el-option
v-for=
"(item, index) in batchOptions"
:key=
"index"
:label=
"item"
:value=
"index"
@
click
.
native=
"handleSelectBtn(index, 'batch')"
></el-option>
</el-select>
<el-select
v-model=
"operaForm.key"
placeholder=
"一键操作"
class=
"selectOneBtn"
>
<el-option
v-for=
"(item, index) in keyOptions"
:key=
"index"
:label=
"item"
:value=
"index"
@
click
.
native=
"handleSelectBtn(index, 'key')"
></el-option>
</el-select>
<!-- <el-button size="small" @click="handleCheck()" type="primary" plain>批量审核</el-button>
<el-button size="small" @click="handlePay()">批量付款</el-button> -->
<el-button
size=
"small"
@
click=
"handleImport"
>
提现导入
</el-button>
<el-button
size=
"small"
@
click=
"exportExcel"
>
导出
</el-button>
</div>
</div>
</div>
</div>
<!-- 表格区域 开始 -->
<!-- 表格区域 开始 -->
<GLTable
ref=
"withdrawRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
@
selectionTable=
"selectionTable"
>
<GLTable
ref=
"withdrawRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
@
selectionTable=
"selectionTable"
>
<div
class=
"flex_sc"
slot=
"colorStatus"
slot-scope=
"scope"
>
<div
class=
"flex_sc"
slot=
"colorStatus"
slot-scope=
"scope"
>
...
@@ -60,7 +79,7 @@
...
@@ -60,7 +79,7 @@
<span
:class=
"{ idCardNo: scope.scope.idCardFront }"
@
click=
"openIdCardDialog(scope.scope)"
>
{{ scope.scope.idCardNo }}
</span>
<span
:class=
"{ idCardNo: scope.scope.idCardFront }"
@
click=
"openIdCardDialog(scope.scope)"
>
{{ scope.scope.idCardNo }}
</span>
</div>
</div>
<div
slot=
"agreement"
slot-scope=
"scope"
>
<div
slot=
"agreement"
slot-scope=
"scope"
>
<span
:class=
"{
'agreement': scope.scope.disclaimerAgreementUrl }"
@
click=
"openAgreement(scope.scope.disclaimerAgreementUrl)"
>
{{scope.scope.disclaimerAgreementUrl?'协议':'--'
}}
</span>
<span
:class=
"{
agreement: scope.scope.disclaimerAgreementUrl }"
@
click=
"openAgreement(scope.scope.disclaimerAgreementUrl)"
>
{{ scope.scope.disclaimerAgreementUrl ? '协议' : '--'
}}
</span>
</div>
</div>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<GLTableButton
:buttonList=
"tableButtonList"
:buttonItem=
"scope.scope"
:buttonNum=
"3"
></GLTableButton>
<GLTableButton
:buttonList=
"tableButtonList"
:buttonItem=
"scope.scope"
:buttonNum=
"3"
></GLTableButton>
...
@@ -83,7 +102,7 @@
...
@@ -83,7 +102,7 @@
</GLDialog>
</GLDialog>
<!-- 付款 -->
<!-- 付款 -->
<GLDialog
class=
"gl-form-page gl-form-min payWrap"
title=
"付款"
mode=
"mid"
:visible
.
sync=
"isPay"
:close-on-click-modal=
"false"
:before-close=
"cancelPay"
>
<GLDialog
class=
"gl-form-page gl-form-min payWrap"
title=
"付款"
mode=
"mid"
:visible
.
sync=
"isPay"
:close-on-click-modal=
"false"
:before-close=
"cancelPay"
>
<glsx-combi-form
formRef=
"payChildRef"
defaultWidth=
"
284
px"
ref=
"payFormRef"
:formObj=
"payForm"
:formData=
"payFormData"
:formRules=
"payRule"
>
<glsx-combi-form
formRef=
"payChildRef"
defaultWidth=
"
432
px"
ref=
"payFormRef"
:formObj=
"payForm"
:formData=
"payFormData"
:formRules=
"payRule"
>
<
template
slot=
"channelProvider"
>
<
template
slot=
"channelProvider"
>
<div
v-if=
"providers && providers.channelProviderList"
class=
"provider-wrap"
>
<div
v-if=
"providers && providers.channelProviderList"
class=
"provider-wrap"
>
<div
class=
"provider-title"
>
<div
class=
"provider-title"
>
...
@@ -95,11 +114,14 @@
...
@@ -95,11 +114,14 @@
</el-radio-group>
</el-radio-group>
</div>
</div>
</
template
>
</
template
>
<
template
slot=
"channelHtml"
>
<el-cascader
:options=
"baseData.channelPayList"
:props=
"props"
style=
"width: 432px"
v-model=
"payForm.channelList"
:placeholder=
"'请选择'"
filterable
@
change=
"selectAddAttr($event, 'payForm')"
></el-cascader>
</
template
>
<tempalte
slot=
"balance"
>
<tempalte
slot=
"balance"
>
<div
class=
"channelMoney"
>
<div
class=
"channelMoney"
>
可用余额:
可用余额:
<span
class=
"price"
>
{{ this.payForm.balance }}
</span>
<span
class=
"price"
>
{{ this.payForm.balance
|| '-'
}}
</span>
<
template
v-if=
"this.payForm.balance
!= '-'
"
>
元
</
template
>
<
template
v-if=
"this.payForm.balance"
>
元
</
template
>
</div>
</div>
</tempalte>
</tempalte>
<
template
slot=
"captcha"
>
<
template
slot=
"captcha"
>
...
@@ -171,7 +193,19 @@
...
@@ -171,7 +193,19 @@
<iframe
width=
"100%"
height=
"700px"
scrolling=
"yes"
frameborder=
"0"
:src=
"pdfUrl"
></iframe>
<iframe
width=
"100%"
height=
"700px"
scrolling=
"yes"
frameborder=
"0"
:src=
"pdfUrl"
></iframe>
</GLDialog>
</GLDialog>
<!-- 详情 -->
<!-- 详情 -->
<detail-dialog
:detail-visible=
"detailVisible"
:id=
"id"
@
dialogClose=
"dialogClose"
></detail-dialog>
<detail-dialog
class=
""
:detail-visible=
"detailVisible"
:id=
"id"
@
dialogClose=
"dialogClose"
></detail-dialog>
<!-- 累计结算金额 -->
<GLDialog
class=
"settleAmount-dialog"
title=
"累计结算金额"
mode=
"big"
:visible
.
sync=
"isMore"
:close-on-click-modal=
"false"
:hasFooter=
"hasFooter"
>
<div
class=
"content"
>
<div
class=
"content-item"
v-for=
"(item, index) in statisticsTypeList"
:key=
"index"
>
<div
class=
"content-item-title"
>
{{ item.confLabel }}
</div>
<div
class=
"content-item-price"
>
{{ settleAmount[item.confId] }}
<span
class=
"unit"
>
元
</span>
</div>
</div>
</div>
</GLDialog>
</div>
</div>
</template>
</template>
...
@@ -181,9 +215,9 @@ import DetailDialog from './detail.vue'
...
@@ -181,9 +215,9 @@ import DetailDialog from './detail.vue'
import
*
as
dayjs
from
'dayjs'
import
*
as
dayjs
from
'dayjs'
import
url
from
'@/assets/empty.png'
import
url
from
'@/assets/empty.png'
import
util
from
'@/utils/index'
import
util
from
'@/utils/index'
import
{
modeTypeList
,
auditStatusStatusList
,
sourceList
,
withdrawal
TypeList
}
from
'@/utils/constants.js'
import
{
modeTypeList
,
auditStatusStatusList
,
sourceList
,
withdrawalTypeList
,
statistics
TypeList
}
from
'@/utils/constants.js'
const
tableStatus
=
[
'待审核'
,
'已审核'
,
'第三方处理'
,
'成功'
,
'失败'
,
'驳回'
,
'受理失败'
,
'批次处理中'
]
const
tableStatus
=
[
'待审核'
,
'已审核'
,
'第三方处理'
,
'成功'
,
'失败'
,
'驳回'
,
'受理失败'
,
'批次处理中'
]
const
colors
=
[
'#FDB757'
,
'#2CCA74'
,
'#5850FF'
,
'#2CCA74'
,
'#999999'
,
'#EB4E4E'
,
'#2CCA74'
,
'#F59619FF'
]
const
colors
=
[
'#FDB757'
,
'#2CCA74'
,
'#5850FF'
,
'#2CCA74'
,
'#999999'
,
'#EB4E4E'
,
'#2CCA74'
,
'#F59619FF'
]
const
tabelHeaderModel
=
[
'商户名称'
,
'商户号'
,
'客户名称'
,
'客户手机号'
,
'提现金额'
,
'收款人姓名'
,
'收款人身份证'
,
'收款银行卡号'
,
'收款银行'
,
'收款人手机号'
]
const
tabelHeaderModel
=
[
'商户名称'
,
'商户号'
,
'客户名称'
,
'客户手机号'
,
'提现金额'
,
'收款人姓名'
,
'收款人身份证'
,
'收款银行卡号'
,
'收款银行'
,
'收款人手机号'
]
export
default
{
export
default
{
components
:
{
components
:
{
...
@@ -191,6 +225,14 @@ export default {
...
@@ -191,6 +225,14 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
isMore
:
false
,
statisticsTypeList
,
props
:
{
value
:
'code'
,
label
:
'name'
,
children
:
'child'
},
isFold
:
true
,
id
:
''
,
id
:
''
,
isIdCard
:
false
,
isIdCard
:
false
,
checkLoading
:
false
,
checkLoading
:
false
,
...
@@ -214,12 +256,12 @@ export default {
...
@@ -214,12 +256,12 @@ export default {
}
}
],
],
searchForm
:
{
searchForm
:
{
name
:
''
,
name
:
''
,
outSettleOrderId
:
''
,
outSettleOrderId
:
''
,
customerName
:
''
,
customerName
:
''
,
customerPhone
:
''
,
customerPhone
:
''
,
status
:
''
,
status
:
''
,
channel
:
''
,
channel
List
:
[]
,
merchantName
:
''
,
merchantName
:
''
,
transferType
:
''
,
transferType
:
''
,
mode
:
''
,
mode
:
''
,
...
@@ -353,7 +395,7 @@ export default {
...
@@ -353,7 +395,7 @@ export default {
fn
:
'审核'
fn
:
'审核'
},
},
condition
:
row
=>
{
condition
:
row
=>
{
return
row
.
status
==
0
&&
row
.
transferType
!=
0
return
row
.
status
==
0
&&
row
.
transferType
!=
0
},
},
listeners
:
{
listeners
:
{
click
:
row
=>
{
click
:
row
=>
{
...
@@ -385,7 +427,7 @@ export default {
...
@@ -385,7 +427,7 @@ export default {
fn
:
'付款'
fn
:
'付款'
},
},
condition
:
row
=>
{
condition
:
row
=>
{
return
(
row
.
status
==
1
||
row
.
status
==
6
)
&&
row
.
transferType
!=
0
return
(
row
.
status
==
1
||
row
.
status
==
6
)
&&
row
.
transferType
!=
0
},
},
listeners
:
{
listeners
:
{
click
:
row
=>
{
click
:
row
=>
{
...
@@ -414,7 +456,7 @@ export default {
...
@@ -414,7 +456,7 @@ export default {
{
{
label
:
'提现类型'
,
label
:
'提现类型'
,
prop
:
'transferType'
,
prop
:
'transferType'
,
width
:
'
20
0px'
,
width
:
'
12
0px'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
let
arr
=
this
.
baseData
.
withdrawalTypeList
.
filter
(
item
=>
item
.
confId
==
cellValue
.
transferType
)
let
arr
=
this
.
baseData
.
withdrawalTypeList
.
filter
(
item
=>
item
.
confId
==
cellValue
.
transferType
)
return
arr
.
length
>
0
?
arr
[
0
].
confLabel
:
'--'
return
arr
.
length
>
0
?
arr
[
0
].
confLabel
:
'--'
...
@@ -423,7 +465,7 @@ export default {
...
@@ -423,7 +465,7 @@ export default {
{
{
label
:
'提现方式'
,
label
:
'提现方式'
,
prop
:
'mode'
,
prop
:
'mode'
,
width
:
'
2
00px'
,
width
:
'
1
00px'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
let
arr
=
this
.
baseData
.
modeTypeList
.
filter
(
item
=>
item
.
confId
==
cellValue
.
mode
)
let
arr
=
this
.
baseData
.
modeTypeList
.
filter
(
item
=>
item
.
confId
==
cellValue
.
mode
)
return
arr
.
length
>
0
?
arr
[
0
].
confLabel
:
'--'
return
arr
.
length
>
0
?
arr
[
0
].
confLabel
:
'--'
...
@@ -468,7 +510,7 @@ export default {
...
@@ -468,7 +510,7 @@ export default {
label
:
'收款人身份证'
,
label
:
'收款人身份证'
,
prop
:
'idCardNo'
,
prop
:
'idCardNo'
,
addHtml
:
'idCardNo'
,
addHtml
:
'idCardNo'
,
width
:
'
18
0px'
width
:
'
20
0px'
},
},
{
{
label
:
'收款银行卡号'
,
label
:
'收款银行卡号'
,
...
@@ -512,28 +554,32 @@ export default {
...
@@ -512,28 +554,32 @@ export default {
}
}
},
},
{
{
label
:
'付款渠道'
,
prop
:
'channel'
,
width
:
'200px'
,
formatter
:
cellValue
=>
{
let
item
=
this
.
findChannelByCode
(
this
.
baseData
.
channelList
,
cellValue
.
channel
)
return
item
?
item
.
name
:
'--'
}
},
{
label
:
'付款主体'
,
label
:
'付款主体'
,
prop
:
'paymentSubject'
,
prop
:
'paymentEntityName'
,
width
:
'200px'
width
:
200
,
// formatter: cellValue => {
line
:
1
// // 类型为「积分提现」该提现记录所归属的提现批次审批时选择的付款主体(嘀加/数科),非「积分提现」类型,或「积分提现」待审批,则展示=“-”
},
// cellValue.transferType ==0&&cellValue.status!=0?cellValue.paymentSubject:'--'
{
// }
label
:
'代征主体'
,
prop
:
'levyName'
,
width
:
200
,
line
:
1
},
},
{
{
label
:
'付款时间'
,
label
:
'付款时间'
,
prop
:
'payDate'
,
prop
:
'payDate'
,
width
:
'200px'
width
:
'200px'
},
},
{
label
:
'付款渠道'
,
prop
:
'channel'
,
width
:
'200px'
,
formatter
:
cellValue
=>
{
let
arr
=
this
.
baseData
.
channelList
.
filter
(
item
=>
item
.
value
==
cellValue
.
channel
)
return
arr
.
length
>
0
?
arr
[
0
].
label
:
'--'
}
},
{
{
label
:
'服务商'
,
label
:
'服务商'
,
prop
:
'channelProvider'
,
prop
:
'channelProvider'
,
...
@@ -588,62 +634,12 @@ export default {
...
@@ -588,62 +634,12 @@ export default {
baseData
:
{
baseData
:
{
adminList
:
[],
adminList
:
[],
merchantList
:
[],
merchantList
:
[],
auditStatusStatusList
:
auditStatusStatusList
,
auditStatusStatusList
:
auditStatusStatusList
,
channelList
:
[
channelList
:
[],
{
channelPayList
:[],
value
:
'SHENBIANYUN'
,
withdrawalTypeList
:
withdrawalTypeList
,
label
:
'身边云-银行卡'
,
modeTypeList
:
modeTypeList
,
children
:
[
sourceList
:
sourceList
,
{
value
:
'SHENBIANYUN-XH'
,
label
:
'翔禾'
},
{
value
:
'SHENBIANYUN-YJ'
,
label
:
'雅钧'
},
{
value
:
'SHENBIANYUN-BC'
,
label
:
'博晟'
},
{
value
:
'SHENBIANYUN-CJ'
,
label
:
'晨景'
}
]
},
{
value
:
'TXIAT'
,
label
:
'熠轩-银行卡'
},
{
value
:
'ZX'
,
label
:
'中雄-银行卡'
},
{
value
:
'YUNHUO'
,
label
:
'云获(嘀加)-银行卡'
},
{
value
:
'YUNHUO-ZY'
,
label
:
'云获(中赢)-银行卡'
},
{
value
:
'YUNHUO-WX'
,
label
:
'云获(中赢)-微信'
},
{
value
:
'BIRDWORK'
,
label
:
'智鸟-银行卡'
},
{
value
:
'SHENBIANYUN_JX'
,
label
:
'身边云(江西)-银行卡'
}
],
withdrawalTypeList
:
withdrawalTypeList
,
modeTypeList
:
modeTypeList
,
sourceList
:
sourceList
,
payChannelList
:
[]
payChannelList
:
[]
},
},
showPassDialog
:
false
,
showPassDialog
:
false
,
...
@@ -665,7 +661,8 @@ export default {
...
@@ -665,7 +661,8 @@ export default {
captcha
:
''
,
captcha
:
''
,
remark
:
''
,
remark
:
''
,
balance
:
''
,
balance
:
''
,
channelProvider
:
''
channelProvider
:
''
,
channelList
:
[]
},
},
payFormData
:
[
payFormData
:
[
{
{
...
@@ -682,8 +679,8 @@ export default {
...
@@ -682,8 +679,8 @@ export default {
optionLabel
:
'channelName'
,
optionLabel
:
'channelName'
,
optionsName
:
'payChannelList'
,
optionsName
:
'payChannelList'
,
optionList
:
[],
optionList
:
[],
isHide
:
true
,
handleRadioChange
:
val
=>
{
handleRadioChange
:
val
=>
{
console
.
log
(
555
)
this
.
payForm
.
channelProvider
=
''
this
.
payForm
.
channelProvider
=
''
this
.
getBalance
()
this
.
getBalance
()
this
.
getAdmin
()
this
.
getAdmin
()
...
@@ -695,7 +692,15 @@ export default {
...
@@ -695,7 +692,15 @@ export default {
},
},
{
{
label
:
''
,
label
:
''
,
addHtml
:
'channelProvider'
name
:
'channelProvider'
,
addHtml
:
'channelProvider'
,
isHide
:
true
},
{
label
:
'付款渠道'
,
name
:
'channelList'
,
addHtml
:
'channelHtml'
,
isHide
:
true
},
},
{
{
label
:
''
,
label
:
''
,
...
@@ -732,8 +737,9 @@ export default {
...
@@ -732,8 +737,9 @@ export default {
}
}
],
],
payRule
:
{
payRule
:
{
channel
:
[{
required
:
true
,
message
:
'请选择付款渠道'
,
trigger
:
'change'
}],
channelList
:
[{
required
:
true
,
message
:
'请选择付款渠道'
,
trigger
:
'change'
}],
captcha
:
[{
required
:
true
,
message
:
'请输入验证码'
,
trigger
:
'blur'
}]
captcha
:
[{
required
:
true
,
message
:
'请输入验证码'
,
trigger
:
'blur'
}],
admin
:
[{
required
:
true
,
message
:
'请选择管理员'
,
trigger
:
'change'
}]
},
},
importRule
:
{
importRule
:
{
fileName
:
[{
required
:
true
,
message
:
'请选择'
,
trigger
:
'blur'
}]
fileName
:
[{
required
:
true
,
message
:
'请选择'
,
trigger
:
'blur'
}]
...
@@ -770,10 +776,43 @@ export default {
...
@@ -770,10 +776,43 @@ export default {
},
},
mounted
()
{
mounted
()
{
this
.
$utils
.
getOptionsList
(
this
,
'showFormData'
)
this
.
$utils
.
getOptionsList
(
this
,
'showFormData'
)
this
.
getChannelTree
()
this
.
getMerchantList
()
this
.
getMerchantList
()
this
.
getSettleAmount
()
this
.
getSettleAmount
()
},
},
methods
:
{
methods
:
{
removeEmptyChild
(
arr
)
{
return
arr
.
map
(
item
=>
{
// 如果有 child 字段,递归处理
if
(
item
.
child
)
{
item
.
child
=
this
.
removeEmptyChild
(
item
.
child
)
}
// 移除 child 为 null 或空数组的情况
if
(
item
.
child
===
null
||
(
Array
.
isArray
(
item
.
child
)
&&
item
.
child
.
length
===
0
))
{
delete
item
.
child
}
return
item
})
},
getChannelTree
()
{
this
.
$apis
.
withdraw
.
getChannelTree
({}).
then
(
res
=>
{
this
.
baseData
.
channelList
=
this
.
removeEmptyChild
(
res
)
})
},
getPayChannelTree
()
{
this
.
$apis
.
withdraw
.
getChannelTree
({
transferType
:
this
.
payForm
.
transferType
,
mode
:
this
.
payForm
.
mode
}).
then
(
res
=>
{
this
.
baseData
.
channelPayList
=
this
.
removeEmptyChild
(
res
)
})
},
findFormAttrId
(
formData
,
name
)
{
return
this
[
formData
].
findIndex
(
item
=>
item
.
name
==
name
)
||
0
},
handleFold
()
{
this
.
isFold
=
!
this
.
isFold
},
generateBatchCount
(
all
=
true
)
{
generateBatchCount
(
all
=
true
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
let
params
=
{
let
params
=
{
...
@@ -812,15 +851,13 @@ export default {
...
@@ -812,15 +851,13 @@ export default {
openIdCardDialog
(
row
)
{
openIdCardDialog
(
row
)
{
if
(
row
.
idCardFront
)
{
if
(
row
.
idCardFront
)
{
this
.
idCardForm
=
row
this
.
idCardForm
=
row
console
.
log
(
this
.
idCardForm
)
this
.
isIdCard
=
true
this
.
isIdCard
=
true
}
}
},
},
//协议
//协议
openAgreement
(
url
)
{
openAgreement
(
url
)
{
this
.
pdfUrl
=
url
this
.
pdfUrl
=
url
this
.
isAgreement
=
true
this
.
isAgreement
=
true
console
.
log
(
this
.
pdfUrl
)
},
},
CloseIdCard
()
{
CloseIdCard
()
{
this
.
isIdCard
=
false
this
.
isIdCard
=
false
...
@@ -834,8 +871,65 @@ export default {
...
@@ -834,8 +871,65 @@ export default {
this
.
getAdmin
()
this
.
getAdmin
()
}
}
},
},
selectAddAttr
(
e
)
{
findChannelByCode
(
list
,
code
)
{
console
.
log
(
e
)
for
(
let
item
of
list
)
{
// 如果当前项的 code 匹配,直接返回该项
if
(
item
.
code
===
code
)
{
return
item
}
// 如果有 child 字段且不为空数组,递归查找
if
(
item
.
child
&&
item
.
child
.
length
>
0
)
{
const
found
=
this
.
findChannelByCode
(
item
.
child
,
code
)
if
(
found
)
{
return
found
}
}
}
// 没有找到匹配项时返回 null
return
null
},
selectAddAttr
(
e
,
formName
)
{
let
[
value1
,
value2
,
value3
]
=
e
||
[
''
,
''
,
''
]
// 处理清除情况
if
(
!
e
||
e
.
length
===
0
)
{
this
[
formName
].
channel
=
''
this
[
formName
].
levyCode
=
''
this
[
formName
].
channelProvider
=
''
this
[
formName
].
paymentEntityCode
=
''
this
[
formName
].
channelList
=
[]
this
.
$nextTick
(()
=>
{
// 手动触发重新渲染
this
.
$forceUpdate
()
})
return
}
this
[
formName
].
channel
=
value1
?
value1
:
''
this
[
formName
].
levyCode
=
value3
?
value3
:
''
//代征主体
if
(
value2
)
{
let
item
=
this
.
findChannelByCode
(
this
.
baseData
.
channelList
,
value2
)
if
(
item
.
type
==
1
)
{
//服务商
this
[
formName
].
channelProvider
=
value2
this
[
formName
].
paymentEntityCode
=
''
}
else
{
//付款主体
this
[
formName
].
paymentEntityCode
=
value2
this
[
formName
].
channelProvider
=
''
}
}
if
(
this
.
isPay
)
{
this
.
getBalance
()
this
.
getAdmin
()
this
.
isCodeDisabled
=
false
clearInterval
(
this
.
timer
)
this
.
timer
=
null
this
.
payForm
.
captcha
=
''
}
},
},
//批量操作/一键操作
//批量操作/一键操作
async
handleSelectBtn
(
index
,
type
)
{
async
handleSelectBtn
(
index
,
type
)
{
...
@@ -951,11 +1045,7 @@ export default {
...
@@ -951,11 +1045,7 @@ export default {
params
.
receiptDateStart
=
dayjs
(
this
.
searchForm
.
receiptDateStr
[
0
]).
format
(
'YYYY-MM-DD'
)
+
' 00:00:01'
params
.
receiptDateStart
=
dayjs
(
this
.
searchForm
.
receiptDateStr
[
0
]).
format
(
'YYYY-MM-DD'
)
+
' 00:00:01'
params
.
receiptDateEnd
=
dayjs
(
this
.
searchForm
.
receiptDateStr
[
1
]).
format
(
'YYYY-MM-DD'
)
+
' 23:59:59'
params
.
receiptDateEnd
=
dayjs
(
this
.
searchForm
.
receiptDateStr
[
1
]).
format
(
'YYYY-MM-DD'
)
+
' 23:59:59'
}
}
if
(
this
.
searchForm
.
channel
)
{
delete
params
.
channelList
params
.
channel
=
this
.
searchForm
.
channel
[
0
]
params
.
channelProvider
=
this
.
searchForm
.
channel
.
length
>
1
?
this
.
searchForm
.
channel
[
1
]
:
''
}
delete
params
.
payTimeStr
,
delete
params
.
applyDateStr
,
delete
params
.
receiptDateStr
delete
params
.
payTimeStr
,
delete
params
.
applyDateStr
,
delete
params
.
receiptDateStr
return
params
return
params
},
},
...
@@ -977,10 +1067,15 @@ export default {
...
@@ -977,10 +1067,15 @@ export default {
customerName
:
''
,
customerName
:
''
,
customerPhone
:
''
,
customerPhone
:
''
,
status
:
''
,
status
:
''
,
channel
:
''
,
channel
List
:
[]
,
merchantName
:
''
,
merchantName
:
''
,
mode
:
''
,
mode
:
''
,
withdrawalSource
:
''
withdrawalSource
:
''
,
channelProvider
:
''
,
paymentEntityCode
:
''
,
levyCode
:
''
,
channel
:
''
,
transferType
:
''
}
}
this
.
handleSearch
()
this
.
handleSearch
()
},
},
...
@@ -1162,7 +1257,18 @@ export default {
...
@@ -1162,7 +1257,18 @@ export default {
this
.
payForm
.
transferType
=
row
.
transferType
this
.
payForm
.
transferType
=
row
.
transferType
this
.
payForm
.
mode
=
row
.
mode
this
.
payForm
.
mode
=
row
.
mode
}
}
//积分提现类型
if
(
this
.
payForm
.
transferType
==
0
||
this
.
payForm
.
transferType
==
2
)
{
this
.
payFormData
[
this
.
findFormAttrId
(
'payFormData'
,
'channel'
)].
isHide
=
true
this
.
payFormData
[
this
.
findFormAttrId
(
'payFormData'
,
'channelProvider'
)].
isHide
=
true
this
.
payFormData
[
this
.
findFormAttrId
(
'payFormData'
,
'channelList'
)].
isHide
=
false
this
.
getPayChannelTree
()
}
else
{
this
.
getChannel
()
this
.
getChannel
()
this
.
payFormData
[
this
.
findFormAttrId
(
'payFormData'
,
'channel'
)].
isHide
=
false
this
.
payFormData
[
this
.
findFormAttrId
(
'payFormData'
,
'channelProvider'
)].
isHide
=
false
this
.
payFormData
[
this
.
findFormAttrId
(
'payFormData'
,
'channelList'
)].
isHide
=
true
}
this
.
isPay
=
true
this
.
isPay
=
true
},
},
getAdmin
()
{
getAdmin
()
{
...
@@ -1170,16 +1276,21 @@ export default {
...
@@ -1170,16 +1276,21 @@ export default {
if
(
res
)
{
if
(
res
)
{
this
.
baseData
.
adminList
=
res
.
map
(
item
=>
{
this
.
baseData
.
adminList
=
res
.
map
(
item
=>
{
return
{
return
{
adminId
:
`
${
item
.
p
hone
}
`
,
adminId
:
`
${
item
.
adminP
hone
}
`
,
adminName
:
`
${
item
.
name
}
${
item
.
p
hone
}
`
,
adminName
:
`
${
item
.
adminName
}
${
item
.
adminP
hone
}
`
,
name
:
item
.
n
ame
,
name
:
item
.
adminN
ame
,
phone
:
item
.
p
hone
phone
:
item
.
adminP
hone
}
}
})
})
this
.
$utils
.
getOptionsList
(
this
,
'payFormData'
,
false
,
'admin'
)
this
.
$utils
.
getOptionsList
(
this
,
'payFormData'
,
false
,
'admin'
)
if
(
this
.
baseData
.
adminList
.
length
==
0
)
{
this
.
payForm
.
admin
=
''
this
.
payForm
.
phone
=
''
}
else
{
this
.
payForm
.
admin
=
this
.
baseData
.
adminList
[
0
].
adminId
this
.
payForm
.
admin
=
this
.
baseData
.
adminList
[
0
].
adminId
this
.
payForm
.
phone
=
this
.
baseData
.
adminList
[
0
].
phone
this
.
payForm
.
phone
=
this
.
baseData
.
adminList
[
0
].
phone
}
}
}
})
})
},
},
//积分提现获取业务对应的付款渠道
//积分提现获取业务对应的付款渠道
...
@@ -1215,18 +1326,12 @@ export default {
...
@@ -1215,18 +1326,12 @@ export default {
})
})
},
},
getBalance
()
{
getBalance
()
{
this
.
$apis
.
withdraw
.
getBalance
({
channel
:
this
.
payForm
.
channel
,
channelProvider
:
this
.
payForm
.
channelProvider
}).
then
(
res
=>
{
this
.
$apis
.
withdraw
.
getBalance
({
channel
:
this
.
payForm
.
channel
,
channelProvider
:
this
.
payForm
.
channelProvider
,
paymentEntityCode
:
this
.
payForm
.
paymentEntityCode
,
levyCode
:
this
.
payForm
.
levyCode
}).
then
(
res
=>
{
if
(
res
)
{
if
(
res
)
{
this
.
payForm
.
balance
=
res
this
.
payForm
.
balance
=
res
}
else
{
}
else
{
this
.
payForm
.
balance
=
'
-
'
this
.
payForm
.
balance
=
''
}
}
// this.payFormData.forEach((item, index) => {
// if (item.name == 'balance') {
// item.isHide = !res
// // this.$set(this.payFormData, index, item)
// }
// })
})
})
},
},
comfirmCheck
()
{
comfirmCheck
()
{
...
@@ -1271,6 +1376,9 @@ export default {
...
@@ -1271,6 +1376,9 @@ export default {
this
.
form
.
remark
=
''
this
.
form
.
remark
=
''
this
.
showPassDialog
=
false
this
.
showPassDialog
=
false
this
.
$refs
.
withdrawRef
.
clearMutiSelect
()
this
.
$refs
.
withdrawRef
.
clearMutiSelect
()
if
(
this
.
$refs
.
payFormRef
&&
this
.
$refs
.
payFormRef
.
$refs
.
payChildRef
)
{
this
.
$refs
.
payFormRef
.
$refs
.
payChildRef
.
resetFields
()
}
},
},
dialogClose
()
{
dialogClose
()
{
this
.
detailVisible
=
false
this
.
detailVisible
=
false
...
@@ -1288,7 +1396,9 @@ export default {
...
@@ -1288,7 +1396,9 @@ export default {
payChannel
:
this
.
payForm
.
channel
,
payChannel
:
this
.
payForm
.
channel
,
captcha
:
this
.
payForm
.
captcha
,
captcha
:
this
.
payForm
.
captcha
,
remark
:
this
.
payForm
.
remark
,
remark
:
this
.
payForm
.
remark
,
payChannelProvider
:
this
.
payForm
.
channelProvider
payChannelProvider
:
this
.
payForm
.
channelProvider
,
paymentEntityCode
:
this
.
payForm
.
paymentEntityCode
,
levyCode
:
this
.
payForm
.
levyCode
}
}
:
{
:
{
phone
:
this
.
payForm
.
phone
,
phone
:
this
.
payForm
.
phone
,
...
@@ -1296,20 +1406,24 @@ export default {
...
@@ -1296,20 +1406,24 @@ export default {
channel
:
this
.
payForm
.
channel
,
channel
:
this
.
payForm
.
channel
,
captcha
:
this
.
payForm
.
captcha
,
captcha
:
this
.
payForm
.
captcha
,
remark
:
this
.
payForm
.
remark
,
remark
:
this
.
payForm
.
remark
,
channelProvider
:
this
.
payForm
.
channelProvider
channelProvider
:
this
.
payForm
.
channelProvider
,
paymentEntityCode
:
this
.
payForm
.
paymentEntityCode
,
levyCode
:
this
.
payForm
.
levyCode
}
}
this
.
loading
=
true
this
.
loading
=
true
this
.
$apis
.
withdraw
[
Methods
](
params
)
this
.
$apis
.
withdraw
[
Methods
](
params
)
.
then
(
res
=>
{
.
then
(
res
=>
{
if
(
res
.
code
==
'0'
)
{
this
.
handleReset
()
this
.
getSettleAmount
()
this
.
cancelPay
()
}
this
.
$message
({
this
.
$message
({
message
:
res
.
code
==
'0'
?
'付款成功'
:
res
.
message
,
message
:
res
.
code
==
'0'
?
'付款成功'
:
res
.
message
,
type
:
res
.
code
==
'0'
?
'success'
:
'error'
type
:
res
.
code
==
'0'
?
'success'
:
'error'
})
})
})
})
.
finally
(()
=>
{
.
finally
(()
=>
{
this
.
handleReset
()
this
.
getSettleAmount
()
this
.
cancelPay
()
this
.
loading
=
false
this
.
loading
=
false
})
})
}
}
...
@@ -1327,9 +1441,13 @@ export default {
...
@@ -1327,9 +1441,13 @@ export default {
balance
:
''
balance
:
''
}
}
this
.
isCodeDisabled
=
false
this
.
isCodeDisabled
=
false
this
.
payFormData
[
this
.
findFormAttrId
(
'payFormData'
,
'admin'
)].
optionList
=
[]
clearInterval
(
this
.
timer
)
clearInterval
(
this
.
timer
)
this
.
timer
=
null
this
.
timer
=
null
this
.
$refs
.
withdrawRef
.
clearMutiSelect
()
this
.
$refs
.
withdrawRef
.
clearMutiSelect
()
if
(
this
.
$refs
.
payFormRef
&&
this
.
$refs
.
payFormRef
.
$refs
.
payChildRef
)
{
this
.
$refs
.
payFormRef
.
$refs
.
payChildRef
.
resetFields
()
}
},
},
getCode
()
{
getCode
()
{
...
@@ -1406,7 +1524,7 @@ export default {
...
@@ -1406,7 +1524,7 @@ export default {
padding
:
0
20px
0
10px
;
padding
:
0
20px
0
10px
;
}
}
}
}
.selectOneBtn
{
.selectOneBtn
{
width
:
100px
;
width
:
100px
;
margin-right
:
10px
;
margin-right
:
10px
;
/deep/.el-input__inner
{
/deep/.el-input__inner
{
...
@@ -1422,7 +1540,59 @@ export default {
...
@@ -1422,7 +1540,59 @@ export default {
font-size
:
12px
;
font-size
:
12px
;
color
:
#999999
;
color
:
#999999
;
line-height
:
18px
;
line-height
:
18px
;
margin-bottom
:
16px
;
position
:
relative
;
.content
{
display
:
flex
;
align-items
:
center
;
margin-right
:
140px
;
.content-item
{
padding
:
20px
;
background
:
#f7f9fa
;
flex
:
1
;
margin-right
:
16px
;
&-title
{
color
:
#333333
;
font-size
:
14px
;
margin-bottom
:
12px
;
margin-bottom
:
12px
;
}
&
-price
{
color
:
#333333
;
font-size
:
26px
;
font-weight
:
bold
;
.unit
{
color
:
#333333
;
font-size
:
14px
;
margin-left
:
4px
;
font-weight
:
normal
;
}
}
}
}
//
.dynamic
{
//
height
:
auto
;
//
overflow
:
initial
;
//
white-space
:
wrap
;
//
}
.title
{
color
:
#333333
;
font-size
:
16px
;
line-height
:
24px
;
font-weight
:
bold
;
margin-bottom
:
16px
;
}
.fold
{
cursor
:
pointer
;
color
:
#5850ff
;
font-size
:
12px
;
display
:
flex
;
align-items
:
center
;
white-space
:
nowrap
;
margin-left
:
16px
;
position
:
absolute
;
bottom
:
0
;
right
:
58px
;
}
}
}
.price
{
.price
{
color
:
#5850ff
;
color
:
#5850ff
;
...
@@ -1432,7 +1602,7 @@ export default {
...
@@ -1432,7 +1602,7 @@ export default {
font-size
:
12px
;
font-size
:
12px
;
margin-left
:
154px
;
margin-left
:
154px
;
color
:
#999999
;
color
:
#999999
;
margin-top
:
-
2
0px
;
margin-top
:
-
1
0px
;
.price
{
.price
{
color
:
#333333
;
color
:
#333333
;
}
}
...
@@ -1539,6 +1709,12 @@ export default {
...
@@ -1539,6 +1709,12 @@ export default {
.el-form--inline
.el-form-item
{
.el-form--inline
.el-form-item
{
display
:
block
;
display
:
block
;
}
}
.el-form
.el-select
.el-input
{
width
:
100%
;
}
.el-form
.el-input
{
width
:
100%
;
}
}
}
}
}
/
deep
/
{
/
deep
/
{
...
@@ -1597,5 +1773,36 @@ export default {
...
@@ -1597,5 +1773,36 @@ export default {
}
}
}
}
}
}
.settleAmount-dialog
{
.content
{
display
:
flex
;
align-items
:
center
;
flex-wrap
:
wrap
;
.content-item
{
width
:
calc
((
100%
-
16px
*
4
)
/
4
);
padding
:
20px
;
background
:
#f7f9fa
;
margin-right
:
16px
;
box-sizing
:
border-box
;
margin-bottom
:
16px
;
&-title
{
color
:
#333333
;
font-size
:
14px
;
margin-bottom
:
12px
;
}
&
-price
{
color
:
#333333
;
font-size
:
26px
;
font-weight
:
bold
;
.unit
{
color
:
#333333
;
font-size
:
14px
;
margin-left
:
4px
;
font-weight
:
normal
;
}
}
}
}
}
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
src/views/withdraw/payApproval.vue
View file @
5cd6143
<!-- 付款审批 -->
<!-- 付款审批 -->
<
template
>
<
template
>
<GLDialog
class=
"gl-form-page gl-form-min payWrap"
title=
"付款审批"
mode=
"mid"
:visible
.
sync=
"isVisible"
:close-on-click-modal=
"false"
:before-close=
"cancelPay"
>
<GLDialog
class=
"gl-form-page gl-form-min payWrap"
title=
"付款审批"
mode=
"mid"
:visible
.
sync=
"isVisible"
:close-on-click-modal=
"false"
:before-close=
"cancelPay"
>
<glsx-combi-form
formRef=
"payChildRef"
defaultWidth=
"284px"
ref=
"payFormRef"
:formObj=
"payForm"
:formData=
"payFormData"
:formRules=
"payRule"
>
<glsx-combi-form
formRef=
"payChildRef"
defaultWidth=
"432px"
ref=
"payFormRef"
:formObj=
"payForm"
:formData=
"payFormData"
:formRules=
"payRule"
>
<template
slot=
"channelHtml"
>
<el-cascader
style=
"width: 432px"
:props=
"props"
v-model=
"payForm.channelList"
:placeholder=
"'请选择'"
filterable
@
change=
"selectAddAttr($event, 'payForm')"
></el-cascader>
</
template
>
<
template
slot=
"captcha"
>
<
template
slot=
"captcha"
>
<div
class=
"captcha-wrap"
>
<div
class=
"captcha-wrap"
>
<el-input
v-model=
"payForm.captcha"
placeholder=
"请输入"
></el-input>
<el-input
v-model=
"payForm.captcha"
placeholder=
"请输入"
style=
"width: 432px"
></el-input>
<div
class=
"captcha-text"
@
click
.
prevent=
"getCode"
>
<div
class=
"captcha-text"
@
click
.
prevent=
"getCode"
>
{{
!
isCodeDisabled
?
'获取验证码'
:
count
+
's'
}}
{{
!
isCodeDisabled
?
'获取验证码'
:
count
+
's'
}}
</div>
</div>
...
@@ -36,37 +39,35 @@ export default {
...
@@ -36,37 +39,35 @@ export default {
approverId
:
''
,
approverId
:
''
,
phone
:
''
,
phone
:
''
,
captcha
:
''
,
captcha
:
''
,
remark
:
''
remark
:
''
,
channelList
:
[]
},
},
payFormData
:
[
payFormData
:
[
// {
// label: '付款渠道',
// name: 'paymentChannelId',
// type: 'select',
// optionsName: 'payChannelList',
// optionId: 'id',
// optionLabel: 'name',
// changeAttr: val => {
// this.payForm.channel = this.baseData.payChannelList.find(item => item.id === val).channel
// this.recordInfo.taxRate = this.baseData.payChannelList.find(item => item.id === val).tax + '%'
// this.payForm.paymentSubjectId=''
// this.getAdmin()
// this.getPaymentEntityList()
// this.calculateAmount()
// this.isCodeDisabled = false
// clearInterval(this.timer)
// this.timer = null
// this.payForm.captcha = ''
// }
// },
{
{
label
:
'此次付款渠道'
,
label
:
'付款渠道'
,
name
:
'paymentChannelId'
,
name
:
'channelList'
,
type
:
'select'
,
addHtml
:
'channelHtml'
optionsName
:
'payChannelList'
,
optionId
:
'id'
,
optionLabel
:
'name'
,
changeAttr
:
val
=>
{
this
.
payForm
.
channel
=
this
.
baseData
.
payChannelList
.
find
(
item
=>
item
.
id
===
val
).
channel
this
.
recordInfo
.
taxRate
=
this
.
baseData
.
payChannelList
.
find
(
item
=>
item
.
id
===
val
).
tax
+
'%'
this
.
payForm
.
paymentSubjectId
=
''
this
.
getAdmin
()
this
.
getPaymentEntityList
()
this
.
calculateAmount
()
this
.
isCodeDisabled
=
false
clearInterval
(
this
.
timer
)
this
.
timer
=
null
this
.
payForm
.
captcha
=
''
}
},
{
label
:
'此次付款主体'
,
name
:
'paymentSubjectId'
,
type
:
'select'
,
optionsName
:
'paymentEntityList'
,
optionId
:
'id'
,
optionLabel
:
'name'
,
changeAttr
:
val
=>
{}
},
},
{
{
label
:
'批次号'
,
label
:
'批次号'
,
...
@@ -95,6 +96,7 @@ export default {
...
@@ -95,6 +96,7 @@ export default {
optionsName
:
'adminList'
,
optionsName
:
'adminList'
,
optionId
:
'adminId'
,
optionId
:
'adminId'
,
optionLabel
:
'adminName'
,
optionLabel
:
'adminName'
,
optionList
:
[],
changeAttr
:
val
=>
{
changeAttr
:
val
=>
{
this
.
payForm
.
phone
=
val
this
.
payForm
.
phone
=
val
this
.
isCodeDisabled
=
false
this
.
isCodeDisabled
=
false
...
@@ -129,13 +131,42 @@ export default {
...
@@ -129,13 +131,42 @@ export default {
paymentChannelId
:
[{
required
:
true
,
message
:
'请选择付款渠道'
,
trigger
:
'change'
}],
paymentChannelId
:
[{
required
:
true
,
message
:
'请选择付款渠道'
,
trigger
:
'change'
}],
paymentSubjectId
:
[{
required
:
true
,
message
:
'请选择付款主体'
,
trigger
:
'change'
}],
paymentSubjectId
:
[{
required
:
true
,
message
:
'请选择付款主体'
,
trigger
:
'change'
}],
captcha
:
[{
required
:
true
,
message
:
'请输入验证码'
,
trigger
:
'blur'
}],
captcha
:
[{
required
:
true
,
message
:
'请输入验证码'
,
trigger
:
'blur'
}],
explain
:
[{
required
:
true
,
message
:
'请输入发票及其他说明'
,
trigger
:
'blur'
}]
explain
:
[{
required
:
true
,
message
:
'请输入发票及其他说明'
,
trigger
:
'blur'
}],
channelList
:
[{
required
:
true
,
message
:
'请选择付款渠道'
,
trigger
:
'change'
}]
},
},
// 基本数据
// 基本数据
baseData
:
{
baseData
:
{
payChannelList
:
[],
payChannelList
:
[],
//付款主体
//付款主体
paymentEntityList
:
[]
paymentEntityList
:
[]
},
props
:
{
lazy
:
true
,
lazyLoad
:
(
node
,
resolve
)
=>
{
console
.
log
(
node
,
node
.
value
)
const
{
level
,
value
}
=
node
let
res
let
obj
=
{
0
:
async
()
=>
{
res
=
await
this
.
getlistChannel
()
resolve
(
res
)
},
1
:
async
()
=>
{
res
=
await
this
.
getListPaymentEntity
(
value
)
resolve
(
res
)
},
2
:
async
()
=>
{
this
.
payForm
.
paymentSubjectId
=
value
let
channel
=
node
.
parent
?
node
.
parent
.
value
:
''
res
=
await
this
.
getListPayLevy
(
value
,
channel
)
resolve
(
res
)
},
3
:
async
()
=>
{
this
.
payForm
.
paymentChannelId
=
value
}
}
obj
[
level
]()
}
}
}
}
}
},
},
...
@@ -150,82 +181,131 @@ export default {
...
@@ -150,82 +181,131 @@ export default {
},
},
watch
:
{
watch
:
{
payVisible
(
newVal
)
{
payVisible
(
newVal
)
{
console
.
log
(
newVal
)
this
.
isVisible
=
newVal
this
.
isVisible
=
newVal
if
(
newVal
)
{
this
.
getChannel
()
this
.
$utils
.
getOptionsList
(
this
,
'payFormData'
,
false
)
}
}
}
},
},
mounted
()
{},
mounted
()
{},
methods
:
{
methods
:
{
async
getlistChannel
()
{
let
arr
=
await
this
.
$apis
.
withdraw
.
getChannelList
()
let
list
=
arr
.
map
(
item
=>
{
return
{
label
:
item
.
channelName
,
value
:
item
.
channel
}
})
return
list
},
async
getListPaymentEntity
(
value
)
{
let
arr
=
await
this
.
$apis
.
withdraw
.
getListPaymentEntity
({
channel
:
value
})
let
list
=
arr
.
map
(
item
=>
{
return
{
label
:
item
.
paymentEntityName
,
value
:
item
.
paymentEntityId
}
})
return
list
},
async
getListPayLevy
(
paymentEntityId
,
channel
)
{
this
.
baseData
.
paymentEntityList
=
await
this
.
$apis
.
withdraw
.
getListPayLevy
({
paymentEntityId
,
channel
})
let
list
=
this
.
baseData
.
paymentEntityList
.
map
(
item
=>
{
return
{
label
:
item
.
levyName
,
value
:
item
.
id
,
leaf
:
true
}
})
return
list
},
async
selectAddAttr
(
e
,
formName
)
{
console
.
log
(
e
)
this
.
payForm
.
paymentSubjectId
=
''
let
[
value1
,
value2
,
value3
]
=
e
if
(
value1
)
this
[
formName
].
channel
=
value1
if
(
value2
)
this
[
formName
].
paymentSubjectId
=
value2
if
(
value3
)
this
[
formName
].
paymentChannelId
=
value3
//代征主体
await
this
.
getListPayLevy
(
value2
,
value1
)
//重新获取代征主体获取最新的税率
this
.
recordInfo
.
taxRate
=
this
.
baseData
.
paymentEntityList
.
find
(
item
=>
item
.
id
===
value3
).
tax
+
'%'
this
.
getAdmin
()
this
.
calculateAmount
()
this
.
isCodeDisabled
=
false
clearInterval
(
this
.
timer
)
this
.
timer
=
null
this
.
payForm
.
captcha
=
''
},
calculateAmount
()
{
calculateAmount
()
{
let
{
taxRate
,
pointTotal
}
=
this
.
recordInfo
,
let
{
taxRate
,
pointTotal
}
=
this
.
recordInfo
,
rate
=
taxRate
.
split
(
'%'
)[
0
]
rate
=
taxRate
.
split
(
'%'
)[
0
]
console
.
log
(
rate
)
//本批次号积分提现总金额+渠道税点(积分总额×税点),保留小数点后 2位
//本批次号积分提现总金额+渠道税点(积分总额×税点),保留小数点后 2位
this
.
recordInfo
.
paymentTotal
=
(
pointTotal
+
pointTotal
*
(
rate
/
100
)).
toFixed
(
2
)
this
.
recordInfo
.
paymentTotal
=
(
pointTotal
+
pointTotal
*
(
rate
/
100
)).
toFixed
(
2
)
},
},
//积分提现获取业务对应的付款渠道
// //积分提现获取业务对应的付款渠道
getChannel
(
transferType
)
{
// getChannel(transferType) {
let
arr
=
[]
// let arr = []
this
.
$apis
.
withdraw
.
getChannelAccount
().
then
(
res
=>
{
// this.$apis.withdraw.getChannelAccount().then(res => {
if
(
res
)
{
// if (res) {
console
.
log
(
res
)
// console.log(res)
// arr = res.map(item => {
// // arr = res.map(item => {
// let channelInfo = item.name
// // let channelInfo = item.name
// return {
// // return {
// channelInfo,
// // channelInfo,
// ...item
// // ...item
// // }
// // })
// this.baseData.payChannelList = [...res]
// this.$utils.getOptionsList(this, 'payFormData', false, 'paymentChannelId')
// //默认选择
// if (this.baseData.payChannelList.length > 0) {
// this.payForm.paymentChannelId = this.baseData.payChannelList[0].id
// this.payForm.channel = this.baseData.payChannelList[0].channel
// this.recordInfo.taxRate = this.baseData.payChannelList[0].tax + '%'
// this.calculateAmount()
// }
// this.getPaymentEntityList()
// this.getAdmin()
// }
// }
// })
// })
this
.
baseData
.
payChannelList
=
[
// },
...
res
// //支付主体
]
// getPaymentEntityList() {
this
.
$utils
.
getOptionsList
(
this
,
'payFormData'
,
false
,
'paymentChannelId'
)
// let params = { channelAccountId: this.payForm.paymentChannelId }
//默认选择
// this.$apis.withdraw.getPaymentEntityList(params).then(res => {
if
(
this
.
baseData
.
payChannelList
.
length
>
0
)
{
// if (res) {
this
.
payForm
.
paymentChannelId
=
this
.
baseData
.
payChannelList
[
0
].
id
// console.log(res)
this
.
payForm
.
channel
=
this
.
baseData
.
payChannelList
[
0
].
channel
// this.baseData.paymentEntityList = res
this
.
recordInfo
.
taxRate
=
this
.
baseData
.
payChannelList
[
0
].
tax
+
'%'
// this.$utils.getOptionsList(this, 'payFormData', false, 'paymentSubjectId')
this
.
calculateAmount
()
// // 默认选择
}
// if (this.baseData.paymentEntityList.length > 0) {
this
.
getPaymentEntityList
()
// this.payForm.paymentSubjectId = this.baseData.paymentEntityList[0].id
this
.
getAdmin
()
// }
}
// }
})
// })
},
// },
//支付主体
getPaymentEntityList
()
{
let
params
=
{
channelAccountId
:
this
.
payForm
.
paymentChannelId
}
this
.
$apis
.
withdraw
.
getPaymentEntityList
(
params
).
then
(
res
=>
{
if
(
res
)
{
console
.
log
(
res
)
this
.
baseData
.
paymentEntityList
=
res
this
.
$utils
.
getOptionsList
(
this
,
'payFormData'
,
false
,
'paymentSubjectId'
)
// 默认选择
if
(
this
.
baseData
.
paymentEntityList
.
length
>
0
)
{
this
.
payForm
.
paymentSubjectId
=
this
.
baseData
.
paymentEntityList
[
0
].
id
}
}
})
},
getAdmin
()
{
getAdmin
()
{
this
.
$apis
.
withdraw
.
getAdmin
({
channel
:
this
.
payForm
.
channel
}).
then
(
res
=>
{
this
.
$apis
.
withdraw
.
getAdmin
({
channel
:
this
.
payForm
.
channel
}).
then
(
res
=>
{
if
(
res
)
{
if
(
res
&&
res
.
length
>
0
)
{
this
.
baseData
.
adminList
=
res
.
map
(
item
=>
{
this
.
baseData
.
adminList
=
res
.
map
(
item
=>
{
return
{
return
{
adminId
:
`
${
item
.
p
hone
}
`
,
adminId
:
`
${
item
.
adminP
hone
}
`
,
adminName
:
`
${
item
.
name
}
${
item
.
p
hone
}
`
,
adminName
:
`
${
item
.
adminName
}
${
item
.
adminP
hone
}
`
,
name
:
item
.
n
ame
,
name
:
item
.
adminN
ame
,
phone
:
item
.
p
hone
phone
:
item
.
adminP
hone
}
}
})
})
this
.
$utils
.
getOptionsList
(
this
,
'payFormData'
,
false
,
'approverId'
)
this
.
payForm
.
approverId
=
this
.
baseData
.
adminList
[
0
].
adminId
this
.
payForm
.
approverId
=
this
.
baseData
.
adminList
[
0
].
adminId
this
.
payForm
.
phone
=
this
.
baseData
.
adminList
[
0
].
phone
this
.
payForm
.
phone
=
this
.
baseData
.
adminList
[
0
].
phone
}
else
{
this
.
payForm
.
approverId
=
''
this
.
payForm
.
phone
=
''
this
.
baseData
.
adminList
=
[]
}
}
this
.
$utils
.
getOptionsList
(
this
,
'payFormData'
,
false
,
'approverId'
)
})
})
},
},
//付款
//付款
...
@@ -272,11 +352,18 @@ export default {
...
@@ -272,11 +352,18 @@ export default {
remark
:
''
remark
:
''
}
}
this
.
isCodeDisabled
=
false
this
.
isCodeDisabled
=
false
this
.
baseData
.
adminList
=
[]
this
.
payFormData
[
this
.
findFormAttrId
(
'payFormData'
,
'approverId'
)].
optionList
=
[]
clearInterval
(
this
.
timer
)
clearInterval
(
this
.
timer
)
this
.
timer
=
null
this
.
timer
=
null
this
.
$emit
(
'cancelPay'
)
this
.
$emit
(
'cancelPay'
)
if
(
this
.
$refs
.
payFormRef
&&
this
.
$refs
.
payFormRef
.
$refs
.
payChildRef
)
{
this
.
$refs
.
payFormRef
.
$refs
.
payChildRef
.
resetFields
()
}
},
findFormAttrId
(
formData
,
name
)
{
return
this
[
formData
].
findIndex
(
item
=>
item
.
name
==
name
)
||
0
},
},
getCode
()
{
getCode
()
{
if
(
this
.
isCodeDisabled
)
return
if
(
this
.
isCodeDisabled
)
return
if
(
!
this
.
timer
)
{
if
(
!
this
.
timer
)
{
...
@@ -318,6 +405,12 @@ export default {
...
@@ -318,6 +405,12 @@ export default {
.el-form--inline
.el-form-item
{
.el-form--inline
.el-form-item
{
display
:
block
;
display
:
block
;
}
}
.el-form
.el-select
.el-input
{
width
:
100%
;
}
.el-form
.el-input
{
width
:
100%
;
}
}
}
.captcha-wrap
{
.captcha-wrap
{
.captcha-text
{
.captcha-text
{
...
@@ -333,5 +426,6 @@ export default {
...
@@ -333,5 +426,6 @@ export default {
text-align
:
right
;
text-align
:
right
;
}
}
}
}
}
}
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
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