mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-11 02:46:45 +08:00
入司流程查看协议ShowPDF脚本区分广西贵州PDF获取路径
This commit is contained in:
@@ -143,7 +143,6 @@
|
|||||||
<script>
|
<script>
|
||||||
import { Tag, Dialog } from 'vant'
|
import { Tag, Dialog } from 'vant'
|
||||||
import { processCheck } from '@/api/ebiz/agentEenter/agentEenter'
|
import { processCheck } from '@/api/ebiz/agentEenter/agentEenter'
|
||||||
import riskRules from '@/views/ebiz/common/risk-rules'
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
@@ -152,8 +151,7 @@ export default {
|
|||||||
approvalFlag: false, //人员管理岗审批标志
|
approvalFlag: false, //人员管理岗审批标志
|
||||||
approveMapping: [], //审批流程链
|
approveMapping: [], //审批流程链
|
||||||
ebizExamineApproveDtoList: [], //历史审批信息链
|
ebizExamineApproveDtoList: [], //历史审批信息链
|
||||||
refusalCause: '', //审批拒绝原因
|
refusalCause: '' //审批拒绝原因
|
||||||
manageComCode:'',//代理人管理机构 52贵州 45广西
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
@@ -165,9 +163,6 @@ export default {
|
|||||||
this.processCheck()
|
this.processCheck()
|
||||||
}, 1000)
|
}, 1000)
|
||||||
localStorage.setItem('agentEnter-refusalCause', '')
|
localStorage.setItem('agentEnter-refusalCause', '')
|
||||||
//获取代理人管理机构 52贵州 45广西
|
|
||||||
let dataReturn = await riskRules.getAgentInfoFunc(this)
|
|
||||||
this.manageComCode = dataReturn.manageComCode
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
processCheck() {
|
processCheck() {
|
||||||
@@ -261,20 +256,13 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
seeShowPDF() {
|
seeShowPDF() {
|
||||||
let url
|
|
||||||
//获取代理人管理机构 52贵州 45广西
|
|
||||||
if(this.manageComCode == '45'){
|
|
||||||
url = '/agentEenter/ShowPDF'
|
|
||||||
}else{
|
|
||||||
url = '/agentEenter/GuizhouInsuranceAgencyContract'
|
|
||||||
}
|
|
||||||
this.$jump({
|
this.$jump({
|
||||||
flag: 'h5',
|
flag: 'h5',
|
||||||
extra: {
|
extra: {
|
||||||
url: location.origin + `/#` + url
|
url: location.origin + `/#/agentEenter/ShowPDF`
|
||||||
},
|
},
|
||||||
routerInfo: {
|
routerInfo: {
|
||||||
path: url
|
path: '/agentEenter/ShowPDF'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,13 +14,15 @@
|
|||||||
import {agreementQuery} from '@/api/ebiz/agentEenter/agentEenter.js'
|
import {agreementQuery} from '@/api/ebiz/agentEenter/agentEenter.js'
|
||||||
import {Toast, Button} from 'vant'
|
import {Toast, Button} from 'vant'
|
||||||
import config from '@/config'
|
import config from '@/config'
|
||||||
|
import riskRules from '@/views/ebiz/common/risk-rules'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
src: location.origin + '/pdfjs/web/viewer.html?file=',
|
src: location.origin + '/pdfjs/web/viewer.html?file=',
|
||||||
pdfUrl: '',
|
pdfUrl: '',
|
||||||
appntSign: ''
|
appntSign: '',
|
||||||
|
manageComCode:'',//代理人管理机构 52贵州 45广西
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
@@ -28,8 +30,10 @@
|
|||||||
[Toast.name]: Toast
|
[Toast.name]: Toast
|
||||||
|
|
||||||
},
|
},
|
||||||
|
async mounted() {
|
||||||
mounted() {
|
//获取代理人管理机构 52贵州 45广西
|
||||||
|
let dataReturn = await riskRules.getAgentInfoFunc(this)
|
||||||
|
this.manageComCode = dataReturn.manageComCode
|
||||||
this.init()
|
this.init()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -45,9 +49,16 @@
|
|||||||
if (res.result == '0') {
|
if (res.result == '0') {
|
||||||
res.content.ebizAgreementDtoList.map(item => {
|
res.content.ebizAgreementDtoList.map(item => {
|
||||||
console.log(item)
|
console.log(item)
|
||||||
|
//获取代理人管理机构 52贵州 45广西
|
||||||
|
if(this.manageComCode == '45'){
|
||||||
if (item.type == '14') {
|
if (item.type == '14') {
|
||||||
that.appntSign = item
|
that.appntSign = item
|
||||||
}
|
}
|
||||||
|
}else{
|
||||||
|
if (item.type == '22') {
|
||||||
|
that.appntSign = item
|
||||||
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
that.pdfUrl = encodeURIComponent(config.imgDomain + `/returnDirectStream?imgPath=${that.appntSign.thirdUrl}`)
|
that.pdfUrl = encodeURIComponent(config.imgDomain + `/returnDirectStream?imgPath=${that.appntSign.thirdUrl}`)
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user