[IMP]【自助入司流程优化】签署过的协议自动跳过

This commit is contained in:
yuweiqi
2020-05-18 09:42:19 +08:00
parent c10798e7cc
commit 55d2589f51
9 changed files with 497 additions and 192 deletions

View File

@@ -12,11 +12,15 @@
</van-radio-group> </van-radio-group>
<div class="pl30 pb15"> <div class="pl30 pb15">
担保人签字 担保人签字
<van-button type="danger" size="small" @click="signD" :disabled="isDisableD" v-no-more-click="1000">{{ appntSign.signStateD == '0' ? '签名' : '已签名' }}</van-button> <van-button type="danger" size="small" @click="signD" :disabled="isDisableD" v-no-more-click="1000">{{
appntSign.signStateD == '0' ? '签名' : '已签名'
}}</van-button>
</div> </div>
<div class="pl30 pb15"> <div class="pl30 pb15">
本人签字 本人签字
<van-button type="danger" size="small" @click="sign" :disabled="isDisable" v-no-more-click="1000">{{ appntSign.signState == '0' ? '签名' : '已签名' }}</van-button> <van-button type="danger" size="small" @click="sign" :disabled="isDisable" v-no-more-click="1000">{{
appntSign.signState == '0' ? '签名' : '已签名'
}}</van-button>
</div> </div>
<van-button type="danger" :disabled="isDisabledComplite" @click="goNext" v-no-more-click="1000" size="large">下一步</van-button> <van-button type="danger" :disabled="isDisabledComplite" @click="goNext" v-no-more-click="1000" size="large">下一步</van-button>
</div> </div>
@@ -27,6 +31,8 @@
import { Field, Icon, Button, Radio, CheckboxGroup, NoticeBar, Dialog, RadioGroup } from 'vant' import { Field, Icon, Button, Radio, CheckboxGroup, NoticeBar, Dialog, RadioGroup } from 'vant'
import { agreementQuery, signAgreement } from '@/api/ebiz/agentEenter/agentEenter.js' import { agreementQuery, signAgreement } from '@/api/ebiz/agentEenter/agentEenter.js'
import config from '@/config' import config from '@/config'
import { filtSignList, getAgreementNextPagePath } from './js/methods'
export default { export default {
data() { data() {
return { return {
@@ -101,22 +107,23 @@ export default {
console.log(item) console.log(item)
if (item.type == '12') { if (item.type == '12') {
that.appntSign = item that.appntSign = item
if(item.signState == '0'){ if (item.signState == '0') {
this.isDisable = false this.isDisable = false
this.isDisableD = false this.isDisableD = false
that.appntSign.signStateD = '0' that.appntSign.signStateD = '0'
that.appntSign.signState = '0' that.appntSign.signState = '0'
this.isReSign = '0' this.isReSign = '0'
}else{ } else {
this.isDisable = true this.isDisable = true
this.isDisableD = true this.isDisableD = true
that.appntSign.signStateD = '1' that.appntSign.signStateD = '1'
that.appntSign.signState = '1' that.appntSign.signState = '1'
this.isReSign = '1' this.isReSign = '1'
} }
} }
}) })
filtSignList(that, that.signList)
that.nextPagePath = getAgreementNextPagePath(that.signList, that.code, that.appntSign)
that.pdfUrl = encodeURIComponent(config.imgDomain + `/returnDirectStream?imgPath=${that.appntSign.rgssUrl}`) that.pdfUrl = encodeURIComponent(config.imgDomain + `/returnDirectStream?imgPath=${that.appntSign.rgssUrl}`)
} else { } else {
this.$toast(res.resultMessage) this.$toast(res.resultMessage)
@@ -213,7 +220,7 @@ export default {
this.isSignD = true this.isSignD = true
} else { } else {
this.isDisabledComplite = true this.isDisabledComplite = true
this.isSignD= false this.isSignD = false
} }
} }
}) })
@@ -253,7 +260,7 @@ export default {
} }
}) })
} else { } else {
if(this.isReSign == '1'){ if (this.isReSign == '1') {
// 您已签名 // 您已签名
this.$toast('您已签名') this.$toast('您已签名')
} }
@@ -281,10 +288,10 @@ export default {
let that = this let that = this
if (val.isOver == true && val.radio != '' && val.appntSign.signState !== '1') { if (val.isOver == true && val.radio != '' && val.appntSign.signState !== '1') {
that.isDisable = false that.isDisable = false
}else{ } else {
that.isDisable = true that.isDisable = true
} }
if (val.isOver == true && val.radio != '' && val.appntSign.signStateD !== '1') { if (val.isOver == true && val.radio != '' && val.appntSign.signStateD !== '1') {
that.isDisableD = false that.isDisableD = false
} else { } else {

View File

@@ -24,7 +24,7 @@
<script> <script>
import { Field, Icon, Button, Radio, CheckboxGroup, NoticeBar, Dialog, RadioGroup } from 'vant' import { Field, Icon, Button, Radio, CheckboxGroup, NoticeBar, Dialog, RadioGroup } from 'vant'
import { agreementQuery, signAgreement } from '@/api/ebiz/agentEenter/agentEenter.js' import { agreementQuery, signAgreement } from '@/api/ebiz/agentEenter/agentEenter.js'
import { getAgreementNextPagePath } from './js/methods' import { filtSignList, getAgreementNextPagePath } from './js/methods'
import config from '@/config' import config from '@/config'
export default { export default {
data() { data() {
@@ -51,6 +51,8 @@ export default {
signList: [], signList: [],
//当前页面协议签署后下一页路由 //当前页面协议签署后下一页路由
nextPagePath: '', nextPagePath: '',
//签署人 0-申请人 1-担保人
code: '',
// 推荐人签名信息 // 推荐人签名信息
appntSign: { appntSign: {
signState: '0' signState: '0'
@@ -74,16 +76,13 @@ export default {
this.timeOut() this.timeOut()
} }
this.agreementQuery() this.agreementQuery()
this.code = this.$route.query.code
}, },
methods: { methods: {
//获取签署协议人信息 //获取签署协议人信息
agreementQuery() { agreementQuery() {
let that = this let that = this
let data = { let data = {}
// userModel: { //线上去掉
// mobile: '13000000000'
// }
}
that.$toast.loading({ that.$toast.loading({
duration: 0, // 持续展示 toast duration: 0, // 持续展示 toast
forbidClick: true, // 禁用背景点击 forbidClick: true, // 禁用背景点击
@@ -94,13 +93,14 @@ export default {
that.$toast.clear() that.$toast.clear()
if (res.result == '0') { if (res.result == '0') {
that.signList = res.content.ebizAgreementDtoList that.signList = res.content.ebizAgreementDtoList
getAgreementNextPagePath(that)
res.content.ebizAgreementDtoList.map(item => { res.content.ebizAgreementDtoList.map(item => {
console.log(item) console.log(item)
if (item.type == '7') { if (item.type == '7') {
that.appntSign = item that.appntSign = item
} }
}) })
filtSignList(that, that.signList)
that.nextPagePath = getAgreementNextPagePath(that.signList, that.code, that.appntSign)
that.pdfUrl = encodeURIComponent(config.imgDomain + `/returnDirectStream?imgPath=${that.appntSign.rgssUrl}`) that.pdfUrl = encodeURIComponent(config.imgDomain + `/returnDirectStream?imgPath=${that.appntSign.rgssUrl}`)
} else { } else {
this.$toast(res.resultMessage) this.$toast(res.resultMessage)
@@ -184,11 +184,11 @@ export default {
this.$jump({ this.$jump({
flag: 'h5', flag: 'h5',
extra: { extra: {
url: location.origin + `/#/agentEenter/${that.nextPagePath}`, url: location.origin + `/#/agentEenter/${that.nextPagePath}?code=${that.code}`,
forbidSwipeBack: '1' forbidSwipeBack: '1'
}, },
routerInfo: { routerInfo: {
path: `/agentEenter/${that.nextPagePath}` path: `/agentEenter/${that.nextPagePath}?code=${that.code}`
} }
}) })
} else { } else {

View File

@@ -12,7 +12,9 @@
</van-radio-group> </van-radio-group>
<div class="pl30 pb15"> <div class="pl30 pb15">
本人签字 本人签字
<van-button type="danger" size="small" @click="sign" :disabled="isDisable" v-no-more-click="1000">{{ appntSign.signState == '0' ? '签名' : '已签名' }}</van-button> <van-button type="danger" size="small" @click="sign" :disabled="isDisable" v-no-more-click="1000">{{
appntSign.signState == '0' ? '签名' : '已签名'
}}</van-button>
</div> </div>
<van-button type="danger" :disabled="isDisabledComplite" @click="goNext" v-no-more-click="1000" size="large">下一步</van-button> <van-button type="danger" :disabled="isDisabledComplite" @click="goNext" v-no-more-click="1000" size="large">下一步</van-button>
</div> </div>
@@ -23,6 +25,8 @@
import { Field, Icon, Button, Radio, CheckboxGroup, NoticeBar, Dialog, RadioGroup } from 'vant' import { Field, Icon, Button, Radio, CheckboxGroup, NoticeBar, Dialog, RadioGroup } from 'vant'
import { agreementQuery, signAgreement } from '@/api/ebiz/agentEenter/agentEenter.js' import { agreementQuery, signAgreement } from '@/api/ebiz/agentEenter/agentEenter.js'
import config from '@/config' import config from '@/config'
import { filtSignList, getAgreementNextPagePath } from './js/methods'
export default { export default {
data() { data() {
return { return {
@@ -42,6 +46,12 @@ export default {
isDisabledComplite: true, isDisabledComplite: true,
// 是否签名 true 签名 false 未签名 // 是否签名 true 签名 false 未签名
isSign: false, isSign: false,
//协议list
signList: [],
//当前页面协议签署后下一页路由
nextPagePath: '',
//签署人 0-申请人 1-担保人
code: '',
//推荐人信息 //推荐人信息
agentInfo: {}, agentInfo: {},
// 推荐人签名信息 // 推荐人签名信息
@@ -67,6 +77,7 @@ export default {
this.timeOut() this.timeOut()
} }
this.agreementQuery() this.agreementQuery()
this.code = this.$route.query.code
}, },
methods: { methods: {
//获取签署协议人信息 //获取签署协议人信息
@@ -87,12 +98,15 @@ export default {
console.log(res) console.log(res)
if (res.result == '0') { if (res.result == '0') {
this.$toast.clear() this.$toast.clear()
that.signList = res.content.ebizAgreementDtoList
res.content.ebizAgreementDtoList.map(item => { res.content.ebizAgreementDtoList.map(item => {
console.log(item) console.log(item)
if (item.type == '15') { if (item.type == '15') {
that.appntSign = item that.appntSign = item
} }
}) })
filtSignList(that, that.signList)
that.nextPagePath = getAgreementNextPagePath(that.signList, that.code, that.appntSign)
that.pdfUrl = encodeURIComponent(config.imgDomain + `/returnDirectStream?imgPath=${that.appntSign.rgssUrl}`) that.pdfUrl = encodeURIComponent(config.imgDomain + `/returnDirectStream?imgPath=${that.appntSign.rgssUrl}`)
} else { } else {
this.$toast(res.resultMessage) this.$toast(res.resultMessage)
@@ -176,10 +190,12 @@ export default {
this.$jump({ this.$jump({
flag: 'h5', flag: 'h5',
extra: { extra: {
url: location.origin + `/#/agentEenter/Guarantee` // url: location.origin + `/#/agentEenter/Guarantee`
url: location.origin + `/#/agentEenter/${that.nextPagePath}?code=${that.code}`
}, },
routerInfo: { routerInfo: {
path: `/agentEenter/Guarantee` // path: `/agentEenter/Guarantee`
path: `/agentEenter/${that.nextPagePath}?code=${that.code}`
} }
}) })
} else { } else {

View File

@@ -12,7 +12,9 @@
</van-radio-group> </van-radio-group>
<div class="pl30 pb15"> <div class="pl30 pb15">
本人签字 本人签字
<van-button type="danger" size="small" @click="sign" :disabled="isDisable" v-no-more-click="1000">{{ appntSign.signState == '0' ? '签名' : '已签名' }}</van-button> <van-button type="danger" size="small" @click="sign" :disabled="isDisable" v-no-more-click="1000">{{
appntSign.signState == '0' ? '签名' : '已签名'
}}</van-button>
</div> </div>
<van-button type="danger" :disabled="isDisabledComplite" v-no-more-click="1000" @click="goNext" size="large">下一步</van-button> <van-button type="danger" :disabled="isDisabledComplite" v-no-more-click="1000" @click="goNext" size="large">下一步</van-button>
</div> </div>
@@ -23,6 +25,8 @@
import { Field, Icon, Button, Radio, CheckboxGroup, NoticeBar, Dialog, RadioGroup } from 'vant' import { Field, Icon, Button, Radio, CheckboxGroup, NoticeBar, Dialog, RadioGroup } from 'vant'
import { agreementQuery, signAgreement } from '@/api/ebiz/agentEenter/agentEenter.js' import { agreementQuery, signAgreement } from '@/api/ebiz/agentEenter/agentEenter.js'
import config from '@/config' import config from '@/config'
import { filtSignList, getAgreementNextPagePath } from './js/methods'
export default { export default {
data() { data() {
return { return {
@@ -44,6 +48,12 @@ export default {
isSign: false, isSign: false,
//推荐人信息 //推荐人信息
agentInfo: {}, agentInfo: {},
//协议list
signList: [],
//当前页面协议签署后下一页路由
nextPagePath: '',
//签署人 0-申请人 1-担保人
code: '',
// 推荐人签名信息 // 推荐人签名信息
appntSign: { appntSign: {
signState: '0' signState: '0'
@@ -67,6 +77,7 @@ export default {
this.timeOut() this.timeOut()
} }
this.agreementQuery() this.agreementQuery()
this.code = this.$route.query.code
}, },
methods: { methods: {
//获取签署协议人信息 //获取签署协议人信息
@@ -77,7 +88,7 @@ export default {
// mobile: '13000000000' // mobile: '13000000000'
// } // }
} }
that.$toast.loading({ that.$toast.loading({
duration: 0, // 持续展示 toast duration: 0, // 持续展示 toast
forbidClick: true, // 禁用背景点击 forbidClick: true, // 禁用背景点击
loadingType: 'spinner', loadingType: 'spinner',
@@ -87,12 +98,15 @@ export default {
console.log(res) console.log(res)
if (res.result == '0') { if (res.result == '0') {
this.$toast.clear() this.$toast.clear()
that.signList = res.content.ebizAgreementDtoList
res.content.ebizAgreementDtoList.map(item => { res.content.ebizAgreementDtoList.map(item => {
console.log(item) console.log(item)
if (item.type == '10') { if (item.type == '10') {
that.appntSign = item that.appntSign = item
} }
}) })
filtSignList(that, that.signList)
that.nextPagePath = getAgreementNextPagePath(that.signList, that.code, that.appntSign)
that.pdfUrl = encodeURIComponent(config.imgDomain + `/returnDirectStream?imgPath=${that.appntSign.rgssUrl}`) that.pdfUrl = encodeURIComponent(config.imgDomain + `/returnDirectStream?imgPath=${that.appntSign.rgssUrl}`)
} else { } else {
this.$toast(res.resultMessage) this.$toast(res.resultMessage)
@@ -163,7 +177,7 @@ export default {
// baseEncryp: '123456', // baseEncryp: '123456',
ebizAgreementDto: that.appntSign ebizAgreementDto: that.appntSign
} }
that.$toast.loading({ that.$toast.loading({
duration: 0, // 持续展示 toast duration: 0, // 持续展示 toast
forbidClick: true, // 禁用背景点击 forbidClick: true, // 禁用背景点击
loadingType: 'spinner', loadingType: 'spinner',
@@ -176,10 +190,12 @@ export default {
this.$jump({ this.$jump({
flag: 'h5', flag: 'h5',
extra: { extra: {
url: location.origin + `/#/agentEenter/MessageLetterOfCommitment` // url: location.origin + `/#/agentEenter/MessageLetterOfCommitment`
url: location.origin + `/#/agentEenter/${that.nextPagePath}?code=${that.code}`
}, },
routerInfo: { routerInfo: {
path: `/agentEenter/MessageLetterOfCommitment` // path: `/agentEenter/MessageLetterOfCommitment`
path: `/agentEenter/${that.nextPagePath}?code=${that.code}`
} }
}) })
} else { } else {
@@ -213,7 +229,8 @@ export default {
that.isDisable = true that.isDisable = true
} }
if (that.radio == '1' && val.appntSign.signState == '1') { //线上改为1 if (that.radio == '1' && val.appntSign.signState == '1') {
//线上改为1
that.isDisabledComplite = false that.isDisabledComplite = false
} else { } else {
that.isDisabledComplite = true that.isDisabledComplite = true

View File

@@ -12,7 +12,9 @@
</van-radio-group> </van-radio-group>
<div class="pl30 pb15"> <div class="pl30 pb15">
本人签字 本人签字
<van-button type="danger" size="small" @click="sign" :disabled="isDisable" v-no-more-click="1000">{{ appntSign.signState == '0' ? '签名' : '已签名' }}</van-button> <van-button type="danger" size="small" @click="sign" :disabled="isDisable" v-no-more-click="1000">{{
appntSign.signState == '0' ? '签名' : '已签名'
}}</van-button>
</div> </div>
<van-button type="danger" :disabled="isDisabledComplite" @click="goNext" v-no-more-click="1000" size="large">下一步</van-button> <van-button type="danger" :disabled="isDisabledComplite" @click="goNext" v-no-more-click="1000" size="large">下一步</van-button>
</div> </div>
@@ -24,6 +26,8 @@ import { Field, Icon, Button, CheckboxGroup, NoticeBar, Dialog, Radio, RadioGrou
import { agreementQuery, signAgreement } from '@/api/ebiz/agentEenter/agentEenter.js' import { agreementQuery, signAgreement } from '@/api/ebiz/agentEenter/agentEenter.js'
import config from '@/config' import config from '@/config'
import dateUtils from '@/assets/js/utils/date-utils' import dateUtils from '@/assets/js/utils/date-utils'
import { filtSignList, getAgreementNextPagePath } from './js/methods'
export default { export default {
data() { data() {
return { return {
@@ -43,6 +47,12 @@ export default {
isDisabledComplite: true, isDisabledComplite: true,
// 是否签名 true 签名 false 未签名 // 是否签名 true 签名 false 未签名
isSign: false, isSign: false,
//协议list
signList: [],
//当前页面协议签署后下一页路由
nextPagePath: '',
//签署人 0-申请人 1-担保人
code: '',
//推荐人信息 //推荐人信息
agentInfo: {}, agentInfo: {},
// 推荐人签名信息 // 推荐人签名信息
@@ -68,6 +78,7 @@ export default {
this.timeOut() this.timeOut()
} }
this.agreementQuery() this.agreementQuery()
this.code = this.$route.query.code
}, },
methods: { methods: {
//获取签署协议人信息 //获取签署协议人信息
@@ -88,12 +99,15 @@ export default {
console.log(res) console.log(res)
if (res.result == '0') { if (res.result == '0') {
this.$toast.clear() this.$toast.clear()
that.signList = res.content.ebizAgreementDtoList
res.content.ebizAgreementDtoList.map(item => { res.content.ebizAgreementDtoList.map(item => {
console.log(item) console.log(item)
if (item.type == '11') { if (item.type == '11') {
that.appntSign = item that.appntSign = item
} }
}) })
filtSignList(that, that.signList)
that.nextPagePath = getAgreementNextPagePath(that.signList, that.code, that.appntSign)
that.pdfUrl = encodeURIComponent(config.imgDomain + `/returnDirectStream?imgPath=${that.appntSign.rgssUrl}`) that.pdfUrl = encodeURIComponent(config.imgDomain + `/returnDirectStream?imgPath=${that.appntSign.rgssUrl}`)
} else { } else {
this.$toast(res.resultMessage) this.$toast(res.resultMessage)
@@ -132,11 +146,11 @@ export default {
loadingType: 'spinner', loadingType: 'spinner',
message: '加载中……' message: '加载中……'
}) })
console.log('签名', localStorage.idNo,localStorage.name) console.log('签名', localStorage.idNo, localStorage.name)
EWebBridge.webCallAppInJs('ca_sign', { EWebBridge.webCallAppInJs('ca_sign', {
//身份证号码 //身份证号码
number: localStorage.idNo, number: localStorage.idNo,
//姓名 //姓名
name: localStorage.idName, name: localStorage.idName,
//身份证号码id //身份证号码id
type: '1', type: '1',
@@ -165,7 +179,7 @@ export default {
// baseEncryp: '123456', // baseEncryp: '123456',
ebizAgreementDto: that.appntSign ebizAgreementDto: that.appntSign
} }
that.$toast.loading({ that.$toast.loading({
duration: 0, // 持续展示 toast duration: 0, // 持续展示 toast
forbidClick: true, // 禁用背景点击 forbidClick: true, // 禁用背景点击
loadingType: 'spinner', loadingType: 'spinner',
@@ -178,10 +192,12 @@ export default {
this.$jump({ this.$jump({
flag: 'h5', flag: 'h5',
extra: { extra: {
url: location.origin + `/#/agentEenter/paction` // url: location.origin + `/#/agentEenter/paction`
url: location.origin + `/#/agentEenter/${that.nextPagePath}?code=${that.code}`
}, },
routerInfo: { routerInfo: {
path: `/agentEenter/paction` // path: `/agentEenter/paction`
path: `/agentEenter/${that.nextPagePath}?code=${that.code}`
} }
}) })
} else { } else {

View File

@@ -12,7 +12,9 @@
</van-radio-group> </van-radio-group>
<div class="pl30 pb15"> <div class="pl30 pb15">
本人签字 本人签字
<van-button type="danger" size="small" @click="sign" :disabled="isDisable" v-no-more-click="1000">{{ appntSign.signState == '0' ? '签名' : '已签名' }}</van-button> <van-button type="danger" size="small" @click="sign" :disabled="isDisable" v-no-more-click="1000">{{
appntSign.signState == '0' ? '签名' : '已签名'
}}</van-button>
</div> </div>
<van-button type="danger" :disabled="isDisabledComplite" @click="goNext" v-no-more-click="1000" size="large">下一步</van-button> <van-button type="danger" :disabled="isDisabledComplite" @click="goNext" v-no-more-click="1000" size="large">下一步</van-button>
</div> </div>
@@ -23,6 +25,8 @@
import { Field, Icon, Button, Radio, CheckboxGroup, NoticeBar, Dialog, RadioGroup } from 'vant' import { Field, Icon, Button, Radio, CheckboxGroup, NoticeBar, Dialog, RadioGroup } from 'vant'
import { agreementQuery, signAgreement } from '@/api/ebiz/agentEenter/agentEenter.js' import { agreementQuery, signAgreement } from '@/api/ebiz/agentEenter/agentEenter.js'
import config from '@/config' import config from '@/config'
import { filtSignList, getAgreementNextPagePath } from './js/methods'
export default { export default {
data() { data() {
return { return {
@@ -42,6 +46,13 @@ export default {
isDisabledComplite: true, isDisabledComplite: true,
// 是否签名 true 签名 false 未签名 // 是否签名 true 签名 false 未签名
isSign: false, isSign: false,
//协议list
signList: [],
//当前页面协议签署后下一页路由
nextPagePath: '',
//签署人 0-申请人 1-担保人
code: '',
//推荐人信息 //推荐人信息
agentInfo: {}, agentInfo: {},
// 推荐人签名信息 // 推荐人签名信息
@@ -67,6 +78,7 @@ export default {
this.timeOut() this.timeOut()
} }
this.agreementQuery() this.agreementQuery()
this.code = this.$route.query.code
}, },
methods: { methods: {
//获取签署协议人信息 //获取签署协议人信息
@@ -77,7 +89,7 @@ export default {
// mobile: '13000000000' // mobile: '13000000000'
// } // }
} }
that.$toast.loading({ that.$toast.loading({
duration: 0, // 持续展示 toast duration: 0, // 持续展示 toast
forbidClick: true, // 禁用背景点击 forbidClick: true, // 禁用背景点击
loadingType: 'spinner', loadingType: 'spinner',
@@ -87,12 +99,15 @@ export default {
console.log(res) console.log(res)
if (res.result == '0') { if (res.result == '0') {
this.$toast.clear() this.$toast.clear()
that.signList = res.content.ebizAgreementDtoList
res.content.ebizAgreementDtoList.map(item => { res.content.ebizAgreementDtoList.map(item => {
console.log(item) console.log(item)
if (item.type == '16') { if (item.type == '16') {
that.appntSign = item that.appntSign = item
} }
}) })
filtSignList(that, that.signList)
that.nextPagePath = getAgreementNextPagePath(that.signList, that.code, that.appntSign)
that.pdfUrl = encodeURIComponent(config.imgDomain + `/returnDirectStream?imgPath=${that.appntSign.rgssUrl}`) that.pdfUrl = encodeURIComponent(config.imgDomain + `/returnDirectStream?imgPath=${that.appntSign.rgssUrl}`)
} else { } else {
this.$toast(res.resultMessage) this.$toast(res.resultMessage)
@@ -163,7 +178,7 @@ export default {
// baseEncryp: '123456', // baseEncryp: '123456',
ebizAgreementDto: that.appntSign ebizAgreementDto: that.appntSign
} }
that.$toast.loading({ that.$toast.loading({
duration: 0, // 持续展示 toast duration: 0, // 持续展示 toast
forbidClick: true, // 禁用背景点击 forbidClick: true, // 禁用背景点击
loadingType: 'spinner', loadingType: 'spinner',
@@ -176,10 +191,12 @@ export default {
this.$jump({ this.$jump({
flag: 'h5', flag: 'h5',
extra: { extra: {
url: location.origin + `/#/agentEenter/IllegalLetterOfCommitment` // url: location.origin + `/#/agentEenter/IllegalLetterOfCommitment`
url: location.origin + `/#/agentEenter/${that.nextPagePath}?code=${that.code}`
}, },
routerInfo: { routerInfo: {
path: `/agentEenter/IllegalLetterOfCommitment` // path: `/agentEenter/IllegalLetterOfCommitment`
path: `/agentEenter/${that.nextPagePath}?code=${that.code}`
} }
}) })
} else { } else {
@@ -213,7 +230,8 @@ export default {
that.isDisable = true that.isDisable = true
} }
if (that.radio == '1' && val.appntSign.signState == '1') { //线上改为1 if (that.radio == '1' && val.appntSign.signState == '1') {
//线上改为1
that.isDisabledComplite = false that.isDisabledComplite = false
} else { } else {
that.isDisabledComplite = true that.isDisabledComplite = true

View File

@@ -12,7 +12,9 @@
</van-radio-group> </van-radio-group>
<div class="pl30 pb15"> <div class="pl30 pb15">
本人签字 本人签字
<van-button type="danger" size="small" @click="sign" :disabled="isDisable" v-no-more-click="1000">{{ appntSign.signState == '0' ? '签名' : '已签名' }}</van-button> <van-button type="danger" size="small" @click="sign" :disabled="isDisable" v-no-more-click="1000">{{
appntSign.signState == '0' ? '签名' : '已签名'
}}</van-button>
</div> </div>
<van-button type="danger" size="large" :disabled="isDisabledComplite" v-no-more-click="1000" @click="finish">完成</van-button> <van-button type="danger" size="large" :disabled="isDisabledComplite" v-no-more-click="1000" @click="finish">完成</van-button>
</div> </div>
@@ -23,6 +25,8 @@
import { Field, Icon, Button, Radio, RadioGroup, NoticeBar, Dialog } from 'vant' import { Field, Icon, Button, Radio, RadioGroup, NoticeBar, Dialog } from 'vant'
import { agreementQuery, signAgreement } from '@/api/ebiz/agentEenter/agentEenter.js' import { agreementQuery, signAgreement } from '@/api/ebiz/agentEenter/agentEenter.js'
import config from '@/config' import config from '@/config'
import { filtSignList, getAgreementNextPagePath } from './js/methods'
export default { export default {
data() { data() {
return { return {
@@ -42,6 +46,13 @@ export default {
isDisabledComplite: true, isDisabledComplite: true,
// 是否签名 true 签名 false 未签名 // 是否签名 true 签名 false 未签名
isSign: false, isSign: false,
//协议list
signList: [],
//当前页面协议签署后下一页路由
nextPagePath: '',
//签署人 0-申请人 1-担保人
code: '',
//推荐人信息 //推荐人信息
agentInfo: {}, agentInfo: {},
// 推荐人签名信息 // 推荐人签名信息
@@ -67,6 +78,7 @@ export default {
this.timeOut() this.timeOut()
} }
this.agreementQuery() this.agreementQuery()
this.code = this.$route.query.code
}, },
methods: { methods: {
//获取签署协议人信息 //获取签署协议人信息
@@ -87,12 +99,15 @@ export default {
console.log(res) console.log(res)
if (res.result == '0') { if (res.result == '0') {
this.$toast.clear() this.$toast.clear()
that.signList = res.content.ebizAgreementDtoList
res.content.ebizAgreementDtoList.map(item => { res.content.ebizAgreementDtoList.map(item => {
console.log(item) console.log(item)
if (item.type == '14') { if (item.type == '14') {
that.appntSign = item that.appntSign = item
} }
}) })
filtSignList(that, that.signList)
that.nextPagePath = getAgreementNextPagePath(that.signList, that.code, that.appntSign)
that.pdfUrl = encodeURIComponent(config.imgDomain + `/returnDirectStream?imgPath=${that.appntSign.rgssUrl}`) that.pdfUrl = encodeURIComponent(config.imgDomain + `/returnDirectStream?imgPath=${that.appntSign.rgssUrl}`)
} else { } else {
this.$toast(res.resultMessage) this.$toast(res.resultMessage)
@@ -176,12 +191,14 @@ export default {
this.$jump({ this.$jump({
flag: 'h5', flag: 'h5',
extra: { extra: {
url: location.origin + `/#/agentEenter/signContract`, // url: location.origin + `/#/agentEenter/signContract`,
url: location.origin + `/#/agentEenter/${that.nextPagePath}?code=${that.code}`,
forbidSwipeBack: '1', forbidSwipeBack: '1',
backToFirst: '1' backToFirst: '1'
}, },
routerInfo: { routerInfo: {
path: `/agentEenter/signContract` // path: `/agentEenter/signContract`
path: `/agentEenter/${that.nextPagePath}?code=${that.code}`
} }
}) })
} else { } else {
@@ -206,7 +223,7 @@ export default {
} }
if (that.radio == '1' && val.appntSign.signState == '1') { if (that.radio == '1' && val.appntSign.signState == '1') {
that.isDisabledComplite = false that.isDisabledComplite = false
} else { } else {
that.isDisabledComplite = true that.isDisabledComplite = true
} }

View File

@@ -5,22 +5,24 @@
<van-field readonly label-width="120px" label="入司申请时间" v-model="agentInfo.createdDate" /> <van-field readonly label-width="120px" label="入司申请时间" v-model="agentInfo.createdDate" />
<van-field readonly label-width="120px" label="所属分公司" v-model="referrerInfo.manageName" /> <van-field readonly label-width="120px" label="所属分公司" v-model="referrerInfo.manageName" />
<van-field readonly label-width="120px" label="所属团队" v-model="referrerInfo.orgLabel" /> <van-field readonly label-width="120px" label="所属团队" v-model="referrerInfo.orgLabel" />
<p class="p15 line-height"> <div v-if="!isWeixin" class="mb10">
恭喜您的入司资料已经通过公司审核<br /> <p class="p15 line-height">
以下内容需要您按照顺序阅读并签字确认 恭喜您的入司资料已经通过公司审核<br />
</p> 以下内容需要您按照顺序阅读并签字确认
<div class="p15 line-height"> </p>
需签署 <div class="p15 line-height">
<ul> 需签署
<li class="flex" v-for="(sign, index) in signList" :key="index"> <ul>
<div class="w260 blue">{{ sign.name }}</div> <li class="flex" v-for="(sign, index) in agentSignList" :key="index">
<van-icon v-if="sign.signState === '1'" color="green" name="checked" /> <div class="w260 blue">{{ sign.name }}</div>
</li> <van-icon v-if="sign.signState === '1'" color="green" name="checked" />
</ul> </li>
点击开始按钮进行相关操作 </ul>
</div> 点击开始按钮进行相关操作
<div class="text-center mt20"> </div>
<van-button @click="faceAuth" v-no-more-click="1000" :disabled="isSubmit" type="danger" size="normal" style="width:30%">开始</van-button> <div class="text-center mt20">
<van-button @click="faceAuth('0')" v-no-more-click="1000" :disabled="isAgentSubmit" type="danger" size="normal" style="width:30%">开始</van-button>
</div>
</div> </div>
<div class="ebizGuarantor"> <div class="ebizGuarantor">
<van-field readonly label-width="120px" label="担保人" v-model="ebizGuarantor.name"></van-field> <van-field readonly label-width="120px" label="担保人" v-model="ebizGuarantor.name"></van-field>
@@ -30,36 +32,171 @@
<div class="p15 line-height"> <div class="p15 line-height">
需签署 需签署
<ul> <ul>
<li class="flex" v-for="(sign, index) in signList" :key="index"> <li class="flex" v-for="(sign, index) in guaranteeSignList" :key="index">
<div class="w260 blue">{{ sign.name }}</div> <div class="w260 blue">{{ sign.name }}</div>
<van-icon v-if="sign.signState === '1'" color="green" name="checked" /> <van-icon v-if="sign.signState === '1'" color="green" name="checked" />
</li> </li>
</ul> </ul>
点击开始分享进行相关操作 点击开始分享进行相关操作
</div> </div>
<div class="flex justify-content-a mb60 mt20"> <div v-if="!isInvalid" class="flex justify-content-a mb60 mt20">
<van-button v-if="!isWeixin" @click="faceAuth" v-no-more-click="1000" :disabled="isSubmit" type="danger" size="normal" style="width:30%" <van-button v-if="!isWeixin" @click="share" v-no-more-click="1000" :disabled="isguranteeSubmit" type="danger" size="normal" style="width:30%"
>分享</van-button >分享</van-button
> >
<van-button @click="faceAuth" v-no-more-click="1000" :disabled="isSubmit" type="danger" size="normal" style="width:30%">开始</van-button> <van-button @click="faceAuth('1')" v-no-more-click="1000" :disabled="isguranteeSubmit" type="danger" size="normal" style="width:30%">开始</van-button>
</div> </div>
<div v-else class="ml15">操作时间已失效请联系销售人员</div>
</div> </div>
<van-button v-if="isSubmit" class="fixed bottom0" type="danger" v-no-more-click="1000" @click="clickSubmit" size="large">提交</van-button> <van-button
v-if="isAgentSubmit && isguranteeSubmit && !isWeixin"
class="fixed bottom0"
type="danger"
v-no-more-click="1000"
@click="clickSubmit"
size="large"
>提交</van-button
>
</div> </div>
</template> </template>
<script> <script>
import { Field, Icon, Button } from 'vant' import { Field, Icon, Button } from 'vant'
import { agreementQuery, signAgreement } from '@/api/ebiz/agentEenter/agentEenter.js' import { agreementQuery, signAgreement } from '@/api/ebiz/agentEenter/agentEenter.js'
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 { 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 //判断环境
return { return {
// 是否在微信 // 是否在微信
isWeixin, isWeixin,
// 微信分享链接是否失效 false 为未失效 true为已失效
isInvalid: false,
// 微信分享校验值
signInvalid: '',
agentInfo: { agentInfo: {
name: '皮伟', name: '皮伟',
idNo: '422801199210070412', idNo: '422801199210070412',
@@ -68,26 +205,18 @@ export default {
referrerInfo: { referrerInfo: {
orgLabel: '' orgLabel: ''
}, },
signList: [ signList: [],
// { name: '《个险营销员履历表》', signState: '1' }, //0未签字1签字 agentSignList: [], //申请人所需阅读签署文档集合
// { name: '《个险营销员营销告知书》', signState: '0' }, guaranteeSignList: [], //担保人所需阅读签署文档集合
// { name: '《个险销售人员代理合同》', signState: '1' } isAgentSubmit: false,
], isguranteeSubmit: false,
isSubmit: false,
ebizGuarantor: {} //担保人信息 ebizGuarantor: {} //担保人信息
} }
}, },
created() { created() {
this.agreementQuery() this.init()
}, },
mounted() { mounted() {
//查看是否全部签署完成
if (this.signList.length > 0) {
this.isSubmit = this.signList.every(item => {
console.log('item', item)
return item.signState == '1'
})
}
document.body.style.backgroundColor = '#fff' document.body.style.backgroundColor = '#fff'
}, },
beforeRouteLeave(to, from, next) { beforeRouteLeave(to, from, next) {
@@ -95,6 +224,27 @@ export default {
next() next()
}, },
methods: { methods: {
//初始化信息
async init() {
if (this.isWeixin) {
window.localStorage.setItem('token', this.$route.query.token)
if (this.$route.query.signInvalid) {
sessionStorage.setItem('signInvalid', this.$route.query.signInvalid)
}
let signInvalid = sessionStorage.getItem('signInvalid')
await this.agreementQuery()
let rs = await this.checkSignInvalid(signInvalid)
if (rs == '1') {
this.isInvalid = false
} else {
this.isInvalid = true
}
} else {
await this.agreementQuery()
this.getSignInvalid()
}
},
//获取签署协议人信息 //获取签署协议人信息
agreementQuery() { agreementQuery() {
let data = { let data = {
@@ -106,103 +256,143 @@ export default {
loadingType: 'spinner', loadingType: 'spinner',
message: '加载中……' message: '加载中……'
}) })
agreementQuery(data).then(res => { return new Promise(resolve => {
console.log(res) agreementQuery(data).then(res => {
if (res.result == '0') { if (res.result == '0') {
this.$toast.clear() this.$toast.clear()
this.agentInfo = res.content.ebizEnterCustomerDto this.agentInfo = res.content.ebizEnterCustomerDto
this.referrerInfo = res.content.ebizReferrerDto this.referrerInfo = res.content.ebizReferrerDto
this.signList = res.content.ebizAgreementDtoList this.signList = res.content.ebizAgreementDtoList
this.ebizGuarantor = res.content.ebizGuarantorDto this.ebizGuarantor = res.content.ebizGuarantorDto
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.map(item => { this.signList = devList //调试专用
this.addKey(item) this.agentSignList = filtSignList(this, this.signList).agentSignList
}) this.guaranteeSignList = filtSignList(this, this.signList).guaranteeSignList
this.signList.sort(function(a, b) { this.isAgentSubmit = this.agentSignList.every(item => {
return a.key - b.key return item.signState == '1'
}) })
this.isSubmit = this.signList.every(item => { this.isguranteeSubmit = this.guaranteeSignList.every(item => {
return item.signState == '1' return item.signState == '1'
}) })
} else { resolve()
this.$toast(res.resultMessage) } else {
this.$toast(res.resultMessage)
}
})
})
},
//担保人分享到微信空签
share() {
EWebBridge.webCallAppInJs('bridge', {
flag: 'share',
extra: {
title: '国富人寿入司申请(担保人签字)',
content: '签字进行',
url: location.origin + '/#/agentEenter/signContract?token=' + localStorage.token + '&signInvalid=' + this.signInvalid,
img: this.$assetsUrl + 'images/logo.png'
} }
}) })
}, },
faceAuth() {
// /* getSignInvalid() {
let that = this // let that = this
localStorage.idNo = this.agentInfo.idNo this.$toast.loading({
localStorage.idName = this.agentInfo.name duration: 0, // 持续展示 toast
if (that.agentInfo.idType == '1') {
this.$toast.loading({ forbidClick: true, // 禁用背景点击
duration: 0, // 持续展示 toast
forbidClick: true, // 禁用背景点击 loadingType: 'spinner',
loadingType: 'spinner',
message: '加载中……' message: '加载中……'
}) })
EWebBridge.webCallAppInJs('face_auth', { let data = {}
number: that.agentInfo.idNo, //身份证号码 getSignInvalid(data).then(res => {
name: that.agentInfo.name //姓名 if (res.result == '0') {
}).then(data => {
console.log(data)
this.$toast.clear() this.$toast.clear()
if (JSON.parse(data).state == '1') { this.signInvalid = res.content.sign
that.goUrl() }
})
},
//判断微信分享链接是否失效
async checkSignInvalid(signInvalid) {
let that = this
this.$toast.loading({
duration: 0, // 持续展示 toast
forbidClick: true, // 禁用背景点击
loadingType: 'spinner',
message: '加载中……'
})
let data = {
sign: signInvalid
}
return new Promise((resolve, reject) => {
checkSignInvalid(data).then(res => {
if (res.result == '0') {
that.$toast.clear()
let status = res.content.status
resolve(status)
} }
}) })
})
},
faceAuth(code) {
localStorage.idNo = this.agentInfo.idNo
localStorage.idName = this.agentInfo.name
/*
if (code == '0') {
if (that.agentInfo.idType == '1') {
this.$toast.loading({
duration: 0, // 持续展示 toast
forbidClick: true, // 禁用背景点击
loadingType: 'spinner',
message: '加载中……'
})
EWebBridge.webCallAppInJs('face_auth', {
number: that.agentInfo.idNo, //身份证号码
name: that.agentInfo.name //姓名
}).then(data => {
console.log(data)
this.$toast.clear()
if (JSON.parse(data).state == '1') {
that.goUrl(code)
}
})
} else {
that.goUrl(code)
}
} else { } else {
that.goUrl() that.goUrl(code)
} }
// */ */
// this.goUrl()//调试专用 this.goUrl(code) //调试专用
}, },
//自定义key值排序用 goUrl(code) {
addKey(item) {
//13保险代理申请人健康声明 10承诺书 16广西保险销售从业人员信息公开承诺书
//15销售从业人员拒绝非法集资、非法放贷、金融诈骗承诺书 12担保书 11代理人基本福利保障知晓函 14个险销售人员代理合同
if (item.type == '13') {
item.key = 1
} else if (item.type == '10') {
item.key = 2
} else if (item.type == '16') {
item.key = 3
} else if (item.type == '15') {
item.key = 4
} else if (item.type == '12') {
item.key = 5
} else if (item.type == '11') {
item.key = 6
} else if (item.type == '14') {
item.key = 7
}
},
goUrl() {
let path = '' let path = ''
if (this.signList[0].signState == 0) { if (code == '0') {
path = 'healthNotice' path = this.agentSignList.filter(v => {
} else if (this.signList[1].signState == 0) { return v.signState == '0'
path = 'LetterOfCommitment' })[0].path
} else if (this.signList[2].signState == 0) { } else if (code == '1') {
path = 'MessageLetterOfCommitment' path = this.guaranteeSignList.filter(v => {
} else if (this.signList[3].signState == 0) { return v.signState == '0'
path = 'IllegalLetterOfCommitment' })[0].path
} else if (this.signList[4].signState == 0) {
path = 'Guarantee'
} else if (this.signList[5].signState == 0) {
path = 'LetterOfKnow'
} else if (this.signList[6].signState == 0) {
path = 'paction'
} }
this.$jump({ this.$jump({
flag: 'h5', flag: 'h5',
extra: { extra: {
url: location.origin + `/#/agentEenter/` + path // url: location.origin + `/#/agentEenter/` + path
url: `${location.origin}/#/agentEenter/${path}?code=${code}`
}, },
routerInfo: { routerInfo: {
path: `/agentEenter/` + path // path: `/agentEenter/` + path
path: `/agentEenter/${path}?code=${code}`
} }
}) })
}, },

View File

@@ -964,68 +964,92 @@ export function effectiveDataTypeChange(that, val) {
} }
} }
//筛选未签署协议,获取签署当前页面协议后,跳转路径
/** /**
* @param {*} that 上下文 * @param {*} that 上下文
* @param {*} signList 协议list * @param {*} signList 所有协议list
* @param {*} code 未签署协议类型 0-申请人 1-担保人
* @param {*} appntSign 当前签署页 签署状态信息
*/ */
export function getAgreementNextPagePath(that, signList) { //筛选申请人、担保人所需阅读签署文档list
let unsignedList = [], export function filtSignList(that, signList) {
nextPagePath = '' let agentSignList = [], //申请人所需签署协议list
that.signList.map(item => { guaranteeSignList = [] //担保人所需签署协议list
//documentType签名类型 0代理人 1 担保人 order显示顺序
signList.sort(function(a, b) {
return a.order - b.order
})
signList.forEach(item => {
addKey(item) addKey(item)
filtUnsigned(item) if (item.documentType == '0') {
agentSignList.push(item)
} else if (item.documentType == '1') {
guaranteeSignList.push(item)
}
}) })
that.signList.sort(function(a, b) { return { agentSignList, guaranteeSignList }
return a.key - b.key //增加路径跳转path用
})
if (unsignedList.length > 1) {
nextPagePath = unsignedList[1].path
} else {
nextPagePath = 'signContract'
}
//自定义key值排序用
function addKey(item) { function addKey(item) {
//13保险代理申请人健康声明 10承诺书 16广西保险销售从业人员信息公开承诺书 //13保险代理申请人健康声明 10承诺书 16广西保险销售从业人员信息公开承诺书
//15销售从业人员拒绝非法集资、非法放贷、金融诈骗承诺书 12担保书 11代理人基本福利保障知晓函 14个险销售人员代理合同 //15销售从业人员拒绝非法集资、非法放贷、金融诈骗承诺书 12担保书 11代理人基本福利保障知晓函 14个险销售人员代理合同
switch (item.type) { switch (item.type) {
case '13': case '13':
item.key = 1 // item.key = 1
item.path = 'healthNotice' item.path = 'healthNotice'
break break
case '10': case '10':
item.key = 2 // item.key = 2
item.path = 'LetterOfCommitment' item.path = 'LetterOfCommitment'
break break
case '16': case '16':
item.key = 3 // item.key = 3
item.path = 'MessageLetterOfCommitment' item.path = 'MessageLetterOfCommitment'
break break
case '15': case '15':
item.key = 4 // item.key = 4
item.path = 'IllegalLetterOfCommitment' item.path = 'IllegalLetterOfCommitment'
break break
case '12': case '12':
item.key = 5 // item.key = 5
item.path = 'Guarantee' item.path = 'Guarantee'
break break
case '11': case '11':
item.key = 6 // item.key = 6
item.path = 'LetterOfKnow' item.path = 'LetterOfKnow'
break break
case '14': case '14':
item.key = 7 // item.key = 7
item.path = 'paction' item.path = 'paction'
break break
} }
} }
}
//筛选未签名协议 //筛选未签名协议并获取到当前协议签署完成后下一页跳转路径
function filtUnsigned(item) { export function getAgreementNextPagePath(signList, code, appntSign) {
//signState 0-未签名 1-已签名 //signState 0-未签名 1-已签名
if (item.signState == '0') { let unAgentSignList = [],
unsignedList.push(item) unGuaranteeSignList = [],
nextPagePath = ''
signList.forEach(item => {
if (item.signState == '0' && item.documentType == '0') {
unAgentSignList.push(item)
} else if (item.signState == '0' && item.documentType == '1') {
unGuaranteeSignList.push(item)
}
})
console.log('unAgentSignList==', unAgentSignList)
// console.log('unGuaranteeSignList==', unGuaranteeSignList)
if (code == '0') {
go(unAgentSignList)
} else if (code == '1') {
go(unGuaranteeSignList)
}
return nextPagePath
function go(list) {
//此方法内剔除当前页面是否签署
if (appntSign.signState == '0') {
nextPagePath = list.length > 1 ? list[1].path : 'signContract'
} else {
nextPagePath = list.length > 0 ? list[0].path : 'signContract'
} }
} }
that.nextPagePath = nextPagePath
} }