Commit 1d84d157 authored by 李晓兵's avatar 李晓兵

'test'

parent 70991d5a
...@@ -662,6 +662,7 @@ export default { ...@@ -662,6 +662,7 @@ export default {
}) })
}, },
load_picture (check_id, index, cdd_item) { load_picture (check_id, index, cdd_item) {
alert('load_picture')
let vm = this let vm = this
let url = let url =
process.env.basePath + 'attachment_list_query' + '&index' + index // 附件查询 process.env.basePath + 'attachment_list_query' + '&index' + index // 附件查询
...@@ -686,7 +687,7 @@ export default { ...@@ -686,7 +687,7 @@ export default {
vm.idCardFrontAttachmentId = res.lists[0].attachment_id vm.idCardFrontAttachmentId = res.lists[0].attachment_id
break break
case 'NP_ID_CARD_B': // 承租人身份证背面 case 'NP_ID_CARD_B': // 承租人身份证背面
alert('背面 '+res.lists[0].url) alert('背面 ' + JSON.stringify(res.lists))
vm.idCardBack = res.lists[0].url vm.idCardBack = res.lists[0].url
vm.idCardBackAttachmentId = res.lists[0].attachment_id vm.idCardBackAttachmentId = res.lists[0].attachment_id
break break
...@@ -717,6 +718,7 @@ export default { ...@@ -717,6 +718,7 @@ export default {
} }
}, },
loadItemList () { loadItemList () {
alert('loadItemList')
let vm = this let vm = this
let bpId = vm.from let bpId = vm.from
? vm.$route.params.bp_id ? vm.$route.params.bp_id
...@@ -755,10 +757,10 @@ export default { ...@@ -755,10 +757,10 @@ export default {
vm.cddItemList.push(item) vm.cddItemList.push(item)
} }
}) })
/* // 查询图片 // 查询图片
listTemp.forEach((item, index) => { listTemp.forEach((item, index) => {
vm.load_picture(item.check_id, index, item.cdd_item) vm.load_picture(item.check_id, index, item.cdd_item)
})*/ })
if (vm.idCardFrontEditFlag) { if (vm.idCardFrontEditFlag) {
vm.delete_pic_to_ocr(vm.idCardFrontAttachmentId)// 先删除之前识别的图片 vm.delete_pic_to_ocr(vm.idCardFrontAttachmentId)// 先删除之前识别的图片
// 身份证正面图片已修改,重新上传 // 身份证正面图片已修改,重新上传
...@@ -831,10 +833,6 @@ export default { ...@@ -831,10 +833,6 @@ export default {
vm.save_picture(list) vm.save_picture(list)
vm.idCardBackSpEditFlag = false // 置为false,防止再次保存重复上传,只有重新识别才会重新上传 vm.idCardBackSpEditFlag = false // 置为false,防止再次保存重复上传,只有重新识别才会重新上传
} }
// 查询图片
listTemp.forEach((item, index) => {
vm.load_picture(item.check_id, index, item.cdd_item)
})
} }
}) })
}, },
......
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