diff --git a/src/api/ebiz/sale/sale.js b/src/api/ebiz/sale/sale.js index 63f2621fa..9c989ad48 100644 --- a/src/api/ebiz/sale/sale.js +++ b/src/api/ebiz/sale/sale.js @@ -222,3 +222,12 @@ export function revokeOrder(data) { data }) } + +// 2.1. 校验银行卡信息 +export function checkCard(data) { + return request({ + url: getUrl('/customer/checkCard', 1), + method: 'post', + data + }) +} diff --git a/src/views/ebiz/claims/ApplyInfo.vue b/src/views/ebiz/claims/ApplyInfo.vue index c24d0fadb..6b7052573 100644 --- a/src/views/ebiz/claims/ApplyInfo.vue +++ b/src/views/ebiz/claims/ApplyInfo.vue @@ -424,7 +424,7 @@ import idNoCheck from '@/assets/js/utils/idNoCheck' import { apply, history, customerInfo, query } from '@/api/ebiz/claims/claims' import { idToData } from '@/views/ebiz/customer/js/verification' 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 occupationList from '@/components/ebiz/occipation/data/occupation' import getAreaName from '@/assets/js/utils/get-area-name' @@ -562,11 +562,11 @@ export default { next() }, methods: { - init(){ + init() { let data = { - slaveStatus: this.slaveStatus, - businessNo: this.userInfo.businessNo - } + slaveStatus: this.slaveStatus, + businessNo: this.userInfo.businessNo + } query(data).then(res => { if (res.result == 0) { console.log(res) @@ -663,7 +663,7 @@ export default { this.userInfo.applyerNationatlity = Detail[0][0].nationality this.userInfo.applyerEmail = Detail[0][0].customerEmail 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 //职业编码 let result = this.showOccuName(Detail[0][0].occuCode) this.userInfo.applyerOccuName = result.applyerOccuName //职业名称 @@ -775,7 +775,7 @@ export default { this.userInfo.applyerSex = applicant.insuredSex //被保险人性别 this.userInfo.applyerBirthday = applicant.insuredBirthday //被保险人生日 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.userInfo.applyerCertiEndDate = applicant.certiTypeEndDate == '9999-09-09' ? '' : applicant.certiTypeEndDate //截止日期 this.userInfo.certiIsLong = applicant.certiTypeEndDate == '9999-09-09' ? '1' : '0' //是否长期 0-否,1-是 @@ -1014,8 +1014,7 @@ export default { } }) }, - save() { - console.log(this.userInfo) + async save() { let that = this // switch (this.isPettyCase) { // case '0': @@ -1031,6 +1030,23 @@ export default { loadingType: 'spinner', 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 = { slaveStatus: this.slaveStatus, claimApplyInfoReqDTO: this.userInfo diff --git a/src/views/ebiz/sale/AccountInformation.vue b/src/views/ebiz/sale/AccountInformation.vue index 137a29633..309fbfc5f 100644 --- a/src/views/ebiz/sale/AccountInformation.vue +++ b/src/views/ebiz/sale/AccountInformation.vue @@ -113,7 +113,7 @@