mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-10 08:06:44 +08:00
图片上传成功后图片回显地址使用服务器返回的图片链接地址
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="redRadioCheckbox">
|
<div class="redRadioCheckbox">
|
||||||
<index-bar></index-bar>
|
<index-bar></index-bar>
|
||||||
|
<!-- 来源于支付失败后更换银行卡信息 -->
|
||||||
<div v-if="changeCard">
|
<div v-if="changeCard">
|
||||||
<div class="flex p10 align-items-c bg-white mt10">
|
<div class="flex p10 align-items-c bg-white mt10">
|
||||||
<span>投保人附件</span>
|
<span>投保人附件</span>
|
||||||
@@ -20,10 +21,11 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-else>
|
<div v-else>
|
||||||
|
<!-- 投保人证件 -->
|
||||||
<div>
|
<div>
|
||||||
<div class="flex p10 align-items-c bg-white mt10">
|
<div class="flex p10 align-items-c bg-white mt10">
|
||||||
<!-- <div class="attachmentManagement-block"></div> -->
|
|
||||||
<span>请点击+上传投保人身份证件</span>
|
<span>请点击+上传投保人身份证件</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="m20 bg-white">
|
<div class="m20 bg-white">
|
||||||
@@ -76,54 +78,6 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div v-if="item.id == '3' || item.id == '4'">
|
|
||||||
<van-cell-group>
|
|
||||||
<van-field required :label="item.id == '3' ? `${item.text}` : `${item.text}本人照片页`" disabled />
|
|
||||||
</van-cell-group>
|
|
||||||
<div @click="test('fileLIstImg', saleInsuredInfo.idType)">
|
|
||||||
<van-uploader
|
|
||||||
name="fileLIstImg"
|
|
||||||
v-model="fileLIstImg"
|
|
||||||
:after-read="afterRead"
|
|
||||||
@delete="deleteImg"
|
|
||||||
:before-delete="beforeDelete"
|
|
||||||
class="mt10 ml20"
|
|
||||||
:max-count="1"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div> -->
|
|
||||||
<!-- <div v-if="item.id == '5' || item.id == '6'">
|
|
||||||
<van-cell-group>
|
|
||||||
<van-field required :label="`${item.text}头像面`" disabled />
|
|
||||||
</van-cell-group>
|
|
||||||
<div @click="test('fileLIstImg', saleInsuredInfo.idType)">
|
|
||||||
<van-uploader
|
|
||||||
name="fileLIstImg"
|
|
||||||
v-model="fileLIstImg"
|
|
||||||
:after-read="afterRead"
|
|
||||||
@delete="deleteImg"
|
|
||||||
:before-delete="beforeDelete"
|
|
||||||
class="mt10 ml20"
|
|
||||||
:max-count="1"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div> -->
|
|
||||||
<!-- <div v-if="item.id == '7'">
|
|
||||||
<van-cell-group>
|
|
||||||
<van-field required :label="item.text" disabled />
|
|
||||||
</van-cell-group>
|
|
||||||
<div @click="test('saleInsuredInfoOther', saleInsuredInfo.idType)">
|
|
||||||
<van-uploader
|
|
||||||
name="saleInsuredInfoOther"
|
|
||||||
v-model="saleInsuredInfoOther"
|
|
||||||
:after-read="afterRead"
|
|
||||||
@delete="deleteImg"
|
|
||||||
:before-delete="beforeDelete"
|
|
||||||
class="mt10 ml20"
|
|
||||||
:max-count="1"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div> -->
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<van-cell-group>
|
<van-cell-group>
|
||||||
@@ -154,23 +108,10 @@
|
|||||||
:max-count="20"
|
:max-count="20"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<!-- <van-cell-group>
|
|
||||||
<van-field required label="银行卡反面" disabled />
|
|
||||||
</van-cell-group>
|
|
||||||
<div @click="test('fileListBankBack', saleInsuredInfo.idType)">
|
|
||||||
<van-uploader
|
|
||||||
name="fileListBankBack"
|
|
||||||
v-model="fileListBankBack"
|
|
||||||
:after-read="afterRead"
|
|
||||||
@delete="deleteImg"
|
|
||||||
:before-delete="beforeDelete"
|
|
||||||
class="mt10 ml20"
|
|
||||||
:max-count="1"
|
|
||||||
/>
|
|
||||||
</div> -->
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- 被保险人证件 -->
|
||||||
<div v-if="relationToAppnt != '1'">
|
<div v-if="relationToAppnt != '1'">
|
||||||
<div class="flex bg-white p10 align-items-c">
|
<div class="flex bg-white p10 align-items-c">
|
||||||
<span>请点击+上传被保险人身份证件</span>
|
<span>请点击+上传被保险人身份证件</span>
|
||||||
@@ -246,30 +187,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- <div>
|
|
||||||
<div class="flex p10 align-items-c bg-white mt10">
|
|
||||||
<span>请点击+上传健康告知异常类资料</span>
|
|
||||||
</div>
|
|
||||||
<div class="m20 bg-white">
|
|
||||||
<div class="p10">
|
|
||||||
<van-cell-group>
|
|
||||||
<van-field required label="健康告知异常类资料" disabled />
|
|
||||||
</van-cell-group>
|
|
||||||
<div @click="test('fileListNotify')">
|
|
||||||
<van-uploader
|
|
||||||
name="fileListNotify"
|
|
||||||
v-model="fileListNotify"
|
|
||||||
:after-read="afterRead"
|
|
||||||
@delete="deleteImg"
|
|
||||||
:before-delete="beforeDelete"
|
|
||||||
class="mt10 ml20"
|
|
||||||
:max-count="1"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div> -->
|
|
||||||
<!-- 受益人类型 -->
|
<!-- 受益人类型 -->
|
||||||
<div v-if="saleBtnfPersonInfo">
|
<div v-if="saleBtnfPersonInfo">
|
||||||
<div class="flex bg-white p10 align-items-c">
|
<div class="flex bg-white p10 align-items-c">
|
||||||
@@ -330,65 +247,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div v-if="typebeneficiary == true">
|
|
||||||
<div class="flex bg-white p10 align-items-c">
|
|
||||||
<span>受益人附件</span>
|
|
||||||
</div>
|
|
||||||
<div class="m20 bg-white">
|
|
||||||
<van-cell-group>
|
|
||||||
<van-field required label="受益人附件上传" disabled />
|
|
||||||
</van-cell-group>
|
|
||||||
<div @click="test('fileListtypebeneficiary', saleInsuredPersonInfo.idType)" class="flex">
|
|
||||||
<van-uploader
|
|
||||||
name="fileListtypebeneficiary"
|
|
||||||
v-model="fileListtypebeneficiary"
|
|
||||||
:after-read="afterRead"
|
|
||||||
:before-delete="beforeDelete"
|
|
||||||
@delete="deleteImg"
|
|
||||||
class="mt10 ml20"
|
|
||||||
:max-count="9"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div> -->
|
|
||||||
<!-- 受益人类型end -->
|
|
||||||
<!-- <div> -->
|
|
||||||
<!-- <div class="flex bg-white p10 align-items-c"> -->
|
|
||||||
<!-- <div class="attachmentManagement-block"></div> -->
|
|
||||||
<!-- <span>其他</span>
|
|
||||||
</div> -->
|
|
||||||
<!-- <div class="m20 bg-white">
|
|
||||||
<div @click="test('fileListOther', saleInsuredPersonInfo.idType)" class="flex">
|
|
||||||
<van-uploader
|
|
||||||
name="fileListOtherOne"
|
|
||||||
v-model="fileListOtherOne"
|
|
||||||
:after-read="afterRead"
|
|
||||||
:before-delete="beforeDelete"
|
|
||||||
@delete="deleteImg"
|
|
||||||
class="mt10 ml20"
|
|
||||||
:max-count="1"
|
|
||||||
/>
|
|
||||||
<van-uploader
|
|
||||||
name="fileListOtherTwo"
|
|
||||||
v-model="fileListOtherTwo"
|
|
||||||
:after-read="afterRead"
|
|
||||||
:before-delete="beforeDelete"
|
|
||||||
@delete="deleteImg"
|
|
||||||
class="mt10 ml20"
|
|
||||||
:max-count="1"
|
|
||||||
/>
|
|
||||||
<van-uploader
|
|
||||||
name="fileListOtherThree"
|
|
||||||
v-model="fileListOtherThree"
|
|
||||||
:after-read="afterRead"
|
|
||||||
:before-delete="beforeDelete"
|
|
||||||
@delete="deleteImg"
|
|
||||||
class="mt10 ml20"
|
|
||||||
:max-count="1"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div> -->
|
|
||||||
</div>
|
</div>
|
||||||
<div class="ml30 mt30 mb80">
|
<div class="ml30 mt30 mb80">
|
||||||
<van-radio-group v-model="radio">
|
<van-radio-group v-model="radio">
|
||||||
@@ -464,13 +322,6 @@ export default {
|
|||||||
// 受益人
|
// 受益人
|
||||||
bnfInfo:[],
|
bnfInfo:[],
|
||||||
isDisabledBnf:true,
|
isDisabledBnf:true,
|
||||||
// 受益人
|
|
||||||
// fileListtypebeneficiary: [],
|
|
||||||
// fileLIstImgInsrued
|
|
||||||
// 其他
|
|
||||||
// fileListOtherOne: [],
|
|
||||||
// fileListOtherTwo: [],
|
|
||||||
// fileListOtherThree: [],
|
|
||||||
// 单选框
|
// 单选框
|
||||||
radio: '',
|
radio: '',
|
||||||
// 是否可以点击下一步
|
// 是否可以点击下一步
|
||||||
@@ -851,14 +702,6 @@ export default {
|
|||||||
} else if (detail.name == 'saleInsuredPersonInfoOther') {
|
} else if (detail.name == 'saleInsuredPersonInfoOther') {
|
||||||
this.saleInsuredPersonInfoOther = []
|
this.saleInsuredPersonInfoOther = []
|
||||||
this.deleteImg(file, 'saleInsuredPersonInfoOther')
|
this.deleteImg(file, 'saleInsuredPersonInfoOther')
|
||||||
// } else if (detail.name == 'fileListtypebeneficiary') {
|
|
||||||
// that.fileListtypebeneficiary.map((item, index, array) => {
|
|
||||||
// if (item.content == file.content) {
|
|
||||||
// array.splice(index, 1)
|
|
||||||
// } else {
|
|
||||||
// return
|
|
||||||
// }
|
|
||||||
// })
|
|
||||||
} else if (detail.name.indexOf('fileListIdFrontBeneficiary') != -1) {
|
} else if (detail.name.indexOf('fileListIdFrontBeneficiary') != -1) {
|
||||||
//单独处理受益人影像删除,通过name值查询到当前收益指的索引值(下标),操作data数据中定义的数据
|
//单独处理受益人影像删除,通过name值查询到当前收益指的索引值(下标),操作data数据中定义的数据
|
||||||
let detailIndex = detail.name.substring(26,detail.name.length)
|
let detailIndex = detail.name.substring(26,detail.name.length)
|
||||||
@@ -1018,11 +861,8 @@ export default {
|
|||||||
let that = this
|
let that = this
|
||||||
this.$toast.loading({
|
this.$toast.loading({
|
||||||
duration: 0, // 持续展示 toast
|
duration: 0, // 持续展示 toast
|
||||||
|
|
||||||
forbidClick: true, // 禁用背景点击
|
forbidClick: true, // 禁用背景点击
|
||||||
|
|
||||||
loadingType: 'spinner',
|
loadingType: 'spinner',
|
||||||
|
|
||||||
message: '加载中……',
|
message: '加载中……',
|
||||||
})
|
})
|
||||||
let formdata = new FormData()
|
let formdata = new FormData()
|
||||||
@@ -1033,108 +873,127 @@ export default {
|
|||||||
if (res.result == '0') {
|
if (res.result == '0') {
|
||||||
this.$toast.clear()
|
this.$toast.clear()
|
||||||
if(res.path){
|
if(res.path){
|
||||||
if (
|
if (that.type == 'fileListIdFront' || that.type == 'fileListIdBack' || that.type == 'fileLIstImg' || that.type == 'fileListBank' || that.type == 'fileListNotify' || that.type == 'saleInsuredInfoOther') {
|
||||||
that.type == 'fileListIdFront' ||
|
|
||||||
that.type == 'fileListIdBack' ||
|
|
||||||
that.type == 'fileLIstImg' ||
|
|
||||||
that.type == 'fileListBank' ||
|
|
||||||
// that.type == 'fileListBankBack' ||
|
|
||||||
that.type == 'fileListNotify' ||
|
|
||||||
that.type == 'saleInsuredInfoOther'
|
|
||||||
) {
|
|
||||||
let imageInfoType = ''
|
let imageInfoType = ''
|
||||||
let name = ''
|
let name = ''
|
||||||
// if (that.type == 'fileListIdFront' && that.id == '1') {
|
|
||||||
// imageInfoType = '1'
|
|
||||||
// } else if (that.type == 'fileListIdBack' && that.id == '1') {
|
|
||||||
// imageInfoType = '2'
|
|
||||||
// } else if (that.type == 'fileListBank') {
|
|
||||||
// imageInfoType = '3'
|
|
||||||
// } else if (that.type == 'fileListIdFront' && that.id == '2') {
|
|
||||||
// imageInfoType = '5'
|
|
||||||
// } else if (that.type == 'fileListIdBack' && that.id == '2') {
|
|
||||||
// imageInfoType = '6'
|
|
||||||
// } else if (that.type == 'fileLIstImg' && that.id == '3') {
|
|
||||||
// imageInfoType = '7'
|
|
||||||
// } else if (that.type == 'fileLIstImg' && that.id == '4') {
|
|
||||||
// imageInfoType = '8'
|
|
||||||
// } else if (that.type == 'fileLIstImg' && that.id == '5') {
|
|
||||||
// imageInfoType = '9'
|
|
||||||
// } else if (that.type == 'fileLIstImg' && that.id == '6') {
|
|
||||||
// imageInfoType = '10'
|
|
||||||
// } else if (that.type == 'saleInsuredInfoOther' && that.id == '7') {
|
|
||||||
// imageInfoType = '11'
|
|
||||||
// }
|
|
||||||
if (that.type == 'fileListIdFront' && that.id == '1') {
|
if (that.type == 'fileListIdFront' && that.id == '1') {
|
||||||
//身份证正面
|
//身份证正面
|
||||||
name = 'fileListIdFront'
|
name = 'fileListIdFront'
|
||||||
imageInfoType = '1'
|
imageInfoType = '1'
|
||||||
|
this.fileListIdFront = {
|
||||||
|
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||||
|
}
|
||||||
} else if (that.type == 'fileListIdBack' && that.id == '1') {
|
} else if (that.type == 'fileListIdBack' && that.id == '1') {
|
||||||
//身份证反面
|
//身份证反面
|
||||||
name = 'fileListIdBack'
|
name = 'fileListIdBack'
|
||||||
imageInfoType = '2'
|
imageInfoType = '2'
|
||||||
|
this.fileListIdBack = {
|
||||||
|
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||||
|
}
|
||||||
} else if (that.type == 'fileListIdFront' && that.id == '2') {
|
} else if (that.type == 'fileListIdFront' && that.id == '2') {
|
||||||
//户口本正面
|
//户口本正面
|
||||||
name = 'fileListIdFront'
|
name = 'fileListIdFront'
|
||||||
imageInfoType = '5'
|
imageInfoType = '5'
|
||||||
|
this.fileListIdFront = {
|
||||||
|
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||||
|
}
|
||||||
} else if (that.type == 'fileListIdBack' && that.id == '2') {
|
} else if (that.type == 'fileListIdBack' && that.id == '2') {
|
||||||
//户口本反面
|
//户口本反面
|
||||||
name = 'fileListIdBack'
|
name = 'fileListIdBack'
|
||||||
imageInfoType = '6'
|
imageInfoType = '6'
|
||||||
|
this.fileListIdBack = {
|
||||||
|
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||||
|
}
|
||||||
} else if (that.type == 'fileListIdFront' && that.id == '3') {
|
} else if (that.type == 'fileListIdFront' && that.id == '3') {
|
||||||
//出生证正面
|
//出生证正面
|
||||||
name = 'fileListIdFront'
|
name = 'fileListIdFront'
|
||||||
imageInfoType = '7'
|
imageInfoType = '7'
|
||||||
|
this.fileListIdFront = {
|
||||||
|
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||||
|
}
|
||||||
} else if (that.type == 'fileListIdBack' && that.id == '3') {
|
} else if (that.type == 'fileListIdBack' && that.id == '3') {
|
||||||
//出生证反面
|
//出生证反面
|
||||||
name = 'fileListIdBack'
|
name = 'fileListIdBack'
|
||||||
imageInfoType = '12'
|
imageInfoType = '12'
|
||||||
|
this.fileListIdBack = {
|
||||||
|
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||||
|
}
|
||||||
} else if (that.type == 'fileLIstImg' && that.id == '4') {
|
} else if (that.type == 'fileLIstImg' && that.id == '4') {
|
||||||
//护照面
|
//护照面
|
||||||
name = 'fileLIstImg'
|
name = 'fileLIstImg'
|
||||||
imageInfoType = '8'
|
imageInfoType = '8'
|
||||||
|
this.fileLIstImg = {
|
||||||
|
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||||
|
}
|
||||||
} else if (that.type == 'fileListIdFront' && that.id == '5') {
|
} else if (that.type == 'fileListIdFront' && that.id == '5') {
|
||||||
//港澳居民来往内地通行证正面
|
//港澳居民来往内地通行证正面
|
||||||
name = 'fileListIdFront'
|
name = 'fileListIdFront'
|
||||||
imageInfoType = '9'
|
imageInfoType = '9'
|
||||||
|
this.fileListIdFront = {
|
||||||
|
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||||
|
}
|
||||||
} else if (that.type == 'fileListIdBack' && that.id == '5') {
|
} else if (that.type == 'fileListIdBack' && that.id == '5') {
|
||||||
//港澳居民来往内地通行证反面
|
//港澳居民来往内地通行证反面
|
||||||
name = 'fileListIdBack'
|
name = 'fileListIdBack'
|
||||||
imageInfoType = '13'
|
imageInfoType = '13'
|
||||||
|
this.fileListIdBack = {
|
||||||
|
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||||
|
}
|
||||||
} else if (that.type == 'fileListIdFront' && that.id == '6') {
|
} else if (that.type == 'fileListIdFront' && that.id == '6') {
|
||||||
//台湾居民来往大陆通行证正面
|
//台湾居民来往大陆通行证正面
|
||||||
name = 'fileListIdFront'
|
name = 'fileListIdFront'
|
||||||
imageInfoType = '10'
|
imageInfoType = '10'
|
||||||
|
this.fileListIdFront = {
|
||||||
|
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||||
|
}
|
||||||
} else if (that.type == 'fileListIdBack' && that.id == '6') {
|
} else if (that.type == 'fileListIdBack' && that.id == '6') {
|
||||||
//台湾居民来往大陆通行证反面
|
//台湾居民来往大陆通行证反面
|
||||||
name = 'fileListIdBack'
|
name = 'fileListIdBack'
|
||||||
imageInfoType = '14'
|
imageInfoType = '14'
|
||||||
|
this.fileListIdBack = {
|
||||||
|
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||||
|
}
|
||||||
} else if (that.type == 'fileListIdFront' && that.id == '8') {
|
} else if (that.type == 'fileListIdFront' && that.id == '8') {
|
||||||
//外国人永久居留身份证正面
|
//外国人永久居留身份证正面
|
||||||
name = 'fileListIdFront'
|
name = 'fileListIdFront'
|
||||||
imageInfoType = '15'
|
imageInfoType = '15'
|
||||||
|
this.fileListIdFront = {
|
||||||
|
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||||
|
}
|
||||||
} else if (that.type == 'fileListIdBack' && that.id == '8') {
|
} else if (that.type == 'fileListIdBack' && that.id == '8') {
|
||||||
//外国人永久居留身份证反面
|
//外国人永久居留身份证反面
|
||||||
name = 'fileListIdBack'
|
name = 'fileListIdBack'
|
||||||
imageInfoType = '16'
|
imageInfoType = '16'
|
||||||
|
this.fileListIdBack = {
|
||||||
|
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||||
|
}
|
||||||
} else if (that.type == 'fileListIdFront' && that.id == '9') {
|
} else if (that.type == 'fileListIdFront' && that.id == '9') {
|
||||||
//港澳台居民居住证正面
|
//港澳台居民居住证正面
|
||||||
name = 'fileListIdFront'
|
name = 'fileListIdFront'
|
||||||
imageInfoType = '17'
|
imageInfoType = '17'
|
||||||
|
this.fileListIdFront = {
|
||||||
|
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||||
|
}
|
||||||
} else if (that.type == 'fileListIdBack' && that.id == '9') {
|
} else if (that.type == 'fileListIdBack' && that.id == '9') {
|
||||||
//港澳台居民居住证反面
|
//港澳台居民居住证反面
|
||||||
name = 'fileListIdBack'
|
name = 'fileListIdBack'
|
||||||
imageInfoType = '18'
|
imageInfoType = '18'
|
||||||
|
this.fileListIdBack = {
|
||||||
|
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||||
|
}
|
||||||
} else if (that.type == 'fileListBank') {
|
} else if (that.type == 'fileListBank') {
|
||||||
//银行卡正面
|
//银行卡正面
|
||||||
name = 'fileListBank'
|
name = 'fileListBank'
|
||||||
imageInfoType = '3'
|
imageInfoType = '3'
|
||||||
// } else if (that.type == 'fileListBankBack') {
|
this.fileListBank = {
|
||||||
// //银行卡反面
|
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||||
// imageInfoType = '19'
|
}
|
||||||
} else if (that.type == 'fileListNotify') {
|
} else if (that.type == 'fileListNotify') {
|
||||||
name = 'fileListNotify'
|
name = 'fileListNotify'
|
||||||
imageInfoType = '24'
|
imageInfoType = '24'
|
||||||
|
this.fileListNotify = {
|
||||||
|
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
let obj = {
|
let obj = {
|
||||||
name: name,
|
name: name,
|
||||||
@@ -1149,70 +1008,109 @@ export default {
|
|||||||
}
|
}
|
||||||
this.imageType = imageInfoType
|
this.imageType = imageInfoType
|
||||||
that.list.push(obj)
|
that.list.push(obj)
|
||||||
} else if (
|
}
|
||||||
that.type == 'fileListIdFrontInsured' ||
|
else if (that.type == 'fileListIdFrontInsured' || that.type == 'fileListIdBackInsured' || that.type == 'fileListBankInsured' || that.type == 'fileLIstImgInsured' || that.type == 'fileListNotifyInsured' || that.type == 'saleInsuredPersonInfoOther') {
|
||||||
that.type == 'fileListIdBackInsured' ||
|
|
||||||
that.type == 'fileListBankInsured' ||
|
|
||||||
that.type == 'fileLIstImgInsured' ||
|
|
||||||
that.type == 'fileListNotifyInsured' ||
|
|
||||||
that.type == 'saleInsuredPersonInfoOther'
|
|
||||||
) {
|
|
||||||
// 是被保险人
|
// 是被保险人
|
||||||
// 证件类型
|
// 证件类型
|
||||||
|
|
||||||
let imageInfoType = ''
|
let imageInfoType = ''
|
||||||
let name = ''
|
let name = ''
|
||||||
|
|
||||||
if (that.type == 'fileListIdFrontInsured' && that.id == '1') {
|
if (that.type == 'fileListIdFrontInsured' && that.id == '1') {
|
||||||
name = 'fileListIdFrontInsured'
|
name = 'fileListIdFrontInsured'
|
||||||
imageInfoType = '1'
|
imageInfoType = '1'
|
||||||
|
this.fileListIdFrontInsured = {
|
||||||
|
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||||
|
}
|
||||||
} else if (that.type == 'fileListIdBackInsured' && that.id == '1') {
|
} else if (that.type == 'fileListIdBackInsured' && that.id == '1') {
|
||||||
name = 'fileListIdBackInsured'
|
name = 'fileListIdBackInsured'
|
||||||
imageInfoType = '2'
|
imageInfoType = '2'
|
||||||
|
this.fileListIdBackInsured = {
|
||||||
|
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||||
|
}
|
||||||
} else if (that.type == 'fileListIdFrontInsured' && that.id == '2') {
|
} else if (that.type == 'fileListIdFrontInsured' && that.id == '2') {
|
||||||
name = 'fileListIdFrontInsured'
|
name = 'fileListIdFrontInsured'
|
||||||
imageInfoType = '5'
|
imageInfoType = '5'
|
||||||
|
this.fileListIdFrontInsured = {
|
||||||
|
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||||
|
}
|
||||||
} else if (that.type == 'fileListIdBackInsured' && that.id == '2') {
|
} else if (that.type == 'fileListIdBackInsured' && that.id == '2') {
|
||||||
name = 'fileListIdBackInsured'
|
name = 'fileListIdBackInsured'
|
||||||
imageInfoType = '6'
|
imageInfoType = '6'
|
||||||
|
this.fileListIdBackInsured = {
|
||||||
|
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||||
|
}
|
||||||
} else if (that.type == 'fileListIdFrontInsured' && that.id == '3') {
|
} else if (that.type == 'fileListIdFrontInsured' && that.id == '3') {
|
||||||
name = 'fileListIdFrontInsured'
|
name = 'fileListIdFrontInsured'
|
||||||
imageInfoType = '7'
|
imageInfoType = '7'
|
||||||
|
this.fileListIdFrontInsured = {
|
||||||
|
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||||
|
}
|
||||||
} else if (that.type == 'fileListIdBackInsured' && that.id == '3') {
|
} else if (that.type == 'fileListIdBackInsured' && that.id == '3') {
|
||||||
name = 'fileListIdBackInsured'
|
name = 'fileListIdBackInsured'
|
||||||
imageInfoType = '12'
|
imageInfoType = '12'
|
||||||
|
this.fileListIdBackInsured = {
|
||||||
|
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||||
|
}
|
||||||
} else if (that.type == 'fileLIstImgInsured' && that.id == '4') {
|
} else if (that.type == 'fileLIstImgInsured' && that.id == '4') {
|
||||||
name = 'fileLIstImgInsured'
|
name = 'fileLIstImgInsured'
|
||||||
imageInfoType = '8'
|
imageInfoType = '8'
|
||||||
|
this.fileLIstImgInsured = {
|
||||||
|
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||||
|
}
|
||||||
} else if (that.type == 'fileListIdFrontInsured' && that.id == '5') {
|
} else if (that.type == 'fileListIdFrontInsured' && that.id == '5') {
|
||||||
name = 'fileListIdFrontInsured'
|
name = 'fileListIdFrontInsured'
|
||||||
imageInfoType = '9'
|
imageInfoType = '9'
|
||||||
|
this.fileListIdFrontInsured = {
|
||||||
|
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||||
|
}
|
||||||
} else if (that.type == 'fileListIdBackInsured' && that.id == '5') {
|
} else if (that.type == 'fileListIdBackInsured' && that.id == '5') {
|
||||||
name = 'fileListIdBackInsured'
|
name = 'fileListIdBackInsured'
|
||||||
imageInfoType = '13'
|
imageInfoType = '13'
|
||||||
|
this.fileListIdBackInsured = {
|
||||||
|
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||||
|
}
|
||||||
} else if (that.type == 'fileListIdFrontInsured' && that.id == '6') {
|
} else if (that.type == 'fileListIdFrontInsured' && that.id == '6') {
|
||||||
name = 'fileListIdFrontInsured'
|
name = 'fileListIdFrontInsured'
|
||||||
imageInfoType = '10'
|
imageInfoType = '10'
|
||||||
|
this.fileListIdFrontInsured = {
|
||||||
|
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||||
|
}
|
||||||
} else if (that.type == 'fileListIdBackInsured' && that.id == '6') {
|
} else if (that.type == 'fileListIdBackInsured' && that.id == '6') {
|
||||||
name = 'fileListIdBackInsured'
|
name = 'fileListIdBackInsured'
|
||||||
imageInfoType = '14'
|
imageInfoType = '14'
|
||||||
|
this.fileListIdBackInsured = {
|
||||||
|
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||||
|
}
|
||||||
} else if (that.type == 'fileListIdFrontInsured' && that.id == '8') {
|
} else if (that.type == 'fileListIdFrontInsured' && that.id == '8') {
|
||||||
name = 'fileListIdFrontInsured'
|
name = 'fileListIdFrontInsured'
|
||||||
imageInfoType = '15'
|
imageInfoType = '15'
|
||||||
|
this.fileListIdFrontInsured = {
|
||||||
|
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||||
|
}
|
||||||
} else if (that.type == 'fileListIdBackInsured' && that.id == '8') {
|
} else if (that.type == 'fileListIdBackInsured' && that.id == '8') {
|
||||||
name = 'fileListIdBackInsured'
|
name = 'fileListIdBackInsured'
|
||||||
imageInfoType = '16'
|
imageInfoType = '16'
|
||||||
|
this.fileListIdBackInsured = {
|
||||||
|
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||||
|
}
|
||||||
} else if (that.type == 'fileListIdFrontInsured' && that.id == '9') {
|
} else if (that.type == 'fileListIdFrontInsured' && that.id == '9') {
|
||||||
name = 'fileListIdFrontInsured'
|
name = 'fileListIdFrontInsured'
|
||||||
imageInfoType = '17'
|
imageInfoType = '17'
|
||||||
|
this.fileListIdFrontInsured = {
|
||||||
|
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||||
|
}
|
||||||
} else if (that.type == 'fileListIdBackInsured' && that.id == '9') {
|
} else if (that.type == 'fileListIdBackInsured' && that.id == '9') {
|
||||||
name = 'fileListIdBackInsured'
|
name = 'fileListIdBackInsured'
|
||||||
imageInfoType = '18'
|
imageInfoType = '18'
|
||||||
|
this.fileListIdBackInsured = {
|
||||||
|
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||||
|
}
|
||||||
} else if (that.type == 'fileListNotifyInsured') {
|
} else if (that.type == 'fileListNotifyInsured') {
|
||||||
name = 'fileListNotifyInsured'
|
name = 'fileListNotifyInsured'
|
||||||
imageInfoType = '24'
|
imageInfoType = '24'
|
||||||
|
this.fileListNotifyInsured = {
|
||||||
|
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let obj = {
|
let obj = {
|
||||||
name: name,
|
name: name,
|
||||||
businessNo: that.orderNo,
|
businessNo: that.orderNo,
|
||||||
@@ -1225,64 +1123,103 @@ export default {
|
|||||||
}
|
}
|
||||||
this.imageType = imageInfoType
|
this.imageType = imageInfoType
|
||||||
that.list.push(obj)
|
that.list.push(obj)
|
||||||
} else if (
|
}
|
||||||
that.type == 'fileListIdFrontBeneficiary' ||
|
else if (that.type == 'fileListIdFrontBeneficiary' || that.type == 'fileListIdBackBeneficiary' || that.type == 'fileLIstImgBeneficiary') {
|
||||||
that.type == 'fileListIdBackBeneficiary' ||
|
|
||||||
that.type == 'fileLIstImgBeneficiary'
|
|
||||||
) {
|
|
||||||
// 是收益人
|
// 是收益人
|
||||||
// 证件类型
|
// 证件类型
|
||||||
|
|
||||||
let imageInfoType = ''
|
let imageInfoType = ''
|
||||||
let name = ''
|
let name = ''
|
||||||
|
|
||||||
if (that.type == 'fileListIdFrontBeneficiary' && that.id == '1') {
|
if (that.type == 'fileListIdFrontBeneficiary' && that.id == '1') {
|
||||||
name = 'fileListIdFrontBeneficiary'
|
name = 'fileListIdFrontBeneficiary'
|
||||||
imageInfoType = '1'
|
imageInfoType = '1'
|
||||||
|
this.fileListIdFrontBeneficiary = {
|
||||||
|
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||||
|
}
|
||||||
} else if (that.type == 'fileListIdBackBeneficiary' && that.id == '1') {
|
} else if (that.type == 'fileListIdBackBeneficiary' && that.id == '1') {
|
||||||
name = 'fileListIdBackBeneficiary'
|
name = 'fileListIdBackBeneficiary'
|
||||||
imageInfoType = '2'
|
imageInfoType = '2'
|
||||||
|
this.fileListIdBackBeneficiary = {
|
||||||
|
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||||
|
}
|
||||||
} else if (that.type == 'fileListIdFrontBeneficiary' && that.id == '2') {
|
} else if (that.type == 'fileListIdFrontBeneficiary' && that.id == '2') {
|
||||||
name = 'fileListIdFrontBeneficiary'
|
name = 'fileListIdFrontBeneficiary'
|
||||||
imageInfoType = '5'
|
imageInfoType = '5'
|
||||||
|
this.fileListIdFrontBeneficiary = {
|
||||||
|
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||||
|
}
|
||||||
} else if (that.type == 'fileListIdBackBeneficiary' && that.id == '2') {
|
} else if (that.type == 'fileListIdBackBeneficiary' && that.id == '2') {
|
||||||
name = 'fileListIdBackBeneficiary'
|
name = 'fileListIdBackBeneficiary'
|
||||||
imageInfoType = '6'
|
imageInfoType = '6'
|
||||||
|
this.fileListIdBackBeneficiary = {
|
||||||
|
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||||
|
}
|
||||||
} else if (that.type == 'fileListIdFrontBeneficiary' && that.id == '3') {
|
} else if (that.type == 'fileListIdFrontBeneficiary' && that.id == '3') {
|
||||||
name = 'fileListIdFrontBeneficiary'
|
name = 'fileListIdFrontBeneficiary'
|
||||||
imageInfoType = '7'
|
imageInfoType = '7'
|
||||||
|
this.fileListIdFrontBeneficiary = {
|
||||||
|
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||||
|
}
|
||||||
} else if (that.type == 'fileListIdBackBeneficiary' && that.id == '3') {
|
} else if (that.type == 'fileListIdBackBeneficiary' && that.id == '3') {
|
||||||
name = 'fileListIdBackBeneficiary'
|
name = 'fileListIdBackBeneficiary'
|
||||||
imageInfoType = '12'
|
imageInfoType = '12'
|
||||||
|
this.fileListIdBackBeneficiary = {
|
||||||
|
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||||
|
}
|
||||||
} else if (that.type == 'fileLIstImgBeneficiary' && that.id == '4') {
|
} else if (that.type == 'fileLIstImgBeneficiary' && that.id == '4') {
|
||||||
name = 'fileLIstImgBeneficiary'
|
name = 'fileLIstImgBeneficiary'
|
||||||
imageInfoType = '8'
|
imageInfoType = '8'
|
||||||
|
this.fileLIstImgBeneficiary = {
|
||||||
|
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||||
|
}
|
||||||
} else if (that.type == 'fileListIdFrontBeneficiary' && that.id == '5') {
|
} else if (that.type == 'fileListIdFrontBeneficiary' && that.id == '5') {
|
||||||
name = 'fileListIdFrontBeneficiary'
|
name = 'fileListIdFrontBeneficiary'
|
||||||
imageInfoType = '9'
|
imageInfoType = '9'
|
||||||
|
this.fileListIdFrontBeneficiary = {
|
||||||
|
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||||
|
}
|
||||||
} else if (that.type == 'fileListIdBackBeneficiary' && that.id == '5') {
|
} else if (that.type == 'fileListIdBackBeneficiary' && that.id == '5') {
|
||||||
name = 'fileListIdBackBeneficiary'
|
name = 'fileListIdBackBeneficiary'
|
||||||
imageInfoType = '13'
|
imageInfoType = '13'
|
||||||
|
this.fileListIdBackBeneficiary = {
|
||||||
|
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||||
|
}
|
||||||
} else if (that.type == 'fileListIdFrontBeneficiary' && that.id == '6') {
|
} else if (that.type == 'fileListIdFrontBeneficiary' && that.id == '6') {
|
||||||
name = 'fileListIdFrontBeneficiary'
|
name = 'fileListIdFrontBeneficiary'
|
||||||
imageInfoType = '10'
|
imageInfoType = '10'
|
||||||
|
this.fileListIdFrontBeneficiary = {
|
||||||
|
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||||
|
}
|
||||||
} else if (that.type == 'fileListIdBackBeneficiary' && that.id == '6') {
|
} else if (that.type == 'fileListIdBackBeneficiary' && that.id == '6') {
|
||||||
name = 'fileListIdBackBeneficiary'
|
name = 'fileListIdBackBeneficiary'
|
||||||
imageInfoType = '14'
|
imageInfoType = '14'
|
||||||
|
this.fileListIdBackBeneficiary = {
|
||||||
|
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||||
|
}
|
||||||
} else if (that.type == 'fileListIdFrontBeneficiary' && that.id == '8') {
|
} else if (that.type == 'fileListIdFrontBeneficiary' && that.id == '8') {
|
||||||
name = 'fileListIdFrontBeneficiary'
|
name = 'fileListIdFrontBeneficiary'
|
||||||
imageInfoType = '15'
|
imageInfoType = '15'
|
||||||
|
this.fileListIdFrontBeneficiary = {
|
||||||
|
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||||
|
}
|
||||||
} else if (that.type == 'fileListIdBackBeneficiary' && that.id == '8') {
|
} else if (that.type == 'fileListIdBackBeneficiary' && that.id == '8') {
|
||||||
name = 'fileListIdBackBeneficiary'
|
name = 'fileListIdBackBeneficiary'
|
||||||
imageInfoType = '16'
|
imageInfoType = '16'
|
||||||
|
this.fileListIdBackBeneficiary = {
|
||||||
|
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||||
|
}
|
||||||
} else if (that.type == 'fileListIdFrontBeneficiary' && that.id == '9') {
|
} else if (that.type == 'fileListIdFrontBeneficiary' && that.id == '9') {
|
||||||
name = 'fileListIdFrontBeneficiary'
|
name = 'fileListIdFrontBeneficiary'
|
||||||
imageInfoType = '17'
|
imageInfoType = '17'
|
||||||
|
this.fileListIdFrontBeneficiary = {
|
||||||
|
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||||
|
}
|
||||||
} else if (that.type == 'fileListIdBackBeneficiary' && that.id == '9') {
|
} else if (that.type == 'fileListIdBackBeneficiary' && that.id == '9') {
|
||||||
name = 'fileListIdBackBeneficiary'
|
name = 'fileListIdBackBeneficiary'
|
||||||
imageInfoType = '18'
|
imageInfoType = '18'
|
||||||
|
this.fileListIdBackBeneficiary = {
|
||||||
|
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let obj = {
|
let obj = {
|
||||||
name: name,
|
name: name,
|
||||||
businessNo: that.orderNo,
|
businessNo: that.orderNo,
|
||||||
@@ -1295,10 +1232,14 @@ export default {
|
|||||||
}
|
}
|
||||||
this.imageType = imageInfoType
|
this.imageType = imageInfoType
|
||||||
that.list.push(obj)
|
that.list.push(obj)
|
||||||
} else if (that.type == 'fileListOther') {
|
}
|
||||||
|
else if (that.type == 'fileListOther') {
|
||||||
// 是其他
|
// 是其他
|
||||||
let type = '2'
|
let type = '2'
|
||||||
let name = 'fileListOther'
|
let name = 'fileListOther'
|
||||||
|
this.fileListOther = {
|
||||||
|
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||||
|
}
|
||||||
let obj = {
|
let obj = {
|
||||||
name: name,
|
name: name,
|
||||||
businessNo: that.orderNo,
|
businessNo: that.orderNo,
|
||||||
@@ -1309,42 +1250,14 @@ export default {
|
|||||||
subBusinessNo: '',
|
subBusinessNo: '',
|
||||||
fileName: that.imgName,
|
fileName: that.imgName,
|
||||||
}
|
}
|
||||||
|
|
||||||
that.list.push(obj)
|
that.list.push(obj)
|
||||||
// } else if (that.type == 'fileListtypebeneficiary') {
|
|
||||||
// // 是受益人
|
|
||||||
// let type = '3'
|
|
||||||
// let obj = {
|
|
||||||
// businessNo: that.orderNo,
|
|
||||||
// businessType: '',
|
|
||||||
// imageInfoType: '21',
|
|
||||||
// rgssUrl: encodeURI(res.path).replace(/\+/g, '%2B'),
|
|
||||||
// subBusinessType: type,
|
|
||||||
// subBusinessNo: '',
|
|
||||||
// fileName: that.imgName
|
|
||||||
// }
|
|
||||||
// that.list.push(obj)
|
|
||||||
} else if (that.type == 'fileListNotify') {
|
} else if (that.type == 'fileListNotify') {
|
||||||
// 健康告知异常类资料
|
|
||||||
// let obj = {
|
|
||||||
// name: 'fileListNotify',
|
|
||||||
// businessNo: that.orderNo,
|
|
||||||
// businessType: '',
|
|
||||||
// imageInfoType: '24',
|
|
||||||
// rgssUrl: encodeURI(res.path).replace(/\+/g, '%2B'),
|
|
||||||
// subBusinessType: '0',
|
|
||||||
// subBusinessNo: '',
|
|
||||||
// fileName: that.imgName,
|
|
||||||
// }
|
|
||||||
// that.list.push(obj)
|
|
||||||
}
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
let imgPath = res.path
|
let imgPath = res.path
|
||||||
//只有身份证件才进行ocr校验
|
//只有身份证件才进行ocr校验
|
||||||
if(that.type == 'fileListIdFront' || that.type == 'fileListIdBack' || that.type == 'fileLIstImg' ||
|
if(that.type == 'fileListIdFront' || that.type == 'fileListIdBack' || that.type == 'fileLIstImg' || that.type == 'fileListIdFrontInsured' || that.type == 'fileListIdBackInsured' || that.type == 'fileLIstImgInsured' || that.type == 'fileListIdFrontBeneficiary'|| that.type == 'fileListIdBackBeneficiary'){
|
||||||
that.type == 'fileListIdFrontInsured' || that.type == 'fileListIdBackInsured' || that.type == 'fileLIstImgInsured'
|
|
||||||
|| that.type == 'fileListIdFrontBeneficiary'|| that.type == 'fileListIdBackBeneficiary'){
|
|
||||||
if(that.id == '1' && this.imageType == '1' && that.type == 'fileListIdFront'){
|
if(that.id == '1' && this.imageType == '1' && that.type == 'fileListIdFront'){
|
||||||
//投保人身份证正面
|
//投保人身份证正面
|
||||||
this.IDCardOCRValite(that.id, this.orderNo, imgPath, 'FRONT', 'appentFront')
|
this.IDCardOCRValite(that.id, this.orderNo, imgPath, 'FRONT', 'appentFront')
|
||||||
@@ -1368,7 +1281,8 @@ export default {
|
|||||||
this.IDCardOCRValite(that.id, this.orderNo, imgPath, "OTHER", '')
|
this.IDCardOCRValite(that.id, this.orderNo, imgPath, "OTHER", '')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}else{
|
}
|
||||||
|
else{
|
||||||
switch (that.type) {
|
switch (that.type) {
|
||||||
case 'fileListIdFront':
|
case 'fileListIdFront':
|
||||||
that.fileListIdFront = []
|
that.fileListIdFront = []
|
||||||
@@ -1427,7 +1341,8 @@ export default {
|
|||||||
}
|
}
|
||||||
this.$toast.clear()
|
this.$toast.clear()
|
||||||
}
|
}
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
switch (that.type) {
|
switch (that.type) {
|
||||||
case 'fileListIdFront':
|
case 'fileListIdFront':
|
||||||
that.fileListIdFront = []
|
that.fileListIdFront = []
|
||||||
@@ -1691,38 +1606,7 @@ export default {
|
|||||||
|
|
||||||
// 点击下一步
|
// 点击下一步
|
||||||
next() {
|
next() {
|
||||||
console.log(888)
|
|
||||||
let that = this
|
let that = this
|
||||||
// this.$toast.loading({
|
|
||||||
// duration: 0, // 持续展示 toast
|
|
||||||
|
|
||||||
// forbidClick: true, // 禁用背景点击
|
|
||||||
|
|
||||||
// loadingType: 'spinner',
|
|
||||||
|
|
||||||
// message: '加载中……'
|
|
||||||
// })
|
|
||||||
//注释双录提示
|
|
||||||
// let request = {
|
|
||||||
// productList: JSON.parse(localStorage.chooseProductCodes),
|
|
||||||
// // productList: ["DCRS_A0009"],
|
|
||||||
// birthday: this.saleInsuredInfo.birthday
|
|
||||||
// }
|
|
||||||
// check(request).then(res => {
|
|
||||||
// if (res.result == '0') {
|
|
||||||
// if (res.status == '0') {
|
|
||||||
// // 弹
|
|
||||||
// window.localStorage.setItem('attachmentShow', '0')
|
|
||||||
// } else {
|
|
||||||
// // 不弹
|
|
||||||
// window.localStorage.setItem('attachmentShow', '1')
|
|
||||||
// }
|
|
||||||
// } else {
|
|
||||||
// // 不弹
|
|
||||||
// window.localStorage.setItem('attachmentShow', '1')
|
|
||||||
// }
|
|
||||||
// })
|
|
||||||
// delete that.list.fileName
|
|
||||||
that.list.map((i) => {
|
that.list.map((i) => {
|
||||||
delete i.name
|
delete i.name
|
||||||
})
|
})
|
||||||
@@ -1783,27 +1667,6 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
// eslint-disable-next-line vue/return-in-computed-property
|
|
||||||
typebeneficiary() {
|
|
||||||
// 1.趸交保费≥20万元或期交保费*总期数≥20万元时,
|
|
||||||
// 2.指定受益人
|
|
||||||
// 3.受益人与被保险人关系为其他
|
|
||||||
if (!window.localStorage.getItem('trialList') == true || !window.localStorage.getItem('beneficiaryInfo') == true) {
|
|
||||||
return false
|
|
||||||
} else {
|
|
||||||
let beneficiaryInfoList = JSON.parse(window.localStorage.getItem('beneficiaryInfo'))
|
|
||||||
if (JSON.parse(window.localStorage.getItem('trialList'))[0].prem >= 200000) {
|
|
||||||
for (let index = 0; index < beneficiaryInfoList.length; index++) {
|
|
||||||
if (beneficiaryInfoList[index].relationToInsured == 5) {
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// return false
|
|
||||||
} else {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
listenChange() {
|
listenChange() {
|
||||||
const {
|
const {
|
||||||
fileListIdFront,
|
fileListIdFront,
|
||||||
@@ -1817,10 +1680,9 @@ export default {
|
|||||||
fileListBankInsured,
|
fileListBankInsured,
|
||||||
fileLIstImgInsured,
|
fileLIstImgInsured,
|
||||||
saleInsuredPersonInfoOther,
|
saleInsuredPersonInfoOther,
|
||||||
saleInsuredInfoOther,
|
saleInsuredInfoOther
|
||||||
// fileListtypebeneficiary
|
|
||||||
} = this
|
} = this
|
||||||
console.log(this)
|
|
||||||
return {
|
return {
|
||||||
fileListIdFront,
|
fileListIdFront,
|
||||||
fileListIdBack,
|
fileListIdBack,
|
||||||
@@ -1833,8 +1695,7 @@ export default {
|
|||||||
fileLIstImgInsured,
|
fileLIstImgInsured,
|
||||||
fileLIstImg,
|
fileLIstImg,
|
||||||
saleInsuredPersonInfoOther,
|
saleInsuredPersonInfoOther,
|
||||||
saleInsuredInfoOther,
|
saleInsuredInfoOther
|
||||||
// fileListtypebeneficiary
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -1957,11 +1818,6 @@ export default {
|
|||||||
) {
|
) {
|
||||||
//去掉收益人添加的,有收益人删掉该行显示下面影藏判断
|
//去掉收益人添加的,有收益人删掉该行显示下面影藏判断
|
||||||
that.isDisabled = false
|
that.isDisabled = false
|
||||||
// if ((that.typebeneficiary && val.fileListtypebeneficiary.length != '0') || (!that.typebeneficiary && val.fileListtypebeneficiary.length == '0')) {
|
|
||||||
// that.isDisabled = false
|
|
||||||
// } else {
|
|
||||||
// that.isDisabled = true
|
|
||||||
// }
|
|
||||||
} else {
|
} else {
|
||||||
that.isDisabled = true
|
that.isDisabled = true
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user