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
9860fed2
Commit
9860fed2
authored
Nov 28, 2019
by
李晓兵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
''
parent
2aee491a
Pipeline
#3943
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
7 deletions
+16
-7
naturePerson.vue
src/pages/userBind/np/naturePerson.vue
+16
-7
No files found.
src/pages/userBind/np/naturePerson.vue
View file @
9860fed2
...
...
@@ -536,6 +536,10 @@ export default {
idCardBack
:
''
,
// 身份证反面图片
idCardFrontSp
:
''
,
// 配偶身份证正面图片
idCardBackSp
:
''
,
// 配偶身份证反面图片
idCardFrontUrlFlag
:
''
,
// 身份证正面图片查看标识,为false则用查询出来的,为true则用拍照出来的
idCardBackUrlFlag
:
''
,
// 身份证反面图片,为false则用查询出来的,为true则用拍照出来的
idCardFrontSpUrlFlag
:
''
,
// 配偶身份证正面图片,为false则用查询出来的,为true则用拍照出来的
idCardBackSpUrlFlag
:
''
,
// 配偶身份证反面图片,为false则用查询出来的,为true则用拍照出来的
bankImg
:
''
,
// 银行卡图片
cddItemList
:
[],
// 资料清单列表
idCardFrontCheck_id
:
''
,
// 身份证正面check_id
...
...
@@ -662,7 +666,6 @@ export default {
})
},
load_picture
(
check_id
,
index
,
cdd_item
)
{
alert
(
'load_picture'
)
let
vm
=
this
let
url
=
process
.
env
.
basePath
+
'attachment_list_query'
+
'&index'
+
index
// 附件查询
...
...
@@ -683,24 +686,27 @@ export default {
})
switch
(
cdd_item
)
{
case
'NP_ID_CARD_F'
:
// 承租人身份证正面
if
(
!
idCardFrontEdit
Flag
){
if
(
!
vm
.
idCardFrontUrl
Flag
){
vm
.
idCardFront
=
res
.
lists
[
0
].
url
}
vm
.
idCardFrontAttachmentId
=
res
.
lists
[
0
].
attachment_id
break
case
'NP_ID_CARD_B'
:
// 承租人身份证背面
alert
(
'背面 '
+
JSON
.
stringify
(
res
.
lists
))
if
(
!
idCardBackEditFlag
){
if
(
!
vm
.
idCardBackUrlFlag
){
vm
.
idCardBack
=
res
.
lists
[
0
].
url
}
vm
.
idCardBackAttachmentId
=
res
.
lists
[
0
].
attachment_id
break
case
'MATE_ID_CARD_F'
:
// 配偶身份证正面
vm
.
idCardFrontSp
=
res
.
lists
[
0
].
url
if
(
!
idCardFrontSpUrlFlag
){
vm
.
idCardFrontSp
=
res
.
lists
[
0
].
url
}
vm
.
idCardFrontSpAttachmentId
=
res
.
lists
[
0
].
attachment_id
break
case
'MATE_ID_CARD_B'
:
// 配偶身份证背面
vm
.
idCardBackSp
=
res
.
lists
[
0
].
url
if
(
!
idCardBackSpUrlFlag
){
vm
.
idCardBackSp
=
res
.
lists
[
0
].
url
}
vm
.
idCardBackSpAttachmentId
=
res
.
lists
[
0
].
attachment_id
break
default
:
...
...
@@ -722,7 +728,6 @@ export default {
}
},
loadItemList
()
{
alert
(
'loadItemList'
)
let
vm
=
this
let
bpId
=
vm
.
from
?
vm
.
$route
.
params
.
bp_id
...
...
@@ -766,6 +771,7 @@ export default {
vm
.
load_picture
(
item
.
check_id
,
index
,
item
.
cdd_item
)
})
if
(
vm
.
idCardFrontEditFlag
)
{
vm
.
idCardFrontUrlFlag
=
true
vm
.
delete_pic_to_ocr
(
vm
.
idCardFrontAttachmentId
)
// 先删除之前识别的图片
// 身份证正面图片已修改,重新上传
var
list
=
[]
...
...
@@ -784,6 +790,7 @@ export default {
vm
.
idCardFrontEditFlag
=
false
// 置为false,防止再次保存重复上传,只有重新识别才会重新上传
}
if
(
vm
.
idCardBackEditFlag
)
{
vm
.
idCardBackUrlFlag
=
true
vm
.
delete_pic_to_ocr
(
vm
.
idCardBackAttachmentId
)
// 先删除之前识别的图片
// 身份证反面图片已修改,重新上传
var
list
=
[]
...
...
@@ -802,6 +809,7 @@ export default {
vm
.
idCardBackEditFlag
=
false
// 置为false,防止再次保存重复上传,只有重新识别才会重新上传
}
if
(
vm
.
idCardFrontSpEditFlag
)
{
vm
.
idCardFrontSpUrlFlag
=
true
vm
.
delete_pic_to_ocr
(
vm
.
idCardFrontSpAttachmentId
)
// 先删除之前识别的图片
// 配偶身份证正面图片已修改,重新上传
var
list
=
[]
...
...
@@ -820,6 +828,7 @@ export default {
vm
.
idCardFrontSpEditFlag
=
false
// 置为false,防止再次保存重复上传,只有重新识别才会重新上传
}
if
(
vm
.
idCardBackSpEditFlag
)
{
vm
.
idCardBackSpUrlFlag
=
true
vm
.
delete_pic_to_ocr
(
vm
.
idCardBackSpAttachmentId
)
// 先删除之前识别的图片
// 配偶身份证背面图片已修改,重新上传
var
list
=
[]
...
...
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