分享链接订单详情查询逻辑修改

This commit is contained in:
liu.xiaofeng@ebiz-digits.com
2023-08-02 15:11:46 +08:00
parent 7082d19d6a
commit 05d472e0cf
2 changed files with 254 additions and 389 deletions

View File

@@ -13,16 +13,7 @@
</van-tabs> </van-tabs>
</van-sticky> </van-sticky>
<van-list <van-list v-model="loading" :immediate-check="false" :finished="finished" :finished-text="finishedText" error-text="请求失败,点击重新加载" :error.sync="error" @load="loadMore" class="pb45">
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="isSuccess">
<div v-if="saleList.length > 0"> <div v-if="saleList.length > 0">
<div v-for="(order, index) in saleList" :key="index"> <div v-for="(order, index) in saleList" :key="index">
@@ -83,57 +74,38 @@
</div> </div>
<div class="text-right mt15 "> <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 v-if="active == 'uncommit'" round @click="goDetail(order)" size="small" class="mr5" type="danger" v-no-more-click="1000">
>编辑</van-button 编辑
> </van-button>
<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">
v-if="active == 'uncommit'" 删除
plain </van-button>
round <van-button @click="againPay(order)" v-if="active == 'commit' && order.orderInfoDTO.orderStatus == '19'" size="small" class="mr5" type="danger" round>
@click.stop="del(order, index)" 重新支付
size="small" </van-button>
class="mr5" <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>
type="danger" 修改卡号
v-no-more-click="1000" </van-button>
>删除</van-button
>
<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
>
<template v-if="active == 'commit' && order.orderInfoDTO.orderStatus == '55'"> <template v-if="active == 'commit' && order.orderInfoDTO.orderStatus == '55'">
<van-button @click="changeCard(order)" size="small" class="mr5" type="danger" round>修改卡号</van-button> <van-button @click="changeCard(order)" size="small" class="mr5" type="danger" round>
<van-button @click="againPay(order)" size="small" class="mr5" type="danger" round>重新支付</van-button> 修改卡号
</van-button>
<van-button @click="againPay(order)" size="small" class="mr5" type="danger" round>
重新支付
</van-button>
</template> </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> <van-button @click="goPay(order)" size="small" class="mr5" type="danger" round>
去支付
</van-button>
</template> </template>
<!-- doubleFlag 1- 0-doubleFlag为0双录时canRevokeDouble加 orderStatus 16 --> <!-- doubleFlag 1- 0-doubleFlag为0双录时canRevokeDouble加 orderStatus 16 -->
<van-button <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>
@click="revokeOrder(order)" 撤单
v-if="active == 'commit' && ((canRevoke[order.orderInfoDTO.orderStatus] && (order.orderInfoDTO.doubleFlag == '1' || order.orderInfoDTO.doubleFlag == null || order.orderInfoDTO.doubleFlag == '')) </van-button>
|| (canRevokeDouble[order.orderInfoDTO.orderStatus] && order.orderInfoDTO.doubleFlag == '0'))" <van-button @click="seePolicy(order)" v-if="active == 'commit'" size="small" type="danger" round>
size="small" 查看投保单
class="mr5" </van-button>
type="danger"
round
>撤单</van-button
>
<van-button @click="seePolicy(order)" v-if="active == 'commit'" size="small" type="danger" round>查看投保单</van-button>
</div> </div>
</div> </div>
</div> </div>
@@ -147,16 +119,7 @@
</van-list> </van-list>
<van-button type="danger" class="bottom-btn" @click="add" v-no-more-click="1000">点我新增</van-button> <van-button type="danger" class="bottom-btn" @click="add" v-no-more-click="1000">点我新增</van-button>
<van-dialog <van-dialog class="dialog-delete" @confirm="checkCaptchaCode" @cancel="cancelCaptchaCode" :before-close="beforeClose" confirm-button-color="#fff" v-model="revokePanelShow" title="短信验证" show-cancel-button>
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> <p class="captchaReceiver">投保人手机号: {{ captchaReceiver | phoneNumFilter }}</p>
<van-field v-model="sms" center clearable placeholder="请输入短信验证码"> <van-field v-model="sms" center clearable placeholder="请输入短信验证码">
<template #button> <template #button>
@@ -538,44 +501,6 @@ export default {
}else if(orderStatus == '63'){//风险测评保存成功, 跳到账户信息-- }else if(orderStatus == '63'){//风险测评保存成功, 跳到账户信息--
url = '/sale/AccountInformation?edit=1&orderNo='+orderNo url = '/sale/AccountInformation?edit=1&orderNo='+orderNo
} }
// switch (orderStatus) {
// case '01': //已签名待客户确认, 跳到签名确认页面
// url = '/sale/SignatureConfirmation?edit=1'
// break
// case '43': //未签名待客户确认, 跳到签名确认页面
// url = '/sale/SignatureConfirmation?edit=1'
// break
// case '35': //投保人保存成功, 跳到被保险人页面--
// url = '/sale/insuredPerson?edit=1'
// break
// case '36': //被保险人保存成功, 跳到已选产品列表
// url = '/common/selectedProduct?edit=1'
// break
// case '37': //受益人保存成功, 跳到告知信息--
// url = '/sale/NotifyingMessage?edit=1'
// break
// case '38': //账户信息保存成功, 跳到附件管理--
// url = '/sale/AttachmentManagement?edit=1'
// break
// case '39': //险种信息保存成功, 跳到已选产品列表
// url = '/common/selectedProduct?edit=1'
// break
// case '40': //告知信息保存成功, 跳到风险测评--
// url = '/sale/answerPage?edit=1'
// break
// case '': //跳到投保人
// url = '/sale/insuredInfo?edit=1'
// break
// case '44': //建议书转投保, 跳到投保人
// url = '/sale/insuredInfo?edit=1'
// break
// case '62': //风险测评保存成功, 跳到账户信息--
// // url = '/sale/AccountInformation?edit=1'
// url = '/sale/answerSuccess?edit=1'
// break
// default:
// break
// }
this.$jump({ this.$jump({
flag: 'h5', flag: 'h5',
extra: { extra: {

View File

@@ -7,8 +7,8 @@
<div v-if="isWeixin" class="bg-white mt10 p20 fs14 tips"> <div v-if="isWeixin" class="bg-white mt10 p20 fs14 tips">
<p> <p>
尊敬的 尊敬的
<span>{{ tipsName }}</span <span>{{ tipsName }}</span>
>先生/女士您好 先生/女士您好
</p> </p>
<p>该保单由国富人寿保险股份有限公司进行承保具体确认信息如下</p> <p>该保单由国富人寿保险股份有限公司进行承保具体确认信息如下</p>
</div> </div>
@@ -47,16 +47,9 @@
</div> </div>
<p class="start" v-if="airSign != '1'">点击开始进行相关操作</p> <p class="start" v-if="airSign != '1'">点击开始进行相关操作</p>
<div v-if="!isInvalid" class="flex justify-content-a mt20"> <div v-if="!isInvalid" class="flex justify-content-a mt20">
<van-button <van-button type="danger" size="normal" class="w150" plain :disabled="changeCard ? agentSign.documentStatus == '1' : agentSignStatus == '3'" v-no-more-click="1000" @click="start_agent('3')">
type="danger" 开始
size="normal" </van-button>
class="w150"
plain
:disabled="changeCard ? agentSign.documentStatus == '1' : agentSignStatus == '3'"
v-no-more-click="1000"
@click="start_agent('3')"
>开始</van-button
>
</div> </div>
<div class="text" v-else>操作时间已失效请联系销售人员</div> <div class="text" v-else>操作时间已失效请联系销售人员</div>
</van-collapse-item> </van-collapse-item>
@@ -89,28 +82,13 @@
</div> </div>
<p class="start" v-if="airSign != '1'">点击开始分享进行相关操作</p> <p class="start" v-if="airSign != '1'">点击开始分享进行相关操作</p>
<div v-if="!isInvalid" class="flex justify-content-a mt20"> <div v-if="!isInvalid" class="flex justify-content-a mt20">
<van-button <van-button v-if="isShow" type="danger" size="normal" class="w150" plain v-no-more-click="1000" :disabled="changeCard ? appntSign.documentStatus == '1' : appntSignStatus == '3'" @click="share(saleInsuredPersonInfo.relationToAppnt == '1' ? '2' : '0')">
v-if="isShow" 分享
type="danger" </van-button>
size="normal"
class="w150"
plain
v-no-more-click="1000"
:disabled="changeCard ? appntSign.documentStatus == '1' : appntSignStatus == '3'"
@click="share(saleInsuredPersonInfo.relationToAppnt == '1' ? '2' : '0')"
>分享</van-button
>
<!-- 前端测试 --> <!-- 前端测试 -->
<van-button <van-button type="danger" size="normal" class="w150" plain :disabled="changeCard ? appntSign.documentStatus == '1' : appntSignStatus == '3'" v-no-more-click="1000" @click="start_ocr(saleInsuredPersonInfo.relationToAppnt == '1' ? '2' : '0')">
type="danger" 开始
size="normal" </van-button>
class="w150"
plain
:disabled="changeCard ? appntSign.documentStatus == '1' : appntSignStatus == '3'"
v-no-more-click="1000"
@click="start_ocr(saleInsuredPersonInfo.relationToAppnt == '1' ? '2' : '0')"
>开始</van-button
>
</div> </div>
<div class="text" v-else>操作时间已失效请联系销售人员</div> <div class="text" v-else>操作时间已失效请联系销售人员</div>
</van-collapse-item> </van-collapse-item>
@@ -134,20 +112,12 @@
</div> </div>
<p class="start" v-if="airSign != '1'">点击开始分享进行相关操作</p> <p class="start" v-if="airSign != '1'">点击开始分享进行相关操作</p>
<div v-if="!isInvalid" class="flex justify-content-a mt20"> <div v-if="!isInvalid" class="flex justify-content-a mt20">
<van-button <van-button v-if="isShow" type="danger" size="normal" class="w150" :disabled="insuredSignStatus == '3'" @click="share('1')" plain v-no-more-click="1000">
v-if="isShow" 分享
type="danger" </van-button>
size="normal" <van-button type="danger" size="normal" plain class="w150" :disabled="insuredSignStatus == '3'" @click="start_ocr('1')" v-no-more-click="1000">
class="w150" 开始
:disabled="insuredSignStatus == '3'" </van-button>
@click="share('1')"
plain
v-no-more-click="1000"
>分享</van-button
>
<van-button type="danger" size="normal" plain class="w150" :disabled="insuredSignStatus == '3'" @click="start_ocr('1')" v-no-more-click="1000"
>开始</van-button
>
</div> </div>
<div class="text" v-else>操作时间已失效请联系销售人员</div> <div class="text" v-else>操作时间已失效请联系销售人员</div>
</van-collapse-item> </van-collapse-item>
@@ -183,16 +153,9 @@
</div> </div>
<p class="start" v-if="airSign != '1'">点击开始分享进行相关操作</p> <p class="start" v-if="airSign != '1'">点击开始分享进行相关操作</p>
<div v-if="!isInvalid" class="flex justify-content-a mt20"> <div v-if="!isInvalid" class="flex justify-content-a mt20">
<van-button <van-button type="danger" size="normal" style="width: 157px" plain :disabled="changeCard ? appntSign.documentStatus == '1' : appntSignStatus == '3'" v-no-more-click="1000" @click="start_ocr(saleInsuredPersonInfo.relationToAppnt == '1' ? '2' : '0')">
type="danger" 开始
size="normal" </van-button>
style="width: 157px"
plain
:disabled="changeCard ? appntSign.documentStatus == '1' : appntSignStatus == '3'"
v-no-more-click="1000"
@click="start_ocr(saleInsuredPersonInfo.relationToAppnt == '1' ? '2' : '0')"
>开始</van-button
>
</div> </div>
<div class="text" v-else>操作时间已失效请联系销售人员</div> <div class="text" v-else>操作时间已失效请联系销售人员</div>
</van-collapse-item> </van-collapse-item>
@@ -216,16 +179,9 @@
</div> </div>
<p class="start" v-if="airSign != '1'">点击开始分享进行相关操作</p> <p class="start" v-if="airSign != '1'">点击开始分享进行相关操作</p>
<div v-if="!isInvalid" class="flex justify-content-a mt20"> <div v-if="!isInvalid" class="flex justify-content-a mt20">
<van-button <van-button type="danger" size="normal" plain style="width: 157px" :disabled="insuredSignStatus == '3'" @click="start_ocr('1')" v-no-more-click="1000">
type="danger" 开始
size="normal" </van-button>
plain
style="width: 157px"
:disabled="insuredSignStatus == '3'"
@click="start_ocr('1')"
v-no-more-click="1000"
>开始</van-button
>
</div> </div>
<div class="text" v-else>操作时间已失效请联系销售人员</div> <div class="text" v-else>操作时间已失效请联系销售人员</div>
</van-collapse-item> </van-collapse-item>
@@ -236,27 +192,17 @@
<div v-if="!isWeixin"> <div v-if="!isWeixin">
<div v-if="changeCard"> <div v-if="changeCard">
<div class="bottom-btn bg-white" v-if="appntSign.documentStatus == '1'"> <div class="bottom-btn bg-white" v-if="appntSign.documentStatus == '1'">
<van-button <van-button type="danger" v-if="relationToAppnt == '1' ? true : appntSign.documentStatus == '1' ? true : false" size="large" @click="rePayMent" v-no-more-click="1000">
type="danger" 支付
v-if="relationToAppnt == '1' ? true : appntSign.documentStatus == '1' ? true : false" </van-button>
size="large"
@click="rePayMent"
v-no-more-click="1000"
>支付</van-button
>
</div> </div>
</div> </div>
<div v-else> <div v-else>
<!--判断代理人自保件承诺书是否签名 或者不是自保件 投保人是否都签名--> <!--判断代理人自保件承诺书是否签名 或者不是自保件 投保人是否都签名-->
<div class="bottom-btn bg-white" v-if="(agentSignStatus == '3'&& appntSignStatus == '3')||(agentSignStatus == ''&& appntSignStatus == '3')"> <div class="bottom-btn bg-white" v-if="(agentSignStatus == '3'&& appntSignStatus == '3')||(agentSignStatus == ''&& appntSignStatus == '3')">
<van-button <van-button type="danger" v-if="relationToAppnt == '1' ? true : insuredSignStatus == '3' ? true : false" size="large" @click="next" v-no-more-click="1000">
type="danger" 提交
v-if="relationToAppnt == '1' ? true : insuredSignStatus == '3' ? true : false" </van-button>
size="large"
@click="next"
v-no-more-click="1000"
>提交</van-button
>
</div> </div>
</div> </div>
</div> </div>
@@ -264,13 +210,7 @@
<!-- <video controls style="width: 100%; max-height: calc(100vh - 60px)" src="/app/video/rlsb.mp4"></video> --> <!-- <video controls style="width: 100%; max-height: calc(100vh - 60px)" src="/app/video/rlsb.mp4"></video> -->
<div class="" v-if="videoShow" style="height: calc(100vh - 60px); display: flex; align-items: center; flex-flow: column; justify-content: center"> <div class="" v-if="videoShow" style="height: calc(100vh - 60px); display: flex; align-items: center; flex-flow: column; justify-content: center">
<!-- <van-notice-bar :scrollable="false" class="notice" style="width: 100%">为维护您的合法权益请您务必观看防范销售误导视频</van-notice-bar> --> <!-- <van-notice-bar :scrollable="false" class="notice" style="width: 100%">为维护您的合法权益请您务必观看防范销售误导视频</van-notice-bar> -->
<video <video controls style="width: 100%; max-height: calc(100vh - 60px)" :src="'https://gf-dev-202005-1254138932.cos.ap-shanghai-fsi.myqcloud.com/gfapp/pub01/2021/04/28/guofulive.MP4'" ref="vid" @timeupdate="timeupdate"></video>
controls
style="width: 100%; max-height: calc(100vh - 60px)"
:src="'https://gf-dev-202005-1254138932.cos.ap-shanghai-fsi.myqcloud.com/gfapp/pub01/2021/04/28/guofulive.MP4'"
ref="vid"
@timeupdate="timeupdate"
></video>
</div> </div>
<div class="bottom-btn bg-white"> <div class="bottom-btn bg-white">
<van-button type="danger" size="large" @click="isVideoUrlClick()" v-no-more-click="1000">下一步</van-button> <van-button type="danger" size="large" @click="isVideoUrlClick()" v-no-more-click="1000">下一步</van-button>
@@ -286,18 +226,10 @@
}}</van-button> }}</van-button>
</van-cell-group> </van-cell-group>
</van-dialog> </van-dialog>
<!-- <UploadImageFile
:typeface="idcardData.typeface && faceAuthCount.weixin < smsAuthNum"
:realName="idcardData.idcardName"
:idno="idcardData.idcardNumber"
@sendimage="sendimage"
>
</UploadImageFile> -->
</div> </div>
</template> </template>
<script> <script>
// import UploadImageFile from '@/components/ebiz/sale/UploadImageFile'
import { Field, Cell, CellGroup, Collapse, CollapseItem, Dialog, NoticeBar } from 'vant' import { Field, Cell, CellGroup, Collapse, CollapseItem, Dialog, NoticeBar } from 'vant'
import { import {
underWrite, underWrite,
@@ -412,122 +344,120 @@ export default {
} }
}, },
methods: { methods: {
timeupdate() { timeupdate() {
console.log(this.$refs['vid'].paused) console.log(this.$refs['vid'].paused)
if (!this.$refs['vid'].paused) { if (!this.$refs['vid'].paused) {
this.isVideoNext = true this.isVideoNext = true
}
},
fakeFaceAuth(expect) {
console.log('模拟调用人脸识别')
return new Promise(function (resolve, reject) {
setTimeout(() => {
console.log('模拟人脸识别完成')
if (expect) {
resolve({ state: '0' })
} else {
reject({ state: '0' })
}
}, 2000)
})
},
appCallBack(data) {
if (data.trigger == 'left_button_click') {
if (this.videoShow) {
this.$jump({
flag: 'navigation',
extra: {
title: '签名确认',
hiddenRight: '1'
}
})
return (this.videoShow = false)
} }
return this.$dialog },
.confirm({ fakeFaceAuth(expect) {
className: 'dialog-delete', console.log('模拟调用人脸识别')
title: '提示', return new Promise(function (resolve, reject) {
message: '退出流程可能会丢失部分数据,是否确认退出?', setTimeout(() => {
cancelButtonColor: '#E9332E', console.log('模拟人脸识别完成')
confirmButtonColor: '#FFFFFF' if (expect) {
}) resolve({ state: '0' })
.then(() => { } else {
reject({ state: '0' })
}
}, 2000)
})
},
appCallBack(data) {
if (data.trigger == 'left_button_click') {
if (this.videoShow) {
this.$jump({ this.$jump({
flag: 'h5', flag: 'navigation',
extra: { extra: {
title: '电子投保单列表', title: '签名确认',
forbidSwipeBack: 1, //当前页面禁止右滑返回 hiddenRight: '1'
url: location.origin + `/#/sale/list`
},
routerInfo: {
path: `/sale/list`,
type: '1'
} }
}) })
}) return (this.videoShow = false)
.catch(() => { }
return return this.$dialog
}) .confirm({
} className: 'dialog-delete',
}, title: '提示',
isVideoUrlClick() { message: '退出流程可能会丢失部分数据,是否确认退出?',
console.log(this.isVideoUrl) cancelButtonColor: '#E9332E',
if (!this.isVideoNext) { confirmButtonColor: '#FFFFFF'
this.$dialog })
.alert({ .then(() => {
className: 'dialog-alert', this.$jump({
title: '提示', flag: 'h5',
message: '为维护您的合法权益,请您务必认真观看防范销售误导视频。', extra: {
confirmButtonColor: '#ee0a24', title: '电子投保单列表',
confirmButtonText: '确认' forbidSwipeBack: 1, //当前页面禁止右滑返回
}) url: location.origin + `/#/sale/list`
.then(() => {}) },
} else { routerInfo: {
this.isVideoNext = !this.isVideoNext path: `/sale/list`,
this.isVideoUrl == 'goUrl' ? this.goUrl() : this.insuredUrl() type: '1'
} }
}, })
// 初始化 })
async init() { .catch(() => {
localStorage.doubleRecordFlag = '0' //0不是双录单 1是双录单 return
if (this.isWeixin) { })
if (this.$route.query.airSign) {
sessionStorage.setItem('airSign', this.$route.query.airSign)
} }
// this.$CacheUtils.setLocItem('saleInsuredInfo', this.$route.query.saleInsuredInfo) },
// window.localStorage.setItem('saleInsuredPersonInfo', this.$route.query.saleInsuredPersonInfo) isVideoUrlClick() {
window.localStorage.setItem('token', this.$route.query.token) console.log(this.isVideoUrl)
window.localStorage.setItem('orderNo', this.$route.query.orderNo) if (!this.isVideoNext) {
// window.localStorage.setItem('relationToAppnt', this.$route.query.relationToAppnt) this.$dialog
// window.localStorage.setItem('productCode', this.$route.query.productCode) .alert({
if (this.$route.query.changeCard == '0') { className: 'dialog-alert',
localStorage.setItem('changeCard', true) title: '提示',
message: '为维护您的合法权益,请您务必认真观看防范销售误导视频。',
confirmButtonColor: '#ee0a24',
confirmButtonText: '确认'
})
.then(() => {})
} else { } else {
localStorage.removeItem('changeCard') this.isVideoNext = !this.isVideoNext
this.isVideoUrl == 'goUrl' ? this.goUrl() : this.insuredUrl()
} }
if (this.$route.query.signInvalid) { },
sessionStorage.setItem('signInvalid', this.$route.query.signInvalid) // 初始化
} async init() {
if (this.$route.query.shareCode) { localStorage.doubleRecordFlag = '0' //0不是双录单 1是双录单
sessionStorage.setItem('shareCode', this.$route.query.shareCode) if (this.isWeixin) {
} if (this.$route.query.airSign) {
let signInvalid = sessionStorage.getItem('signInvalid') sessionStorage.setItem('airSign', this.$route.query.airSign)
let rs = await this.checkSignInvalid(signInvalid) }
console.log('````````````') // this.$CacheUtils.setLocItem('saleInsuredInfo', this.$route.query.saleInsuredInfo)
console.log('rs: ' + rs) // window.localStorage.setItem('saleInsuredPersonInfo', this.$route.query.saleInsuredPersonInfo)
if (rs == '1') { window.localStorage.setItem('token', this.$route.query.token)
this.isInvalid = false window.localStorage.setItem('orderNo', this.$route.query.orderNo)
} else { // window.localStorage.setItem('relationToAppnt', this.$route.query.relationToAppnt)
this.isInvalid = true // window.localStorage.setItem('productCode', this.$route.query.productCode)
} if (this.$route.query.changeCard == '0') {
this.airSign = sessionStorage.getItem('airSign') localStorage.setItem('changeCard', true)
this.shareCode = sessionStorage.getItem('shareCode') } else {
this.changeCard = localStorage.getItem('changeCard') localStorage.removeItem('changeCard')
this.relationToAppnt = this.$route.query.relationToAppnt }
this.isShow = false if (this.$route.query.signInvalid) {
await this.getOrderDetail() sessionStorage.setItem('signInvalid', this.$route.query.signInvalid)
}
console.log('初始化this.appntSign ==', this.appntSign) if (this.$route.query.shareCode) {
sessionStorage.setItem('shareCode', this.$route.query.shareCode)
}
let signInvalid = sessionStorage.getItem('signInvalid')
let rs = await this.checkSignInvalid(signInvalid)
console.log('````````````')
console.log('rs: ' + rs)
if (rs == '1') {
this.isInvalid = false
} else {
this.isInvalid = true
}
this.airSign = sessionStorage.getItem('airSign')
this.shareCode = sessionStorage.getItem('shareCode')
this.changeCard = localStorage.getItem('changeCard')
this.relationToAppnt = this.$route.query.relationToAppnt
this.isShow = false
await this.getOrderDetail()
if ( if (
(this.appntSignStatus == '3' && sessionStorage.getItem('shareCode') == '0') || (this.appntSignStatus == '3' && sessionStorage.getItem('shareCode') == '0') ||
(this.appntSignStatus == '3' && sessionStorage.getItem('shareCode') == '2') (this.appntSignStatus == '3' && sessionStorage.getItem('shareCode') == '2')
@@ -1627,89 +1557,99 @@ export default {
}) })
} }
resolve('success') resolve('success')
} } else {
Dialog.confirm({
title: '提示',
message: res.resultMessage,
showCancelButton: false
}).then(() => {
this.$router.push({
path:'/sale/list'
})
})
}
}) })
}) })
}, },
//自定义key值排序用 //自定义key值排序用
addKey(item) { addKey(item) {
//ducumentCode 1投保须知 2投保单 3产品说明书 4提示书 6免除保险人责任条款说明书 7保险销售行为双录说明 //ducumentCode 1投保须知 2投保单 3产品说明书 4提示书 6免除保险人责任条款说明书 7保险销售行为双录说明
// 8指定保单生效日 9短期险投保须知 10国富人寿自保件承诺书 11柳州保险行业寿险投保风险提示书 12个人信息使用授权 // 8指定保单生效日 9短期险投保须知 10国富人寿自保件承诺书 11柳州保险行业寿险投保风险提示书 12个人信息使用授权
// documentStatus: 文档状态 0 未读 1 已读 2 未签名 3 已签名 // documentStatus: 文档状态 0 未读 1 已读 2 未签名 3 已签名
// documentType: 文档类型 0 阅读文档 1 签名文档 // documentType: 文档类型 0 阅读文档 1 签名文档
// signType: 签名类型 0 投保人 1 被保人 2 本人 // signType: 签名类型 0 投保人 1 被保人 2 本人
if (item.documentCode == '1') { if (item.documentCode == '1') {
item.key = 2 item.key = 2
// item.key = 4 // item.key = 4
item.routePath = 'insuranceInformation' item.routePath = 'insuranceInformation'
} else if (item.documentCode == '2') { } else if (item.documentCode == '2') {
// item.key = 9 // item.key = 9
item.key = 11 item.key = 11
item.routePath = 'SignatureOfElectronic' item.routePath = 'SignatureOfElectronic'
} else if (item.documentCode == '3') { } else if (item.documentCode == '3') {
// item.key = 4 // item.key = 4
item.key = 6 item.key = 6
item.routePath = 'productTip' item.routePath = 'productTip'
} else if (item.documentCode == '4') { } else if (item.documentCode == '4') {
// item.key = 5 // item.key = 5
item.key = 7 item.key = 7
item.routePath = 'InsuranceTip' item.routePath = 'InsuranceTip'
} else if (item.documentCode == '6') { } else if (item.documentCode == '6') {
// item.key = 7 // item.key = 7
item.key = 9 item.key = 9
item.routePath = 'avoidDutyTip' item.routePath = 'avoidDutyTip'
} else if (item.documentCode == '7') { } else if (item.documentCode == '7') {
// item.key = 8 // item.key = 8
item.key = 10 item.key = 10
item.routePath = 'doubleRecordTip' item.routePath = 'doubleRecordTip'
} else if (item.documentCode == '8') { } else if (item.documentCode == '8') {
item.key = 1 item.key = 1
item.routePath = 'apointValidDoc' item.routePath = 'apointValidDoc'
} else if (item.documentCode == '9') { } else if (item.documentCode == '9') {
// item.key = 3 // item.key = 3
item.key = 5 item.key = 5
item.routePath = 'shortPeriodProduct' item.routePath = 'shortPeriodProduct'
}else if (item.documentCode == '10') { }else if (item.documentCode == '10') {
item.key = 1 item.key = 1
item.routePath = 'commitmentSelfProtect' item.routePath = 'commitmentSelfProtect'
} else if (item.documentCode == '11') { } else if (item.documentCode == '11') {
// item.key = 6 // item.key = 6
item.key = 8 item.key = 8
item.routePath = 'InsuranceRiskReminder' item.routePath = 'InsuranceRiskReminder'
} else if (item.documentCode == '12') { } else if (item.documentCode == '12') {
// item.key = 10 // item.key = 10
item.key = 12 item.key = 12
item.routePath = 'PersonalInformation' item.routePath = 'PersonalInformation'
} else if (item.documentCode == '13') { } else if (item.documentCode == '13') {
// item.key = 2 // item.key = 2
item.key = 4 item.key = 4
item.routePath = 'insuranceClauses' item.routePath = 'insuranceClauses'
}else if (item.documentCode == '14') {//风险评估pdf }else if (item.documentCode == '14') {//风险评估pdf
item.key = 3 item.key = 3
item.routePath = 'AnswerTip' item.routePath = 'AnswerTip'
} else if (item.documentCode == '15') { } else if (item.documentCode == '15') {
item.key = 7.1 item.key = 7.1
item.routePath = 'universalRiskNotifyingMessageTip' item.routePath = 'universalRiskNotifyingMessageTip'
} }
},
getSignInvalid() {
this.$toast.loading({
duration: 0, // 持续展示 toast
forbidClick: true, // 禁用背景点击
loadingType: 'spinner',
message: '加载中……'
})
let data = {}
getSignInvalid(data).then((res) => {
if (res.result == '0') {
this.$toast.clear()
this.signInvalid = res.content.sign
}
})
}, },
getSignInvalid() {
this.$toast.loading({
duration: 0, // 持续展示 toast
forbidClick: true, // 禁用背景点击
loadingType: 'spinner',
message: '加载中……'
})
let data = {}
getSignInvalid(data).then((res) => {
if (res.result == '0') {
this.$toast.clear()
this.signInvalid = res.content.sign
}
})
},
async checkSignInvalid(signInvalid) { async checkSignInvalid(signInvalid) {
let that = this let that = this
this.$toast.loading({ this.$toast.loading({