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