Commit d7aa4307 authored by linxin's avatar linxin

add

parent e875975d
Pipeline #5212 canceled with stages
......@@ -336,6 +336,10 @@ export default {
data () {
return {
list: {},
idCardFrontUpload: '',
idCardBackUpload: '',
idCardFrontSpUpload: '',
idCardBackSptSpUpload: '',
isAddNewType: false,
hasSP: false,
isPaople: false,
......@@ -525,6 +529,10 @@ export default {
vm.idCardBackSp = '' // 配偶身份证反面图片
vm.searchPeople = false
vm.searchLecens = false
vm.idCardFrontUpload = ''
vm.idCardBackUpload = ''
vm.idCardFrontSpUpload = ''
vm.idCardBackSptSpUpload = ''
vm.idCardFrontUrlFlag = false // 身份证正面图片查看标识,为false则用查询出来的,为true则用拍照出来的
vm.idCardBackUrlFlag = false // 身份证反面图片,为false则用查询出来的,为true则用拍照出来的
vm.idCardFrontSpUrlFlag = false // 配偶身份证正面图片,为false则用查询出来的,为true则用拍照出来的
......@@ -594,6 +602,10 @@ export default {
address_sp: '',
user_phone: window.localStorage.user_phone,
}
vm.idCardFrontUpload = ''
vm.idCardBackUpload = ''
vm.idCardFrontSpUpload = ''
vm.idCardBackSptSpUpload = ''
vm.idCardFront = '' // 身份证正面图片
vm.idCardBack = '' // 身份证反面图片
vm.idCardFrontSp = '' // 配偶身份证正面图片
......@@ -809,7 +821,7 @@ export default {
source_type: 'PRJ_CDD_ITEM_CHECK',
picture: '',
check_id: vm.idCardFrontCheck_id,
filePath: vm.idCardFront,
filePath: vm.idCardFrontUpload,
attachment_id: '',
user_id: 1,
fileName: '自然人身份证正面',
......@@ -828,7 +840,7 @@ export default {
source_type: 'PRJ_CDD_ITEM_CHECK',
picture: '',
check_id: vm.idCardBackCheck_id,
filePath: vm.idCardBack,
filePath: vm.idCardBackUpload,
attachment_id: '',
user_id: 1,
fileName: '自然人身份证背面',
......@@ -847,7 +859,7 @@ export default {
source_type: 'PRJ_CDD_ITEM_CHECK',
picture: '',
check_id: vm.idCardFrontSpCheck_id,
filePath: vm.idCardFrontSp,
filePath: vm.idCardFrontSpUpload,
attachment_id: '',
user_id: 1,
fileName: '配偶身份证正面',
......@@ -866,7 +878,7 @@ export default {
source_type: 'PRJ_CDD_ITEM_CHECK',
picture: '',
check_id: vm.idCardBackSpCheck_id,
filePath: vm.idCardBackSp,
filePath: vm.idCardBackSptSpUpload,
attachment_id: '',
user_id: 1,
fileName: '配偶身份证背面',
......@@ -1258,18 +1270,22 @@ export default {
type === 'front'
? ((vm.idCardFront = hlsUtil.convertImageUrl(imgdata)),
vm.idCardIdentify(imgdata, 'idCard'),
(vm.idCardFrontUpload = imgdata),
(vm.idCardFrontEditFlag = true))
: ((vm.idCardBack = hlsUtil.convertImageUrl(imgdata)),
vm.idCardBackIdentify(imgdata, 'idCard'),
(vm.idCardBackUpload = imgdata),
(vm.idCardBackEditFlag = true))
} else if (ocrType === 'idCardSp') {
// 配偶身份证识别
type === 'front'
? ((vm.idCardFrontSp = hlsUtil.convertImageUrl(imgdata)),
vm.idCardIdentify(imgdata, 'idCardSp'),
(vm.idCardFrontSpUpload = imgdata),
(vm.idCardFrontSpEditFlag = true))
: ((vm.idCardBackSp = hlsUtil.convertImageUrl(imgdata)),
vm.idCardBackIdentify(imgdata, 'idCardSp'),
(vm.idCardBackSptSpUpload = imgdata),
(vm.idCardBackSpEditFlag = true))
} else if (ocrType === 'bankCard') {
vm.bankImg = hlsUtil.convertImageUrl(imgdata)
......@@ -1298,18 +1314,22 @@ export default {
type === 'front'
? ((vm.idCardFront = hlsUtil.convertImageUrl(imgUrl[0])),
vm.idCardIdentify(imgUrl[0], 'idCard'),
(vm.idCardFrontUpload = imgdata),
(vm.idCardFrontEditFlag = true))
: ((vm.idCardBack = hlsUtil.convertImageUrl(imgUrl[0])),
vm.idCardBackIdentify(imgUrl[0], 'idCard'),
(vm.idCardBackUpload = imgdata),
(vm.idCardBackEditFlag = true))
} else if (ocrType === 'idCardSp') {
// 配偶身份证识别
type === 'front'
? ((vm.idCardFrontSp = hlsUtil.convertImageUrl(imgUrl[0])),
vm.idCardIdentify(imgUrl[0], 'idCardSp'),
(vm.idCardFrontSpUpload = imgdata),
(vm.idCardFrontSpEditFlag = true))
: ((vm.idCardBackSp = hlsUtil.convertImageUrl(imgUrl[0])),
vm.idCardBackIdentify(imgUrl[0], 'idCardSp'),
(vm.idCardBackSptSpUpload = imgdata),
(vm.idCardBackSpEditFlag = true))
} else if (ocrType === 'bankCard') {
vm.bankImg = hlsUtil.convertImageUrl(imgUrl[0])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment