Commit ad421757 authored by 李晓兵's avatar 李晓兵

'face'

parent 4f42e08f
...@@ -399,10 +399,9 @@ export default { ...@@ -399,10 +399,9 @@ export default {
let vm = this let vm = this
vm.faceListUpload = [] vm.faceListUpload = []
let obj = { let obj = {
'pkvalue': 483, 'pkvalue': vm.confirm_id,
'source_type': 'PRJ_PROJECT_BP_CONFIRM', 'source_type': 'PRJ_PROJECT_BP_CONFIRM',
'picture': '', 'picture': '',
'check_id': 483,
'filePath': '', 'filePath': '',
'attachment_id': '', 'attachment_id': '',
'user_id': 1, 'user_id': 1,
...@@ -413,8 +412,8 @@ export default { ...@@ -413,8 +412,8 @@ export default {
cameraDirection: 1, cameraDirection: 1,
} }
let success = function (imgdata) { let success = function (imgdata) {
//obj.filePath = imgdata obj.filePath = imgdata
obj.filePath = 'http://hlsapp.hand-china.com/file/XCMG/2.jpg' //obj.filePath = 'http://hlsapp.hand-china.com/file/XCMG/2.jpg'
vm.confirmContractSign(imgdata,status) vm.confirmContractSign(imgdata,status)
vm.faceListUpload.push(obj) vm.faceListUpload.push(obj)
} }
...@@ -426,17 +425,14 @@ export default { ...@@ -426,17 +425,14 @@ export default {
// 执行同意的逻辑(查询对应的身份证正面图片->人脸识别->确认签约) // 执行同意的逻辑(查询对应的身份证正面图片->人脸识别->确认签约)
async confirmContractSign (faceImg,status) { async confirmContractSign (faceImg,status) {
let idCardImgUrl = await this.idCardImgUrlGet() let idCardImgUrl = await this.idCardImgUrlGet()
alert('idCardImgUrl' + idCardImgUrl)
this.faceIdentify(faceImg, idCardImgUrl,status) this.faceIdentify(faceImg, idCardImgUrl,status)
}, },
// 获取身份证照片 // 获取身份证照片
async idCardImgUrlGet () { async idCardImgUrlGet () {
// let idCardUrl = 'http://180.104.121.66:8088/r/api/app/fileViewSvc?sysName=XCMG_DEV&apiName=file_view&attachment_id=87930&access_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsiYXBpLXJlc291cmNlIl0sInJvbGVJZHMiOlsxMDAwMSwxMDAwMl0sInVzZXJfbmFtZSI6ImFkbWluIiwic2NvcGUiOlsicmVhZCIsIndyaXRlIiwidHJ1c3QiXSwiZXhwIjoxNTc0MjQxOTYwLCJsb2NhbGUiOiJ6aF9DTiIsInVzZXJJZCI6MTAwMDEsImF1dGhvcml0aWVzIjpbIlJPTEVfVVNFUiIsIkVNUExPWUVFIiwiQURNSU4iXSwianRpIjoiYjllZDI2ODYtOGYwYy00ZGVmLWI5MzItMzRjNDA3MWFiYjMxIiwiY2xpZW50X2lkIjoiY2xpZW50MiIsImVtcGxveWVlQ29kZSI6IkFETUlOIn0.auac7h0v7qlSmf8KWhHj1TCGFr37RXYqz0qu3BjSo9s'
// return idCardUrl
let vm = this let vm = this
let url = $config.basePath + 'prj_id_card_query' let url = $config.basePath + 'prj_id_card_query'
let param = { let param = {
confirm_id: 483, confirm_id: vm.confirm_id,
} }
hlsPopup.showLoading('请稍候') hlsPopup.showLoading('请稍候')
let res = await vm.$post(url, param) let res = await vm.$post(url, param)
...@@ -466,7 +462,6 @@ export default { ...@@ -466,7 +462,6 @@ export default {
title: '提示', title: '提示',
content: `识别分数为${identifyScore}`, content: `识别分数为${identifyScore}`,
onConfirm: () => { onConfirm: () => {
alert(`识别分数为${identifyScore}`)
vm.doConfirm(status) vm.doConfirm(status)
}, },
}) })
...@@ -476,8 +471,7 @@ export default { ...@@ -476,8 +471,7 @@ export default {
// 确认签约逻辑 // 确认签约逻辑
doConfirm (status) { doConfirm (status) {
let vm = this let vm = this
vm.save_picture(vm.faceListUpload) let url = process.env.basePath + 'do_confrim_bp'
/*let url = process.env.basePath + 'do_confrim_bp'
let param = { let param = {
'master': { 'master': {
confirm_id: vm.confirm_id, confirm_id: vm.confirm_id,
...@@ -489,6 +483,7 @@ export default { ...@@ -489,6 +483,7 @@ export default {
vm.hlsHttp.post(url, param).then(function (res) { vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
if (res.result === 'S') { if (res.result === 'S') {
vm.save_picture(vm.faceListUpload)
vm.hlsPopup.showSuccess('审批成功') vm.hlsPopup.showSuccess('审批成功')
vm.$router.push({ vm.$router.push({
name: 'ContractSigning', name: 'ContractSigning',
...@@ -496,7 +491,7 @@ export default { ...@@ -496,7 +491,7 @@ export default {
} else { } else {
vm.hlsPopup.showSuccess(res.message) vm.hlsPopup.showSuccess(res.message)
} }
})*/ })
}, },
// 图片保存 // 图片保存
save_picture (list) { save_picture (list) {
......
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