Commit 15b03870 authored by 李晓兵's avatar 李晓兵

'fujian'

parent 8107611c
...@@ -451,15 +451,34 @@ export default { ...@@ -451,15 +451,34 @@ export default {
vm.$post(url, param).then(function (res) { vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
if (res.result === 'S') { if (res.result === 'S') {
vm.$router.push({ /*vm.$router.push({
name: 'NPBankInfo', name: 'NPBankInfo',
}) })*/
vm.attachmentCheck()
} else { } else {
hlsPopup.showLongCenter(res.message) hlsPopup.showLongCenter(res.message)
} }
}) })
} }
}, },
attachmentCheck(){
let vm = this
let url = process.env.basePath + 'bp_attachment_check'
let param = {
bp_id: window.localStorage.getItem('bp_id'),
}
vm.hlsPopup.showLoading('正在校验数据')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.$router.push({
name: 'NPBankInfo',
})
} else {
hlsPopup.showError(res.message)
}
})
},
getHouseInfo () { getHouseInfo () {
let vm = this let vm = this
let url = process.env.basePath + 'bp_house_info_query' let url = process.env.basePath + 'bp_house_info_query'
......
...@@ -304,32 +304,6 @@ export default { ...@@ -304,32 +304,6 @@ export default {
} }
}, },
}) })
// this.hlsPopup.showConfirm({
// title: '提示',
// content: '您确认提交吗?',
// onConfirm: data => {
// if (data) {
// let url = $config.basePath + 'bp_bind_submit'
// let param = {
// master: {
// bp_id: this.$route.params.bp_id,
// company_id: '2145',
// },
// }
// let vm = this
// vm.hlsPopup.showLoading('请稍候')
// this.hlsHttp.post(url, param).then(function (res) {
// vm.hlsPopup.hideLoading()
// if (res.result === 'S') {
// vm.hlsPopup.showSuccess('提交成功')
// vm.$router.push({
// name: 'MyInfo',
// })
// }
// })
// }
// },
// })
}, },
// 获取个人认证url // 获取个人认证url
getNpCertificationUrl () { getNpCertificationUrl () {
......
...@@ -414,6 +414,9 @@ export default { ...@@ -414,6 +414,9 @@ export default {
beforeRouteEnter (to, from, next) { beforeRouteEnter (to, from, next) {
next(vm => { next(vm => {
if (from.name === 'Invoice') { if (from.name === 'Invoice') {
vm.carImg = '',
vm.houseImg = '',
vm.propertyImg = '', // 不动产识别图片
vm.propertyInfo = { // 不动产证 vm.propertyInfo = { // 不动产证
bp_id: vm.$route.params.bp_id, bp_id: vm.$route.params.bp_id,
right_person: '', right_person: '',
...@@ -515,8 +518,8 @@ export default { ...@@ -515,8 +518,8 @@ export default {
vm.$post(url, param).then(function (res) { vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
if (res.result === 'S') { if (res.result === 'S') {
Object.assign(vm.hauseInfo, res.info) Object.assign(vm.hauseInfo, res.info)
//vm.hauseInfo = res.info // vm.hauseInfo = res.info
} else { } else {
hlsPopup.showLongCenter(res.message) hlsPopup.showLongCenter(res.message)
} }
...@@ -534,8 +537,8 @@ export default { ...@@ -534,8 +537,8 @@ export default {
vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
console.log('行驶证信息查询', res) console.log('行驶证信息查询', res)
if (res.result === 'S') { if (res.result === 'S') {
Object.assign(vm.carInfo, res.info) Object.assign(vm.carInfo, res.info)
// vm.carInfo = res.info // vm.carInfo = res.info
} else { } else {
hlsPopup.showLongCenter(res.message) hlsPopup.showLongCenter(res.message)
} }
...@@ -553,72 +556,86 @@ export default { ...@@ -553,72 +556,86 @@ export default {
vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
console.log('不动产权证查询', res) console.log('不动产权证查询', res)
if (res.result === 'S') { if (res.result === 'S') {
Object.assign(vm.propertyInfo, res.info) Object.assign(vm.propertyInfo, res.info)
// vm.propertyInfo = res.info // vm.propertyInfo = res.info
} else { } else {
hlsPopup.showLongCenter(res.message) hlsPopup.showLongCenter(res.message)
} }
}) })
}, },
// 行驶证信息保存 // 行驶证信息保存
saveCarInfo () { async saveCarInfo () {
let vm = this let vm = this
let url = process.env.basePath + 'bp_vehicleLicense_save' let url = process.env.basePath + 'bp_vehicleLicense_save'
let param = { let param = {
master: vm.carInfo, master: vm.carInfo,
} }
hlsPopup.showLoading('请稍候') hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) { let res = await vm.$post(url, param)
if (res.result === 'S') {
vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
if (res.result === 'S') { return true
vm.$router.push({ } else {
name: 'BankInfo', hlsPopup.showLongCenter(res.message)
params: { }
bp_id: vm.bp_id,
},
})
} else {
hlsPopup.showLongCenter(res.message)
}
})
}, },
// 不动产信息保存 // 不动产信息保存
savePropertyInfo () { async savePropertyInfo () {
let vm = this let vm = this
let url = process.env.basePath + 'bp_real_estate_save' let url = process.env.basePath + 'bp_real_estate_save'
let param = { let param = {
master: vm.propertyInfo, master: vm.propertyInfo,
} }
// hlsPopup.showLoading('请稍候') let res = await vm.$post(url, param)
if (res.result === 'S') {
return true
} else {
hlsPopup.showLongCenter(res.message)
}
},
// 房产证信息保存
async saveHouseInfo () {
let vm = this
let url = process.env.basePath + 'bp_house_info_save'
let isSaveCar = await vm.saveCarInfo()
let isSaveEstate = await vm.savePropertyInfo()
let param = {
master: vm.hauseInfo,
}
hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) { vm.$post(url, param).then(function (res) {
// vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
if (res.result === 'S') { if (res.result === 'S') {
/* vm.$router.push({
name: 'BankInfo',
params: {
bp_id: vm.bp_id,
},
})*/
vm.attachmentCheck()
} else { } else {
hlsPopup.showLongCenter(res.message) hlsPopup.showLongCenter(res.message)
} }
}) })
}, },
// 房产证信息保存 attachmentCheck () {
saveHouseInfo () {
let vm = this let vm = this
let url = process.env.basePath + 'bp_house_info_save' let url = process.env.basePath + 'bp_attachment_check'
// vm.hauseInfo.regist_date.substr(0, 10)
console.log('regist_date', vm.hauseInfo.regist_date)
let param = { let param = {
/*master: { bp_id: vm.bp_id,
...vm.hauseInfo,
regist_date: vm.hauseInfo.regist_date.substr(0, 10),
},*/
master: vm.hauseInfo,
} }
// hlsPopup.showLoading('请稍候') vm.hlsPopup.showLoading('正在校验数据')
vm.$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.saveCarInfo() vm.$router.push({
name: 'BankInfo',
params: {
bp_id: vm.bp_id,
},
})
} else { } else {
hlsPopup.showLongCenter(res.message) hlsPopup.showError(res.message)
} }
}) })
}, },
...@@ -678,7 +695,7 @@ export default { ...@@ -678,7 +695,7 @@ export default {
vm.save_picture(list) vm.save_picture(list)
vm.isUploadProperty = false // 置为false,防止再次保存重复上传,只有重新识别才会重新上传 vm.isUploadProperty = false // 置为false,防止再次保存重复上传,只有重新识别才会重新上传
} }
vm.savePropertyInfo() // vm.savePropertyInfo()
vm.saveHouseInfo() vm.saveHouseInfo()
}, },
// 房产证/车辆证识别 // 房产证/车辆证识别
......
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