审批详情页面pdf回显, 增加节点信息

This commit is contained in:
mengxiaolong
2020-10-14 09:34:48 +08:00
parent 3132806d63
commit 102190fd12
2 changed files with 71 additions and 11 deletions

View File

@@ -35,18 +35,39 @@
<van-cell title="是否同业" :value="BasicInfoDTO.sameTrade | idToText('rshealthCondition')" />
<van-cell title="国籍/地区" :value="BasicInfoDTO.nationality | idToText('rsnativeplace')" />
<van-cell title="是否境外人员" :value="BasicInfoDTO.foreigners | idToText('rshealthCondition')" />
<van-cell title="职级" :value="BasicInfoDTO.applGrade | idToText('applGrade')" />
</van-cell-group>
<p style="border-bottom: 1px solid #ebedf0" class="fs15 fwb pl10 pv12">推荐人信息</p>
<p style="border-bottom: 1px solid #ebedf0" class="fs15 fwb pl10 pv12">行政信息</p>
<van-cell-group>
<van-cell title="入司职级" :value="BasicInfoDTO.applGrade | idToText('applGrade')" />
<van-cell title="推荐人工号" :value="referrerInfoDTO.referCode" />
<van-cell title="推荐人姓名" :value="referrerInfoDTO.referName" />
<van-cell title="营业组主管工号" :value="referrerInfoDTO.teamManger" />
<van-cell title="营业组主管姓名" :value="referrerInfoDTO.teamMangerName" />
<van-cell title="营业处经理工号" :value="referrerInfoDTO.officeManger" />
<van-cell title="营业处经理姓名" :value="referrerInfoDTO.officeMangerName" />
<van-cell title="总监工号" :value="referrerInfoDTO.areaManger" />
<van-cell title="总监姓名" :value="referrerInfoDTO.areaMangerName" />
<van-cell title="育成人工号" :value="referrerInfoDTO.teamManger" />
<van-cell title="育成人姓名" :value="referrerInfoDTO.teamMangerName" />
<van-cell title="增部人工号" :value="referrerInfoDTO.officeManger" />
<van-cell title="增部人姓名" :value="referrerInfoDTO.officeMangerName" />
<!-- <van-cell title="总监工号" :value="referrerInfoDTO.areaManger" />
<van-cell title="总监姓名" :value="referrerInfoDTO.areaMangerName" /> -->
</van-cell-group>
<p style="border-bottom: 1px solid #ebedf0" class="fs15 fwb pl10 pv12">担保人信息</p>
<van-cell-group v-for="item in guarantorList" :key="item.id" class="fs15">
<van-cell title="姓名" :value="item.name" />
<van-cell title="性别" :value="item.sex == 0 ? '男' : '女'" />
<van-cell title="身份证号码" :value="item.idNo" />
<van-cell title="单位" :value="item.company" />
<van-cell title="家庭地址" :value="item.homeAdress" />
<van-cell title="手机" :value="item.mobile" />
<van-cell title="关系" :value="item.relation | guarantRelationFilter" />
<van-cell title="担保人类别" :value="item.type | relationFilter" />
</van-cell-group>
<p style="border-bottom: 1px solid #ebedf0" class="fs15 fwb pl10 pv12">家属信息</p>
<van-cell-group v-for="item in relationList" :key="item.id" class="fs15">
<van-cell title="姓名" :value="item.name" />
<van-cell title="性别" :value="item.sex == 0 ? '男' : '女'" />
<van-cell title="出生日期" :value="item.birthday" />
<van-cell title="证件类型" :value="item.idType | idToText('idType')" />
<van-cell title="证件号码" :value="item.idNo" />
<van-cell title="关系" :value="item.relationType | guarantRelationFilter" />
<van-cell title="联系电话" :value="item.mobile" />
</van-cell-group>
</div>
<div class="imgInfo bg-white" v-show="active === 1">
@@ -67,7 +88,7 @@
</van-cell-group>
<van-popup v-model="pdfShow" position="bottom" :style="{ height: '100%' }">
<div style="display: flex; flex-direction: column; height: 100vh;">
<iframe style="width: 100vw; flex: 1;" :src="pdfBaseUrl" frameborder="0"></iframe>
<iframe style="width: 100vw; flex: 1;" :src="pdfUrl" frameborder="0"></iframe>
<van-button @click="pdfShow = false" type="danger">关闭</van-button>
</div>
</van-popup>
@@ -78,8 +99,10 @@
</div>
</template>
<script>
import config from '@/config'
import { agentAddApproval } from '@/api/ebiz/agentEenter/agentEenter.js'
import { Cell, CellGroup, Button, Grid, GridItem, Image, ImagePreview } from 'vant'
import dictionary from '@/assets/js/utils/data-dictionary'
export default {
name: 'approveInfo',
@@ -120,9 +143,14 @@ export default {
}
},
pdfBaseUrl: location.origin + '/pdfjs/web/viewer.html?file=',
pdfUrl: '',
pdfShow: false,
BasicInfoDTO: {}, //基本信息
referrerInfoDTO: {} //推荐人信息
referrerInfoDTO: {}, //推荐人信息
// 担保人信息
guarantorList: [],
// 家属信息
relationList: []
}
},
mounted() {
@@ -150,6 +178,8 @@ export default {
this.BasicInfoDTO = res.content.ebizEnterCustomerDto
this.agreements = res.content.ebizEnterCustomerDto.agreements
this.medias = res.content.ebizEnterCustomerDto.ebizMediaDtoLst
this.guarantorList = res.content.ebizEnterCustomerDto.ebizGuarantorList
this.relationList = res.content.ebizEnterCustomerDto.ebizRelationDtoList
this.classifyPhotos(this.medias)
if (this.BasicInfoDTO.bankName == '102') {
this.BasicInfoDTO.bankName = '工商银行'
@@ -199,7 +229,7 @@ export default {
},
handlePdf(url) {
this.pdfShow = true
this.pdfBaseUrl = `http://10.10.100.98${url.replace('/opt/ebiz/webapps/ebiz-epolicy', '')}`
this.pdfUrl = `${this.pdfBaseUrl}${encodeURIComponent(config.imgDomain + `/returnDirectStream?imgPath=${url}`)}`
},
//下一步
nextStep() {
@@ -216,6 +246,22 @@ export default {
}
})
}
},
filters: {
guarantRelationFilter(val) {
for (let item of dictionary.guarantRelationType) {
if (item.id === val) {
return item.text
}
}
},
relationFilter(val) {
for (let item of dictionary.classification) {
if (item.id === val) {
return item.text
}
}
}
}
}
</script>

View File

@@ -48,8 +48,22 @@ export default {
},
created() {
this.getInfo()
setTimeout(() => {
// eslint-disable-next-line no-undef
EWebBridge.webCallAppInJs('webview_left_button', {
intercept: '1' //是否拦截原生返回事件 1是 其他否
})
}, 100)
window.appCallBack = this.appCallBack
},
methods: {
appCallBack(data) {
if (data.trigger == 'left_button_click') {
this.$jump({
flag: 'service'
})
}
},
async getInfo() {
const res = await getTokenForUserModel()
if (res.result == 0) {