mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-24 19:32:53 +08:00
Merge branch 'feature/GFRS-213【待确定】电投问题件-前端开发-new' into dev
This commit is contained in:
@@ -67,12 +67,12 @@
|
||||
</div>
|
||||
<!-- end -->
|
||||
<div class="autograph">
|
||||
<div class="list">
|
||||
<div class="list" v-if="!releationType">
|
||||
<span>投保人亲笔签名:</span>
|
||||
<van-button type="danger" size="small" @click="autograph(0)">{{ policyholderSigned ? '已签名' : '未签名' }}</van-button>
|
||||
</div>
|
||||
<div class="list" v-if="$route.query.receiveType === '1'">
|
||||
<span>被保险人亲笔签名:</span>
|
||||
<span><span v-if="releationType">投保人/</span>被保险人亲笔签名:</span>
|
||||
<van-button type="danger" size="small" @click="autograph(1)">{{ insurantSigned ? '已签名' : '未签名' }}</van-button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -125,6 +125,7 @@ export default {
|
||||
data() {
|
||||
let isWeixin = this.$utils.device().isWeixin
|
||||
return {
|
||||
releationType: null,
|
||||
imageList: [],
|
||||
imageResultList: [],
|
||||
sendTime: 0,
|
||||
@@ -196,13 +197,17 @@ export default {
|
||||
localStorage.setItem(detail.name, file.content)
|
||||
}
|
||||
let res = await this.afterRead(file)
|
||||
this.transfer.cardUploadResult = {
|
||||
rgssUrl: res.path,
|
||||
imageInfoType: '3',
|
||||
subBusinessType: '0'
|
||||
}
|
||||
if (this.isWeixin) {
|
||||
localStorage.setItem('transferCardUploadResult', JSON.stringify(this.transfer.cardUploadResult))
|
||||
if (res.result === '0') {
|
||||
this.transfer.cardUploadResult = {
|
||||
rgssUrl: res.path,
|
||||
imageInfoType: '3',
|
||||
subBusinessType: '0'
|
||||
}
|
||||
if (this.isWeixin) {
|
||||
localStorage.setItem('transferCardUploadResult', JSON.stringify(this.transfer.cardUploadResult))
|
||||
}
|
||||
} else {
|
||||
this.$toast(res.resultMessage)
|
||||
}
|
||||
},
|
||||
// 转账不成功问题件删除银行卡照片
|
||||
@@ -271,7 +276,7 @@ export default {
|
||||
name,
|
||||
type: '1',
|
||||
number,
|
||||
keyword: personType === 0 ? '投保人签名:' : '被保险人签名:',
|
||||
keyword: personType === 0 ? '投保人签名:' : this.releationType ? '投保人/被保险人签名' : '被保险人签名:',
|
||||
pageNo: '1',
|
||||
index: 1,
|
||||
offset: 20,
|
||||
@@ -296,7 +301,11 @@ export default {
|
||||
if (personType === 0) {
|
||||
this.toAirSign('0', '投保人签名:', '10', '2', personType)
|
||||
} else {
|
||||
this.toAirSign('0', '被保险人签名:', '10', '2', personType)
|
||||
let keyword = '被保险人签名:'
|
||||
if (this.releationType) {
|
||||
keyword = '投保人/' + keyword
|
||||
}
|
||||
this.toAirSign('0', keyword, '10', '2', personType)
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -385,22 +394,30 @@ export default {
|
||||
for (let image of this.imageList) {
|
||||
let file = this.dataURLtoFile(image.content, '.png')
|
||||
let res = await this.afterRead({ file: file })
|
||||
let result = {
|
||||
rgssUrl: res.path,
|
||||
imageInfoType: 1,
|
||||
subBusinessType: '0'
|
||||
if (res.result === '0') {
|
||||
let result = {
|
||||
rgssUrl: res.path,
|
||||
imageInfoType: 1,
|
||||
subBusinessType: '0'
|
||||
}
|
||||
this.imageResultList.push(result)
|
||||
} else {
|
||||
return this.$toast(res.resultMessage)
|
||||
}
|
||||
this.imageResultList.push(result)
|
||||
}
|
||||
} else {
|
||||
for (let image of this.imageList) {
|
||||
let res = await this.afterRead({ file: image.file })
|
||||
let result = {
|
||||
rgssUrl: res.path,
|
||||
imageInfoType: 1,
|
||||
subBusinessType: '0'
|
||||
if (res.result === '0') {
|
||||
let result = {
|
||||
rgssUrl: res.path,
|
||||
imageInfoType: 1,
|
||||
subBusinessType: '0'
|
||||
}
|
||||
this.imageResultList.push(result)
|
||||
} else {
|
||||
return this.$toast(res.resultMessage)
|
||||
}
|
||||
this.imageResultList.push(result)
|
||||
}
|
||||
}
|
||||
this.$toast.clear()
|
||||
@@ -539,6 +556,8 @@ export default {
|
||||
})
|
||||
return
|
||||
}
|
||||
// 是否投被同人
|
||||
this.releationType = rs.content.releation === '00'
|
||||
// 包含投保人和被保人证件id和姓名
|
||||
this.problemInfo = rs.content
|
||||
this.pdfUrl = encodeURIComponent(config.imgDomain + `/returnDirectStream?imgPath=${this.problemInfo.pdfUrl}`)
|
||||
|
||||
Reference in New Issue
Block a user