mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-06 16:36:44 +08:00
Merge remote-tracking branch 'origin/feature/FCRS-1036关于金掌桂非实时邮件发送投保资料功能需求' into release/【20251020】银保非实时单金掌桂投保系统需求&&关于金掌桂非实时邮件发送投保资料功能需求
This commit is contained in:
@@ -76,6 +76,24 @@ export function getOrderDetail1(data) {
|
||||
data
|
||||
})
|
||||
}
|
||||
// 投保单邮件发送
|
||||
export function getSendEmail(data) {
|
||||
return request({
|
||||
url: getUrl('/sale/order/sendEmail', 1),
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
// 投保单邮件发送
|
||||
export function getDownloadZip(data) {
|
||||
return request({
|
||||
url: getUrl('/sale/order/downloadZip?orderNo=' + data.orderNo, 1),
|
||||
method: 'get',
|
||||
data,
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
||||
|
||||
// 获取验证码
|
||||
export function getAuthCode(data) {
|
||||
return request({
|
||||
@@ -104,7 +122,7 @@ export function uploadImg(data) {
|
||||
// 上传图片
|
||||
export function uploadImg2(data) {
|
||||
return request1({
|
||||
url: getUrl('/uploadImage?imgType='+store.getters.getUploadImgType+'&orderNo='+store.getters.getUploadImgOrderNo, 1, 2),
|
||||
url: getUrl('/uploadImage?imgType=' + store.getters.getUploadImgType + '&orderNo=' + store.getters.getUploadImgOrderNo, 1, 2),
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
|
||||
@@ -252,6 +252,9 @@ service.interceptors.request.use(
|
||||
// respone拦截器
|
||||
service.interceptors.response.use(
|
||||
response => {
|
||||
if (response.config.responseType) {
|
||||
return response.data
|
||||
}
|
||||
let res = response.data
|
||||
if (
|
||||
(configApp.API_VERSION == 'v2' || configApp.API_VERSION == 'v3') &&
|
||||
|
||||
@@ -13,7 +13,8 @@
|
||||
</van-tabs>
|
||||
</van-sticky>
|
||||
|
||||
<van-list v-model="loading" :immediate-check="false" :finished="finished" :finished-text="finishedText" error-text="请求失败,点击重新加载" :error.sync="error" @load="loadMore" class="pb45">
|
||||
<van-list v-model="loading" :immediate-check="false" :finished="finished" :finished-text="finishedText"
|
||||
error-text="请求失败,点击重新加载" :error.sync="error" @load="loadMore" class="pb45">
|
||||
<div v-if="isSuccess">
|
||||
<div v-if="saleList.length > 0">
|
||||
<div v-for="(order, index) in saleList" :key="index">
|
||||
@@ -55,7 +56,8 @@
|
||||
<span class="c-gray-darker fwb">首期总保费(元)</span>
|
||||
<span class="yellow fwb">{{ order.firstPrem == 0 ? '0.00' : order.firstPrem | moneyFormat }}</span>
|
||||
</div>
|
||||
<div class="pt15" v-if="active == 'commit' || active == 'waitUnderwritten'" style="border-top:1px solid #dadada">
|
||||
<div class="pt15" v-if="active == 'commit' || active == 'waitUnderwritten'"
|
||||
style="border-top:1px solid #dadada">
|
||||
<div>
|
||||
<div class="w80 inline-b">
|
||||
<van-tag plain color="#999999">投保单号</van-tag>
|
||||
@@ -74,16 +76,25 @@
|
||||
</div>
|
||||
|
||||
<div class="text-right mt15 ">
|
||||
<van-button v-if="active == 'uncommit'" round @click="goDetail(order)" size="small" class="mr5" type="danger" v-no-more-click="1000">
|
||||
<van-button round @click="goInsuredInform(order)" size="small" v-if="buttonShow == '14'"
|
||||
:disabled="order.emailStatus == 'disable'" class="mr5" type="danger" v-no-more-click="1000">
|
||||
获取投保资料
|
||||
</van-button>
|
||||
<van-button v-if="active == 'uncommit'" round @click="goDetail(order)" size="small" class="mr5"
|
||||
type="danger" v-no-more-click="1000">
|
||||
编辑
|
||||
</van-button>
|
||||
<van-button v-if="active == 'uncommit'" plain round @click.stop="del(order, index)" size="small" class="mr5" type="danger" v-no-more-click="1000">
|
||||
<van-button v-if="active == 'uncommit'" plain round @click.stop="del(order, index)" size="small"
|
||||
class="mr5" type="danger" v-no-more-click="1000">
|
||||
删除
|
||||
</van-button>
|
||||
<van-button @click="againPay(order)" v-if="active == 'commit' && order.orderInfoDTO.orderStatus == '19'" size="small" class="mr5" type="danger" round>
|
||||
<van-button @click="againPay(order)" v-if="active == 'commit' && order.orderInfoDTO.orderStatus == '19'"
|
||||
size="small" class="mr5" type="danger" round>
|
||||
重新支付
|
||||
</van-button>
|
||||
<van-button @click="changeCard(order)" v-if="(active == 'commit' && order.orderInfoDTO.orderStatus == '48') || (active == 'commit' && order.orderInfoDTO.orderStatus == '49')" size="small" class="mr5" type="danger" round>
|
||||
<van-button @click="changeCard(order)"
|
||||
v-if="(active == 'commit' && order.orderInfoDTO.orderStatus == '48') || (active == 'commit' && order.orderInfoDTO.orderStatus == '49')"
|
||||
size="small" class="mr5" type="danger" round>
|
||||
修改卡号
|
||||
</van-button>
|
||||
<template v-if="active == 'commit' && order.orderInfoDTO.orderStatus == '55'">
|
||||
@@ -94,13 +105,16 @@
|
||||
重新支付
|
||||
</van-button>
|
||||
</template>
|
||||
<template v-if="active == 'commit' && (order.orderInfoDTO.orderStatus == '02' || order.orderInfoDTO.orderStatus == '58')">
|
||||
<template
|
||||
v-if="active == 'commit' && (order.orderInfoDTO.orderStatus == '02' || order.orderInfoDTO.orderStatus == '58')">
|
||||
<van-button @click="goPay(order)" size="small" class="mr5" type="danger" round>
|
||||
支付
|
||||
</van-button>
|
||||
</template>
|
||||
<!-- doubleFlag 1-否 0-是,doubleFlag为0双录时,canRevokeDouble加 orderStatus 16 -->
|
||||
<van-button @click="revokeOrder(order)" v-if="active == 'commit' && ((canRevoke[order.orderInfoDTO.orderStatus] && (order.orderInfoDTO.doubleFlag == '1' || order.orderInfoDTO.doubleFlag == null || order.orderInfoDTO.doubleFlag == ''))|| (canRevokeDouble[order.orderInfoDTO.orderStatus] && order.orderInfoDTO.doubleFlag == '0'))" size="small" class="mr5" type="danger" round>
|
||||
<van-button @click="revokeOrder(order)"
|
||||
v-if="active == 'commit' && ((canRevoke[order.orderInfoDTO.orderStatus] && (order.orderInfoDTO.doubleFlag == '1' || order.orderInfoDTO.doubleFlag == null || order.orderInfoDTO.doubleFlag == '')) || (canRevokeDouble[order.orderInfoDTO.orderStatus] && order.orderInfoDTO.doubleFlag == '0'))"
|
||||
size="small" class="mr5" type="danger" round>
|
||||
撤单
|
||||
</van-button>
|
||||
<van-button @click="seePolicy(order)" v-if="active == 'commit'" size="small" type="danger" round>
|
||||
@@ -119,17 +133,46 @@
|
||||
</van-list>
|
||||
|
||||
<van-button type="danger" class="bottom-btn" @click="add" v-no-more-click="1000">点我新增</van-button>
|
||||
<van-dialog class="dialog-delete" @confirm="checkCaptchaCode" @cancel="cancelCaptchaCode" :before-close="beforeClose" confirm-button-color="#fff" v-model="revokePanelShow" title="短信验证" show-cancel-button>
|
||||
<van-dialog class="dialog-delete" @confirm="checkCaptchaCode" @cancel="cancelCaptchaCode"
|
||||
:before-close="beforeClose" confirm-button-color="#fff" v-model="revokePanelShow" title="短信验证" show-cancel-button>
|
||||
<p class="captchaReceiver">投保人手机号: {{ captchaReceiver | phoneNumFilter }}</p>
|
||||
<van-field v-model="sms" center clearable placeholder="请输入短信验证码">
|
||||
<template #button>
|
||||
<van-button :disabled="sendTime !== 0" v-no-more-click="1000" @click="getCaptchaCode" size="small" type="danger">{{
|
||||
sendTime ? `${sendTime}s后获取` : '获取验证码'
|
||||
}}</van-button>
|
||||
<van-button :disabled="sendTime !== 0" v-no-more-click="1000" @click="getCaptchaCode" size="small"
|
||||
type="danger">{{
|
||||
sendTime ? `${sendTime}s后获取` : '获取验证码'
|
||||
}}</van-button>
|
||||
</template>
|
||||
</van-field>
|
||||
</van-dialog>
|
||||
<!-- <van-dialog class="dialog-getInform" @confirm="checkCaptchaCode" @cancel="cancelCaptchaCode" :before-close="beforeClose" confirm-button-color="#fff" v-model="getInformShow" title="获取投保资料">
|
||||
<p class="captchaReceiver">请输入您获取投保资料的邮箱</p>
|
||||
<van-field v-model="sms" center clearable placeholder="请输入短信验证码">
|
||||
</van-field>
|
||||
</van-dialog> -->
|
||||
<van-popup v-model="getInformShow" round closeable class="insure-popup">
|
||||
<div class="insure-email">
|
||||
<div class="email-box">
|
||||
<div class="email-title">获取投保资料</div>
|
||||
<div class="email-content">
|
||||
<div v-if="inputShow">
|
||||
<div class="email-c">请输入您获取投保资料的邮箱</div>
|
||||
<van-field class="email-input" v-model="emailForm.email" placeholder="请输入邮箱"
|
||||
v-validate="'required|email'" />
|
||||
</div>
|
||||
<div v-if="contentShow">
|
||||
{{ emailContent }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="email-btn">
|
||||
<van-button type="danger" @click="inputShow ? getInformOk() : tipOk()" round>确定</van-button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</van-popup>
|
||||
<!-- 短信验证 -->
|
||||
<check-agent @checModelSuccessMethod="initThisPage" />
|
||||
</div>
|
||||
@@ -137,7 +180,7 @@
|
||||
|
||||
<script>
|
||||
import { Search, Tabs, Tab, List, Tag, Sticky, Toast, Dialog, Field } from 'vant'
|
||||
import { orderList, deleteOrderInfo, getAuthCode, revokeOrder, getBankCardSignState } from '@/api/ebiz/sale/sale'
|
||||
import { orderList, deleteOrderInfo, getAuthCode, revokeOrder, getBankCardSignState, getSendEmail, getDownloadZip } from '@/api/ebiz/sale/sale'
|
||||
import { funcPermCheck } from '@/api/ebiz/common/common'
|
||||
import { formatRiskList } from '@/assets/js/utils/formatRiskList.js'
|
||||
import dataDictionary from '@/assets/js/utils/data-dictionary' //根据数据字典找到用户等级
|
||||
@@ -202,7 +245,13 @@ export default {
|
||||
captchaTimer: null,
|
||||
captchaReceiver: '',
|
||||
revokeOrderNo: '',
|
||||
captchaMaped: false
|
||||
captchaMaped: false,
|
||||
getInformShow: false,
|
||||
emailForm: { email: '' },
|
||||
inputShow: true,
|
||||
contentShow: false,
|
||||
buttonShow: '',
|
||||
emailContent: '系统将会将投保资料发送至您录入邮箱,解压密码为投保人身份证号的后六位,请您稍后进行查看',
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
@@ -216,6 +265,9 @@ export default {
|
||||
funcPermCheck({}).then(res => {
|
||||
this.isCheck = res.result
|
||||
})
|
||||
if (window.localStorage.getItem('branchType') == '14') {
|
||||
this.buttonShow = localStorage.getItem('branchType')
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
beforeClose(action, done) {
|
||||
@@ -265,7 +317,7 @@ export default {
|
||||
this.saleList = []
|
||||
this.isSuccess = false
|
||||
this.currentPage = 1
|
||||
;[this.loading, this.finished] = [true, false]
|
||||
;[this.loading, this.finished] = [true, false]
|
||||
let pageInfo = {
|
||||
pageNum: this.currentPage,
|
||||
pageSize: this.pageSize,
|
||||
@@ -435,27 +487,27 @@ export default {
|
||||
this.currentPage = 1
|
||||
this.active = name
|
||||
this.saleList = []
|
||||
;[this.loading, this.finished] = [true, false]
|
||||
;[this.loading, this.finished] = [true, false]
|
||||
this.finishedText = '正在加载...'
|
||||
this.loadMore()
|
||||
},
|
||||
searchList() {
|
||||
this.currentPage = 1
|
||||
this.saleList = []
|
||||
;[this.loading, this.finished] = [true, false]
|
||||
;[this.loading, this.finished] = [true, false]
|
||||
this.finishedText = '正在加载...'
|
||||
this.loadMore()
|
||||
},
|
||||
//投保单详情
|
||||
async goDetail(order) {
|
||||
let thisToken = this.$CacheUtils.getLocItem('token')
|
||||
let thisbranchType = ''
|
||||
if(this.$CacheUtils.getLocItem('branchType') == '13') {
|
||||
let thisbranchType = ''
|
||||
if (this.$CacheUtils.getLocItem('branchType') == '13') {
|
||||
thisbranchType = this.$CacheUtils.getLocItem('branchType')
|
||||
}
|
||||
window.localStorage.clear()
|
||||
this.$CacheUtils.setLocItem('token', thisToken)
|
||||
if(thisbranchType) {
|
||||
if (thisbranchType) {
|
||||
this.$CacheUtils.setLocItem('branchType', thisbranchType)
|
||||
}
|
||||
window.localStorage.setItem('detailJump', '')
|
||||
@@ -471,18 +523,18 @@ export default {
|
||||
localStorage.orderNo = orderNo
|
||||
localStorage.isFrom = 'sale'
|
||||
localStorage.removeItem('changeCard')
|
||||
if(orderStatus == '01'){ //已签名待客户确认, 跳到签名确认页面
|
||||
url = '/sale/SignatureConfirmation?edit=1&orderNo='+orderNo
|
||||
}else if(orderStatus == '43'){//未签名待客户确认, 跳到签名确认页面
|
||||
url = '/sale/SignatureConfirmation?edit=1&orderNo='+orderNo
|
||||
}else if(orderStatus == '35'){//投保人保存成功, 跳到被保险人页面
|
||||
url = '/sale/insuredPerson?edit=1&orderNo='+orderNo
|
||||
}else if(orderStatus == '36'){//被保险人保存成功, 跳到已选产品列表
|
||||
url = '/common/selectedProduct?edit=1&orderNo='+orderNo
|
||||
}else if(orderStatus == '37'){//受益人保存成功, 跳到告知信息--
|
||||
url = '/sale/NotifyingMessage?edit=1&orderNo='+orderNo
|
||||
}else if(orderStatus == '38'){ //账户信息保存成功, 跳到附件管理--
|
||||
if(order.orderInfoDTO.activeType == 'KMH') {
|
||||
if (orderStatus == '01') { //已签名待客户确认, 跳到签名确认页面
|
||||
url = '/sale/SignatureConfirmation?edit=1&orderNo=' + orderNo
|
||||
} else if (orderStatus == '43') {//未签名待客户确认, 跳到签名确认页面
|
||||
url = '/sale/SignatureConfirmation?edit=1&orderNo=' + orderNo
|
||||
} else if (orderStatus == '35') {//投保人保存成功, 跳到被保险人页面
|
||||
url = '/sale/insuredPerson?edit=1&orderNo=' + orderNo
|
||||
} else if (orderStatus == '36') {//被保险人保存成功, 跳到已选产品列表
|
||||
url = '/common/selectedProduct?edit=1&orderNo=' + orderNo
|
||||
} else if (orderStatus == '37') {//受益人保存成功, 跳到告知信息--
|
||||
url = '/sale/NotifyingMessage?edit=1&orderNo=' + orderNo
|
||||
} else if (orderStatus == '38') { //账户信息保存成功, 跳到附件管理--
|
||||
if (order.orderInfoDTO.activeType == 'KMH') {
|
||||
let params = {
|
||||
orderNo: order.orderInfoDTO.orderNo
|
||||
}
|
||||
@@ -494,47 +546,47 @@ export default {
|
||||
})
|
||||
await getBankCardSignState(params).then(res => {
|
||||
this.$toast.clear()
|
||||
if(res.result == 0) {
|
||||
if(res.content.needSign == '0' || res.content.needSign == null) {
|
||||
if(res.content.signState == '0' || res.content.signState == '2') {
|
||||
url = '/sale/AttachmentManagement?edit=1&orderNo='+orderNo
|
||||
if (res.result == 0) {
|
||||
if (res.content.needSign == '0' || res.content.needSign == null) {
|
||||
if (res.content.signState == '0' || res.content.signState == '2') {
|
||||
url = '/sale/AttachmentManagement?edit=1&orderNo=' + orderNo
|
||||
} else {
|
||||
url = '/sale/AccountInformation?edit=1&orderNo='+orderNo
|
||||
url = '/sale/AccountInformation?edit=1&orderNo=' + orderNo
|
||||
}
|
||||
} else {
|
||||
url = '/sale/AccountInformation?edit=1&orderNo='+orderNo
|
||||
url = '/sale/AccountInformation?edit=1&orderNo=' + orderNo
|
||||
}
|
||||
} else {
|
||||
this.$toast(res.resultMessage)
|
||||
}
|
||||
})
|
||||
} else {
|
||||
url = '/sale/AttachmentManagement?edit=1&orderNo='+orderNo
|
||||
url = '/sale/AttachmentManagement?edit=1&orderNo=' + orderNo
|
||||
}
|
||||
}else if(orderStatus == '39'){ //险种信息保存成功, 跳到已选产品列表
|
||||
url = '/common/selectedProduct?edit=1&orderNo='+orderNo
|
||||
}else if(orderStatus == '40'){//告知信息保存成功, 跳到风险测评--
|
||||
if( order.riskEvaluationDTO.isShowEvaluationPoint != '1'){
|
||||
if(order.universalRiskNotifyDTO && order.universalRiskNotifyDTO.isUniversalRiskNotifyShowPoint == '1'){
|
||||
url = '/sale/universalRiskNotifyingMessage?edit=1&orderNo='+orderNo
|
||||
}else{
|
||||
url = '/sale/AccountInformation?edit=1&orderNo='+orderNo
|
||||
} else if (orderStatus == '39') { //险种信息保存成功, 跳到已选产品列表
|
||||
url = '/common/selectedProduct?edit=1&orderNo=' + orderNo
|
||||
} else if (orderStatus == '40') {//告知信息保存成功, 跳到风险测评--
|
||||
if (order.riskEvaluationDTO.isShowEvaluationPoint != '1') {
|
||||
if (order.universalRiskNotifyDTO && order.universalRiskNotifyDTO.isUniversalRiskNotifyShowPoint == '1') {
|
||||
url = '/sale/universalRiskNotifyingMessage?edit=1&orderNo=' + orderNo
|
||||
} else {
|
||||
url = '/sale/AccountInformation?edit=1&orderNo=' + orderNo
|
||||
}
|
||||
}else {
|
||||
url = '/sale/answerPage?edit=1&orderNo='+orderNo
|
||||
} else {
|
||||
url = '/sale/answerPage?edit=1&orderNo=' + orderNo
|
||||
}
|
||||
}else if(orderStatus == ''){//跳到投保人
|
||||
url = '/sale/insuredInfo?edit=1&orderNo='+orderNo
|
||||
}else if(orderStatus == '44'){//建议书转投保, 跳到投保人
|
||||
url = '/sale/insuredInfo?edit=1&orderNo='+orderNo
|
||||
}else if(orderStatus == '62'){//风险测评保存成功, 跳到账户信息--
|
||||
if(order.universalRiskNotifyDTO && order.universalRiskNotifyDTO.isUniversalRiskNotifyShowPoint != '1'){
|
||||
url = '/sale/AccountInformation?edit=1&orderNo='+orderNo
|
||||
}else{
|
||||
url = '/sale/universalRiskNotifyingMessage?edit=1&orderNo='+orderNo
|
||||
} else if (orderStatus == '') {//跳到投保人
|
||||
url = '/sale/insuredInfo?edit=1&orderNo=' + orderNo
|
||||
} else if (orderStatus == '44') {//建议书转投保, 跳到投保人
|
||||
url = '/sale/insuredInfo?edit=1&orderNo=' + orderNo
|
||||
} else if (orderStatus == '62') {//风险测评保存成功, 跳到账户信息--
|
||||
if (order.universalRiskNotifyDTO && order.universalRiskNotifyDTO.isUniversalRiskNotifyShowPoint != '1') {
|
||||
url = '/sale/AccountInformation?edit=1&orderNo=' + orderNo
|
||||
} else {
|
||||
url = '/sale/universalRiskNotifyingMessage?edit=1&orderNo=' + orderNo
|
||||
}
|
||||
}else if(orderStatus == '63'){//风险测评保存成功, 跳到账户信息--
|
||||
url = '/sale/AccountInformation?edit=1&orderNo='+orderNo
|
||||
} else if (orderStatus == '63') {//风险测评保存成功, 跳到账户信息--
|
||||
url = '/sale/AccountInformation?edit=1&orderNo=' + orderNo
|
||||
}
|
||||
this.$jump({
|
||||
flag: 'h5',
|
||||
@@ -570,7 +622,7 @@ export default {
|
||||
this.saleList = []
|
||||
this.isSuccess = false
|
||||
this.currentPage = 1
|
||||
;[this.loading, this.finished] = [true, false]
|
||||
;[this.loading, this.finished] = [true, false]
|
||||
let pageInfo = {
|
||||
pageNum: this.currentPage,
|
||||
pageSize: this.pageSize,
|
||||
@@ -582,18 +634,18 @@ export default {
|
||||
}
|
||||
})
|
||||
})
|
||||
.catch(() => {})
|
||||
.catch(() => { })
|
||||
},
|
||||
//新增
|
||||
add() {
|
||||
let thisToken = this.$CacheUtils.getLocItem('token')
|
||||
let thisbranchType = ''
|
||||
if(this.$CacheUtils.getLocItem('branchType') == '13') {
|
||||
let thisbranchType = ''
|
||||
if (this.$CacheUtils.getLocItem('branchType') == '13') {
|
||||
thisbranchType = this.$CacheUtils.getLocItem('branchType')
|
||||
}
|
||||
window.localStorage.clear()
|
||||
this.$CacheUtils.setLocItem('token', thisToken)
|
||||
if(thisbranchType) {
|
||||
if (thisbranchType) {
|
||||
this.$CacheUtils.setLocItem('branchType', thisbranchType)
|
||||
}
|
||||
|
||||
@@ -622,6 +674,81 @@ export default {
|
||||
this.captchaReceiver = order.appntDTO.mobile
|
||||
this.revokeOrderNo = order.orderInfoDTO.orderNo
|
||||
})
|
||||
},
|
||||
// 获取投保资料
|
||||
goInsuredInform(order) {
|
||||
this.getInformShow = true
|
||||
this.inputShow = true
|
||||
this.contentShow = false
|
||||
this.revokeOrderNo = order.orderInfoDTO.orderNo
|
||||
if (order.appntDTO.email) {
|
||||
this.emailForm.email = order.appntDTO.email
|
||||
} else {
|
||||
this.emailForm.email = ''
|
||||
}
|
||||
},
|
||||
// 确定邮件发送
|
||||
getInformOk() {
|
||||
let params = {
|
||||
orderNo: this.revokeOrderNo,
|
||||
emailUrl: this.emailForm.email
|
||||
}
|
||||
this.$validator.validate().then(valid => {
|
||||
if (true === valid) {
|
||||
Toast.loading({
|
||||
message: '加载中...',
|
||||
loadingType: 'spinner',
|
||||
forbidClick: true,
|
||||
duration: 0
|
||||
});
|
||||
getSendEmail(params).then(res => {
|
||||
Toast.clear();
|
||||
if (res.result == '0') {
|
||||
// Toast.loading({
|
||||
// message: '加载中...',
|
||||
// loadingType: 'spinner',
|
||||
// forbidClick: true,
|
||||
// duration: 2000
|
||||
// });
|
||||
// 调用下载方法
|
||||
// getDownloadZip({ orderNo: this.revokeOrderNo }).then(downRes => {、
|
||||
// this.handleDownload(downRes)
|
||||
this.inputShow = false
|
||||
this.contentShow = true
|
||||
this.emailContent = '系统将会将投保资料发送至您录入邮箱,解压密码为投保人身份证号的后六位,请您稍后进行查看'
|
||||
// })
|
||||
} else if (res.result == '1' && res.resultMessage == '2') {
|
||||
this.inputShow = false
|
||||
this.contentShow = true
|
||||
this.emailContent = '该保单近期已经获取过投保资料,请您移步邮箱进行查看'
|
||||
} else if (res.result == '1') {
|
||||
Toast.fail(res.resultMessage)
|
||||
}
|
||||
}).catch(error => {
|
||||
Toast.clear();
|
||||
throw error;
|
||||
})
|
||||
}
|
||||
else {
|
||||
this.$toast(this.$validator.errors.all()[0])
|
||||
}
|
||||
})
|
||||
},
|
||||
// 提示弹窗按钮
|
||||
tipOk() {
|
||||
this.getInformShow = false
|
||||
},
|
||||
handleDownload(data) {
|
||||
// 处理接口返回的文件流
|
||||
const blob = new Blob([data], { type: 'application/zip' });
|
||||
const url = URL.createObjectURL(blob);
|
||||
const a = document.createElement('a');
|
||||
a.href = url;
|
||||
a.download = this.revokeOrderNo + '_appnt_insured.zip'; // 设置下载文件名
|
||||
document.body.appendChild(a);
|
||||
a.click();
|
||||
document.body.removeChild(a);
|
||||
URL.revokeObjectURL(url);
|
||||
}
|
||||
},
|
||||
filters: {
|
||||
@@ -664,7 +791,57 @@ export default {
|
||||
background: #fff !important;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.van-search {
|
||||
background: none !important;
|
||||
}
|
||||
|
||||
.insure-popup {
|
||||
width: 80%;
|
||||
max-width: 500px;
|
||||
margin: auto;
|
||||
max-height: 80vh;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.insure-email {
|
||||
position: relative;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.email-box {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.email-title {
|
||||
text-align: center;
|
||||
color: #ee0a24;
|
||||
font-size: 18px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.email-content {
|
||||
width: 100%;
|
||||
margin: 0 auto 20px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.email-c {
|
||||
margin-bottom: 10px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.email-input {
|
||||
width: 100%;
|
||||
margin: 10px auto;
|
||||
}
|
||||
|
||||
.email-btn {
|
||||
text-align: center;
|
||||
margin-top: 20px;
|
||||
|
||||
.van-button--danger {
|
||||
width: 180px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user