Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-activity-center
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 3957e003
authored
Dec 16, 2022
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
支付商户管理
1 parent
4147f458
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
134 additions
and
94 deletions
src/api/modules/payMerchantManage.js
src/views/payMerchantsManage/addPayMerchant.vue
src/views/payMerchantsManage/components/collectionTestDialog.vue
src/views/payMerchantsManage/index.vue
src/api/modules/payMerchantManage.js
View file @
3957e00
...
@@ -82,6 +82,18 @@ const uploadCertApi = params => {
...
@@ -82,6 +82,18 @@ const uploadCertApi = params => {
returnAll
:
true
returnAll
:
true
})
})
}
}
// 获取应用Id列表
const
getlistAppInfoApi
=
params
=>
{
params
.
method
=
`
${
defaultPath
}
listAppInfo`
return
http
({
url
:
url
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
export
default
{
export
default
{
getListApi
,
getListApi
,
getBusinessListApi
,
getBusinessListApi
,
...
@@ -89,5 +101,6 @@ export default {
...
@@ -89,5 +101,6 @@ export default {
delPayMerchantApi
,
delPayMerchantApi
,
creatBizQrcodeApi
,
creatBizQrcodeApi
,
createWeappQrcodeApi
,
createWeappQrcodeApi
,
uploadCertApi
uploadCertApi
,
getlistAppInfoApi
}
}
src/views/payMerchantsManage/addPayMerchant.vue
View file @
3957e00
...
@@ -5,9 +5,14 @@
...
@@ -5,9 +5,14 @@
<div
class=
"container edit-container"
>
<div
class=
"container edit-container"
>
<p
class=
"edit-title"
id=
"basic"
>
基本信息
</p>
<p
class=
"edit-title"
id=
"basic"
>
基本信息
</p>
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormRef"
:isEdit=
"true"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"editFormData"
:formRules=
"editRule"
>
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormRef"
:isEdit=
"true"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"editFormData"
:formRules=
"editRule"
>
<template
slot=
"affiliationMerchant"
slot-scope=
"scope"
>
<el-select
style=
"width: 432px"
remote
reserve-keyword
:remote-method=
"remoteMethod"
v-model=
"editForm[scope.scope.name]"
@
visible-change=
"visibleChange"
placeholder=
"请选择所属商户"
@
change=
"changeSelect"
filterable
>
<el-option
v-for=
"(subItem, subIndex) in merchantsList"
:key=
"subIndex"
:label=
"subItem['merchantName']"
:value=
"subItem['merchantNo']"
></el-option>
</el-select>
</
template
>
<
template
slot=
"applyIds"
slot-scope=
"scope"
>
<
template
slot=
"applyIds"
slot-scope=
"scope"
>
<el-checkbox-group
v-model=
"editForm.applyIds"
>
<el-checkbox-group
v-model=
"editForm.applyIds"
>
<el-checkbox
v-for=
"value in scope.scope.applyIdsList"
:key=
"value.
confId"
:label=
"value.confId"
>
{{
value
.
conf
Name
}}
</el-checkbox>
<el-checkbox
v-for=
"value in scope.scope.applyIdsList"
:key=
"value.
appType"
:label=
"value.appType"
>
{{
value
.
app
Name
}}
</el-checkbox>
</el-checkbox-group>
</el-checkbox-group>
</
template
>
</
template
>
</glsx-combi-form>
</glsx-combi-form>
...
@@ -87,7 +92,7 @@ export default {
...
@@ -87,7 +92,7 @@ export default {
editForm
:
{
editForm
:
{
payMerchantAccount
:
''
,
payMerchantAccount
:
''
,
payMerchantName
:
''
,
payMerchantName
:
''
,
merchantType
:
''
,
merchantType
:
'
0
'
,
affiliationMerchant
:
''
,
affiliationMerchant
:
''
,
applyIds
:
[],
applyIds
:
[],
certificateString
:
''
,
certificateString
:
''
,
...
@@ -136,37 +141,25 @@ export default {
...
@@ -136,37 +141,25 @@ export default {
confName
:
'流量方'
confName
:
'流量方'
}
}
],
],
isDisabled
:
false
isDisabled
:
false
,
handleRadioChange
:
(
value
,
targetItem
)
=>
{
this
.
changeRadio
(
value
)
}
},
},
{
{
label
:
'所属商户'
,
label
:
'所属商户'
,
name
:
'affiliationMerchant'
,
name
:
'affiliationMerchant'
,
type
:
'select'
,
addHtml
:
'affiliationMerchant'
,
optionList
:
[],
isHide
:
true
optionId
:
'merchantNo'
,
optionLabel
:
'merchantName'
,
isDisabled
:
false
,
changeAttr
:
(
value
,
targetItem
)
=>
{
this
.
editForm
.
merchantName
=
targetItem
.
optionList
.
find
(
v
=>
v
.
merchantNo
==
value
).
merchantName
}
},
},
{
{
label
:
'应用ID'
,
label
:
'应用ID'
,
name
:
'applyIds'
,
name
:
'applyIds'
,
addHtml
:
'applyIds'
,
addHtml
:
'applyIds'
,
optionId
:
'
confId
'
,
optionId
:
'
appType
'
,
optionLabel
:
'
conf
Name'
,
optionLabel
:
'
app
Name'
,
isDisabled
:
false
,
isDisabled
:
false
,
applyIdsList
:
[
applyIdsList
:
[]
{
confId
:
'MINIAPP'
,
confName
:
'众筹小程序'
},
{
confId
:
'BIZ'
,
confName
:
'众筹公众号'
}
]
}
}
],
],
configEditFormData
:
[
configEditFormData
:
[
...
@@ -193,13 +186,15 @@ export default {
...
@@ -193,13 +186,15 @@ export default {
editChildRef
:
'editChildRef'
,
editChildRef
:
'editChildRef'
,
isShowTestDialog
:
false
,
isShowTestDialog
:
false
,
dialogData
:
[],
dialogData
:
[],
jumpH5Path
:
''
jumpH5Path
:
''
,
merchantsList
:
[],
queryMerchantName
:
''
}
}
},
},
mounted
()
{
mounted
()
{
// 获取
所有商户
// 获取
应用id
this
.
$apis
.
payMerchantManage
.
get
BusinessList
Api
({}).
then
(
res
=>
{
this
.
$apis
.
payMerchantManage
.
get
listAppInfo
Api
({}).
then
(
res
=>
{
this
.
editFormData
[
3
].
option
List
=
res
this
.
editFormData
.
find
(
v
=>
v
.
name
==
'applyIds'
).
applyIds
List
=
res
})
})
if
(
process
.
env
.
NODE_ENV
==
'development'
)
{
if
(
process
.
env
.
NODE_ENV
==
'development'
)
{
// 本地打开修改dj-scrm-wx-work-main-xxx
// 本地打开修改dj-scrm-wx-work-main-xxx
...
@@ -209,6 +204,38 @@ export default {
...
@@ -209,6 +204,38 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
remoteMethod
(
query
)
{
this
.
queryMerchantName
=
query
this
.
getMerchantsList
(
this
.
editForm
[
'merchantType'
])
// 请求接口
},
changeRadio
(
value
)
{
this
.
merchantsList
=
[]
this
.
queryMerchantName
=
''
this
.
editForm
.
affiliationMerchant
=
''
this
.
editFormData
[
3
].
isHide
=
!
(
value
==
'1'
||
value
==
'2'
)
if
(
value
==
'0'
)
return
this
.
getMerchantsList
(
value
)
},
getMerchantsList
(
value
)
{
this
.
$apis
.
payMerchantManage
.
getBusinessListApi
({
// 商户类型,2-流量方,7-服务商
merchantType
:
value
==
'1'
?
7
:
value
==
'2'
?
2
:
''
,
currentPage
:
1
,
pageSize
:
200
,
merchantName
:
this
.
queryMerchantName
})
.
then
(
res
=>
{
this
.
merchantsList
=
res
})
},
changeSelect
(
val
)
{
this
.
editForm
.
merchantName
=
this
.
merchantsList
.
find
(
v
=>
v
.
merchantNo
==
val
).
merchantName
},
visibleChange
(
data
)
{
// 获取焦点重新渲染下拉框数据
if
(
data
)
this
.
queryMerchantName
=
''
},
handleConfirm
()
{
handleConfirm
()
{
let
validList
=
[]
let
validList
=
[]
var
validFlag
=
true
var
validFlag
=
true
...
@@ -271,12 +298,15 @@ export default {
...
@@ -271,12 +298,15 @@ export default {
this
.
dialogData
=
[]
this
.
dialogData
=
[]
// 获取收款测试码
// 获取收款测试码
let
fetchArr
=
[]
let
fetchArr
=
[]
let
tilteList
=
this
.
editFormData
.
find
(
v
=>
v
.
name
==
'applyIds'
).
applyIdsList
this
.
editForm
.
applyIds
.
forEach
(
val
=>
{
this
.
editForm
.
applyIds
.
forEach
(
val
=>
{
if
(
val
==
'MINIAPP'
)
{
if
(
val
==
'MINIAPP'
)
{
fetchArr
.
push
(
this
.
getWeappQrcode
(
data
[
'MINIAPP'
].
payMannerId
))
let
itemTitle
=
tilteList
.
find
(
v
=>
val
==
v
.
appType
).
appName
fetchArr
.
push
(
this
.
getWeappQrcode
(
data
[
'MINIAPP'
].
payMannerId
,
itemTitle
))
}
}
if
(
val
==
'BIZ'
)
{
if
(
val
==
'BIZ'
)
{
fetchArr
.
push
(
this
.
getBizQrcode
(
data
[
'BIZ'
].
payMannerId
))
let
itemTitle
=
tilteList
.
find
(
v
=>
val
==
v
.
appType
).
appName
fetchArr
.
push
(
this
.
getBizQrcode
(
data
[
'BIZ'
].
payMannerId
,
itemTitle
))
}
}
})
})
return
new
Promise
(
resolve
=>
{
return
new
Promise
(
resolve
=>
{
...
@@ -320,7 +350,7 @@ export default {
...
@@ -320,7 +350,7 @@ export default {
document
.
getElementById
(
id
).
scrollIntoView
()
document
.
getElementById
(
id
).
scrollIntoView
()
},
},
// 获取微信小程序收款测试码
// 获取微信小程序收款测试码
getWeappQrcode
(
payMannerId
)
{
getWeappQrcode
(
payMannerId
,
itemTitle
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
this
.
$apis
.
payMerchantManage
this
.
$apis
.
payMerchantManage
.
createWeappQrcodeApi
({
.
createWeappQrcodeApi
({
...
@@ -333,20 +363,19 @@ export default {
...
@@ -333,20 +363,19 @@ export default {
.
then
(
res
=>
{
.
then
(
res
=>
{
if
(
res
.
code
==
'0'
)
{
if
(
res
.
code
==
'0'
)
{
this
.
dialogData
.
push
({
this
.
dialogData
.
push
({
title
:
'小程序收款码'
,
title
:
itemTitle
,
url
:
res
.
data
url
:
res
.
data
})
})
resolve
()
resolve
()
}
else
{
}
else
{
this
.
$message
.
error
(
res
.
message
)
this
.
$message
.
error
(
res
.
message
)
resolve
()
resolve
()
// reject()
}
}
})
})
})
})
},
},
// 获取公众号收款测试码
// 获取公众号收款测试码
getBizQrcode
(
payMannerId
)
{
getBizQrcode
(
payMannerId
,
itemTitle
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
this
.
$apis
.
payMerchantManage
this
.
$apis
.
payMerchantManage
.
creatBizQrcodeApi
({
.
creatBizQrcodeApi
({
...
@@ -356,12 +385,13 @@ export default {
...
@@ -356,12 +385,13 @@ export default {
.
then
(
res
=>
{
.
then
(
res
=>
{
if
(
res
.
code
==
'0'
)
{
if
(
res
.
code
==
'0'
)
{
this
.
dialogData
.
push
({
this
.
dialogData
.
push
({
title
:
'公众号收款码'
,
title
:
itemTitle
,
url
:
res
.
data
url
:
res
.
data
})
})
resolve
()
resolve
()
}
else
{
}
else
{
this
.
$message
.
error
(
res
.
message
)
this
.
$message
.
error
(
res
.
message
)
resolve
()
}
}
})
})
})
})
...
@@ -391,7 +421,7 @@ export default {
...
@@ -391,7 +421,7 @@ export default {
const
base64
=
file
.
name
.
split
(
'.'
)[
file
.
name
.
split
(
'.'
).
length
-
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
const
base64
=
file
.
name
.
split
(
'.'
)[
file
.
name
.
split
(
'.'
).
length
-
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
this
.
loading
=
true
this
.
loading
=
true
this
.
$apis
.
payMerchantManage
.
uploadCertApi
({
file
:
base64
}).
then
(
res
=>
{
this
.
$apis
.
payMerchantManage
.
uploadCertApi
({
file
:
base64
}).
then
(
res
=>
{
this
.
loading
=
false
if
(
res
.
code
==
'0'
)
{
if
(
num
==
1
)
{
if
(
num
==
1
)
{
if
(
this
.
fileKeyList
.
length
>
1
)
this
.
fileKeyList
=
[]
if
(
this
.
fileKeyList
.
length
>
1
)
this
.
fileKeyList
=
[]
this
.
fileKeyList
.
push
({
this
.
fileKeyList
.
push
({
...
@@ -406,6 +436,10 @@ export default {
...
@@ -406,6 +436,10 @@ export default {
url
:
res
.
data
url
:
res
.
data
})
})
}
}
}
else
{
this
.
$message
.
error
(
res
.
message
)
}
this
.
loading
=
false
})
})
}
}
},
},
...
@@ -473,6 +507,10 @@ export default {
...
@@ -473,6 +507,10 @@ export default {
color
:
#fff
;
color
:
#fff
;
background-color
:
var
(
--primaryColor
,
#5850ff
);
background-color
:
var
(
--primaryColor
,
#5850ff
);
border-color
:
var
(
--primaryColor
,
#5850ff
);
border-color
:
var
(
--primaryColor
,
#5850ff
);
opacity
:
1
;
}
.el-message-box__btns
button
:first-child:hover
{
opacity
:
0.7
;
}
}
//
.el-message-box__btns
{
//
.el-message-box__btns
{
//
.el-button--primary
{
//
.el-button--primary
{
...
...
src/views/payMerchantsManage/components/collectionTestDialog.vue
View file @
3957e00
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<GLDialog
title=
"收款测试"
mode=
"mid"
okText=
"关闭"
:visible
.
sync=
"isShowTestDialog"
:close-on-click-modal=
"false"
:close-on-press-escape=
"false"
:before-close=
"handleDialogClose"
:hasFooter=
"false"
>
<GLDialog
title=
"收款测试"
mode=
"mid"
okText=
"关闭"
:visible
.
sync=
"isShowTestDialog"
:close-on-click-modal=
"false"
:close-on-press-escape=
"false"
:before-close=
"handleDialogClose"
:hasFooter=
"false"
>
<div
class=
"dialog-look"
>
<div
class=
"dialog-look"
>
<div
class=
"qrcode-box"
v-for=
"(item, index) in dialogData"
:key=
"index"
>
<div
class=
"qrcode-box"
v-for=
"(item, index) in dialogData"
:key=
"index"
>
<div
class=
"qrcode-tiltle"
>
{{
item
.
title
?
item
.
title
:
'众筹小程序'
}}
</div>
<div
class=
"qrcode-tiltle"
>
{{
item
.
title
}}
</div>
<div
class=
"qrcode-tips"
>
请扫码完成支付
</div>
<div
class=
"qrcode-tips"
>
请扫码完成支付
</div>
<img
class=
"qrcode-img"
:src=
"item.url"
alt=
""
/>
<img
class=
"qrcode-img"
:src=
"item.url"
alt=
""
/>
</div>
</div>
...
@@ -24,8 +24,7 @@ export default {
...
@@ -24,8 +24,7 @@ export default {
}
}
},
},
data
()
{
data
()
{
return
{
return
{}
}
},
},
methods
:
{
methods
:
{
handleDialogClose
()
{
handleDialogClose
()
{
...
@@ -35,30 +34,29 @@ export default {
...
@@ -35,30 +34,29 @@ export default {
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.dialog-look
{
.dialog-look
{
padding
:
24px
40px
48px
40px
;
padding
:
24px
40px
48px
40px
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
justify-content
:
center
;
.qrcode-box{
.qrcode-box
{
display
:
flex
;
display
:
flex
;
flex-flow
:
column
;
flex-flow
:
column
;
align-items
:
center
;
align-items
:
center
;
margin
:
0
20px
;
margin
:
0
20px
;
.qrcode-tiltle{
.qrcode-tiltle
{
font-size
:
16px
;
font-size
:
16px
;
color
:
#333
;
color
:
#333
;
}
}
.qrcode-tips
{
.qrcode-tips
{
font-size
:
14px
;
font-size
:
14px
;
color
:
#666
;
color
:
#666
;
margin
:
8px
;
margin
:
8px
;
}
}
.qrcode-img
{
.qrcode-img
{
width
:
118px
;
width
:
118px
;
height
:
118px
;
height
:
118px
;
}
}
}
}
}
}
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
src/views/payMerchantsManage/index.vue
View file @
3957e00
...
@@ -47,7 +47,7 @@ export default {
...
@@ -47,7 +47,7 @@ export default {
merchantName
:
''
,
merchantName
:
''
,
mchId
:
''
,
mchId
:
''
,
mchName
:
''
,
mchName
:
''
,
app
Type
:
''
,
app
Id
:
''
,
testFlag
:
''
testFlag
:
''
},
},
tableSearchForm
:
{},
tableSearchForm
:
{},
...
@@ -69,12 +69,12 @@ export default {
...
@@ -69,12 +69,12 @@ export default {
},
},
{
{
label
:
'应用ID'
,
label
:
'应用ID'
,
name
:
'app
Type
'
,
name
:
'app
Id
'
,
type
:
'select'
,
type
:
'select'
,
width
:
'215px'
,
width
:
'215px'
,
optionList
:
[],
optionList
:
[],
optionId
:
'
conf
Id'
,
optionId
:
'
app
Id'
,
optionLabel
:
'
conf
Name'
,
optionLabel
:
'
app
Name'
,
optionsName
:
'applyTypes'
optionsName
:
'applyTypes'
},
},
{
{
...
@@ -88,11 +88,7 @@ export default {
...
@@ -88,11 +88,7 @@ export default {
label
:
'商户号'
,
label
:
'商户号'
,
name
:
'merchantId'
,
name
:
'merchantId'
,
type
:
'input'
,
type
:
'input'
,
width
:
'215px'
,
width
:
'215px'
// optionList: [],
// optionId: 'merchantNo',
// optionLabel: 'merchantName',
// optionsName: 'listMerchants'
},
},
{
{
label
:
'状态'
,
label
:
'状态'
,
...
@@ -155,9 +151,6 @@ export default {
...
@@ -155,9 +151,6 @@ export default {
{
{
label
:
'应用ID'
,
label
:
'应用ID'
,
prop
:
'appPrincipal'
prop
:
'appPrincipal'
// formatter: cellValue => {
// return this.baseData.applyTypes.find(item => item.confId == cellValue.appType)?.confName
// }
},
},
{
{
label
:
'所属商户'
,
label
:
'所属商户'
,
...
@@ -168,6 +161,13 @@ export default {
...
@@ -168,6 +161,13 @@ export default {
prop
:
'merchantId'
prop
:
'merchantId'
},
},
{
{
label
:
'账号所属'
,
prop
:
'mchBelong'
,
formatter
:
cellValue
=>
{
return
this
.
mchBelongList
.
find
(
item
=>
item
.
confId
==
cellValue
.
mchBelong
)?.
confName
}
},
{
label
:
'创建人'
,
label
:
'创建人'
,
prop
:
'createdBy'
prop
:
'createdBy'
},
},
...
@@ -198,30 +198,34 @@ export default {
...
@@ -198,30 +198,34 @@ export default {
confName
:
'已生效'
confName
:
'已生效'
}
}
],
],
applyTypes
:
[
applyTypes
:
[]
},
isShowTestDialog
:
false
,
dialogData
:
[],
jumpH5Path
:
''
,
mchBelongList
:
[
{
{
confId
:
'MINIAPP
'
,
confId
:
'0
'
,
confName
:
'众筹小程序
'
confName
:
'广联
'
},
},
{
{
confId
:
'BIZ'
,
confId
:
'1'
,
confName
:
'众筹公众号'
confName
:
'服务商'
}
],
listMerchants
:
[]
},
},
isShowTestDialog
:
false
,
{
dialogData
:
[],
confId
:
'2'
,
jumpH5Path
:
''
confName
:
'流量方'
}
]
}
}
},
},
mounted
()
{
mounted
()
{
// 获取
所有商户
// 获取
应用ID列表
// this.$apis.payMerchantManage.getBusinessList
Api({}).then(res => {
this
.
$apis
.
payMerchantManage
.
getlistAppInfo
Api
({}).
then
(
res
=>
{
// this.baseData.listMerchant
s = res
this
.
baseData
.
applyType
s
=
res
this
.
getOptionsList
(
'searchFormData'
)
this
.
getOptionsList
(
'searchFormData'
,
true
)
//
})
})
if
(
process
.
env
.
NODE_ENV
==
'development'
)
{
if
(
process
.
env
.
NODE_ENV
==
'development'
)
{
// 本地打开修改dj-scrm-wx-work-main-xxx
// 本地打开修改dj-scrm-wx-work-main-xxx
this
.
jumpH5Path
=
`
${
this
.
$request
.
baseURL
}
/dj-scrm-wx-work-main-zxw/#/testPayMerchant/index`
this
.
jumpH5Path
=
`
${
this
.
$request
.
baseURL
}
/dj-scrm-wx-work-main-zxw/#/testPayMerchant/index`
...
@@ -249,9 +253,7 @@ export default {
...
@@ -249,9 +253,7 @@ export default {
type
:
'warning'
,
type
:
'warning'
,
callback
:
action
=>
{
callback
:
action
=>
{
if
(
action
==
'confirm'
)
{
if
(
action
==
'confirm'
)
{
console
.
log
(
apiParams
)
this
.
$apis
[
apiModule
][
apiName
](
apiParams
).
then
(
res
=>
{
this
.
$apis
[
apiModule
][
apiName
](
apiParams
).
then
(
res
=>
{
console
.
log
(
res
)
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'
...
@@ -287,16 +289,18 @@ export default {
...
@@ -287,16 +289,18 @@ export default {
// 获取微信小程序收款测试码
// 获取微信小程序收款测试码
getWeappQrcode
(
row
)
{
getWeappQrcode
(
row
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
this
.
$apis
.
payMerchantManage
.
createWeappQrcodeApi
({
this
.
$apis
.
payMerchantManage
.
createWeappQrcodeApi
({
appId
:
'wxe10067a63c1856ac'
,
appId
:
'wxe10067a63c1856ac'
,
qrcodeType
:
'QR_WXA_UNLIMIT'
,
qrcodeType
:
'QR_WXA_UNLIMIT'
,
path
:
'pages/crowdfunding/testPayMerchant/testPayMerchant'
,
path
:
'pages/crowdfunding/testPayMerchant/testPayMerchant'
,
scene
:
`
${
row
.
payMannerId
}
,1`
,
scene
:
`
${
row
.
payMannerId
}
,1`
,
channelName
:
'DJ'
channelName
:
'DJ'
}).
then
(
res
=>
{
})
.
then
(
res
=>
{
if
(
res
.
code
==
'0'
)
{
if
(
res
.
code
==
'0'
)
{
this
.
dialogData
.
push
({
this
.
dialogData
.
push
({
title
:
'小程序收款码'
,
title
:
row
.
appPrincipal
,
url
:
res
.
data
url
:
res
.
data
})
})
resolve
()
resolve
()
...
@@ -318,7 +322,7 @@ export default {
...
@@ -318,7 +322,7 @@ export default {
.
then
(
res
=>
{
.
then
(
res
=>
{
if
(
res
.
code
==
'0'
)
{
if
(
res
.
code
==
'0'
)
{
this
.
dialogData
.
push
({
this
.
dialogData
.
push
({
title
:
'公众号收款码'
,
title
:
row
.
appPrincipal
,
url
:
res
.
data
url
:
res
.
data
})
})
resolve
()
resolve
()
...
@@ -336,7 +340,6 @@ export default {
...
@@ -336,7 +340,6 @@ export default {
//删除
//删除
del
(
row
)
{
del
(
row
)
{
console
.
log
(
row
)
var
params
=
{}
var
params
=
{}
params
.
payMannerId
=
row
.
payMannerId
params
.
payMannerId
=
row
.
payMannerId
this
.
secondConfirm
(
'删除'
,
'确定删除此支付商户?'
,
'payMerchantManage'
,
'delPayMerchantApi'
,
params
)
this
.
secondConfirm
(
'删除'
,
'确定删除此支付商户?'
,
'payMerchantManage'
,
'delPayMerchantApi'
,
params
)
...
@@ -347,18 +350,7 @@ export default {
...
@@ -347,18 +350,7 @@ export default {
this
.
$router
.
push
(
'/payMerchantsManage/addPayMerchant'
)
this
.
$router
.
push
(
'/payMerchantsManage/addPayMerchant'
)
},
},
getOptionsList
(
formName
,
hasAll
=
true
,
refreshSigle
)
{
getOptionsList
(
formName
,
hasAll
=
false
)
{
if
(
refreshSigle
)
{
var
item
=
this
[
formName
].
find
(
k
=>
k
.
name
==
refreshSigle
)
var
index
=
this
[
formName
].
findIndex
(
k
=>
k
.
name
==
refreshSigle
)
this
.
$set
(
this
[
formName
][
index
],
'optionList'
,
this
.
$common
.
utils
.
deepClone
(
this
.
baseData
[
item
.
optionsName
]))
if
(
hasAll
&&
this
.
baseData
[
item
.
optionsName
].
length
&&
this
.
baseData
[
item
.
optionsName
][
0
][
this
[
formName
][
index
].
optionLabel
]
!==
'全部'
)
{
const
temp
=
{}
temp
[
this
[
formName
][
index
].
optionId
]
=
''
temp
[
this
[
formName
][
index
].
optionLabel
]
=
'全部'
this
[
formName
][
index
].
optionList
.
unshift
(
temp
)
}
}
else
{
this
[
formName
].
forEach
((
item
,
index
)
=>
{
this
[
formName
].
forEach
((
item
,
index
)
=>
{
if
(
item
.
type
===
'select'
&&
this
.
baseData
[
item
.
optionsName
].
length
)
{
if
(
item
.
type
===
'select'
&&
this
.
baseData
[
item
.
optionsName
].
length
)
{
this
.
$set
(
this
[
formName
][
index
],
'optionList'
,
this
.
$common
.
utils
.
deepClone
(
this
.
baseData
[
item
.
optionsName
]))
this
.
$set
(
this
[
formName
][
index
],
'optionList'
,
this
.
$common
.
utils
.
deepClone
(
this
.
baseData
[
item
.
optionsName
]))
...
@@ -370,7 +362,6 @@ export default {
...
@@ -370,7 +362,6 @@ export default {
}
}
}
}
})
})
}
},
},
handleSearch
()
{
handleSearch
()
{
...
@@ -383,7 +374,7 @@ export default {
...
@@ -383,7 +374,7 @@ export default {
merchantName
:
''
,
merchantName
:
''
,
mchId
:
''
,
mchId
:
''
,
mchName
:
''
,
mchName
:
''
,
app
Type
:
''
,
app
Id
:
''
,
testFlag
:
''
testFlag
:
''
}
}
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