Commit d7aa4307 authored by linxin's avatar linxin

add

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