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 9effa2dd
authored
Apr 27, 2021
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
申请虚拟账号
1 parent
32dc3d0d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
35 deletions
src/views/systemConfig/account/applyAccount.vue
src/views/systemConfig/account/editForm.vue
src/views/systemConfig/account/applyAccount.vue
View file @
9effa2d
...
@@ -82,6 +82,7 @@
...
@@ -82,6 +82,7 @@
@
handleImgChange=
"handleImgChange"
@
handleImgChange=
"handleImgChange"
@
handleImgRemove=
"handleImgRemove"
@
handleImgRemove=
"handleImgRemove"
></gl-upload-img>
></gl-upload-img>
<span
class=
"img-explain"
>
1、法人身份证号、法人身份证照、法人手机号三者必须匹配。
<br
/>
2、身份证照片必须清晰可见。图片大小在1MB内支持png、jpg格式。
</span>
</div>
</div>
<div
<div
slot=
"handIdCard"
slot=
"handIdCard"
...
@@ -96,6 +97,7 @@
...
@@ -96,6 +97,7 @@
@
handleImgChange=
"handleImgChange"
@
handleImgChange=
"handleImgChange"
@
handleImgRemove=
"handleImgRemove"
@
handleImgRemove=
"handleImgRemove"
></gl-upload-img>
></gl-upload-img>
<span
class=
"img-explain"
>
人脸和身份证上的信息必须清晰可见。
</span>
</div>
</div>
<div
<div
slot=
"bankCard"
slot=
"bankCard"
...
@@ -219,9 +221,8 @@ export default {
...
@@ -219,9 +221,8 @@ export default {
markCustType
:
'O'
,
markCustType
:
'O'
,
// 传给组件的obj
// 传给组件的obj
editForm
:
{
editForm
:
{
anotherName
:
''
,
// anotherName: '',
companyAddr
:
''
,
// busAddress: '',
busAddress
:
''
,
legalName
:
''
,
legalName
:
''
,
legalCertNo
:
''
,
legalCertNo
:
''
,
legalCertDate
:
''
,
legalCertDate
:
''
,
...
@@ -230,7 +231,6 @@ export default {
...
@@ -230,7 +231,6 @@ export default {
withdrawPhone
:
''
,
withdrawPhone
:
''
,
// contactsAddr: '',
// contactsAddr: '',
// contactsEmail: '',
// contactsEmail: '',
bankAccountType
:
''
,
bankAccountNo
:
''
,
bankAccountNo
:
''
,
bankAccountName
:
''
,
bankAccountName
:
''
,
bankTelephoneNo
:
''
,
bankTelephoneNo
:
''
,
...
@@ -240,10 +240,14 @@ export default {
...
@@ -240,10 +240,14 @@ export default {
smsCode
:
''
,
smsCode
:
''
,
papers
:
{}
papers
:
{}
},
},
OCeditForm
:
{
bankAccountType
:
''
},
BCeditForm
:
{
BCeditForm
:
{
busLicenceName
:
''
,
busLicenceName
:
''
,
busLicense
:
''
,
busLicense
:
''
,
busLicenseDate
:
''
busLicenseDate
:
''
,
companyAddr
:
''
},
},
// 固定参数
// 固定参数
defaultForm
:
{},
defaultForm
:
{},
...
@@ -360,6 +364,15 @@ export default {
...
@@ -360,6 +364,15 @@ export default {
// })
// })
}
}
},
{
},
{
label
:
'营业执照'
,
name
:
'businessLicense'
,
useDefaultImg
:
true
,
type
:
'image'
,
slotName
:
'businessLicense'
,
autoRecognitionFn
:
(
imgUrl
)
=>
this
.
handleAutoRecognition
(
3
,
imgUrl
),
// 根据currentPage不同,展示/隐藏
showAttrList
:
[
'C'
,
'B'
]
},
{
label
:
'营业执照全称'
,
label
:
'营业执照全称'
,
name
:
'busLicenceName'
,
name
:
'busLicenceName'
,
type
:
'input'
,
type
:
'input'
,
...
@@ -368,7 +381,7 @@ export default {
...
@@ -368,7 +381,7 @@ export default {
isClear
:
true
,
isClear
:
true
,
rules
:
[{
required
:
true
,
message
:
'请输入营业执照全称'
,
trigger
:
'change'
}]
rules
:
[{
required
:
true
,
message
:
'请输入营业执照全称'
,
trigger
:
'change'
}]
},
{
},
{
label
:
'营业执照号
码
'
,
label
:
'营业执照号'
,
name
:
'busLicense'
,
name
:
'busLicense'
,
type
:
'input'
,
type
:
'input'
,
// 根据currentPage不同,展示/隐藏
// 根据currentPage不同,展示/隐藏
...
@@ -376,15 +389,6 @@ export default {
...
@@ -376,15 +389,6 @@ export default {
isClear
:
true
,
isClear
:
true
,
rules
:
[{
required
:
true
,
message
:
'请输入营业执照号码'
,
trigger
:
'change'
}]
rules
:
[{
required
:
true
,
message
:
'请输入营业执照号码'
,
trigger
:
'change'
}]
},
{
},
{
label
:
'营业执照'
,
name
:
'businessLicense'
,
useDefaultImg
:
true
,
type
:
'image'
,
slotName
:
'businessLicense'
,
autoRecognitionFn
:
(
imgUrl
)
=>
this
.
handleAutoRecognition
(
3
,
imgUrl
),
// 根据currentPage不同,展示/隐藏
showAttrList
:
[
'C'
,
'B'
]
},
{
label
:
'营业执照有效期'
,
label
:
'营业执照有效期'
,
name
:
'busLicenseDate'
,
name
:
'busLicenseDate'
,
// 根据currentPage不同,展示/隐藏
// 根据currentPage不同,展示/隐藏
...
@@ -392,25 +396,28 @@ export default {
...
@@ -392,25 +396,28 @@ export default {
type
:
'datePicker'
,
type
:
'datePicker'
,
isClear
:
true
,
isClear
:
true
,
rules
:
[{
required
:
true
,
message
:
'请选择营业执照有效期'
,
trigger
:
'change'
}]
rules
:
[{
required
:
true
,
message
:
'请选择营业执照有效期'
,
trigger
:
'change'
}]
},
{
},
label
:
'商户名称'
,
// {
name
:
'anotherName'
,
// label: '商户名称',
type
:
'input'
,
// name: 'anotherName',
isClear
:
true
,
// type: 'input',
rules
:
[{
required
:
true
,
message
:
'请输入商户名称'
,
trigger
:
'change'
}]
// isClear: true,
},
{
// rules: [{ required: true, message: '请输入商户名称', trigger: 'change' }]
label
:
'企业注册地址'
,
// },
{
label
:
'企业地址'
,
name
:
'companyAddr'
,
name
:
'companyAddr'
,
// 根据currentPage不同,展示/隐藏
// 根据currentPage不同,展示/隐藏
// showAttrList: ['B'],
showAttrList
:
[
'C'
,
'B'
],
type
:
'input'
,
rules
:
[{
required
:
true
,
message
:
'请输入企业注册地址'
,
trigger
:
'change'
}]
},
{
label
:
'企业营业地址'
,
name
:
'busAddress'
,
type
:
'input'
,
type
:
'input'
,
rules
:
[{
required
:
true
,
message
:
'请输入企业
营业
地址'
,
trigger
:
'change'
}]
rules
:
[{
required
:
true
,
message
:
'请输入企业地址'
,
trigger
:
'change'
}]
},
},
// {
// label: '企业营业地址',
// name: 'busAddress',
// type: 'input',
// rules: [{ required: true, message: '请输入企业营业地址', trigger: 'change' }]
// },
{
{
label
:
'法人身份证正反面'
,
label
:
'法人身份证正反面'
,
// name: 'papers.00',
// name: 'papers.00',
...
@@ -479,7 +486,7 @@ export default {
...
@@ -479,7 +486,7 @@ export default {
label
:
'银行卡账户类型'
,
label
:
'银行卡账户类型'
,
name
:
'bankAccountType'
,
name
:
'bankAccountType'
,
type
:
'radio'
,
type
:
'radio'
,
//
showAttrList: ['O', 'C'],
showAttrList
:
[
'O'
,
'C'
],
rules
:
[{
required
:
true
,
message
:
'请选择银行卡账户类型'
,
trigger
:
'change'
}],
rules
:
[{
required
:
true
,
message
:
'请选择银行卡账户类型'
,
trigger
:
'change'
}],
radioOptList
:
[{
radioOptList
:
[{
value
:
'corporate'
,
value
:
'corporate'
,
...
@@ -500,6 +507,7 @@ export default {
...
@@ -500,6 +507,7 @@ export default {
label
:
'结算银行卡正反面照'
,
label
:
'结算银行卡正反面照'
,
name
:
'bankCard'
,
name
:
'bankCard'
,
otherName
:
'bankCardBack'
,
otherName
:
'bankCardBack'
,
showAttrList
:
[
'O'
,
'C'
],
type
:
'image'
,
type
:
'image'
,
slotName
:
'bankCard'
,
slotName
:
'bankCard'
,
autoRecognitionFn
:
(
imgUrl
)
=>
this
.
handleAutoRecognition
(
2
,
imgUrl
)
autoRecognitionFn
:
(
imgUrl
)
=>
this
.
handleAutoRecognition
(
2
,
imgUrl
)
...
@@ -521,7 +529,7 @@ export default {
...
@@ -521,7 +529,7 @@ export default {
type
:
'filterSelect'
,
type
:
'filterSelect'
,
optionId
:
'branchBankType'
,
optionId
:
'branchBankType'
,
optionLabel
:
'branchBankName'
,
optionLabel
:
'branchBankName'
,
rules
:
[{
required
:
true
,
message
:
'请选择开户支行'
,
trigger
:
'
blur
'
}],
rules
:
[{
required
:
true
,
message
:
'请选择开户支行'
,
trigger
:
'
change
'
}],
optionList
:
[],
optionList
:
[],
remoteMethod
:
(
query
,
item
)
=>
{
remoteMethod
:
(
query
,
item
)
=>
{
if
(
this
.
editForm
.
bankType
)
{
if
(
this
.
editForm
.
bankType
)
{
...
@@ -608,17 +616,20 @@ export default {
...
@@ -608,17 +616,20 @@ export default {
// 小微商户Obj
// 小微商户Obj
this
.
microEditForm
=
{
this
.
microEditForm
=
{
custType
:
'O'
,
custType
:
'O'
,
...(
_
.
cloneDeep
(
this
.
editForm
))
...(
_
.
cloneDeep
(
this
.
editForm
)),
...(
_
.
cloneDeep
(
this
.
OCeditForm
))
}
}
// 个体商户Obj
// 个体商户Obj
this
.
customerEditForm
=
{
this
.
customerEditForm
=
{
custType
:
'C'
,
custType
:
'C'
,
...(
_
.
cloneDeep
(
this
.
editForm
)),
...(
_
.
cloneDeep
(
this
.
editForm
)),
...(
_
.
cloneDeep
(
this
.
OCeditForm
)),
...(
_
.
cloneDeep
(
this
.
BCeditForm
))
...(
_
.
cloneDeep
(
this
.
BCeditForm
))
}
}
// 企业商户Obj
// 企业商户Obj
this
.
businessEditForm
=
{
this
.
businessEditForm
=
{
custType
:
'B'
,
custType
:
'B'
,
bankAccountType
:
'corporate'
,
...(
_
.
cloneDeep
(
this
.
editForm
)),
...(
_
.
cloneDeep
(
this
.
editForm
)),
...(
_
.
cloneDeep
(
this
.
BCeditForm
))
...(
_
.
cloneDeep
(
this
.
BCeditForm
))
}
}
...
@@ -820,7 +831,7 @@ export default {
...
@@ -820,7 +831,7 @@ export default {
this
.
$set
(
this
.
editForm
,
'busLicenseDate'
,
[
startDate
,
endDate
])
this
.
$set
(
this
.
editForm
,
'busLicenseDate'
,
[
startDate
,
endDate
])
}
}
res
.
address
&&
this
.
$set
(
this
.
editForm
,
'companyAddr'
,
res
.
address
)
res
.
address
&&
this
.
$set
(
this
.
editForm
,
'companyAddr'
,
res
.
address
)
res
.
address
&&
this
.
$set
(
this
.
editForm
,
'busAddress'
,
res
.
address
)
//
res.address && this.$set(this.editForm, 'busAddress', res.address)
}
}
})
})
},
},
...
@@ -897,10 +908,18 @@ export default {
...
@@ -897,10 +908,18 @@ export default {
<
style
>
<
style
>
.apply-account
.flex
{
.apply-account
.flex
{
display
:
flex
;
display
:
flex
;
align-items
:
flex-start
;
}
}
.apply-account
.flex
.gl-upload-img
{
.apply-account
.flex
.gl-upload-img
{
color
:
#999999
;
color
:
#999999
;
margin-right
:
20px
;
margin-right
:
20px
;
text-align
:
center
;
text-align
:
center
;
}
}
.apply-account
.img-explain
{
display
:
inline-block
;
width
:
220px
;
font-size
:
12px
;
color
:
#2a58ad
;
line-height
:
16px
;
}
</
style
>
</
style
>
src/views/systemConfig/account/editForm.vue
View file @
9effa2d
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
:id=
"item.name"
:id=
"item.name"
:label-width=
"item.label ? labelWidth : '0px'"
:label-width=
"item.label ? labelWidth : '0px'"
:rules=
"item.showAttrList ? (item.showAttrList.includes(currentPage) ? item.rules : []) : item.rules"
:rules=
"item.showAttrList ? (item.showAttrList.includes(currentPage) ? item.rules : []) : item.rules"
class=
"dis-in-block"
class=
"dis-in-block
is-required
"
:style=
"
{'margin-bottom': !item.type ? '0px' : '22px'}"
:style=
"
{'margin-bottom': !item.type ? '0px' : '22px'}"
>
>
<el-input
<el-input
...
...
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