Commit d34ba129 authored by linxin's avatar linxin

add

parent 23aaf9e1
Pipeline #5226 canceled with stages
......@@ -391,7 +391,7 @@ export default {
}
let success = function (imgdata) {
obj.filePath = imgdata
vm.confirmContractSign(hlsUtil.convertImageUrl(imgdata))
vm.confirmContractSign(imgdata)
vm.faceListUpload.push(obj)
}
let error = function () {
......
......@@ -273,6 +273,9 @@ export default {
house_id: '',
car_id: '',
estate_id: '',
houseImgUpload: '',
carImgUpload: '',
estateImgUpload: '',
houseFlag: false, // 房产证查看标识,为false则用查询出来的,为true则用拍照出来的
carFlag: false, // 行驶证查看标识,为false则用查询出来的,为true则用拍照出来的
estateFlag: false, // 不动产权证查看标识,为false则用查询出来的,为true则用拍照出来的
......@@ -383,6 +386,9 @@ export default {
success: '',
bp_id: window.localStorage.getItem('bp_id'),
}
vm.houseImgUpload = ''
vm.carImgUpload = ''
vm.estateImgUpload = ''
vm.houseImg = ''
vm.carImg = ''
vm.estateImg = ''
......@@ -444,6 +450,9 @@ export default {
success: '',
bp_id: window.localStorage.getItem('bp_id'),
}
vm.houseImgUpload = ''
vm.carImgUpload = ''
vm.estateImgUpload = ''
vm.houseImg = ''
vm.carImg = ''
vm.estateImg = ''
......@@ -623,7 +632,7 @@ export default {
source_type: 'PRJ_CDD_ITEM_CHECK',
picture: '',
check_id: vm.house_id,
filePath: vm.houseImg,
filePath: vm.houseImgUpload,
attachment_id: '',
user_id: 1,
fileName: '房产证',
......@@ -641,7 +650,7 @@ export default {
source_type: 'PRJ_CDD_ITEM_CHECK',
picture: '',
check_id: vm.estate_id,
filePath: vm.estateImg,
filePath: vm.estateImgUpload,
attachment_id: '',
user_id: 1,
fileName: '不动产权证',
......@@ -659,7 +668,7 @@ export default {
source_type: 'PRJ_CDD_ITEM_CHECK',
picture: '',
check_id: vm.car_id,
filePath: vm.carImg,
filePath: vm.carImgUpload,
attachment_id: '',
user_id: 1,
fileName: '行驶证',
......@@ -698,14 +707,17 @@ export default {
if (ocrType === 'HOUSE_CARD') {
vm.isUploadHouse = true
vm.houseImg = hlsUtil.convertImageUrl(imgdata)
vm.houseImgUpload = imgdata
vm.houseIdentify(imgdata)
} else if (ocrType === 'CAR_CARD') {
vm.isUploadCar = true
vm.carImg = hlsUtil.convertImageUrl(imgdata)
vm.carImgUpload = imgdata
vm.carIdentify(imgdata)
} else if (ocrType === 'REAL_EST_CERTIFICATE') {
vm.isUploadEstate = true
vm.estateImg = hlsUtil.convertImageUrl(imgdata)
vm.estateImgUpload = imgdata
vm.estateIdentify(imgdata)
}
}
......@@ -790,15 +802,18 @@ export default {
} else {
if (ocrType === 'HOUSE_CARD') {
vm.houseImg = hlsUtil.convertImageUrl(imgUrl[0])
vm.houseImgUpload = imgUrl[0]
vm.isUploadHouse = true
vm.houseIdentify(imgUrl[0])
} else if (ocrType === 'CAR_CARD') {
vm.carImg = hlsUtil.convertImageUrl(imgUrl[0])
vm.carImgUpload = imgUrl[0]
vm.isUploadCar = true
vm.carIdentify(imgUrl[0])
} else if (ocrType === 'REAL_EST_CERTIFICATE') {
vm.isUploadEstate = true
vm.estateImg = hlsUtil.convertImageUrl(imgUrl[0])
vm.estateImgUpload = imgUrl[0]
vm.estateIdentify(imgUrl[0])
}
}
......
......@@ -443,11 +443,17 @@ export default {
bp_id: '',
flag: true, // 显示未授权框
bpClass: '',
laImgUpload: '',
from: false,
inputNum: false, // 填写业务经办
isApproved: false, // 审批通过为true
isAddNewType: false,
hasPeople: false, // 是否有第二角色
idCardFrontUpload: '',
idCardBackUpload: '',
authidCardFrontUpload: '',
authidCardBackUpload: '',
licenseImgUpload: '',
isAGENT: this.$route.params.isAGENT, // 是否为经销商
isMultiRole: this.$route.params.isMultiRole, // 担保人/承租人为true
img_url: {},
......@@ -603,6 +609,8 @@ export default {
vm.isAddNewType = false
if (from.fullPath === '/tab/my-info') { /* || from.fullPath === '/margin-first-pay' */
vm.bp_type_flag = false
vm.licenseImgUpload = ''
vm.laImgUpload = ''
vm.legal_personMsg = {
id_card_no: null,
bp_legal_name: '',
......@@ -623,6 +631,10 @@ export default {
vm.multiBpTypeSelectList = []// 选择的角色
vm.multiRoleList = []// 查询的角色
vm.bp_id = vm.$route.params.bp_id
vm.idCardFrontUpload = ''
vm.idCardBackUpload = ''
vm.authidCardFrontUpload = ''
vm.authidCardBackUpload = ''
vm.idCardFront = '' // 身份证正面图片
vm.idCardBack = '' // 身份证反面图片
vm.authidCardFront = '' // 授权人身份证正面图片
......@@ -655,6 +667,8 @@ export default {
vm.hasMultiRole = false
vm.isApproved = false
vm.bp_type_flag = false
vm.licenseImgUpload = ''
vm.laImgUpload = ''
vm.multiBpType = {
bp_type_n: '',
bp_type: '',
......@@ -667,6 +681,10 @@ export default {
id_card_date_from: '', // 法定代表人身份证有效期从
id_card_date_to: '', // 法定代表人身份证有效期到
}
vm.idCardFrontUpload = ''
vm.idCardBackUpload = ''
vm.authidCardFrontUpload = ''
vm.authidCardBackUpload = ''
vm.baseInfo = {
agent_username: '',
district_id: '',
......@@ -1538,12 +1556,13 @@ export default {
hlsPopup.showLongCenter('请拍照')
} else {
if (ocrType === 'idCard') {
type === 'front' ? (vm.idCardFront = hlsUtil.convertImageUrl(imgdata), vm.idCardIdentify(imgdata, 'idCard'), vm.idCardFrontEditFlag = true) : (vm.idCardBack = hlsUtil.convertImageUrl(imgdata), vm.idCardBackIdentify(imgdata, 'idCard'), vm.idCardBackEditFlag = true)
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 === 'authidCard') {
type === 'front' ? (vm.authidCardFront = hlsUtil.convertImageUrl(imgdata), vm.idCardIdentify(imgdata, 'authidCard'), vm.authidCardFrontEditFlag = true) : (vm.authidCardBack = hlsUtil.convertImageUrl(imgdata), vm.idCardBackIdentify(imgdata, 'authidCard'), vm.authidCardBackEditFlag = true)
type === 'front' ? (vm.authidCardFront = hlsUtil.convertImageUrl(imgdata), vm.idCardIdentify(imgdata, 'authidCard'), vm.authidCardFrontUpload = imgdata, vm.authidCardFrontEditFlag = true) : (vm.authidCardBack = hlsUtil.convertImageUrl(imgdata), vm.idCardBackIdentify(imgdata, 'authidCard'), vm.authidCardBackUpload = imgdata, vm.authidCardBackEditFlag = true)
} else if (ocrType === 'license') {
vm.licenseEditFlag = true // 营业执照图片状态已修改
vm.licenseImg = hlsUtil.convertImageUrl(imgdata)
vm.licenseImgUpload = imgdata
vm.licenseIdentify(imgdata)
}
}
......@@ -1566,12 +1585,13 @@ export default {
hlsPopup.showLongCenter('请选择一张图片')
} else {
if (ocrType === 'idCard') {
type === 'front' ? (vm.idCardFront = hlsUtil.convertImageUrl(imgUrl[0]), vm.idCardIdentify(imgUrl[0], 'idCard'), vm.idCardFrontEditFlag = true) : (vm.idCardBack = hlsUtil.convertImageUrl(imgUrl[0]), vm.idCardBackIdentify(imgUrl[0], 'idCard'), vm.idCardBackEditFlag = true)
type === 'front' ? (vm.idCardFront = hlsUtil.convertImageUrl(imgUrl[0]), vm.idCardIdentify(imgUrl[0], 'idCard'), vm.idCardFrontUpload = imgUrl[0], vm.idCardFrontEditFlag = true) : (vm.idCardBack = hlsUtil.convertImageUrl(imgUrl[0]), vm.idCardBackIdentify(imgUrl[0], 'idCard'), vm.idCardBackUpload = imgUrl[0], vm.idCardBackEditFlag = true)
} else if (ocrType === 'authidCard') {
type === 'front' ? (vm.authidCardFront = hlsUtil.convertImageUrl(imgUrl[0]), vm.idCardIdentify(imgUrl[0], 'authidCard'), vm.authidCardFrontEditFlag = true) : (vm.authidCardBack = hlsUtil.convertImageUrl(imgUrl[0]), vm.idCardBackIdentify(imgUrl[0], 'authidCard'), vm.authidCardBackEditFlag = true)
type === 'front' ? (vm.authidCardFront = hlsUtil.convertImageUrl(imgUrl[0]), vm.idCardIdentify(imgUrl[0], 'authidCard'), vm.authidCardFrontUpload = imgUrl[0], vm.authidCardFrontEditFlag = true) : (vm.authidCardBack = hlsUtil.convertImageUrl(imgUrl[0]), vm.idCardBackIdentify(imgUrl[0], 'authidCard'), vm.authidCardBackUpload = imgUrl[0], vm.authidCardBackEditFlag = true)
} else if (ocrType === 'license') {
vm.licenseEditFlag = true // 营业执照图片状态已修改
vm.licenseImg = hlsUtil.convertImageUrl(imgUrl[0])
vm.licenseImgUpload = imgUrl[0]
vm.licenseIdentify(imgUrl[0])
}
}
......@@ -1755,7 +1775,6 @@ 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)// 先删除之前识别的图片
......@@ -1765,7 +1784,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': '法人身份证正面',
......@@ -1783,7 +1802,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': '法人身份证背面',
......@@ -1801,7 +1820,7 @@ export default {
'source_type': 'PRJ_CDD_ITEM_CHECK',
'picture': '',
'check_id': vm.authidCardFrontCheck_id,
'filePath': vm.authidCardFront,
'filePath': vm.authidCardFrontUpload,
'attachment_id': '',
'user_id': 1,
'fileName': '授权人身份证正面',
......@@ -1819,7 +1838,7 @@ export default {
'source_type': 'PRJ_CDD_ITEM_CHECK',
'picture': '',
'check_id': vm.authidCardBackCheck_id,
'filePath': vm.authidCardBack,
'filePath': vm.authidCardBackUpload,
'attachment_id': '',
'user_id': 1,
'fileName': '授权人身份证背面',
......@@ -1837,7 +1856,7 @@ export default {
'source_type': 'PRJ_CDD_ITEM_CHECK',
'picture': '',
'check_id': vm.licenseCheck_id,
'filePath': vm.licenseImg,
'filePath': vm.licenseImgUpload,
'attachment_id': '',
'user_id': 1,
'fileName': '企业营业执照',
......@@ -1855,7 +1874,7 @@ export default {
'source_type': 'PRJ_CDD_ITEM_CHECK',
'picture': '',
'check_id': vm.laCheck_id,
'filePath': vm.laImg,
'filePath': vm.laImgUpload,
'attachment_id': '',
'user_id': 1,
'fileName': '授权证书',
......@@ -1909,6 +1928,7 @@ export default {
let success = function (imgdata) {
vm.LaEditFlag = true
vm.laImg = hlsUtil.convertImageUrl(imgdata)
vm.laImgUpload = imgdata
}
let error = function () {
hlsPopup.showLongCenter('请拍照')
......@@ -1926,6 +1946,7 @@ export default {
} else {
vm.LaEditFlag = true
vm.laImg = hlsUtil.convertImageUrl(imgUrl[0])
vm.laImgUpload = imgUrl[0]
}
}
let error = function () {
......
......@@ -354,6 +354,9 @@ export default {
propertyFlag: false, // 不动产证查看标识,为false则用查询出来的,为true则用拍照出来的
carImg: '',
houseImg: '',
houseImgUpload: '',
carImgUpload: '',
estateImgUpload: '',
propertyImg: '', // 不动产识别图片
from: false,
bp_id: '',
......@@ -471,6 +474,9 @@ export default {
words_result_num: '',
success: '',
}
vm.houseImgUpload = ''
vm.carImgUpload = ''
vm.estateImgUpload = ''
vm.upload_list = [] // 上传图片列表
vm.dowload_list = []
vm.cddItemList = []
......@@ -534,6 +540,9 @@ export default {
words_result_num: '',
success: '',
}
vm.houseImgUpload = ''
vm.carImgUpload = ''
vm.estateImgUpload = ''
vm.upload_list = [] // 上传图片列表
vm.dowload_list = []
vm.cddItemList = []
......@@ -741,7 +750,7 @@ export default {
source_type: 'PRJ_CDD_ITEM_CHECK',
picture: '',
check_id: vm.house_id,
filePath: vm.houseImg,
filePath: vm.houseImgUpload,
attachment_id: '',
user_id: 1,
fileName: '房产证',
......@@ -759,7 +768,7 @@ export default {
source_type: 'PRJ_CDD_ITEM_CHECK',
picture: '',
check_id: vm.car_id,
filePath: vm.carImg,
filePath: vm.carImgUpload,
attachment_id: '',
user_id: 1,
fileName: '行驶证',
......@@ -777,7 +786,7 @@ export default {
source_type: 'PRJ_CDD_ITEM_CHECK',
picture: '',
check_id: vm.property_id,
filePath: vm.propertyImg,
filePath: vm.estateImgUpload,
attachment_id: '',
user_id: 1,
fileName: '不动产权证',
......@@ -818,14 +827,17 @@ export default {
if (ocrType === 'HOUSE_CARD') {
vm.isUploadHouse = true
vm.houseImg = hlsUtil.convertImageUrl(imgdata)
vm.houseImgUpload = imgdata
vm.houseCardIdentify(imgdata)
} else if (ocrType === 'CAR_CARD') {
vm.isUploadCar = true
vm.carImg = hlsUtil.convertImageUrl(imgdata)
vm.carImgUpload = imgdata
vm.carCardIdentify(imgdata)
} else if (ocrType === 'REAL_EST_CERTIFICATE') {
vm.isUploadProperty = true
vm.propertyImg = hlsUtil.convertImageUrl(imgdata)
vm.estateImgUpload = imgdata
vm.propertyIdentify(imgdata)
}
}
......@@ -849,15 +861,18 @@ export default {
} else {
if (ocrType === 'HOUSE_CARD') {
vm.houseImg = hlsUtil.convertImageUrl(imgUrl[0])
vm.houseImgUpload = imgUrl[0]
vm.isUploadHouse = true
vm.houseCardIdentify(imgUrl[0])
} else if (ocrType === 'CAR_CARD') {
vm.carImg = hlsUtil.convertImageUrl(imgUrl[0])
vm.carImgUpload = imgUrl[0]
vm.isUploadCar = true
vm.carCardIdentify(imgUrl[0])
} else if (ocrType === 'REAL_EST_CERTIFICATE') {
vm.isUploadProperty = true
vm.propertyImg = hlsUtil.convertImageUrl(imgUrl[0])
vm.estateImgUpload = imgUrl[0]
vm.propertyIdentify(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