[FIX]【自助入司流程优化】将签署协议流程移动到资料上传过程

This commit is contained in:
yuweiqi
2020-05-19 17:22:57 +08:00
parent d7875f083f
commit c2fcaacc27
3 changed files with 21 additions and 173 deletions

View File

@@ -240,9 +240,9 @@ export default {
this.$jump({ this.$jump({
flag: 'h5', flag: 'h5',
extra: { extra: {
url: location.origin + '/#/agentEenter/signContract', url: location.origin + '/#/agentEenter/signContract'
forbidSwipeBack: '1', // forbidSwipeBack: '1',
backToFirst: '1' // backToFirst: '1'
}, },
routerInfo: { routerInfo: {
path: '/agentEenter/signContract' path: '/agentEenter/signContract'

View File

@@ -1,79 +1,47 @@
<template> <template>
<div class="signContract-result-container bg-white"> <div class="signContract-result-container bg-white">
<div class="flex justify-content-c align-items-c p20 pt150"> <div class="flex justify-content-c align-items-c p20 pt120">
<van-icon v-if="submitStatus == '0'" color="#1296DB" size="100px" name="passed" /> <van-icon v-if="submitStatus == '0'" color="#1296DB" size="100px" name="passed" />
<van-icon v-if="submitStatus == '1'" color="#1296DB" size="100px" name="close" /> <van-icon v-if="submitStatus == '1'" color="#1296DB" size="100px" name="close" />
</div> </div>
<div class="flex justify-content-c flex-direction-colunm align-items-c"> <div class="flex justify-content-c flex-direction-colunm align-items-c">
<h3 v-if="submitStatus == '0' ">提交成功</h3> <h3 v-if="submitStatus == '0'">提交成功</h3>
<h4 class="pt15" v-if="submitStatus == '0'">您的工号为{{jobNumber}}</h4>
<h3 v-if="submitStatus == '1' ">提交失败</h3>
</div> </div>
<div class="p20"> <div class="p20">
<p v-if="submitStatus == '0' ">恭喜您加入国富人寿这个大家庭您可以使用工号及初始登录密码登录APP进行展业啦初始密码为证件号码后6位</p> <p v-if="submitStatus == '0'">我们将会进行资料审核审核通过后可再次登录APP完成后续入司流程</p>
</div> </div>
<div class="flex justify-content-a align-items-c p20"> <div class="flex justify-content-a align-items-c p20">
<van-button class="radius50 bg-white green" type="danger" v-if="submitStatus == '0'" v-no-more-click="1000" @click="goToLogin" >去登录</van-button> <van-button class="radius50 bg-white green pl30 pr30" type="danger" v-if="submitStatus == '0'" v-no-more-click="1000" @click="goBack">返回</van-button>
<van-button class="radius50 bg-white green" type="danger" v-if="submitStatus == '0'" v-no-more-click="1000" @click="toShowPDF" >查看合同</van-button>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import { Field, Icon, Button, Checkbox, CheckboxGroup } from 'vant' import { Field, Icon, Button, Checkbox, CheckboxGroup } from 'vant'
import { enterQuery } from '@/api/ebiz/agentEenter/agentEenter.js'
export default { export default {
data() { data() {
return { return {
pdfUrl: '', pdfUrl: '',
checked: false, checked: false,
submitStatus: '0', submitStatus: '0'
jobNumber: '60000886'
} }
}, },
created() { created() {
this.enterQuery() document.body.style.backgroundColor = '#fff'
},
beforeRouteLeave(to, from, next) {
document.body.style.backgroundColor = ''
next()
}, },
methods: { methods: {
//获取签署协议人信息 //返回
enterQuery() { goBack() {
let that = this
that.$toast.loading({
duration: 0, // 持续展示 toast
forbidClick: true, // 禁用背景点击
loadingType: 'spinner',
message: '加载中……'
})
let data = {
// userModel: { mobile: 13000000000 }, //线上去掉
}
enterQuery(data).then(res => {
console.log(res)
if (res.result == '0') {
that.$toast.clear()
that.jobNumber=res.content.agentCode
} else {
this.$toast(res.resultMessage)
}
})
},
toShowPDF() {
this.$jump({ this.$jump({
flag: 'h5', flag: 'goBack',
extra: { extra: {
url: location.origin + `/#/agentEenter/ShowPDF`, index: '-1'
forbidSwipeBack: '1'
},
routerInfo: {
path: `/agentEenter/ShowPDF`
} }
}) })
},
goToLogin(){
EWebBridge.webCallAppInJs('bridge', {
flag: 'login'
})
} }
}, },
components: { components: {

View File

@@ -66,127 +66,6 @@ import { agreementQuery, signAgreement } from '@/api/ebiz/agentEenter/agentEente
// import { weixinShare } from '@/assets/js/utils/wxShare.js' // import { weixinShare } from '@/assets/js/utils/wxShare.js'
import { checkSignInvalid, getSignInvalid } from '@/api/ebiz/sale/sale' import { checkSignInvalid, getSignInvalid } from '@/api/ebiz/sale/sale'
import { filtSignList } from './js/methods' import { filtSignList } from './js/methods'
let devList = [
//调试专用
{
baseId: 25,
createdDate: '2019-12-03T10:06:07.000+0000',
documentType: '0',
id: 131,
imgState: '3',
isDelete: 0,
modifiedDate: '2019-12-03T11:27:47.000+0000',
name: '《个险营销员健康告知书》',
order: 1,
rgssUrl: 'Ra4LpmZv2h6FrwZPS48QIETiI2AcWWLx6RavVjoAkoNhmz6pJzLpaFL1klLxAn7MMJWxZmb0WpZD%0D%0AulNt4BhQ8csB7meSbA2DHPBrgbwsjpyVGLphInLPv0HGtHpZ3OhD',
signDate: '2019-12-03T11:12:40.000+0000',
signState: '0',
thirdUrl: 'Ra4LpmZv2h6FrwZPS48QIETiI2AcWWLx6RavVjoAkoNhmz6pJzLpaFL1klLxAn7MMJWxZmb0WpZD%0D%0AulNt4BhQ8bIABSerclzLkpZ7EfTo6fvUqooFPNUZSjGoZts28jTW',
type: '13'
},
{
baseId: 25,
createdDate: '2019-12-03T11:06:56.000+0000',
createdUser: '您猜',
documentType: '0',
id: 132,
imgState: '3',
isDelete: 0,
modifiedDate: '2019-12-03T11:27:47.000+0000',
name: '《代理人基本福利保障知晓函》',
order: 6,
rgssUrl: 'Ra4LpmZv2h6FrwZPS48QIETiI2AcWWLx6RavVjoAkoNhmz6pJzLpaFL1klLxAn7MSV3lH4t%2BZLOW%0D%0A%2Bvh3PMDFGhUp%2B%2BNak9FtguN1IiRXXlOVGLphInLPv0HGtHpZ3OhD',
signDate: '2019-12-03T11:15:27.000+0000',
signState: '0',
thirdUrl: 'Ra4LpmZv2h6FrwZPS48QIETiI2AcWWLx6RavVjoAkoNhmz6pJzLpaFL1klLxAn7MSV3lH4t%2BZLOW%0D%0A%2Bvh3PMDFGswBB9cueD%2BA0k1xQSPsVULUqooFPNUZSjGoZts28jTW',
type: '11'
},
{
baseId: 25,
createdDate: '2019-12-03T11:06:56.000+0000',
createdUser: '您猜',
documentType: '1',
id: 133,
imgState: '3',
isDelete: 0,
modifiedDate: '2019-12-03T11:27:47.000+0000',
name: '《担保书》',
order: 5,
rgssUrl: 'Ra4LpmZv2h6FrwZPS48QIETiI2AcWWLx6RavVjoAkoNhmz6pJzLpaFL1klLxAn7MvoM%2Bavw%2FHfcz%0D%0AbfDMyeVE1kaPZwJDrY%2FlR1IwDlrQe6KVGLphInLPv0HGtHpZ3OhD',
signDate: '2019-12-03T11:14:38.000+0000',
signState: '0',
thirdUrl: 'Ra4LpmZv2h6FrwZPS48QIETiI2AcWWLx6RavVjoAkoNhmz6pJzLpaFL1klLxAn7MvoM%2Bavw%2FHfcz%0D%0AbfDMyeVE1le4Yn85HeThhEgS3gEDBK7UqooFPNUZSjGoZts28jTW',
type: '12'
},
{
baseId: 25,
createdDate: '2019-12-03T11:06:56.000+0000',
createdUser: '您猜',
documentType: '0',
id: 134,
imgState: '3',
isDelete: 0,
modifiedDate: '2019-12-03T11:27:47.000+0000',
name: '《保险代理合同》',
order: 7,
rgssUrl: 'Ra4LpmZv2h6FrwZPS48QIETiI2AcWWLx6RavVjoAkoNhmz6pJzLpaFL1klLxAn7MEIikc%2FuBT5F3%0D%0AQSMZgyPFhfwM90EhMrUVYKzpUzovEqSVGLphInLPv0HGtHpZ3OhD',
signDate: '2019-12-03T11:15:45.000+0000',
signState: '1',
thirdUrl: 'Ra4LpmZv2h6FrwZPS48QIETiI2AcWWLx6RavVjoAkoNhmz6pJzLpaFL1klLxAn7MEIikc%2FuBT5F3%0D%0AQSMZgyPFhXRMc7sfWxHjWLq72jbia%2BbUqooFPNUZSjGoZts28jTW',
type: '14'
},
{
baseId: 25,
createdDate: '2019-12-03T11:06:56.000+0000',
createdUser: '您猜',
documentType: '0',
id: 135,
imgState: '3',
isDelete: 0,
modifiedDate: '2019-12-03T11:27:47.000+0000',
name: '《销售从业人员拒绝非法集资、非法放贷、金融诈骗承诺书》',
order: 4,
rgssUrl: 'Ra4LpmZv2h6FrwZPS48QIETiI2AcWWLx6RavVjoAkoNhmz6pJzLpaFL1klLxAn7MMkpxdFEhYfK%2B%0D%0Abwvndj%2FYzvVUdk3WnyEL89pneUR3egCVGLphInLPv0HGtHpZ3OhD',
signDate: '2019-12-03T11:13:39.000+0000',
signState: '1',
thirdUrl: 'Ra4LpmZv2h6FrwZPS48QIETiI2AcWWLx6RavVjoAkoNhmz6pJzLpaFL1klLxAn7MMkpxdFEhYfK%2B%0D%0Abwvndj%2FYzuYCdy1qc3s6W6LR%2B8qHblbUqooFPNUZSjGoZts28jTW',
type: '15'
},
{
baseId: 25,
createdDate: '2019-12-03T11:06:56.000+0000',
createdUser: '您猜',
documentType: '0',
id: 136,
imgState: '3',
isDelete: 0,
modifiedDate: '2019-12-03T11:27:47.000+0000',
name: '《广西保险销售从业人员信息公开承诺书》',
order: 3,
rgssUrl: 'Ra4LpmZv2h6FrwZPS48QIETiI2AcWWLx6RavVjoAkoNhmz6pJzLpaFL1klLxAn7M1Hy3YFswSMOJ%0D%0ACupujVjbOqtXdlQngjvfOgmQvLgdSxSVGLphInLPv0HGtHpZ3OhD',
signDate: '2019-12-03T11:13:22.000+0000',
signState: '1',
thirdUrl: 'Ra4LpmZv2h6FrwZPS48QIETiI2AcWWLx6RavVjoAkoNhmz6pJzLpaFL1klLxAn7M1Hy3YFswSMOJ%0D%0ACupujVjbOuBhK0%2BNowNiEPFIM9yLXzvUqooFPNUZSjGoZts28jTW',
type: '16'
},
{
baseId: 25,
createdDate: '2019-12-03T11:06:56.000+0000',
createdUser: '您猜',
documentType: '0',
id: 137,
imgState: '3',
isDelete: 0,
modifiedDate: '2019-12-03T11:27:47.000+0000',
name: '《承诺书》',
order: 2,
rgssUrl: 'Ra4LpmZv2h6FrwZPS48QIETiI2AcWWLx6RavVjoAkoNhmz6pJzLpaFL1klLxAn7M8RnQ86uoTRid%0D%0AjQKoadYQNoc9CWLNt%2BDRygNGLUuonZuVGLphInLPv0HGtHpZ3OhD',
signDate: '2019-12-03T11:13:04.000+0000',
signState: '1',
thirdUrl: 'Ra4LpmZv2h6FrwZPS48QIETiI2AcWWLx6RavVjoAkoNhmz6pJzLpaFL1klLxAn7M8RnQ86uoTRid%0D%0AjQKoadYQNkVwQwzyltxrtR%2FT7NhB%2F%2FHUqooFPNUZSjGoZts28jTW',
type: '10'
}
]
export default { export default {
data() { data() {
let isWeixin = this.$utils.device().isWeixin //判断环境 let isWeixin = this.$utils.device().isWeixin //判断环境
@@ -267,7 +146,6 @@ export default {
localStorage.idNoD = this.ebizGuarantor.idNo localStorage.idNoD = this.ebizGuarantor.idNo
localStorage.idNameD = this.ebizGuarantor.name localStorage.idNameD = this.ebizGuarantor.name
this.agentInfo.createdDate = this.agentInfo.createdDate.substring(0, 10) this.agentInfo.createdDate = this.agentInfo.createdDate.substring(0, 10)
this.signList = devList //调试专用
this.agentSignList = filtSignList(this, this.signList).agentSignList this.agentSignList = filtSignList(this, this.signList).agentSignList
this.guaranteeSignList = filtSignList(this, this.signList).guaranteeSignList this.guaranteeSignList = filtSignList(this, this.signList).guaranteeSignList
this.isAgentSubmit = this.agentSignList.every(item => { this.isAgentSubmit = this.agentSignList.every(item => {
@@ -343,6 +221,7 @@ export default {
}) })
}, },
faceAuth(code) { faceAuth(code) {
let that = this
localStorage.idNo = this.agentInfo.idNo localStorage.idNo = this.agentInfo.idNo
localStorage.idName = this.agentInfo.name localStorage.idName = this.agentInfo.name
/* /*
@@ -355,6 +234,7 @@ export default {
message: '加载中……' message: '加载中……'
}) })
EWebBridge.webCallAppInJs('face_auth', { EWebBridge.webCallAppInJs('face_auth', {
businessSource: '2', //业务来源:1-电投2-入司3-理赔4-保全
number: that.agentInfo.idNo, //身份证号码 number: that.agentInfo.idNo, //身份证号码
name: that.agentInfo.name //姓名 name: that.agentInfo.name //姓名
}).then(data => { }).then(data => {