mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-21 03:06:43 +08:00
测试pdf签名
This commit is contained in:
@@ -200,7 +200,7 @@ export default {
|
|||||||
phoneNum: '',
|
phoneNum: '',
|
||||||
showConfirm: false,
|
showConfirm: false,
|
||||||
src: location.origin + '/pdfjs/web/viewer.html?file=',
|
src: location.origin + '/pdfjs/web/viewer.html?file=',
|
||||||
pdfUrl: '/opt/ebiz/webapps/ebiz-epolicy/pdf/2020/08/09/1000000996545670/1000000996545670.pdf',
|
pdfUrl: '',
|
||||||
// 转账不成功处理方式是否不可用
|
// 转账不成功处理方式是否不可用
|
||||||
handleType: false
|
handleType: false
|
||||||
}
|
}
|
||||||
@@ -253,6 +253,16 @@ export default {
|
|||||||
if (this.issueType === '818901') {
|
if (this.issueType === '818901') {
|
||||||
if (this.transfer.mode === '') {
|
if (this.transfer.mode === '') {
|
||||||
return this.$toast('请先选择处理方式')
|
return this.$toast('请先选择处理方式')
|
||||||
|
} else {
|
||||||
|
localStorage.setItem('resolveType', this.transfer.mode)
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this.transfer.bank) {
|
||||||
|
localStorage.setItem('problemBank', this.transfer.bank)
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this.transfer.card) {
|
||||||
|
localStorage.setItem('problemCard', this.transfer.card)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
let name = personType === 0 ? this.problemInfo.appntName : this.problemInfo.insuredName
|
let name = personType === 0 ? this.problemInfo.appntName : this.problemInfo.insuredName
|
||||||
@@ -346,6 +356,9 @@ export default {
|
|||||||
if (mode !== 1) {
|
if (mode !== 1) {
|
||||||
this.showConfirm = true
|
this.showConfirm = true
|
||||||
}
|
}
|
||||||
|
this.transfer.bankCode = ''
|
||||||
|
this.transfer.bank = ''
|
||||||
|
this.transfer.card = ''
|
||||||
},
|
},
|
||||||
async afterRead(file) {
|
async afterRead(file) {
|
||||||
let data = new FormData()
|
let data = new FormData()
|
||||||
@@ -403,6 +416,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async getMessage({ data }) {
|
async getMessage({ data }) {
|
||||||
|
let signInfo = [this.insurantBase64, this.policyholderBase64]
|
||||||
// 获取dialog信息,type为confirm时为短信框,alert时是确定框
|
// 获取dialog信息,type为confirm时为短信框,alert时是确定框
|
||||||
let problemData = {
|
let problemData = {
|
||||||
id: this.$route.params.id,
|
id: this.$route.params.id,
|
||||||
@@ -412,7 +426,9 @@ export default {
|
|||||||
bankType: '',
|
bankType: '',
|
||||||
bankName: '',
|
bankName: '',
|
||||||
bankNo: '',
|
bankNo: '',
|
||||||
list: []
|
list: [],
|
||||||
|
pdfUrl: '/opt/ebiz/webapps/ebiz-epolicy/pdf/2020/08/09/1000000891076891/1000000891076891.pdf',
|
||||||
|
signInfo: signInfo
|
||||||
}
|
}
|
||||||
// 验证码验证成功
|
// 验证码验证成功
|
||||||
if (data) {
|
if (data) {
|
||||||
@@ -443,30 +459,6 @@ export default {
|
|||||||
}
|
}
|
||||||
// 更新问题件数据
|
// 更新问题件数据
|
||||||
let res = await updateQuestionDetail(problemData)
|
let res = await updateQuestionDetail(problemData)
|
||||||
// 签名pdf
|
|
||||||
// let data = {
|
|
||||||
// orderType: 'SIGN_ORDER',
|
|
||||||
// orderDTO: {
|
|
||||||
// orderInfoDTO: {
|
|
||||||
// orderNo: ''
|
|
||||||
// },
|
|
||||||
// ebizSignDTOS: []
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// saveInformation(data).then(res => {
|
|
||||||
// this.$toast.clear()
|
|
||||||
// if (res.result == '1') {
|
|
||||||
// localStorage.setItem('failedReason', res.resultMessage)
|
|
||||||
// }
|
|
||||||
// this.$jump({
|
|
||||||
// flag: 'h5',
|
|
||||||
// extra: {
|
|
||||||
// forbidSwipeBack: '1',
|
|
||||||
// url: location.origin + `/#/questions/result/${res.result}`
|
|
||||||
// },
|
|
||||||
// routerInfo: { path: `/questions/result/${res.result}` }
|
|
||||||
// })
|
|
||||||
// })
|
|
||||||
console.dir(res)
|
console.dir(res)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -477,6 +469,7 @@ export default {
|
|||||||
userType: Number(this.$route.query.receiveType)
|
userType: Number(this.$route.query.receiveType)
|
||||||
})
|
})
|
||||||
this.problemInfo = rs.content
|
this.problemInfo = rs.content
|
||||||
|
this.pdfUrl = this.problemInfo.pdfUrl
|
||||||
this.problemDetail = this.problemInfo.list[0]
|
this.problemDetail = this.problemInfo.list[0]
|
||||||
this.problemDetail.receiveType = this.$route.query.receiveType
|
this.problemDetail.receiveType = this.$route.query.receiveType
|
||||||
this.supplement.descriptionInsurant = this.problemDetail.content
|
this.supplement.descriptionInsurant = this.problemDetail.content
|
||||||
@@ -518,8 +511,9 @@ export default {
|
|||||||
console.log('wxSigned ::: ', wxSigned)
|
console.log('wxSigned ::: ', wxSigned)
|
||||||
console.dir('signInfo ::: ', signInfo)
|
console.dir('signInfo ::: ', signInfo)
|
||||||
|
|
||||||
|
console.log(this.$route.query.fromSign)
|
||||||
|
|
||||||
if (this.$route.query.fromSign) {
|
if (this.$route.query.fromSign) {
|
||||||
console.log('微信签名回调')
|
|
||||||
// 0代表投保人签名
|
// 0代表投保人签名
|
||||||
if (Number(localStorage.getItem('signedPersonType')) === 0) {
|
if (Number(localStorage.getItem('signedPersonType')) === 0) {
|
||||||
if (signInfo.status == '0') {
|
if (signInfo.status == '0') {
|
||||||
@@ -537,6 +531,9 @@ export default {
|
|||||||
localStorage.removeItem('policyholderSignInfo')
|
localStorage.removeItem('policyholderSignInfo')
|
||||||
localStorage.removeItem('agreementChecked')
|
localStorage.removeItem('agreementChecked')
|
||||||
localStorage.removeItem('problemReplay')
|
localStorage.removeItem('problemReplay')
|
||||||
|
localStorage.removeItem('resolveType')
|
||||||
|
localStorage.removeItem('problemBank')
|
||||||
|
localStorage.removeItem('problemCard')
|
||||||
}
|
}
|
||||||
|
|
||||||
// localstorage存在投保人签名信息
|
// localstorage存在投保人签名信息
|
||||||
@@ -564,6 +561,18 @@ export default {
|
|||||||
console.log('agreementChecked', localStorage.getItem('agreementChecked'))
|
console.log('agreementChecked', localStorage.getItem('agreementChecked'))
|
||||||
this.checked = true
|
this.checked = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (localStorage.getItem('resolveType')) {
|
||||||
|
this.transfer.mode = Number(localStorage.getItem('resolveType'))
|
||||||
|
}
|
||||||
|
|
||||||
|
if (localStorage.getItem('problemBank')) {
|
||||||
|
this.transfer.mode = localStorage.getItem('problemBank')
|
||||||
|
}
|
||||||
|
|
||||||
|
if (localStorage.getItem('problemCard')) {
|
||||||
|
this.transfer.card = localStorage.getItem('problemCard')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
this.getBankList()
|
this.getBankList()
|
||||||
this.getQuestionDetail()
|
this.getQuestionDetail()
|
||||||
|
|||||||
Reference in New Issue
Block a user