Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
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 e02154fa
authored
Apr 21, 2021
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
虚拟对公账号-缓存
1 parent
dadafd07
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
13 deletions
src/api/publicAccount.js
src/views/systemConfig/account/applyAccount.vue
src/views/systemConfig/merchant/merchantDetail.vue
src/api/publicAccount.js
View file @
e02154f
...
@@ -20,3 +20,9 @@ export function draftYseMerchantApi(data) {
...
@@ -20,3 +20,9 @@ export function draftYseMerchantApi(data) {
data
.
method
=
`
${
djPath
}
yseMerchantOffline.saveDrafts`
data
.
method
=
`
${
djPath
}
yseMerchantOffline.saveDrafts`
return
request
(
data
,
'post'
)
return
request
(
data
,
'post'
)
}
}
// 获取商户虚拟对公账户详情
export
function
getDetailApi
(
data
)
{
data
.
method
=
`
${
djPath
}
yseMerchantOffline.getDetail`
return
request
(
data
,
'post'
)
}
src/views/systemConfig/account/applyAccount.vue
View file @
e02154f
...
@@ -152,11 +152,13 @@ import _ from 'lodash'
...
@@ -152,11 +152,13 @@ import _ from 'lodash'
import
editForm
from
'./editForm'
import
editForm
from
'./editForm'
import
glUploadImg
from
'./glUploadImg'
import
glUploadImg
from
'./glUploadImg'
import
{
uploadImg
,
imgRecognitionApi
,
getProvinceCityApi
,
getBankListApi
,
getYseBankListApi
}
from
'@/api/sys.base'
import
{
uploadImg
,
imgRecognitionApi
,
getProvinceCityApi
,
getBankListApi
,
getYseBankListApi
}
from
'@/api/sys.base'
import
{
registerYseMerchantApi
,
draftYseMerchantApi
}
from
'@api/publicAccount'
import
{
registerYseMerchantApi
,
draftYseMerchantApi
,
getDetailApi
}
from
'@api/publicAccount'
export
default
{
export
default
{
name
:
'applyAccount'
,
name
:
'applyAccount'
,
data
()
{
data
()
{
return
{
return
{
// 缓存当前merchantId
sessionName
:
'applyAccMerchant'
,
targetAccount
:
{},
targetAccount
:
{},
// O - 小微商户;C - 个体商户;B - 个体商户(三个表单数据隔离)
// O - 小微商户;C - 个体商户;B - 个体商户(三个表单数据隔离)
custType
:
'O'
,
custType
:
'O'
,
...
@@ -169,21 +171,21 @@ export default {
...
@@ -169,21 +171,21 @@ export default {
custType
:
'O'
,
custType
:
'O'
,
bankCityId
:
''
,
bankCityId
:
''
,
openAccBankType
:
''
,
openAccBankType
:
''
,
papers
:
[{}]
papers
:
{}
},
},
// 个体商户Obj
// 个体商户Obj
customerEditForm
:
{
customerEditForm
:
{
custType
:
'C'
,
custType
:
'C'
,
bankCityId
:
''
,
bankCityId
:
''
,
openAccBankType
:
''
,
openAccBankType
:
''
,
papers
:
[{}]
papers
:
{}
},
},
// 企业商户Obj
// 企业商户Obj
businessEditForm
:
{
businessEditForm
:
{
custType
:
'B'
,
custType
:
'B'
,
bankCityId
:
''
,
bankCityId
:
''
,
openAccBankType
:
''
,
openAccBankType
:
''
,
papers
:
[{}]
papers
:
{}
},
},
// 类型对应的对象form
// 类型对应的对象form
typeToForm
:
{
typeToForm
:
{
...
@@ -371,6 +373,12 @@ export default {
...
@@ -371,6 +373,12 @@ export default {
maxlength
:
'11'
,
maxlength
:
'11'
,
rules
:
[{
required
:
true
,
message
:
'请输入提现人手机号'
,
trigger
:
'change'
}]
rules
:
[{
required
:
true
,
message
:
'请输入提现人手机号'
,
trigger
:
'change'
}]
},
{
},
{
label
:
'提现人地址'
,
name
:
'contactsAddr'
,
type
:
'input'
,
showAttrList
:
[
'C'
,
'B'
],
rules
:
[{
required
:
true
,
message
:
'请输入提现人地址'
,
trigger
:
'change'
}]
},
{
label
:
'提现人邮箱'
,
label
:
'提现人邮箱'
,
name
:
'contactsEmail'
,
name
:
'contactsEmail'
,
type
:
'input'
,
type
:
'input'
,
...
@@ -415,7 +423,7 @@ export default {
...
@@ -415,7 +423,7 @@ export default {
label
:
'开户行所在的市'
,
label
:
'开户行所在的市'
,
name
:
'bankCityId'
,
name
:
'bankCityId'
,
// showAttrList: ['O', 'C'],
// showAttrList: ['O', 'C'],
rules
:
[{
required
:
true
,
message
:
'请选择开户行所在的市'
,
trigger
:
'
change
'
}],
rules
:
[{
required
:
true
,
message
:
'请选择开户行所在的市'
,
trigger
:
'
blur
'
}],
type
:
'select'
,
type
:
'select'
,
optionId
:
'confValue'
,
optionId
:
'confValue'
,
optionLabel
:
'confName'
,
optionLabel
:
'confName'
,
...
@@ -456,7 +464,7 @@ export default {
...
@@ -456,7 +464,7 @@ export default {
type
:
'filterSelect'
,
type
:
'filterSelect'
,
optionId
:
'branchBankType'
,
optionId
:
'branchBankType'
,
optionLabel
:
'branchBankName'
,
optionLabel
:
'branchBankName'
,
rules
:
[{
required
:
true
,
message
:
'请选择开户支行'
,
trigger
:
'
change
'
}],
rules
:
[{
required
:
true
,
message
:
'请选择开户支行'
,
trigger
:
'
blur
'
}],
optionList
:
[],
optionList
:
[],
remoteMethod
:
(
query
,
item
)
=>
{
remoteMethod
:
(
query
,
item
)
=>
{
if
(
this
.
editForm
.
bankType
)
{
if
(
this
.
editForm
.
bankType
)
{
...
@@ -533,8 +541,14 @@ export default {
...
@@ -533,8 +541,14 @@ export default {
},
},
mounted
()
{
mounted
()
{
if
(
this
.
$route
.
params
.
merchantId
)
{
this
.
targetAccount
=
this
.
$route
.
params
this
.
targetAccount
=
this
.
$route
.
params
console
.
log
(
this
.
targetAccount
.
merchantId
)
sessionStorage
.
setItem
(
this
.
sessionName
,
JSON
.
stringify
(
this
.
$route
.
params
))
}
else
{
Object
.
assign
(
this
.
targetAccount
,
JSON
.
parse
(
sessionStorage
.
getItem
(
this
.
sessionName
)))
}
// 编辑 - 恢复数据
this
.
getDetail
()
this
.
editForm
=
this
[
this
.
typeToForm
[
this
.
custType
]]
this
.
editForm
=
this
[
this
.
typeToForm
[
this
.
custType
]]
this
.
getProvinceList
()
this
.
getProvinceList
()
this
.
getBankList
()
this
.
getBankList
()
...
@@ -544,6 +558,13 @@ export default {
...
@@ -544,6 +558,13 @@ export default {
...
mapActions
({
...
mapActions
({
close
:
'd2admin/page/close'
close
:
'd2admin/page/close'
}),
}),
// 获取详情,数据恢复
getDetail
()
{
getDetailApi
({
merchantId
:
this
.
targetAccount
.
merchantId
}).
then
(
res
=>
{
console
.
log
(
res
)
console
.
log
(
this
.
formList
)
})
},
// 开户行
// 开户行
getBankList
()
{
getBankList
()
{
getBankListApi
({}).
then
(
res
=>
{
getBankListApi
({}).
then
(
res
=>
{
...
@@ -573,13 +594,13 @@ export default {
...
@@ -573,13 +594,13 @@ export default {
// 切换radio前,将图片的值写入Obj中;按确定/存草稿时,触发
// 切换radio前,将图片的值写入Obj中;按确定/存草稿时,触发
beforeChangePic
()
{
beforeChangePic
()
{
return
new
Promise
(
resolve
=>
{
return
new
Promise
(
resolve
=>
{
this
[
this
.
typeToForm
[
this
.
markCustType
]].
papers
=
[{}]
this
[
this
.
typeToForm
[
this
.
markCustType
]].
papers
=
{}
var
picKeys
=
Object
.
keys
(
this
.
picObj
)
var
picKeys
=
Object
.
keys
(
this
.
picObj
)
// console.log(picKeys)
// console.log(picKeys)
picKeys
.
forEach
((
item
,
index
)
=>
{
picKeys
.
forEach
((
item
,
index
)
=>
{
var
targetTem
=
this
.
picObj
[
item
]
var
targetTem
=
this
.
picObj
[
item
]
if
(
targetTem
.
url
)
{
if
(
targetTem
.
url
)
{
this
[
this
.
typeToForm
[
this
.
markCustType
]].
papers
[
0
][
targetTem
.
attrName
]
=
targetTem
.
url
this
[
this
.
typeToForm
[
this
.
markCustType
]].
papers
[
targetTem
.
attrName
]
=
targetTem
.
url
}
}
if
(
index
===
picKeys
.
length
-
1
)
{
if
(
index
===
picKeys
.
length
-
1
)
{
resolve
()
resolve
()
...
@@ -593,8 +614,8 @@ export default {
...
@@ -593,8 +614,8 @@ export default {
var
picKeys
=
Object
.
keys
(
this
.
picObj
)
var
picKeys
=
Object
.
keys
(
this
.
picObj
)
picKeys
.
forEach
(
item
=>
{
picKeys
.
forEach
(
item
=>
{
var
targetTem
=
this
.
picObj
[
item
]
var
targetTem
=
this
.
picObj
[
item
]
if
(
Object
.
keys
(
this
[
this
.
typeToForm
[
this
.
custType
]].
papers
[
0
]
).
includes
(
targetTem
.
attrName
))
{
if
(
Object
.
keys
(
this
[
this
.
typeToForm
[
this
.
custType
]].
papers
).
includes
(
targetTem
.
attrName
))
{
this
.
picObj
[
item
].
url
=
this
[
this
.
typeToForm
[
this
.
custType
]].
papers
[
0
][
targetTem
.
attrName
]
this
.
picObj
[
item
].
url
=
this
[
this
.
typeToForm
[
this
.
custType
]].
papers
[
targetTem
.
attrName
]
}
else
{
}
else
{
this
.
$set
(
this
.
picObj
[
item
],
'url'
,
''
)
this
.
$set
(
this
.
picObj
[
item
],
'url'
,
''
)
}
}
...
@@ -699,8 +720,13 @@ export default {
...
@@ -699,8 +720,13 @@ export default {
this
.
handleCancel
()
this
.
handleCancel
()
})
})
},
},
// 删除session
deleteSession
()
{
sessionStorage
.
removeItem
(
this
.
sessionName
)
},
// 取消
// 取消
handleCancel
()
{
handleCancel
()
{
this
.
deleteSession
()
this
.
close
({
tagName
:
'/accountList'
})
this
.
close
({
tagName
:
'/accountList'
})
this
.
$router
.
push
({
name
:
'accountList'
})
this
.
$router
.
push
({
name
:
'accountList'
})
this
.
close
({
tagName
:
'/applyAccount'
})
this
.
close
({
tagName
:
'/applyAccount'
})
...
...
src/views/systemConfig/merchant/merchantDetail.vue
View file @
e02154f
...
@@ -91,7 +91,7 @@
...
@@ -91,7 +91,7 @@
v-model=
"settleTimeObj.first"
v-model=
"settleTimeObj.first"
controls-position=
"right"
controls-position=
"right"
size=
"small"
size=
"small"
:min=
"
1
"
:min=
"
0
"
:max=
"30"
:max=
"30"
:disabled=
"form.settleTimeType === 2 || form.autoFlag === 'N'"
:disabled=
"form.settleTimeType === 2 || form.autoFlag === 'N'"
></el-input-number>
></el-input-number>
...
@@ -478,7 +478,7 @@ export default {
...
@@ -478,7 +478,7 @@ export default {
name
:
'merchantDetail'
,
name
:
'merchantDetail'
,
data
()
{
data
()
{
return
{
return
{
sessionName
:
'merchatItem'
,
sessionName
:
'merchat
Detail
Item'
,
isConfigAccount
:
false
,
isConfigAccount
:
false
,
// 结算周期
// 结算周期
settleTimeObj
:
{
settleTimeObj
:
{
...
...
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