mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-20 13:06:45 +08:00
【fix】 Merge branch 'feature/GFRS-1291【0529】银行卡鉴权' into feature/【0529】银行卡鉴权-理赔银行卡鉴权
# Conflicts: # src/api/ebiz/sale/sale.js 开发理赔中的银行卡鉴权
This commit is contained in:
@@ -222,3 +222,12 @@ export function revokeOrder(data) {
|
|||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 2.1. 校验银行卡信息
|
||||||
|
export function checkCard(data) {
|
||||||
|
return request({
|
||||||
|
url: getUrl('/customer/checkCard', 1),
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|||||||
@@ -424,7 +424,7 @@ import idNoCheck from '@/assets/js/utils/idNoCheck'
|
|||||||
import { apply, history, customerInfo, query } from '@/api/ebiz/claims/claims'
|
import { apply, history, customerInfo, query } from '@/api/ebiz/claims/claims'
|
||||||
import { idToData } from '@/views/ebiz/customer/js/verification'
|
import { idToData } from '@/views/ebiz/customer/js/verification'
|
||||||
import BankCardScan from '@/components/ebiz/sale/BankCardScan'
|
import BankCardScan from '@/components/ebiz/sale/BankCardScan'
|
||||||
import { getBankList } from '@/api/ebiz/sale/sale'
|
import { getBankList, checkCard } from '@/api/ebiz/sale/sale'
|
||||||
import { getIdentityInfo, onDateConfirm, effectiveDataTypeChange } from '../sale/js/methods'
|
import { getIdentityInfo, onDateConfirm, effectiveDataTypeChange } from '../sale/js/methods'
|
||||||
import occupationList from '@/components/ebiz/occipation/data/occupation'
|
import occupationList from '@/components/ebiz/occipation/data/occupation'
|
||||||
import getAreaName from '@/assets/js/utils/get-area-name'
|
import getAreaName from '@/assets/js/utils/get-area-name'
|
||||||
@@ -562,7 +562,7 @@ export default {
|
|||||||
next()
|
next()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
init(){
|
init() {
|
||||||
let data = {
|
let data = {
|
||||||
slaveStatus: this.slaveStatus,
|
slaveStatus: this.slaveStatus,
|
||||||
businessNo: this.userInfo.businessNo
|
businessNo: this.userInfo.businessNo
|
||||||
@@ -663,7 +663,7 @@ export default {
|
|||||||
this.userInfo.applyerNationatlity = Detail[0][0].nationality
|
this.userInfo.applyerNationatlity = Detail[0][0].nationality
|
||||||
this.userInfo.applyerEmail = Detail[0][0].customerEmail
|
this.userInfo.applyerEmail = Detail[0][0].customerEmail
|
||||||
this.userInfo.applyerMobile = Detail[0][0].customerMobile
|
this.userInfo.applyerMobile = Detail[0][0].customerMobile
|
||||||
this.userInfo.applyerAddr = Detail[0][0].homeAddress.replace(/-/g,'')
|
this.userInfo.applyerAddr = Detail[0][0].homeAddress.replace(/-/g, '')
|
||||||
this.userInfo.applyerOccuCode = Detail[0][0].occuCode //职业编码
|
this.userInfo.applyerOccuCode = Detail[0][0].occuCode //职业编码
|
||||||
let result = this.showOccuName(Detail[0][0].occuCode)
|
let result = this.showOccuName(Detail[0][0].occuCode)
|
||||||
this.userInfo.applyerOccuName = result.applyerOccuName //职业名称
|
this.userInfo.applyerOccuName = result.applyerOccuName //职业名称
|
||||||
@@ -775,7 +775,7 @@ export default {
|
|||||||
this.userInfo.applyerSex = applicant.insuredSex //被保险人性别
|
this.userInfo.applyerSex = applicant.insuredSex //被保险人性别
|
||||||
this.userInfo.applyerBirthday = applicant.insuredBirthday //被保险人生日
|
this.userInfo.applyerBirthday = applicant.insuredBirthday //被保险人生日
|
||||||
let tempStr = getAreaName([{ code: applicant.insuredProvince }, { code: applicant.insuredCity }, { code: applicant.insuredCounty }])
|
let tempStr = getAreaName([{ code: applicant.insuredProvince }, { code: applicant.insuredCity }, { code: applicant.insuredCounty }])
|
||||||
this.userInfo.applyerAddr = tempStr.replace(/-/g,'') + applicant.insuredAddr //被保险人联系地址详细地址
|
this.userInfo.applyerAddr = tempStr.replace(/-/g, '') + applicant.insuredAddr //被保险人联系地址详细地址
|
||||||
this.effectiveDateType = applicant.certiTypeEndDate == '9999-09-09' //是否长期
|
this.effectiveDateType = applicant.certiTypeEndDate == '9999-09-09' //是否长期
|
||||||
this.userInfo.applyerCertiEndDate = applicant.certiTypeEndDate == '9999-09-09' ? '' : applicant.certiTypeEndDate //截止日期
|
this.userInfo.applyerCertiEndDate = applicant.certiTypeEndDate == '9999-09-09' ? '' : applicant.certiTypeEndDate //截止日期
|
||||||
this.userInfo.certiIsLong = applicant.certiTypeEndDate == '9999-09-09' ? '1' : '0' //是否长期 0-否,1-是
|
this.userInfo.certiIsLong = applicant.certiTypeEndDate == '9999-09-09' ? '1' : '0' //是否长期 0-否,1-是
|
||||||
@@ -1014,8 +1014,7 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
save() {
|
async save() {
|
||||||
console.log(this.userInfo)
|
|
||||||
let that = this
|
let that = this
|
||||||
// switch (this.isPettyCase) {
|
// switch (this.isPettyCase) {
|
||||||
// case '0':
|
// case '0':
|
||||||
@@ -1031,6 +1030,23 @@ export default {
|
|||||||
loadingType: 'spinner',
|
loadingType: 'spinner',
|
||||||
message: '加载中……'
|
message: '加载中……'
|
||||||
})
|
})
|
||||||
|
|
||||||
|
let checkCarData = {
|
||||||
|
account: this.userInfo.applyerBankAccountNo,
|
||||||
|
idNo: this.userInfo.applyerCertiCode,
|
||||||
|
idType: this.userInfo.applyerCertiType,
|
||||||
|
mobile: this.userInfo.applyerMobile,
|
||||||
|
name: this.userInfo.applyerName
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log(this.userInfo)
|
||||||
|
|
||||||
|
let res = await checkCard(checkCarData)
|
||||||
|
|
||||||
|
if (res.result != '0') {
|
||||||
|
return this.$toast(res.resultMessage)
|
||||||
|
}
|
||||||
|
|
||||||
let data = {
|
let data = {
|
||||||
slaveStatus: this.slaveStatus,
|
slaveStatus: this.slaveStatus,
|
||||||
claimApplyInfoReqDTO: this.userInfo
|
claimApplyInfoReqDTO: this.userInfo
|
||||||
|
|||||||
@@ -113,7 +113,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { Cell, CellGroup, Field, RadioGroup, Radio, Popup, List, Switch, Toast, SwitchCell, Icon } from 'vant'
|
import { Cell, CellGroup, Field, RadioGroup, Radio, Popup, List, Switch, Toast, SwitchCell, Icon } from 'vant'
|
||||||
import { saveInformation, getBankList, getOrderDetail } from '@/api/ebiz/sale/sale'
|
import { saveInformation, getBankList, getOrderDetail, checkCard } from '@/api/ebiz/sale/sale'
|
||||||
import utilsAge from '@/assets/js/utils/age'
|
import utilsAge from '@/assets/js/utils/age'
|
||||||
import BankCardScan from '@/components/ebiz/sale/BankCardScan'
|
import BankCardScan from '@/components/ebiz/sale/BankCardScan'
|
||||||
import IndexBar from '@/components/ebiz/sale/IndexBar'
|
import IndexBar from '@/components/ebiz/sale/IndexBar'
|
||||||
@@ -160,7 +160,8 @@ export default {
|
|||||||
changeCard: localStorage.changeCard,
|
changeCard: localStorage.changeCard,
|
||||||
age: null,
|
age: null,
|
||||||
productNo: null,
|
productNo: null,
|
||||||
salePageFlag: '6'
|
salePageFlag: '6',
|
||||||
|
appntDTO: null
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -281,11 +282,41 @@ export default {
|
|||||||
that.name = val
|
that.name = val
|
||||||
},
|
},
|
||||||
// 下一步
|
// 下一步
|
||||||
next() {
|
async next() {
|
||||||
if (this.productNo === 'GFRS_M0016' && this.age > 65) {
|
if (this.productNo === 'GFRS_M0016' && this.age > 65) {
|
||||||
this.$toast('本产品年龄大于65岁不能投保')
|
this.$toast('本产品年龄大于65岁不能投保')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
let data
|
||||||
|
if(this.saleInsuredInfo.idNo){
|
||||||
|
data = {
|
||||||
|
"account": this.bankId,
|
||||||
|
"idNo": this.saleInsuredInfo.idNo,
|
||||||
|
"idType": this.saleInsuredInfo.idType,
|
||||||
|
"mobile": this.saleInsuredInfo.mobile,
|
||||||
|
"name": this.saleInsuredInfo.name
|
||||||
|
}
|
||||||
|
}else {
|
||||||
|
data = {
|
||||||
|
"account": this.bankId,
|
||||||
|
"idNo": this.appntDTO.idNo,
|
||||||
|
"idType": this.appntDTO.idType,
|
||||||
|
"mobile": this.appntDTO.mobile,
|
||||||
|
"name": this.appntDTO.name
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
this.$toast.loading({
|
||||||
|
duration: 0, // 持续展示 toast
|
||||||
|
forbidClick: true, // 禁用背景点击
|
||||||
|
loadingType: 'spinner',
|
||||||
|
message: '加载中……'
|
||||||
|
})
|
||||||
|
let res = await checkCard(data)
|
||||||
|
this.$toast.clear()
|
||||||
|
if(res.result != '0'){
|
||||||
|
return this.$toast(res.resultMessage)
|
||||||
|
}
|
||||||
let that = this
|
let that = this
|
||||||
that.$validator.validate().then(valid => {
|
that.$validator.validate().then(valid => {
|
||||||
if (valid === true) {
|
if (valid === true) {
|
||||||
@@ -435,6 +466,9 @@ export default {
|
|||||||
getOrderDetail({ orderNo: localStorage.orderNo }).then(res => {
|
getOrderDetail({ orderNo: localStorage.orderNo }).then(res => {
|
||||||
console.log(res)
|
console.log(res)
|
||||||
if (res.result == 0) {
|
if (res.result == 0) {
|
||||||
|
|
||||||
|
this.appntDTO = res.orderDTO.appntDTO
|
||||||
|
|
||||||
//如果是从编辑进来的
|
//如果是从编辑进来的
|
||||||
if (this.$route.query.edit) {
|
if (this.$route.query.edit) {
|
||||||
//投被保险人关系
|
//投被保险人关系
|
||||||
|
|||||||
Reference in New Issue
Block a user