Compare commits

...

9 Commits

Author SHA1 Message Date
liu.xiaofeng@ebiz-digits.com
2ca8936ec7 被保人未成年人,签字页面字段显示错误
【修改卡号】,不能签字成功
2024-01-17 15:11:19 +08:00
liu.xiaofeng@ebiz-digits.com
8b2c48c8c8 大单榜去掉内勤一、二、三 级使用权限限制 2024-01-17 13:03:09 +08:00
liu.xiaofeng@ebiz-digits.com
0236e9e062 大单榜保留数据从10天改为30天 2024-01-16 21:41:36 +08:00
liu.xiaofeng@ebiz-digits.com
8a5d874a27 大单帮日期选择范围修改 2024-01-16 21:41:33 +08:00
liu.xiaofeng@ebiz-digits.com
ae09ce6509 大单帮修改以及接口对接 2024-01-16 21:41:29 +08:00
liu.xiaofeng@ebiz-digits.com
a934a5bab6 修改卡号逻辑处理 2024-01-16 21:21:47 +08:00
liu.xiaofeng@ebiz-digits.com
f3fb3be266 修改卡号逻辑处理 2024-01-16 21:21:44 +08:00
liu.xiaofeng@ebiz-digits.com
160d2c69de 签字页面修改逻辑 2024-01-16 21:21:40 +08:00
liu.xiaofeng@ebiz-digits.com
9989e3ceaa 问题件逻辑处理 2024-01-16 15:06:59 +08:00
6 changed files with 1180 additions and 1048 deletions

View File

@@ -90,3 +90,11 @@ export function queryOutPosters(data) {
})
}
//大单榜海报列表接口
export function queryOutPostersBig(data) {
return request({
url: getUrl(`/sale/makePosters/queryOutPostersBig`, 1),
method: 'post',
data
})
}

View File

@@ -1,200 +1,309 @@
<template>
<div class="wrapper">
<div v-if="posterList.length !== 0">
<van-grid :column-num="3" :gutter="5">
<van-grid-item v-for="(item, index) in posterList" :key="index" @click="previewImg(item, index)">
<van-image class="fill" :src="item.posterUrl" />
</van-grid-item>
</van-grid>
<div class="pageWrapper">
<van-pagination class="bottom-btn" v-model="pageNum" :page-count="totalPage" @change="pageChange" />
<div class="good-start-scheme bg-white">
<div v-if="isShow == true">
<div class="flex justify-content-s pt10 pb15">
<div class="fs12 bntTab">
<span :class="[active == 'appnt' ? 'tab' : 'unTab']" @click="tabChange('appnt')">预收</span>
<span :class="[active == 'sign' ? 'tab' : 'unTab']" @click="tabChange('sign')">承保</span>
</div>
<div>
<div @click="timePopup" class="fs12 red h30 mt5 mr15">
{{ titleTime }}
<img src="@/assets/images/u79.png" alt class="ml5" />
</div>
</div>
</div>
<van-image-preview id="preview" v-model="isPrevShow" :images="images" :start-position="startPosition" @change="onPageChange" />
<div class="flex justify-content-s bottom-btn bottom15 border-color" v-show="isPrevShow">
<van-button square type="default" size="large" @click="shareImg" v-no-more-click="1000"> 分享 </van-button>
<van-button square type="danger" size="large" @click="downLoadImagesFunc" v-no-more-click="1000"> 下载 </van-button>
<div v-if="pics.length">
<van-grid :column-num="3">
<van-grid-item v-for="(pic, i) in pics" :key="i">
<van-image height="200" :src="pic.posterUrl" @click="prevImg(pic, i)" />
</van-grid-item>
</van-grid>
<van-image-preview id="preview" v-model="isPrevShow" :images="images" :start-position="startPosition" @change="onPageChange" />
<!-- <van-button class="share-btn" v-show="isPrevShow" type="danger" block @click="shareImg">分享</van-button> -->
<div class="flex justify-content-s bottom-btn bottom15 border-color" v-show="isPrevShow">
<van-button square type="default" size="large" @click="shareImg" v-no-more-click="1000"> 分享 </van-button>
<van-button square type="danger" size="large" @click="downLoadImagesFunc" v-no-more-click="1000"> 下载 </van-button>
</div>
</div>
</div>
<div v-if="posterList.length === 0" class="text-center">
<!-- {{isShow}} {{pics.length}} -->
<div v-if="isShow == false || pics.length == '0'" class="text-center height100vh">
<img class="mt40 w250" src="@/assets/images/pic_page-non.png" />
<div class="fs17 c-gray-dark mt40">暂无数据</div>
<div class="fs17 c-gray-dark mt40" v-if="isShow == false">您暂无使用权限</div>
<div class="fs17 c-gray-dark mt40" v-if="isShow == true && pics.length == '0'">暂无数据</div>
</div>
<!-- 筛选年月日 -->
<van-popup v-model="dateShow" position="bottom">
<van-datetime-picker v-model="currentDate" type="date" title="选择日期" :min-date="minDate" :max-date="maxDate" @cancel="handleCancel" @confirm="handleEndDateConfirm"/>
</van-popup>
</div>
</template>
<script>
import { Sticky, Grid, GridItem, Pagination, ImagePreview, List, Image } from 'vant'
import { queryBigPosters } from '@/api/ebiz/poster/poster'
// import config from '@/config'
import Vue from 'vue'
import { Grid, GridItem, Image, ImagePreview, Pagination } from 'vant'
import { queryOutPostersBig, getBranchByUser} from '@/api/ebiz/goodStart'
import { getAgentInfo} from '@/api/ebiz/my/my.js'
import utils from '@/assets/js/utils/date-utils'
import Vue from 'vue'
Vue.use(ImagePreview)
export default {
name: 'posterList',
components: {
[Sticky.name]: Sticky,
[Grid.name]: Grid,
[GridItem.name]: GridItem,
[Pagination.name]: Pagination,
[List.name]: List,
[Image.name]: Image
},
data() {
return {
// posterType: 'hb',
srcUrl: '@/images/u10199.png',
pageNum: 1,
pageSize: 9,
posterList: [], // 贺报列表
realImgUrls: [],
// index: 0,
totalPage: 0,
isPrevShow: false,
startPosition: 0,
currentPage: 0,
}
},
computed: {
images() {
const picArr = []
for (let pic of this.posterList) {
picArr.push(pic.posterUrl)
}
return picArr
}
},
created() {
this.getPostList()
},
methods: {
onPageChange(index) {
this.currentPage = index
// 全局注册
Vue.use(ImagePreview)
export default {
components: {
[Grid.name]: Grid,
[GridItem.name]: GridItem,
[Image.name]: Image,
[Pagination.name]: Pagination
},
// 贺报列表查询
async getPostList() {
let param = {
// posterInfoDTO: {
// posterType: this.posterType
// },
pageNum: this.pageNum,
pageSize: this.pageSize
data() {
return {
dateShow: false,
minDate: new Date(),
maxDate: new Date(),
currentDate: new Date(),
titleTime:'', //筛选时间
isFromService: '',
isPrevShow: false,
currentPage: 0,
pics: [],
startPosition: 0,
branchType:'', //以N打头的是内勤 其他是外勤0: 外勤1: 内勤
isShow:false, //是否有权限查看
manageLv:null,
active:'appnt'
}
this.$toast.loading({
message: '加载中...',
forbidClick: true,
loadingType: 'spinner'
})
let res = await queryBigPosters(param)
if (res.result == 0) {
this.realImgUrls.splice(0)
this.totalPage = res.content.pages
this.posterList = res.content.list
for (let item of this.posterList) {
// let narrowUrl = (config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${item.posterNarrowUrl}`).replace(/\+/g, '%2B')
// let url = (config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${item.posterUrl}`).replace(/\+/g, '%2B')
// item.narrowUrl = narrowUrl
this.realImgUrls.push(item.posterUrl)
},
computed: {
images() {
const picArr = []
for (let pic of this.pics) {
picArr.push(pic.posterUrl)
}
} else {
this.$toast(res.resultMessage)
return picArr
}
},
previewImg(item, index) {
// this.isPrevShow = true
// ImagePreview({
// images: this.realImgUrls,
// startPosition: index
// })
this.isPrevShow = true
this.startPosition = index
created() {
},
pageChange(pageNum) {
this.pageNum = pageNum
this.getPostList()
mounted() {
this.minDate = new Date(this.getPrevDate(30))
this.titleTime = utils.formatDate(new Date(), 'yyyy-MM-dd')
this.getAgentInfoFunc()
this.getBranchByUserFunc()
},
shareImg() {
console.log(this.images[this.currentPage])
// eslint-disable-next-line no-undef
EWebBridge.webCallAppInJs('bridge', {
flag: 'share',
extra: {
shareType: '1',
img: this.images[this.currentPage]
methods: {
getPrevDate(numDays) {
var today = new Date();
today.setDate(today.getDate() - numDays);
return today.toLocaleDateString();
},
//选择当月时间
seceltCurrentMonth() {
this.titleTime = utils.formatDate(new Date(), 'yyyy-MM-dd')
this.queryOutPostersBig()
},
timePopup() {
this.dateShow = true
},
handleCancel() {
this.dateShow = false
},
//tab按钮切换
tabChange(active) {
this.active = active
this.queryOutPostersBig()
},
//点击筛选年月日--点击确认
handleEndDateConfirm(e) {
this.dateShow = false
this.titleTime = utils.formatDate(e, 'yyyy-MM-dd')
this.queryOutPostersBig()
},
// 获取代理人信息,区分内外勤
async getAgentInfoFunc() {
const res = await getAgentInfo({})
if (res.result == 0) {
// res.branchType 以N打头的是内勤 其他是外勤0: 外勤1: 内勤
this.branchType = /^N{1}/.test(res.branchType) ? '1' : '0'
} else {
return this.$toast(res.resultMessage)
}
})
},
// 原生下载图片的方法
downLoadImagesFunc() {
if (this.images[this.currentPage]) {
},
//获取当前人机构
async getBranchByUserFunc(){
this.isShow = true
this.queryOutPostersBig()
// let resData = await getBranchByUser({})
// // 内勤一、二、三 级暂无使用权限
// this.manageLv = resData.content.level?Number(resData.content.level.substr(1, 1)):9
// if(this.manageLv == 4 || this.manageLv == 5 ||this.manageLv == 6 ||this.manageLv == 7 ||this.manageLv == 8 ||this.manageLv == 9){
// this.isShow = true //是否有权限查看
// this.queryOutPostersBig()
// }
},
prevChange(index) {
this.startPosition = index
},
interceptAppBtn() {
setTimeout(() => {
// eslint-disable-next-line no-undef
EWebBridge.webCallAppInJs('webview_left_button', {
intercept: '1'
})
}, 100)
window.appCallBack = this.appCallBack
},
appCallBack(data) {
if (data.trigger == 'left_button_click') {
if (!this.isPrevShow) {
if (this.isFromService) {
this.$jump({
flag: 'service'
})
} else {
this.$jump({
flag: 'h5',
extra: {
title: '开门红专区',
forbidSwipeBack: 1,
url: location.origin + `/#/goodStart/prefecture`
},
routerInfo: {
path: `/goodStart/prefecture/prefecture`,
type: '1'
}
})
}
} else {
this.isPrevShow = false
}
}
},
onPageChange(page) {
this.currentPage = page
},
async queryOutPostersBig() {
const param = {
appntType: this.active,
appntMonth: this.titleTime
}
const result = await queryOutPostersBig(param)
if (result.result === '0') {
this.pics = result.content.list
} else {
this.$toast(result.resultMessage)
}
},
prevImg(pic, i) {
this.isPrevShow = true
this.startPosition = i
},
shareImg() {
console.log(this.images[this.currentPage])
// eslint-disable-next-line no-undef
EWebBridge.webCallAppInJs('download', {
name: '开门红方案.png',
url: this.images[this.currentPage]
}).then(() => {
console.log('下载完成')
}).catch(() => {
this.$toast.fail('图片下载失败,请重新下载!')
EWebBridge.webCallAppInJs('bridge', {
flag: 'share',
extra: {
shareType: '1',
img: this.images[this.currentPage]
}
})
} else {
this.$toast.fail('图片下载失败,请重新下载!')
},
// 原生下载图片的方法
downLoadImagesFunc() {
if (this.images[this.currentPage]) {
// eslint-disable-next-line no-undef
EWebBridge.webCallAppInJs('download', {
name: '开门红方案.png',
url: this.images[this.currentPage]
})
.then(() => {
console.log('下载完成')
})
.catch(() => {
this.$toast.fail('图片下载失败,请重新下载!')
})
} else {
this.$toast.fail('图片下载失败,请重新下载!')
}
}
}
}
}
</script>
<style lang="scss" scoped>
/deep/ .van-grid-item {
height: 30vh;
}
.height100vh{
height: 100vh;
}
.good-start-scheme {
padding-bottom: 20px;
}
/deep/ .fill {
height: 100%;
}
/deep/ .van-grid-item__content {
padding: 5px;
}
.wrapper {
padding-top: 12px;
padding-bottom: 50px;
}
.share-btn {
position: fixed;
bottom: 0;
z-index: 10000;
}
.post-container {
display: flex;
flex-wrap: wrap;
justify-content: start;
}
/deep/ .van-image-preview__image {
bottom: auto;
}
.post {
width: 28vw;
padding: 3px;
background: #fff;
margin: 5px;
}
/deep/ .van-pagination__item {
color: #ff0033;
}
img {
max-width: 100%;
}
/deep/ .van-pagination__item--active {
background-color: #ff0033;
color: #fff;
}
/deep/ .van-list__loading,
/deep/ .van-list__finished-text {
width: 100%;
}
#pagination {
position: fixed;
bottom: 0;
left: 0;
right: 0;
}
/deep/ .van-pagination__item {
color: #ff4040;
}
.border-color {
z-index: 9999;
border: 2px solid;
border-image: radial-gradient(circle, rgba(255, 233, 124, 1), rgba(222, 144, 34, 1)) 2 2;
}
/deep/ .van-button--danger {
background: linear-gradient(to right, #f26e43, #ac0209) !important; /*设置按钮为渐变颜色*/
border: none !important;
}
/deep/.van-pagination__item:active,
/deep/.van-pagination__item--active {
background-color: #ff4040;
color: #fff;
}
.border-color {
z-index: 9999;
border: 2px solid;
border-image: radial-gradient(circle, rgba(255, 233, 124, 1), rgba(222, 144, 34, 1)) 2 2;
}
/deep/ .van-button--danger {
background: linear-gradient(to right, #f26e43, #ac0209) !important; /*设置按钮为渐变颜色*/
border: none !important;
}
// 顶部tab按钮
.bntTab {
text-align: center;
.tab {
background: red;
color: #fff;
border-radius: 14px;
width: 64px;
height: 26px;
line-height: 26px;
display: inline-block;
text-align: center;
margin-left: 10px;
}
.unTab {
background-color: #fff;
color: #333;
border: 1px solid #c1c1c1;
border-radius: 14px;
width: 64px;
height: 26px;
line-height: 26px;
display: inline-block;
text-align: center;
margin-left: 10px;
}
}
</style>

File diff suppressed because it is too large Load Diff

View File

@@ -80,17 +80,18 @@
<p class="mb20 fs20" style="color: #323233;">以下内容需要您按照顺序阅读并签字确认:</p>
<div v-if="changeCard">
<p style="display: flex;align-items: center;justify-content: space-between;" class="fs20">
<span style="color: #323233;">需阅读</span>
<span style="display: flex;align-items: center;">
<img v-if="agentSign.documentStatus == '1' || agentSign.documentStatus == '3'" style="width: 16px;" :src="src"/>
<span v-if="agentSign.documentStatus == '1'" style="margin-left: 15px;color: #03ceaf;">已阅读</span>
<span v-if="agentSign.documentStatus == '3'" style="margin-left: 15px;color: #03ceaf;">签署完成</span>
</span>
</p>
<p class="mb20 fs20">
<span class="text" style="color:red;opacity: 0.7;">{{ agentSign.documentName }}</span>
</p>
<div v-for="(item, index) in appntSign" :key="index">
<p style="display: flex;align-items: center;justify-content: space-between;" class="fs20">
<span style="color: #323233;">需阅读</span>
<span style="display: flex;align-items: center;">
<img v-if="item.documentStatus == '1' || item.documentStatus == '3'" style="width: 16px;" :src="src"/>
<span v-if="item.documentStatus == '1'" style="margin-left: 15px;color: #03ceaf;" class="fs20">已阅读</span>
</span>
</p>
<p class="mb20 fs20" @click="gosomefile(item,index,saleInsuredPersonInfo.relationToAppnt == '1' ? '2' : '0')">
<span class="text" style="color:red;opacity: 0.7;">{{ item.documentName }}</span>
</p>
</div>
</div>
<div v-else>
<div v-for="(item, index) in appntSign" :key="index">
@@ -107,7 +108,7 @@
</p>
</div>
</div>
<p v-if="signMap.appntSign" style="display: flex;align-items: center;border-top: 1px solid #eee;margin-bottom: 15px;padding-top: 10px;" class="fs20">
<p v-if="signMap.appntSign && !changeCard" style="display: flex;align-items: center;border-top: 1px solid #eee;margin-bottom: 15px;padding-top: 10px;" class="fs20">
<span style="color: #323233;">投保人签名</span>
<img :src="signImgUrl + signMap.appntSign" style="height: 50px;margin-left: 20px;width: auto;"/>
</p>
@@ -148,7 +149,8 @@
</p>
</div>
<p v-if="signMap.insuredSign" style="display: flex;align-items: center;border-top: 1px solid #eee;margin-bottom: 15px;padding-top: 10px;" class="fs20">
<span style="color: #323233;">被保人签名</span>
<span v-if="insuredAge >= 18" style="color: #323233;">被保人签名</span>
<span v-if="insuredAge < 18" style="color: #323233;">被保险人/监护人签名</span>
<img :src="signImgUrl + signMap.insuredSign" style="height: 50px;margin-left: 20px;width: auto;"/>
</p>
<p class="fs20" style="color: #323233;" v-if="airSign != '1' && insuredSignStatus != '3'">点击分享签名立即阅读签名按钮进行相关操作</p>
@@ -258,8 +260,8 @@
</div>
<div v-if="!isWeixin">
<div v-if="changeCard && activeType != 'KMH'">
<div class="bottom-btn bg-white" v-if="appntSign.documentStatus == '1'">
<van-button class="fs16" type="danger" v-if="relationToAppnt == '1' ? true : appntSign.documentStatus == '1' ? true : false" size="large" @click="rePayMent" v-no-more-click="1000">
<div class="bottom-btn bg-white" v-if="appntSign[0].documentStatus == '1'">
<van-button class="fs16" type="danger" v-if="relationToAppnt == '1' ? true : appntSign[0].documentStatus == '1' ? true : false" size="large" @click="rePayMent" v-no-more-click="1000">
支付
</van-button>
</div>
@@ -319,6 +321,7 @@ import IndexBar from '@/components/ebiz/sale/IndexBar'
import Formatter from '@/assets/js/utils/date-utils.js'
import { getWhitelist } from '@/api/ebiz/whitelist'
import isChoose from '@/assets/images/u20257.png'
import utilsAge from '@/assets/js/utils/age'
export default {
data() {
@@ -412,6 +415,7 @@ export default {
isFirstCome:0,
cvalidateStr: '',
activeType: '',
insuredAge:'',
}
},
async created() {
@@ -1071,58 +1075,17 @@ export default {
this.isVideoUrl = 'goUrl'
}
else {
if (that.changeCard) {
path = 'insuranceInformation'
}
else {
if(window.localStorage.getItem('sign-val') == '3') {
if(that.agentSignStatus == '3') {
path = that.agentSign[0].routePath
}
else {
if(that.agentSign[that.agentSign.length - 1].documentStatus == 1){
path = 'signDocuments'
} else {
for (let i = 0; i < that.agentSign.length; i++) {
if (that.agentSign[i].documentStatus == 0 || that.agentSign[i].documentStatus == 2) {
path = that.agentSign[i].routePath
break
}
}
if(!path) {
path = 'signDocuments'
}
}
}
if(window.localStorage.getItem('sign-val') == '3') {
if(that.agentSignStatus == '3') {
path = that.agentSign[0].routePath
}
else if(window.localStorage.getItem('sign-val') == '0' || window.localStorage.getItem('sign-val') == '2') {
if(that.appntSignStatus == '3') {
path = that.appntSign[0].routePath
}
else {
if(that.appntSign[that.appntSign.length - 1].documentStatus == 1){
path = 'signDocuments'
} else {
for (let i = 0; i < that.appntSign.length; i++) {
if (that.appntSign[i].documentStatus == 0 || that.appntSign[i].documentStatus == 2) {
path = that.appntSign[i].routePath
break
}
}
if(!path) {
path = 'signDocuments'
}
}
}
}
else if(window.localStorage.getItem('sign-val') == '1') {
if(that.insuredSignStatus == '3') {
path = that.insuredSign[0].routePath
}
else {
for (let i = 0; i < that.insuredSign.length; i++) {
if (that.insuredSign[i].documentStatus == 0 || that.insuredSign[i].documentStatus == 2) {
path = that.insuredSign[i].routePath
else {
if(that.agentSign[that.agentSign.length - 1].documentStatus == 1){
path = 'signDocuments'
} else {
for (let i = 0; i < that.agentSign.length; i++) {
if (that.agentSign[i].documentStatus == 0 || that.agentSign[i].documentStatus == 2) {
path = that.agentSign[i].routePath
break
}
}
@@ -1132,6 +1095,43 @@ export default {
}
}
}
else if(window.localStorage.getItem('sign-val') == '0' || window.localStorage.getItem('sign-val') == '2') {
if(that.appntSignStatus == '3') {
path = that.appntSign[0].routePath
}
else {
if(that.appntSign[that.appntSign.length - 1].documentStatus == 1){
path = 'signDocuments'
} else {
for (let i = 0; i < that.appntSign.length; i++) {
if (that.appntSign[i].documentStatus == 0 || that.appntSign[i].documentStatus == 2) {
path = that.appntSign[i].routePath
break
}
}
if(!path) {
path = 'signDocuments'
}
}
}
}
else if(window.localStorage.getItem('sign-val') == '1') {
if(that.insuredSignStatus == '3') {
path = that.insuredSign[0].routePath
}
else {
for (let i = 0; i < that.insuredSign.length; i++) {
if (that.insuredSign[i].documentStatus == 0 || that.insuredSign[i].documentStatus == 2) {
path = that.insuredSign[i].routePath
break
}
}
if(!path) {
path = 'signDocuments'
}
}
}
if (path){
that.$jump({
@@ -1148,58 +1148,54 @@ export default {
})
}
else {
if (that.changeCard) {
path = 'insuranceInformation'
}
else {
if(window.localStorage.getItem('sign-val') == '3') {
if(that.agentSignStatus == '3') {
path = that.agentSign[0].routePath
}
else {
if(that.agentSign[that.agentSign.length - 1].documentStatus == 1){
path = 'signDocuments'
} else {
for (let i = 0; i < that.agentSign.length; i++) {
if (that.agentSign[i].documentStatus == 0 || that.agentSign[i].documentStatus == 2) {
path = that.agentSign[i].routePath
break
}
}
}
}
if(window.localStorage.getItem('sign-val') == '3') {
if(that.agentSignStatus == '3') {
path = that.agentSign[0].routePath
}
else if(window.localStorage.getItem('sign-val') == '0' || window.localStorage.getItem('sign-val') == '2') {
if(that.appntSignStatus == '3') {
path = that.appntSign[0].routePath
}
else {
if(that.appntSign[that.appntSign.length - 1].documentStatus == 1){
path = 'signDocuments'
} else {
for (let i = 0; i < that.appntSign.length; i++) {
if (that.appntSign[i].documentStatus == 0 || that.appntSign[i].documentStatus == 2) {
path = that.appntSign[i].routePath
break
}
}
}
}
}
else if(window.localStorage.getItem('sign-val') == '1') {
if(that.insuredSignStatus == '3') {
path = that.insuredSign[0].routePath
}
else {
for (let i = 0; i < that.insuredSign.length; i++) {
if (that.insuredSign[i].documentStatus == 0 || that.insuredSign[i].documentStatus == 2) {
path = that.insuredSign[i].routePath
else {
if(that.agentSign[that.agentSign.length - 1].documentStatus == 1){
path = 'signDocuments'
} else {
for (let i = 0; i < that.agentSign.length; i++) {
if (that.agentSign[i].documentStatus == 0 || that.agentSign[i].documentStatus == 2) {
path = that.agentSign[i].routePath
break
}
}
}
}
}
else if(window.localStorage.getItem('sign-val') == '0' || window.localStorage.getItem('sign-val') == '2') {
if(that.appntSignStatus == '3') {
path = that.appntSign[0].routePath
}
else {
if(that.appntSign[that.appntSign.length - 1].documentStatus == 1){
path = 'signDocuments'
} else {
for (let i = 0; i < that.appntSign.length; i++) {
if (that.appntSign[i].documentStatus == 0 || that.appntSign[i].documentStatus == 2) {
path = that.appntSign[i].routePath
break
}
}
}
}
}
else if(window.localStorage.getItem('sign-val') == '1') {
if(that.insuredSignStatus == '3') {
path = that.insuredSign[0].routePath
}
else {
for (let i = 0; i < that.insuredSign.length; i++) {
if (that.insuredSign[i].documentStatus == 0 || that.insuredSign[i].documentStatus == 2) {
path = that.insuredSign[i].routePath
break
}
}
}
}
if (path){
that.$jump({
flag: 'h5',
@@ -1407,6 +1403,7 @@ export default {
return new Promise((resolve) => {
getOrderDetail(data).then((res) => {
if (res.result == '0') {
this.insuredAge = utilsAge.getAge(res.orderDTO.insuredDTOs[0].birthday, new Date())
if(res.orderDTO.orderInfoDTO.activeType == 'KMH') {
this.cvalidateStr = res.orderDTO.orderInfoDTO.cvaliDate
this.activeType = res.orderDTO.orderInfoDTO.activeType
@@ -1529,14 +1526,15 @@ export default {
} else {
//阅读授权书
if (item.documentCode == '5') {
that.appntSign = item //投保
that.appntSign.push(item) //投保
that.addKey(item)
}
}
} else if(item.signType == '3'){
} else if(item.signType == '3') {
that.showAgentView = !localStorage.changeCard?1:0
that.agentSign.push(item)//代理人
that.addKey(item)
}else {
}else if(item.signType == '1') {
that.insuredSign.push(item) //被保
that.addKey(item)
}
@@ -1591,6 +1589,10 @@ export default {
item.documentShortName = '投保提示'
item.key = 7
item.routePath = 'readDocuments'
} else if (item.documentCode == '5') {
item.documentShortName = '转账授权'
item.key = 1
item.routePath = 'readDocuments'
} else if (item.documentCode == '6') {
item.documentShortName = '免除责任条款'
item.key = 9

View File

@@ -29,7 +29,8 @@
<div class='bg-white bottom-btn' v-if="current != '1'">
<van-button style="width: 30%;font-size: 20px;" plain type='danger' size='large' v-no-more-click='1000' @click="prevStep">上一步
</van-button>
<van-button style="width: 70%;font-size: 20px;" type='danger' size='large' :disabled='isDisabledComplite' @click='goNext' v-no-more-click='1000'>我已阅读确认并理解继续
<van-button style="width: 70%;font-size: 20px;" type='danger' size='large' :disabled='isDisabledComplite' @click='goNext' v-no-more-click='1000'>
我已阅读确认并理解继续
</van-button>
</div>
<div class='bg-white bottom-btn' v-if="current == '1'">
@@ -220,15 +221,24 @@
} else {
window.localStorage.setItem('insuredSignFile',JSON.stringify(this.fileList))
}
if(this.current == this.fileList.length) {
if(this.fileList[this.current - 1].documentCode == '5') {
this.$router.push({
path: '/sale/signDocuments',
path: '/sale/SignatureConfirmation',
query: {
orderNo: this.$route.query.orderNo
}
})
} else {
window.location.reload()
if(this.current == this.fileList.length) {
this.$router.push({
path: '/sale/signDocuments',
query: {
orderNo: this.$route.query.orderNo
}
})
} else {
window.location.reload()
}
}
} else {
this.$toast(res.resultMessage)

View File

@@ -19,9 +19,12 @@
<span v-if="signVal == '0' || signVal == '2'">
1.接下来您作为投保人将进行投保文件的签字请在签字前确保您已仔细阅读投保文件并了解投保文件的内容和含义确定投保单各项信息准确无误签字完成并成功提交说明您正式向我司提交投保申请
</span>
<span v-if="signVal == '1'">
<span v-if="signVal == '1' && insuredAge >= 18">
1.接下来您作为被保险人将进行投保文件的签字请在签字前确保您已仔细阅读投保文件并了解投保文件的内容和含义确定投保单各项信息准确无误签字完成并成功提交说明您正式向我司提交投保申请
</span>
<span v-if="signVal == '1' && insuredAge < 18">
1.接下来您作为被保险人/监护人将进行投保文件的签字请在签字前确保您已仔细阅读投保文件并了解投保文件的内容和含义确定投保单各项信息准确无误签字完成并成功提交说明您正式向我司提交投保申请
</span>
</div>
<div style="border-bottom: 1px dashed #eee;padding-bottom: 15px;margin-top: 15px;">
<p style="font-size: 20px;font-weight: bold;">2.您将为以下文件进行统一签名</p>
@@ -37,7 +40,7 @@
<span v-if="signVal == '3'" style="font-size: 20px;font-weight: bold;">代理人签名</span>
<span v-if="signVal == '0' || signVal == '2'" style="font-size: 20px;font-weight: bold;">投保人签名</span>
<span v-if="signVal == '1' && insuredAge >= 18" style="font-size: 20px;font-weight: bold;">被保险人签名</span>
<span v-if="signVal == '1' && insuredAge < 18" style="font-size: 20px;font-weight: bold;">被保险人监护人签名</span>
<span v-if="signVal == '1' && insuredAge < 18" style="font-size: 20px;font-weight: bold;">被保险人/监护人签名</span>
<van-button type="danger" size="small" round style="margin-left: 20px;height: 40px;font-size: 16px;" @click="gosign" class="fs20">
{{signstatus ? '重新签名' : '签名'}}
</van-button>