mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-09 06:26:44 +08:00
入司优化:入司问题处理 --提交人:阳华祥
This commit is contained in:
@@ -26,6 +26,8 @@ const ApproveInfo = () => import('@/views/ebiz/agentEenter/approve/ApproveInfo')
|
||||
const SubmitSuccess = () => import('@/views/ebiz/agentEenter/approve/SubmitSuccess')
|
||||
const recordList = () => import('@/views/ebiz/agentEenter/approve/RecordList')
|
||||
const recordDetail = () => import('@/views/ebiz/agentEenter/approve/RecordDetail')
|
||||
const ResultEnd = () => import('@/views/ebiz/agentEenter/ResultEnd')
|
||||
|
||||
|
||||
export default [
|
||||
{
|
||||
@@ -270,5 +272,14 @@ export default [
|
||||
title: '审批详细信息',
|
||||
index: 1
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/agentEenter/ResultEnd',
|
||||
name: 'ResultEnd',
|
||||
component: ResultEnd,
|
||||
meta: {
|
||||
title: '入司成功',
|
||||
index: 1
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
@@ -290,7 +290,7 @@ export default {
|
||||
})
|
||||
}
|
||||
if (item.impartType == '03') {
|
||||
item.impartId = item.impartCode
|
||||
item.impartId = '8'
|
||||
if (item.itemDtoLst) {
|
||||
item.itemDtoLst.map(itm => {
|
||||
itm.impartId = item.impartCode
|
||||
|
||||
79
src/views/ebiz/agentEenter/ResultEnd.vue
Normal file
79
src/views/ebiz/agentEenter/ResultEnd.vue
Normal file
@@ -0,0 +1,79 @@
|
||||
<template>
|
||||
<div class="signContract-result-container bg-white">
|
||||
<div class="flex justify-content-c align-items-c p20 pt150">
|
||||
<van-icon v-if="submitStatus == '0'" color="#1296DB" size="100px" name="passed" />
|
||||
</div>
|
||||
<div class="flex justify-content-c flex-direction-colunm align-items-c">
|
||||
<h3 v-if="submitStatus == '0' ">入司成功</h3>
|
||||
<h4 class="pt15" v-if="submitStatus == '0'">您的工号为:{{jobNumber}}</h4>
|
||||
</div>
|
||||
<div class="p20">
|
||||
<p v-if="submitStatus == '0' ">  恭喜您加入国富人寿这个大家庭,您可以使用工号及初始登录密码登录APP进行展业啦,初始密码为证件号码后6位。</p>
|
||||
</div>
|
||||
<div class="flex justify-content-a align-items-c p20">
|
||||
<van-button class="radius50 bg-white green" type="danger" v-if="submitStatus == '0'" @click="goToLogin" >去登录</van-button>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { Field, Icon, Button, Checkbox, CheckboxGroup } from 'vant'
|
||||
import { enterQuery } from '@/api/ebiz/agentEenter/agentEenter.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
pdfUrl: '',
|
||||
checked: false,
|
||||
submitStatus: '0',
|
||||
jobNumber: ''
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.enterQuery()
|
||||
},
|
||||
methods: {
|
||||
//获取签署协议人信息
|
||||
enterQuery() {
|
||||
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)
|
||||
}
|
||||
})
|
||||
},
|
||||
goToLogin(){
|
||||
EWebBridge.webCallAppInJs('bridge', {
|
||||
flag: 'login'
|
||||
})
|
||||
}
|
||||
},
|
||||
components: {
|
||||
[Field.name]: Field,
|
||||
[Icon.name]: Icon,
|
||||
[Button.name]: Button,
|
||||
[Checkbox.name]: Checkbox,
|
||||
[CheckboxGroup.name]: CheckboxGroup
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.signContract-result-container {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -1,50 +1,71 @@
|
||||
<template>
|
||||
<div class="pdf">
|
||||
<iframe style="width:100vw;height:100vh" :src="src + pdfUrl"></iframe>
|
||||
<div>
|
||||
<div class="pdf">
|
||||
<iframe style="width:100vw;height:90vh;" :src="src + pdfUrl"></iframe>
|
||||
</div>
|
||||
<div class="flex justify-content-s bottom-btn bg-white">
|
||||
<van-button class="bottom0 left0" square type="danger" size="large" @click="nextStep" v-no-more-click="1000">
|
||||
查看工号
|
||||
</van-button>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { agreementQuery } from '@/api/ebiz/agentEenter/agentEenter.js'
|
||||
import { Toast } from 'vant'
|
||||
import config from '@/config'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
src: location.origin + '/pdfjs/web/viewer.html?file=',
|
||||
pdfUrl: '',
|
||||
appntSign:''
|
||||
}
|
||||
},
|
||||
components: {
|
||||
[Toast.name]: Toast
|
||||
},
|
||||
import {agreementQuery} from '@/api/ebiz/agentEenter/agentEenter.js'
|
||||
import {Toast, Button} from 'vant'
|
||||
import config from '@/config'
|
||||
|
||||
mounted() {
|
||||
this.init()
|
||||
},
|
||||
methods: {
|
||||
async init() {
|
||||
let that = this
|
||||
let data = {
|
||||
type: '14',
|
||||
signState: '1',
|
||||
// userModel: { mobile: 13000000000 }, //线上去掉
|
||||
}
|
||||
agreementQuery(data).then(res => {
|
||||
console.log(res)
|
||||
if (res.result == '0') {
|
||||
res.content.ebizAgreementDtoList.map(item => {
|
||||
console.log(item)
|
||||
if (item.type == '14') {
|
||||
that.appntSign = item
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
src: location.origin + '/pdfjs/web/viewer.html?file=',
|
||||
pdfUrl: '',
|
||||
appntSign: ''
|
||||
}
|
||||
},
|
||||
components: {
|
||||
[Button.name]: Button,
|
||||
[Toast.name]: Toast
|
||||
|
||||
},
|
||||
|
||||
mounted() {
|
||||
this.init()
|
||||
},
|
||||
methods: {
|
||||
async init() {
|
||||
let that = this
|
||||
let data = {
|
||||
type: '14',
|
||||
signState: '1',
|
||||
// userModel: { mobile: 13000000000 }, //线上去掉
|
||||
}
|
||||
agreementQuery(data).then(res => {
|
||||
console.log(res)
|
||||
if (res.result == '0') {
|
||||
res.content.ebizAgreementDtoList.map(item => {
|
||||
console.log(item)
|
||||
if (item.type == '14') {
|
||||
that.appntSign = item
|
||||
}
|
||||
})
|
||||
that.pdfUrl = encodeURIComponent(config.imgDomain + `/returnDirectStream?imgPath=${that.appntSign.thirdUrl}`)
|
||||
} else {
|
||||
this.$toast(res.resultMessage)
|
||||
}
|
||||
})
|
||||
},
|
||||
nextStep() {
|
||||
this.$jump({
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
url: location.origin + `/#/agentEenter/ResultEnd`
|
||||
},
|
||||
routerInfo: {
|
||||
path: ` /agentEenter/ResultEnd`
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
that.pdfUrl = encodeURIComponent(config.imgDomain + `/returnDirectStream?imgPath=${that.appntSign.thirdUrl}`)
|
||||
} else {
|
||||
this.$toast(res.resultMessage)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user