Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-xcmg-vue-app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xugong
hls-xcmg-vue-app
Commits
0e8f82ec
Commit
0e8f82ec
authored
Mar 13, 2020
by
linxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
d78e696c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
55 additions
and
22 deletions
+55
-22
base-info.vue
src/pages/userBindNew/np/base-info.vue
+55
-22
No files found.
src/pages/userBindNew/np/base-info.vue
View file @
0e8f82ec
...
...
@@ -215,7 +215,7 @@
>
</item>
<item
v-if=
"
baseInfo.bp_type === 'TENANT' || baseInfo.bp_typ
e === 'GUTA'"
v-if=
"
((baseInfo.bp_type === 'TENANT' || baseInfo.bp_type === 'GUTA')&&!multipleRole)||multipleRole=== 'TENANT' || multipleRol
e === 'GUTA'"
:showArrow=
"true"
>
<div
slot=
"name"
class=
"required"
>
婚姻状况
</div>
...
...
@@ -230,7 +230,7 @@
</item>
</list-item>
<div
v-if=
"(hasSP &&
baseInfo.bp_type === 'TENANT') || (hasSP && baseInfo.bp_type === 'GUTA'
)"
v-if=
"(hasSP &&
(((baseInfo.bp_type === 'TENANT'||baseInfo.bp_type === 'GUTA')&&!multipleRole)||multipleRole=== 'TENANT' || multipleRole === 'GUTA')
)"
>
<!-- 主承租人活担保人为已婚显示-->
<div
class=
"userInfo"
>
配偶信息
</div>
...
...
@@ -449,17 +449,22 @@ export default {
vm
.
isLesons
=
false
}
},
'baseInfo.marital_status_n'
:
function
(
newVal
,
oldVal
)
{
if
(
newVal
===
'已婚'
)
{
this
.
hasSP
=
true
}
else
{
this
.
hasSP
=
false
this
.
baseInfo
.
bp_name_sp
=
''
this
.
baseInfo
.
spouse_phone
=
''
this
.
baseInfo
.
working_place_sp
=
''
this
.
baseInfo
.
address_sp
=
''
}
'baseInfo.marital_status_n'
:
{
handler
:
function
(
newVal
,
oldVal
)
{
if
(
newVal
===
'已婚'
)
{
this
.
hasSP
=
true
}
else
{
this
.
hasSP
=
false
this
.
baseInfo
.
bp_name_sp
=
''
this
.
baseInfo
.
spouse_phone
=
''
this
.
baseInfo
.
working_place_sp
=
''
this
.
baseInfo
.
address_sp
=
''
}
},
deep
:
true
,
immediate
:
true
,
},
},
created
()
{
this
.
getBpType
()
...
...
@@ -486,7 +491,34 @@ export default {
vm
.
upload_list
=
[]
// 上传图片列表
vm
.
dowload_list
=
[]
// 下载图片列表
vm
.
img_url
=
{}
vm
.
baseInfo
=
{}
vm
.
baseInfo
=
{
bp_type_n
:
''
,
academic_background_n
:
''
,
marital_status_n
:
''
,
bp_type
:
''
,
bp_class
:
vm
.
$route
.
params
.
bp_class
,
bp_name
:
''
,
province_name
:
''
,
province_id
:
''
,
city_name
:
''
,
city_id
:
''
,
id_card_no
:
null
,
id_card_date_from
:
''
,
// 身份证有效期从
id_card_date_to
:
''
,
// 身份证有效期到
cell_phone
:
window
.
localStorage
.
getItem
(
'user_phone'
),
living_address
:
''
,
address_on_resident_booklit
:
''
,
marital_status
:
''
,
academic_background
:
''
,
bp_name_sp
:
''
,
id_card_no_sp
:
''
,
// 配偶身份证号
id_card_date_from_sp
:
''
,
// 配偶身份证有效期从
id_card_date_to_sp
:
''
,
// 配偶身份证有效期到
district_id
:
''
,
district_name
:
''
,
spouse_phone
:
''
,
working_place_sp
:
''
,
address_sp
:
''
,
user_phone
:
window
.
localStorage
.
user_phone
}
vm
.
idCardFront
=
''
// 身份证正面图片
vm
.
idCardBack
=
''
// 身份证反面图片
vm
.
idCardFrontSp
=
''
// 配偶身份证正面图片
...
...
@@ -647,7 +679,8 @@ export default {
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
vm
.
baseInfo
=
res
.
info
Object
.
assign
(
vm
.
baseInfo
,
res
.
info
)
// vm.baseInfo = res.info
vm
.
from
=
true
vm
.
addRows
(
vm
.
baseInfo
.
address_on_resident_booklit
)
vm
.
addRowsLive
(
vm
.
baseInfo
.
living_address
)
...
...
@@ -973,30 +1006,30 @@ export default {
vm
.
hlsPopup
.
showLongCenter
(
'户籍地址不能为空!'
)
}
else
if
(
!
vm
.
baseInfo
.
academic_background
)
{
vm
.
hlsPopup
.
showLongCenter
(
'学历不能为空!'
)
}
else
if
(
!
vm
.
baseInfo
.
marital_status
&&
(
vm
.
baseInfo
.
bp_type
===
'TENANT'
||
vm
.
baseInfo
.
bp_typ
e
===
'GUTA'
))
{
}
else
if
(
!
vm
.
baseInfo
.
marital_status
&&
(
((
vm
.
baseInfo
.
bp_type
===
'TENANT'
||
vm
.
baseInfo
.
bp_type
===
'GUTA'
)
&&
!
vm
.
multipleRole
)
||
vm
.
multipleRole
===
'TENANT'
||
vm
.
multipleRol
e
===
'GUTA'
))
{
vm
.
hlsPopup
.
showLongCenter
(
'婚姻状况不能为空!'
)
}
else
if
(
vm
.
marital_status_n
===
'已婚'
&&
!
vm
.
baseInfo
.
bp_name_sp
)
{
}
else
if
(
vm
.
baseInfo
.
marital_status_n
===
'已婚'
&&
!
vm
.
baseInfo
.
bp_name_sp
)
{
vm
.
hlsPopup
.
showLongCenter
(
'配偶姓名不能为空!'
)
}
else
if
(
vm
.
marital_status_n
===
'已婚'
&&
!
vm
.
baseInfo
.
id_card_no_sp
)
{
}
else
if
(
vm
.
baseInfo
.
marital_status_n
===
'已婚'
&&
!
vm
.
baseInfo
.
id_card_no_sp
)
{
vm
.
hlsPopup
.
showLongCenter
(
'配偶身份证号不能为空!'
)
}
else
if
(
vm
.
marital_status_n
===
'已婚'
&&
vm
.
baseInfo
.
marital_status_n
===
'已婚'
&&
!
vm
.
baseInfo
.
id_card_date_from_sp
)
{
vm
.
hlsPopup
.
showLongCenter
(
'配偶身份证有效期从不能为空!'
)
}
else
if
(
vm
.
marital_status_n
===
'已婚'
&&
vm
.
baseInfo
.
marital_status_n
===
'已婚'
&&
!
vm
.
baseInfo
.
id_card_date_to_sp
)
{
vm
.
hlsPopup
.
showLongCenter
(
'配偶身份证有效期到不能为空!'
)
}
else
if
(
vm
.
marital_status_n
===
'已婚'
&&
!
vm
.
baseInfo
.
spouse_phone
)
{
}
else
if
(
vm
.
baseInfo
.
marital_status_n
===
'已婚'
&&
!
vm
.
baseInfo
.
spouse_phone
)
{
vm
.
hlsPopup
.
showLongCenter
(
'配偶手机号不能为空!'
)
}
else
if
(
vm
.
marital_status_n
===
'已婚'
&&
vm
.
baseInfo
.
marital_status_n
===
'已婚'
&&
!
vm
.
baseInfo
.
working_place_sp
)
{
vm
.
hlsPopup
.
showLongCenter
(
'配偶工作单位不能为空!'
)
}
else
if
(
vm
.
marital_status_n
===
'已婚'
&&
!
vm
.
baseInfo
.
address_sp
)
{
}
else
if
(
vm
.
baseInfo
.
marital_status_n
===
'已婚'
&&
!
vm
.
baseInfo
.
address_sp
)
{
vm
.
hlsPopup
.
showLongCenter
(
'配偶联系地址不能为空!'
)
}
else
if
(
!
vm
.
hlsUtil
.
phoneNumber
(
vm
.
baseInfo
.
cell_phone
))
{
vm
.
hlsPopup
.
showLongCenter
(
'手机号码有误!'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment