Commit 4775b06a authored by jiacheng.mao's avatar jiacheng.mao

企业用户绑定无法保存附件问题调整

身份证识别【长期】问题调整
parent d60da710
......@@ -2,7 +2,7 @@
module.exports = {
NODE_ENV: '"production"',
CONFIG_ENV: JSON.stringify(process.env.CONFIG_ENV),
debug: false,
debug: true,
isMobilePlatform: true,
loginPath: '"http://180.104.121.66:8088/oauth/token?client_id=client2&client_secret=secret&grant_type=password&username=appadmin&password=" ',
basePath: '"http://180.104.121.66:8088/r/api/interface?sysName=XCMG_UAT&apiName="',
......
......@@ -11,5 +11,5 @@ module.exports = {
ocrPath:'"http://www.xcmgfs.com:8087/r/api"',
fileUploadSvcPath:'"http://www.xcmgfs.com:8087/r/api/app/fileUploadSvc?sysName=XCMG_PROD&apiName="',
appId: '"com.xcmg.app"',
currentVersion: '"0.1.6"'
currentVersion: '"0.1.8"'
}
......@@ -2,7 +2,7 @@
module.exports = {
NODE_ENV: '"production"',
CONFIG_ENV: JSON.stringify(process.env.CONFIG_ENV),
debug: false,
debug: true,
isMobilePlatform: true,
loginPath: '"http://180.104.121.66:8088/oauth/token?client_id=client2&client_secret=secret&grant_type=password&username=appadmin&password=" ',
basePath: '"http://180.104.121.66:8088/r/api/interface?sysName=XCMG_UAT&apiName="',
......@@ -11,5 +11,5 @@ module.exports = {
ocrPath:'"http://180.104.121.66:8088/r/api"',
fileUploadSvcPath:'"http://180.104.121.66:8088/r/api/app/fileUploadSvc?sysName=XCMG_UAT&apiName="',
appId: '"com.xcmg.app.dev"',
currentVersion: '"2.2.6"'
currentVersion: '"2.3.2"'
}
......@@ -1267,11 +1267,29 @@ export default {
let result = res.result.words_result
if (cardType === 'idCard') {
vm.baseInfo.id_card_date_from = result.签发日期.words
if(result.失效日期.words.indexOf('长期') != -1){
hlsPopup.showPopup({
title: '提示',
content: `检测到您的身份证为长期有效,系统自动置为【9999-12-31】`,
onConfirm: () => {},
})
vm.baseInfo.id_card_date_to = '9999-12-31'
}else{
vm.baseInfo.id_card_date_to = result.失效日期.words
}
} else {
vm.baseInfo.id_card_date_from_sp = result.签发日期.words
if(result.失效日期.words.indexOf('长期') != -1){
hlsPopup.showPopup({
title: '提示',
content: `检测到您的身份证为长期有效,系统自动置为【9999-12-31】`,
onConfirm: () => {},
})
vm.baseInfo.id_card_date_to_sp = '9999-12-31'
}else{
vm.baseInfo.id_card_date_to_sp = result.失效日期.words
}
}
})
},
// 银行卡识别
......
......@@ -1551,12 +1551,30 @@ export default {
if (cardType === 'idCard') { // 法定代表人
// 未授权 身份证有效期从,身份证有效期到
vm.legal_personMsg.id_card_date_from = result.签发日期.words
if(result.失效日期.words.indexOf('长期') != -1){
hlsPopup.showPopup({
title: '提示',
content: `检测到您的身份证为长期有效,系统自动置为【9999-12-31】`,
onConfirm: () => {},
})
vm.legal_personMsg.id_card_date_to = '9999-12-31'
}else{
vm.legal_personMsg.id_card_date_to = result.失效日期.words
}
} else {
// 已授权 身份证有效期从,身份证有效期到
vm.authMsg.auth_id_card_date_from = result.签发日期.words
if(result.失效日期.words.indexOf('长期') != -1){
hlsPopup.showPopup({
title: '提示',
content: `检测到您的身份证为长期有效,系统自动置为【9999-12-31】`,
onConfirm: () => {},
})
vm.authMsg.auth_id_card_date_to = '9999-12-31'
}else{
vm.authMsg.auth_id_card_date_to = result.失效日期.words
}
}
})
},
// 银行卡识别
......
......@@ -1372,11 +1372,29 @@ export default {
let result = res.result.words_result
if (cardType === 'idCard') {
vm.baseInfo.id_card_date_from = vm.timeFormat(result.签发日期.words)
if(result.失效日期.words.indexOf('长期') != -1){
hlsPopup.showPopup({
title: '提示',
content: `检测到您的身份证为长期有效,系统自动置为【9999-12-31】`,
onConfirm: () => {},
})
vm.baseInfo.id_card_date_to = '9999-12-31'
}else{
vm.baseInfo.id_card_date_to = vm.timeFormat(result.失效日期.words)
}
} else {
vm.baseInfo.id_card_date_from_sp = vm.timeFormat(result.签发日期.words)
if(result.失效日期.words.indexOf('长期') != -1){
hlsPopup.showPopup({
title: '提示',
content: `检测到您的身份证为长期有效,系统自动置为【9999-12-31】`,
onConfirm: () => {},
})
vm.baseInfo.id_card_date_to_sp = '9999-12-31'
}else{
vm.baseInfo.id_card_date_to_sp = vm.timeFormat(result.失效日期.words)
}
}
})
},
// 银行卡识别
......
......@@ -1281,22 +1281,78 @@ export default {
}
vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
// vm.hlsPopup.showSuccess('保存成功,请去维护附件信息')
vm.bp_id = res.bp_id
window.localStorage.setItem('bp_type', vm.baseInfo.bp_type)
window.localStorage.setItem('bp_id', res.bp_id)
vm.bindCheck()
vm.saveAttatchment()
// 查询资料清单
// vm.loadItemList(flag)
vm.loadCheckIdAndSaveAtt(res.bp_id)
} else {
vm.hlsPopup.showLongCenter(res.message)
}
})
}
},
loadCheckIdAndSaveAtt(bp_id){
console.log('获取checkId并保存附件')
let vm = this
let type;
if (vm.baseInfo.auth_flag === 'Y') {
type = 'HLS_ORG_AUTH';
} else if (vm.baseInfo.auth_flag === 'N') {
type = 'HLS_ORG_NAUTH';
}
let bpId = bp_id
let url = process.env.basePath + 'prj_cdd_check_list'
let param = {
master: {
'document_id': bpId,
'document_table': 'HLS_BP_MASTER',
'tab_group': type,
},
}
vm.$post(url, param).then(function (res) {
if (res.result === 'S') {
var listTemp = [...res.lists]
listTemp.forEach(item => {
console.log('check_id====>' + item.check_id)
switch (item.cdd_item) {
case 'LEGAL_ID_CARD_F': // 法定代表人身份证正面
vm.idCardFrontCheck_id = item.check_id
break
case 'LEGAL_ID_CARD_B': // 法定代表人身份证背面
vm.idCardBackCheck_id = item.check_id
break
case 'AUTHOR_ID_CARD_F': // 授权人身份证正面
vm.authidCardFrontCheck_id = item.check_id
break
case 'AUTHOR_ID_CARD_B': // 授权人身份证背面
vm.authidCardBackCheck_id = item.check_id
break
case 'ORG_CODE':
vm.licenseCheck_id = item.check_id
break
case 'BANK_CARD':
break
case 'L/A':
vm.laCheck_id = item.check_id
break
default:
// vm.cddItemList.push(item)
}
})
}
}).then(function (res){
console.log('保存附件开始')
vm.saveAttatchment()//保存附件
console.log('保存附件结束')
}).then(function (res){
console.log('跳转页面开始')
vm.bindCheck()//校验+跳转
console.log('跳转页面结束')
})
},
saveAttatchment () {
let vm = this
if (vm.idCardFrontEditFlag) { // 法定代表人身份证正面图片已修改,重新上传
......@@ -1806,12 +1862,30 @@ export default {
if (cardType === 'idCard') { // 法定代表人
// 未授权 身份证有效期从,身份证有效期到
vm.legal_personMsg.id_card_date_from = vm.timeFormat(result.签发日期.words)
if(result.失效日期.words.indexOf('长期') != -1){
hlsPopup.showPopup({
title: '提示',
content: `检测到您的身份证为长期有效,系统自动置为【9999-12-31】`,
onConfirm: () => {},
})
vm.legal_personMsg.id_card_date_to = '9999-12-31'
}else{
vm.legal_personMsg.id_card_date_to = vm.timeFormat(result.失效日期.words)
}
} else {
// 已授权 身份证有效期从,身份证有效期到
vm.authMsg.auth_id_card_date_from = vm.timeFormat(result.签发日期.words)
if(result.失效日期.words.indexOf('长期') != -1){
hlsPopup.showPopup({
title: '提示',
content: `检测到您的身份证为长期有效,系统自动置为【9999-12-31】`,
onConfirm: () => {},
})
vm.authMsg.auth_id_card_date_to = '9999-12-31'
}else{
vm.authMsg.auth_id_card_date_to = vm.timeFormat(result.失效日期.words)
}
}
})
},
// 营业执照识别
......@@ -2158,6 +2232,7 @@ export default {
}
if (!list[i].attachment_id) {
attLength++
console.log(list[i])
hlsUtil.fileUploadSvc(list[i], uploadSuccess)
}
}
......
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