Commit 588597e3 authored by 李晓兵's avatar 李晓兵

''

parent a9ff1ebf
......@@ -529,7 +529,7 @@ export default {
vm.idCardFrontSpEditFlag = false // 配偶身份证正面修改标识,为true则标识已修改,后续需要重新上传此照片
vm.idCardBackSpEditFlag = false // 配偶身份证反面修改标识,为true则标识已修改,后续需要重新上传此照片
vm.isClear = false
//vm.baseInfo.bp_class = vm.$route.params.bp_class
// vm.baseInfo.bp_class = vm.$route.params.bp_class
}
})
},
......@@ -762,6 +762,35 @@ export default {
}
})
},
// 基本信息保存前校验
bindCheck () {
let vm = this
var business_num = ''
if (vm.baseInfo.bp_type === 'TENANT' || vm.baseInfo.bp_type === 'GUTA') {
business_num = vm.baseInfo.agent_username
} else if (vm.baseInfo.bp_type === 'AGENT' || vm.baseInfo.bp_type === 'FACTORY') {
business_num = vm.baseInfo.business_license_num
} else if (vm.baseInfo.bp_type === 'OFFICE') {
business_num = vm.baseInfo.business_license_num
}
let url = process.env.basePath + 'bp_bind_check'
let param = {
bp_class: 'NP',
bp_type: vm.baseInfo.bp_type,
business_num: business_num,
}
vm.hlsPopup.showLoading('正在校验数据有效性')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.$router.push({
name: 'NPInvoiceInfo',
})
} else {
hlsPopup.showLongCenter(res.message)
}
})
},
async saveProtocol () {
let vm = this
let url = process.env.basePath + 'bp_np_bind_save'
......@@ -779,9 +808,10 @@ export default {
window.localStorage.setItem('bp_name', vm.baseInfo.bp_name)
window.localStorage.setItem('bp_type', vm.baseInfo.bp_type)
window.localStorage.setItem('from', vm.from)
vm.$router.push({
vm.bindCheck()
/* vm.$router.push({
name: 'NPInvoiceInfo',
})
}) */
return res.bp_id
} else {
vm.hlsPopup.showLongCenter(res.message)
......@@ -789,7 +819,6 @@ export default {
},
async saveWord () {
let vm = this
debugger
if (!vm.baseInfo.bp_type) {
vm.hlsPopup.showLongCenter('客户类型不能为空!')
} else if (vm.isPaople && !vm.baseInfo.agent_username) {
......
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