放开OCR

This commit is contained in:
邓晓坤
2019-10-11 16:47:20 +08:00
parent 2251be31e1
commit 64a363d024
5 changed files with 62 additions and 152 deletions

View File

@@ -22,7 +22,9 @@
v-validate="'required|bankCard'"
data-vv-name="银行卡号"
/>
<van-button type="danger" size="small" class="bankCard mr10 w110 h20" @click="cardScanning('0')" v-no-more-click="1000">银行卡扫描</van-button>
</van-cell-group>
<van-cell-group class="flex align-items-c">
<van-switch-cell v-model="checked" title="是否自动垫交" active-color="#E9332E" inactive-color="#fff" class="ml15 pr30" />
<van-icon
@@ -31,7 +33,7 @@
@click="
$toast({
message:
'保费自动垫交是当投保人没有按时交纳续期保险费,而保单当时已经具有足够的现金价值时,保险公司以现金价值自动垫交保险费,从而使保单继续有效。相当于投保人向保险公司贷款交纳保费是保险公司提供给客户的一项选择权益,其目的是为了尽可能地减少客户因非故意的失误导致保单失效,使其利益受损。',
'保费自动垫交是当投保人没有按时交纳续期保险费,而保单当时已经具有足够的现金价值时,保险公司以现金价值自动垫交保险费,从而使保单继续有效。相当于投保人向保险公司贷款交纳保费是保险公司提供给客户的一项选择权益,其目的是为了尽可能地减少客户因非故意的失误导致保单失效,使其利益受损。',
duration: 10000
})
"
@@ -59,6 +61,7 @@
clearable
data-vv-name="银行卡号"
/>
<van-button type="danger" size="small" class="bankCard mr10 w110 h20" @click="cardScanning('1')" v-no-more-click="1000">银行卡扫描</van-button>
</van-cell-group>
<van-cell-group class="flex align-items-c">
<van-switch-cell v-model="checked" title="是否自动垫交" active-color="#E9332E" inactive-color="#fff" class="ml15 pr30" />
@@ -68,7 +71,7 @@
@click="
$toast({
message:
'保费自动垫交是当投保人没有按时交纳续期保险费,而保单当时已经具有足够的现金价值时,保险公司以现金价值自动垫交保险费,从而使保单继续有效。相当于投保人向保险公司贷款交纳保费是保险公司提供给客户的一项选择权益,其目的是为了尽可能地减少客户因非故意的失误导致保单失效,使其利益受损。',
'保费自动垫交是当投保人没有按时交纳续期保险费,而保单当时已经具有足够的现金价值时,保险公司以现金价值自动垫交保险费,从而使保单继续有效。相当于投保人向保险公司贷款交纳保费是保险公司提供给客户的一项选择权益,其目的是为了尽可能地减少客户因非故意的失误导致保单失效,使其利益受损。',
duration: 10000
})
"
@@ -134,7 +137,6 @@ export default {
methods: {
//获取身份证扫描信息
getBankCardInfo(data) {
// console.log(data)
this.bankId = data.name
this.$jump({
@@ -152,7 +154,6 @@ export default {
operateType: 'bank_type'
}
getBankList(data).then(res => {
console.log(res)
if (res.result == '0') {
this.bankList = res.content
} else {
@@ -228,7 +229,7 @@ export default {
that.$validator.validate().then(valid => {
if (valid === true) {
let data = {}
// console.log(that.checked)
if (that.checked == true) {
data = {
orderType: 'ACCOUNT_ORDER',
@@ -271,10 +272,8 @@ export default {
saveInformation(data).then(res => {
if (res.result == '0') {
// window.localStorage.setItem('accountInfomation-bank', that.bank)
window.localStorage.setItem('accountInformationRadio', that.radio)
// window.localStorage.setItem('accountInformation-isPaymentSelf', JSON.stringify(that.checked))
// marked by pang on 2019-09-22 影像上传暂不可用,跳过
that.$jump({
flag: 'h5',
extra: {
@@ -289,7 +288,6 @@ export default {
}
})
} else {
// Toast.fail(that.errors.all()[0])
that.$toast(that.errors.all()[0])
}
})
@@ -304,10 +302,6 @@ export default {
//投被保人关系
this.relationToAppnt = res.orderDTO.insuredDTOs[0].relationToAppnt
this.$utils.intLocalStorage(res)
//投保人信息
// localStorage.saleInsuredInfo = JSON.stringify(res.orderDTO.appntDTO)
//被保人信息
// localStorage.saleInsuredPersonInfo = JSON.stringify(res.orderDTO.insuredDTOs[0])
} else {
this.$toast(res.resultMessage)
}
@@ -328,7 +322,6 @@ export default {
//
},
mounted() {
// let that = this
document.body.style.backgroundColor = '#F5F5F5'
// 筛选按钮的点击事件
window.appCallBack = this.appCallBack

View File

@@ -33,8 +33,7 @@
placeholder="请选择"
@click="toSelect('2')"
/>
<!-- <van-field v-model="userInfo.idNo" v-validate="'required|idNo'" label="证件号码" name="证件号码" placeholder="请输入" maxlength="18" clearable>
</van-field> -->
<van-field
v-model="userInfo.idNo"
label="证件号码"
@@ -47,12 +46,25 @@
@blur="getRelatedData(userInfo.idNo)"
>
</van-field>
<FieldDatePicter
v-validate="'required'"
label="出生日期"
name="出生日期"
:value.sync="userInfo.birthday"
type="date"
:flag="true"
@confirm="onDateConfirm($event, '2')"
ref="birthday"
:maxDate="currentTime"
:readonly="isInsured"
></FieldDatePicter>
<FieldDatePicter
v-validate="'required'"
label="证件起始日期"
name="证件起始日期"
:value.sync="userInfo.certificateValidate"
type="date"
:defaultDate="new Date()"
@confirm="onDateConfirm($event, '0')"
ref="certificateValidate"
:flag="true"
@@ -62,6 +74,7 @@
:v-validate="{ required: certiexpiredateRequired }"
label="证件截止日期"
name="证件截止日期"
:defaultDate="new Date()"
:value.sync="userInfo.certiexpiredate"
type="date"
@confirm="onDateConfirm($event, '1')"
@@ -84,17 +97,6 @@
placeholder="请选择"
@click="toSelect('1')"
/>
<FieldDatePicter
v-validate="'required'"
label="出生日期"
name="出生日期"
:value.sync="userInfo.birthday"
type="date"
:flag="true"
@confirm="onDateConfirm($event, '2')"
ref="birthday"
:readonly="isInsured"
></FieldDatePicter>
<van-field
v-model="userInfo.mobile"
clearable
@@ -172,6 +174,7 @@
</van-popup>
</div>
</template>
<script>
import { Field, CellGroup, Checkbox, Popup, Picker, Area } from 'vant'
import SelectRadio from '@/components/ebiz/SelectRadio'

View File

@@ -33,7 +33,7 @@
clearable
@blur="getRelatedData(userInfo.idNo)"
>
<!-- <van-button v-if="userInfo.idType == 1" slot="button" size="small" type="danger" round @click="selectClick('3')">证件扫描</van-button>-->
<van-button v-if="userInfo.idType == 1" slot="button" size="small" type="danger" round @click="selectClick('3')">证件扫描</van-button>
</van-field>
<FieldDatePicter
v-validate="'required'"
@@ -418,6 +418,7 @@
<van-popup v-model="isScan" position="bottom">
<IdentityCardScan @getScanInfo="getIdentityInfo"></IdentityCardScan>
</van-popup>
</div>
</template>
<script>

View File

@@ -1,5 +1,5 @@
<template>
<div class="insured-person-container pb50">
<div class="insured-person-container pb50 ">
<!-- 基本信息 -->
<van-cell-group v-if="!isScan">
<p style="border-bottom: 1px solid #ebedf0" class="mt10 fs15 fwb pl10 pv12">基本信息</p>
@@ -46,14 +46,27 @@
v-validate="'required'"
@blur="getRelatedData(userInfo.idNo)"
>
<!-- <van-button v-if="userInfo.idType == 1" slot="button" size="small" type="danger" round @click="selectClick('3')" v-no-more-click="1000"-->
<!-- >证件扫描</van-button-->
<!-- >-->
<van-button v-if="userInfo.idType == 1" slot="button" size="small" type="danger" round @click="selectClick('3')" v-no-more-click="1000"
>证件扫描</van-button
>
</van-field>
<FieldDatePicter
v-validate="'required'"
label="出生日期"
name="出生日期"
:value.sync="userInfo.birthday"
type="date"
:flag="true"
@confirm="onDateConfirm($event, '2')"
ref="birthday"
:readonly="isAppnt"
:maxDate="currentTime"
></FieldDatePicter>
<FieldDatePicter
v-validate="'required'"
label="证件起始日期"
name="证件起始日期"
:defaultDate="new Date()"
:value.sync="userInfo.certificateValidate"
type="date"
:flag="true"
@@ -65,6 +78,7 @@
:v-validate="{ required: certiexpiredateRequired }"
label="证件截止日期"
name="证件截止日期"
:defaultDate="new Date()"
:value.sync="userInfo.certiexpiredate"
type="date"
@confirm="onDateConfirm($event, '1')"
@@ -73,12 +87,7 @@
:readonly="isAppnt || idLimit"
></FieldDatePicter>
<div class="border-bt relative fs14 p10 flex align-center">
<van-checkbox
v-model="userInfo.effectiveDateType"
class="fr"
:disabled="effectiveDateTypeAble"
@change="effectiveDataTypeChange"
>长期</van-checkbox>
<van-checkbox v-model="userInfo.effectiveDateType" class="fr" :disabled="effectiveDateTypeAble" @change="effectiveDataTypeChange">长期</van-checkbox>
</div>
<select-radio
:radios="sexRadio"
@@ -99,28 +108,7 @@
placeholder="请选择"
@click="toSelect('1')"
/>
<van-field
:value="census"
readonly
label="户籍"
name="户籍"
v-validate="'required'"
right-icon="arrow"
placeholder="请选择"
@click="areaChoose('1')"
/>
<FieldDatePicter
v-validate="'required'"
label="出生日期"
name="出生日期"
:value.sync="userInfo.birthday"
type="date"
:flag="true"
@confirm="onDateConfirm($event, '2')"
ref="birthday"
:readonly="isAppnt"
:maxDate="currentTime"
></FieldDatePicter>
<van-field :value="census" readonly label="户籍" name="户籍" v-validate="'required'" right-icon="arrow" placeholder="请选择" @click="areaChoose('1')" />
<van-field
v-model="userInfo.mobile"
@@ -137,34 +125,17 @@
v-model="userInfo.authCode"
center
clearable
label
label=""
name="短信验证码"
placeholder="请输入短信验证码"
v-validate="'required'"
maxlength="6"
>
<van-button
slot="button"
size="small"
type="danger"
:disabled="codeDisabled"
@click="getCode"
v-no-more-click="1000"
>
{{
<van-button slot="button" size="small" type="danger" :disabled="codeDisabled" @click="getCode" v-no-more-click="1000">{{
codeDisabled ? `${countDown}s后重新获取` : '发送验证码'
}}
</van-button>
}}</van-button>
</van-field>
<van-field
v-model="userInfo.email"
label="电子邮箱"
name="电子邮箱"
placeholder="请输入"
v-validate="'required|email'"
clearable
:readonly="isAppnt"
/>
<van-field v-model="userInfo.email" label="电子邮箱" name="电子邮箱" placeholder="请输入" v-validate="'required|email'" clearable :readonly="isAppnt" />
<van-field
v-model="userInfo.stature"
label="身高(cm)"
@@ -189,7 +160,7 @@
</van-cell-group>
<!-- 工作信息 -->
<van-cell-group class="mt5" v-if="!isScan">
<p style=" border-bottom: 1px solid #ebedf0" class="fs15 mt10 fwb pl10 pv12">工作信息</p>
<p style=" border-bottom: 1px solid #ebedf0" class=" fs15 mt10 fwb pl10 pv12">工作信息</p>
<van-field
:value="userInfo.degree | idToText('degree')"
readonly
@@ -234,25 +205,6 @@
@on-click="selectClick('2')"
@on-choose="chooseOccupation"
/>
<van-field
:value="userInfo.salarySource | idToText('salarySource')"
readonly
label="收入来源"
name="收入来源"
right-icon="arrow"
placeholder="请选择"
v-validate="'required'"
@click="toSelect('9')"
/>
<van-field
v-show="isShowOthenSalarySource"
v-model="userInfo.otherSalarySource"
label
name="其他来源"
placeholder="请输入其它收入来源"
clearable
maxlength="30"
/>
<van-field
v-model="userInfo.averageAnnualIncome"
label="平均年收入(万元)"
@@ -272,10 +224,7 @@
maxlength="5"
:readonly="isAppnt"
>
<div slot="label" class="flex flex-wrap">
<span>负债金额</span>
<span>(万元)</span>
</div>
<div slot="label" class="flex flex-wrap"><span>负债金额</span><span>万元</span></div>
</van-field>
<van-field
:value="userInfo.jobStatus | idToText('workCondition')"
@@ -309,7 +258,7 @@
/>
<van-field
v-model="userInfo.companyAddress"
label
label=""
name="详细地址"
placeholder="请输入详细地址"
v-validate="'required'"
@@ -327,19 +276,11 @@
clearable
:readonly="isAppnt"
/>
<van-field
v-model="userInfo.companyPhone"
label="单位电话"
name="单位电话"
placeholder="非必填"
maxlength="13"
clearable
:readonly="isAppnt"
/>
<van-field v-model="userInfo.companyPhone" label="单位电话" name="单位电话" placeholder="非必填" maxlength="13" clearable :readonly="isAppnt" />
</van-cell-group>
<!-- 家庭信息 -->
<van-cell-group class="mt5" v-if="!isScan">
<p style=" border-bottom: 1px solid #ebedf0" class="fs15 fwb pl10 mt10 pv12">家庭信息</p>
<p style=" border-bottom: 1px solid #ebedf0" class=" fs15 fwb pl10 mt10 pv12">家庭信息</p>
<van-field
:value="userInfo.marriage | idToText('marriage')"
readonly
@@ -372,7 +313,7 @@
/>
<van-field
v-model="userInfo.homeAddress"
label
label=""
name="详细地址"
placeholder="请输入详细地址"
v-validate="'required'"
@@ -390,23 +331,9 @@
clearable
:readonly="isAppnt"
/>
<van-field
v-model="userInfo.homePhone"
label="家庭电话"
name="家庭电话"
placeholder="非必填"
maxlength="13"
clearable
:readonly="isAppnt"
/>
<van-field v-model="userInfo.homePhone" label="家庭电话" name="家庭电话" placeholder="非必填" maxlength="13" clearable :readonly="isAppnt" />
</van-cell-group>
<van-button
type="danger"
class="bottom-btn"
@click="nextStep"
v-if="!isScan"
v-no-more-click="1000"
>下一步</van-button>
<van-button type="danger" class="bottom-btn" @click="nextStep" v-if="!isScan" v-no-more-click="1000">下一步</van-button>
<!-- 字段选择 -->
<van-popup v-model="popupShow" position="bottom">
@@ -414,31 +341,15 @@
</van-popup>
<!-- 地区选择 -->
<van-popup v-model="areaShow" position="bottom">
<van-area
:area-list="areaList"
value="110101"
@confirm="sureArea($event, '1')"
@cancel="areaShow = false"
/>
<van-area :area-list="areaList" value="110101" @confirm="sureArea($event, '1')" @cancel="areaShow = false" />
</van-popup>
<!-- 家庭地址选择 -->
<van-popup v-model="homeShow" position="bottom">
<van-area
:area-list="areaList"
value="110101"
@confirm="sureArea($event, '2')"
@cancel="homeShow = false"
/>
<van-area :area-list="areaList" value="110101" @confirm="sureArea($event, '2')" @cancel="homeShow = false" />
</van-popup>
<!-- 户籍选择 -->
<van-popup v-model="censusShow" position="bottom">
<van-area
:area-list="areaList"
value="110101"
:columns-num="2"
@confirm="sureArea($event, '3')"
@cancel="censusShow = false"
/>
<van-area :area-list="areaList" value="110101" :columns-num="2" @confirm="sureArea($event, '3')" @cancel="censusShow = false" />
</van-popup>
<!-- 银行卡扫描 -->
<!-- 银行卡扫描 -->
@@ -448,6 +359,7 @@
<!-- <IdentityCardScan @getScanInfo="getIdentityInfo"></IdentityCardScan> -->
</div>
</template>
<script>
import { Field, CellGroup, Checkbox, Popup, Picker, Area, Dialog } from 'vant'
import SelectRadio from '@/components/ebiz/SelectRadio'

View File

@@ -40,6 +40,7 @@ export default {
}, 200)
},
tokens() {
// 507e5ff426364e95b22cd4c1e22f427f
window.localStorage.setItem('token', this.$route.query.token)
// localStorage.setItem('token',this.$router.query.token)
this.$router.back(-1)