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
aeebc362
Commit
aeebc362
authored
Nov 27, 2019
by
李晓兵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'附件更新'
parent
46cce622
Pipeline
#3924
canceled with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
69 additions
and
0 deletions
+69
-0
naturePerson.vue
src/pages/userBind/np/naturePerson.vue
+31
-0
enterprise.vue
src/pages/userBind/org/enterprise.vue
+38
-0
No files found.
src/pages/userBind/np/naturePerson.vue
View file @
aeebc362
...
...
@@ -542,6 +542,10 @@ export default {
idCardBackCheck_id
:
''
,
// 身份证反面check_id
idCardFrontSpCheck_id
:
''
,
// 配偶身份证正面check_id
idCardBackSpCheck_id
:
''
,
// 配偶身份证反面check_id
idCardFrontAttachmentId
:
''
,
// 身份证正面AttachmentId
idCardBackAttachmentId
:
''
,
// 身份证反面AttachmentId
idCardFrontSpAttachmentId
:
''
,
// 配偶身份证正面AttachmentId
idCardBackSpAttachmentId
:
''
,
// 配偶身份证反面AttachmentId
// idCardImgList: [], // 存身份证图片列表
idCardFrontEditFlag
:
false
,
// 身份证正面修改标识,为true则标识已修改,后续需要重新上传此照片
idCardBackEditFlag
:
false
,
// 身份证反面修改标识,为true则标识已修改,后续需要重新上传此照片
...
...
@@ -679,15 +683,19 @@ export default {
switch
(
cdd_item
)
{
case
'NP_ID_CARD_F'
:
// 承租人身份证正面
vm
.
idCardFront
=
res
.
lists
[
0
].
url
vm
.
idCardFrontAttachmentId
=
res
.
lists
[
0
].
attachment_id
break
case
'NP_ID_CARD_B'
:
// 承租人身份证背面
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
vm
.
idCardFrontSpAttachmentId
=
res
.
lists
[
0
].
attachment_id
break
case
'MATE_ID_CARD_B'
:
// 配偶身份证背面
vm
.
idCardBackSp
=
res
.
lists
[
0
].
url
vm
.
idCardBackSpAttachmentId
=
res
.
lists
[
0
].
attachment_id
break
default
:
vm
.
dowload_list
.
push
(
res
.
lists
)
...
...
@@ -751,6 +759,7 @@ export default {
vm
.
load_picture
(
item
.
check_id
,
index
,
item
.
cdd_item
)
})
if
(
vm
.
idCardFrontEditFlag
)
{
vm
.
delete_pic_to_ocr
(
vm
.
idCardFrontAttachmentId
)
// 先删除之前识别的图片
// 身份证正面图片已修改,重新上传
var
list
=
[]
let
obj
=
{
...
...
@@ -768,6 +777,7 @@ export default {
vm
.
idCardFrontEditFlag
=
false
// 置为false,防止再次保存重复上传,只有重新识别才会重新上传
}
if
(
vm
.
idCardBackEditFlag
)
{
vm
.
delete_pic_to_ocr
(
vm
.
idCardBackAttachmentId
)
// 先删除之前识别的图片
// 身份证反面图片已修改,重新上传
var
list
=
[]
let
obj
=
{
...
...
@@ -785,6 +795,7 @@ export default {
vm
.
idCardBackEditFlag
=
false
// 置为false,防止再次保存重复上传,只有重新识别才会重新上传
}
if
(
vm
.
idCardFrontSpEditFlag
)
{
vm
.
delete_pic_to_ocr
(
vm
.
idCardFrontSpAttachmentId
)
// 先删除之前识别的图片
// 配偶身份证正面图片已修改,重新上传
var
list
=
[]
let
obj
=
{
...
...
@@ -802,6 +813,7 @@ export default {
vm
.
idCardFrontSpEditFlag
=
false
// 置为false,防止再次保存重复上传,只有重新识别才会重新上传
}
if
(
vm
.
idCardBackSpEditFlag
)
{
vm
.
delete_pic_to_ocr
(
vm
.
idCardBackSpAttachmentId
)
// 先删除之前识别的图片
// 配偶身份证背面图片已修改,重新上传
var
list
=
[]
let
obj
=
{
...
...
@@ -1057,6 +1069,25 @@ export default {
}
})
},
// 身份证重新识别后,先删除之前的照片
delete_pic_to_ocr
(
attachment_id
)
{
let
vm
=
this
var
delete_list
=
[]
let
obj
=
{
attachment_id
:
attachment_id
}
delete_list
.
push
(
obj
)
let
url
=
process
.
env
.
basePath
+
'app_delete_attment'
// 附件删除
let
param
=
{
picturelist
:
delete_list
,
}
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
}
else
if
(
res
.
result
===
'E'
)
{
}
})
},
remove_dowload_list
(
attachment_id
)
{
let
vm
=
this
for
(
let
i
=
0
;
i
<
vm
.
dowload_list
.
length
;
i
++
)
{
...
...
src/pages/userBind/org/enterprise.vue
View file @
aeebc362
...
...
@@ -615,6 +615,13 @@ export default {
bankCardCheck_id
:
''
,
// 银行卡check_id
licenseCheck_id
:
''
,
// 营业执照check_id
laCheck_id
:
''
,
// 授权书check_id
idCardFrontAttachmentId
:
''
,
// 身份证正面AttachmentId
idCardBackAttachmentId
:
''
,
// 身份证背面AttachmentId
authidCardFrontAttachmentId
:
''
,
// 授权人身份证正面AttachmentId
authidCardBackAttachmentId
:
''
,
// 授权人身份证背面AttachmentId
licenseAttachmentId
:
''
,
// 营业执照AttachmentId
laAttachmentId
:
''
,
// 授权书AttachmentId
bankCardImgList
:
[],
// 存上传银行卡图片列表
idCardFrontEditFlag
:
false
,
// 身份证正面修改标识,为true则标识已修改,后续需要重新上传此照片
idCardBackEditFlag
:
false
,
// 身份证正面修改标识,为true则标识已修改,后续需要重新上传此照片
...
...
@@ -1530,21 +1537,27 @@ export default {
switch
(
cdd_item
)
{
case
'LEGAL_ID_CARD_F'
:
// 法定代表人身份证正面
vm
.
idCardFront
=
res
.
lists
[
0
].
url
vm
.
idCardFrontAttachmentId
=
res
.
lists
[
0
].
attachment_id
break
case
'LEGAL_ID_CARD_B'
:
// 法定代表人身份证背面
vm
.
idCardBack
=
res
.
lists
[
0
].
url
vm
.
idCardBackAttachmentId
=
res
.
lists
[
0
].
attachment_id
break
case
'AUTHOR_ID_CARD_F'
:
// 授权人身份证正面
vm
.
authidCardFront
=
res
.
lists
[
0
].
url
vm
.
authidCardFrontAttachmentId
=
res
.
lists
[
0
].
attachment_id
break
case
'AUTHOR_ID_CARD_B'
:
// 授权人身份证背面
vm
.
authidCardBack
=
res
.
lists
[
0
].
url
vm
.
authidCardBackAttachmentId
=
res
.
lists
[
0
].
attachment_id
break
case
'ORG_CODE'
:
vm
.
licenseImg
=
res
.
lists
[
0
].
url
vm
.
licenseAttachmentId
=
res
.
lists
[
0
].
attachment_id
break
case
'L/A'
:
vm
.
laImg
=
res
.
lists
[
0
].
url
vm
.
laAttachmentId
=
res
.
lists
[
0
].
attachment_id
break
default
:
vm
.
dowload_list
.
push
(
res
.
lists
)
...
...
@@ -1603,6 +1616,7 @@ export default {
vm
.
load_picture
(
item
.
check_id
,
index
,
item
.
cdd_item
)
})
if
(
vm
.
idCardFrontEditFlag
)
{
// 法定代表人身份证正面图片已修改,重新上传
vm
.
delete_pic_to_ocr
(
vm
.
idCardFrontAttachmentId
)
// 先删除之前识别的图片
var
list
=
[]
let
obj
=
{
'pkvalue'
:
vm
.
idCardFrontCheck_id
,
...
...
@@ -1619,6 +1633,7 @@ export default {
vm
.
idCardFrontEditFlag
=
false
// 置为false,防止再次保存重复上传,只有重新识别才会重新上传
}
if
(
vm
.
idCardBackEditFlag
)
{
// 法定代表人身份证背面图片已修改,重新上传
vm
.
delete_pic_to_ocr
(
vm
.
idCardBackAttachmentId
)
// 先删除之前识别的图片
var
list
=
[]
let
obj
=
{
'pkvalue'
:
vm
.
idCardBackCheck_id
,
...
...
@@ -1635,6 +1650,7 @@ export default {
vm
.
idCardBackEditFlag
=
false
// 置为false,防止再次保存重复上传,只有重新识别才会重新上传
}
if
(
vm
.
authidCardFrontEditFlag
)
{
// 授权人身份证正面图片已修改,重新上传
vm
.
delete_pic_to_ocr
(
vm
.
authidCardFrontAttachmentId
)
// 先删除之前识别的图片
var
list
=
[]
let
obj
=
{
'pkvalue'
:
vm
.
authidCardFrontCheck_id
,
...
...
@@ -1651,6 +1667,7 @@ export default {
vm
.
authidCardFrontEditFlag
=
false
// 置为false,防止再次保存重复上传,只有重新识别才会重新上传
}
if
(
vm
.
authidCardBackEditFlag
)
{
// 授权人身份证背面图片已修改,重新上传
vm
.
delete_pic_to_ocr
(
vm
.
authidCardBackAttachmentId
)
// 先删除之前识别的图片
var
list
=
[]
let
obj
=
{
'pkvalue'
:
vm
.
authidCardBackCheck_id
,
...
...
@@ -1667,6 +1684,7 @@ export default {
vm
.
authidCardBackEditFlag
=
false
// 置为false,防止再次保存重复上传,只有重新识别才会重新上传
}
if
(
vm
.
licenseEditFlag
)
{
// 营业执照图片已修改,重新上传
vm
.
delete_pic_to_ocr
(
vm
.
licenseAttachmentId
)
// 先删除之前识别的图片
var
list
=
[]
let
obj
=
{
'pkvalue'
:
vm
.
licenseCheck_id
,
...
...
@@ -1683,6 +1701,7 @@ export default {
vm
.
licenseEditFlag
=
false
// 置为false,防止再次保存重复上传,只有重新识别才会重新上传
}
if
(
vm
.
LaEditFlag
)
{
// 授权书图片已修改,重新上传
vm
.
delete_pic_to_ocr
(
vm
.
laAttachmentId
)
// 先删除之前识别的图片
var
list
=
[]
let
obj
=
{
'pkvalue'
:
vm
.
laCheck_id
,
...
...
@@ -1748,6 +1767,25 @@ export default {
}
})
},
// 身份证重新识别后,先删除之前的照片
delete_pic_to_ocr
(
attachment_id
)
{
let
vm
=
this
var
delete_list
=
[]
let
obj
=
{
attachment_id
:
attachment_id
}
delete_list
.
push
(
obj
)
let
url
=
process
.
env
.
basePath
+
'app_delete_attment'
// 附件删除
let
param
=
{
picturelist
:
delete_list
,
}
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
}
else
if
(
res
.
result
===
'E'
)
{
}
})
},
remove_dowload_list
(
attachment_id
)
{
let
vm
=
this
for
(
let
i
=
0
;
i
<
vm
.
dowload_list
.
length
;
i
++
)
{
...
...
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