增加参数获取投保人被保人信息

This commit is contained in:
mengxiaolong
2020-08-04 19:06:58 +08:00
parent 5bda001a26
commit 7f2b1d09ca
3 changed files with 35 additions and 19 deletions

View File

@@ -113,7 +113,7 @@
</template>
<script>
import { Uploader, Checkbox, Field, Radio, RadioGroup, Popup, Overlay, Dialog } from 'vant'
import { getBankList, uploadImg } from '@/api/ebiz/sale/sale'
import { getBankList, uploadImg, saveInformation } from '@/api/ebiz/sale/sale'
import { getQuestionDetail, updateQuestionDetail } from '@/api/ebiz/questions'
import BankCardScan from '@/components/ebiz/sale/BankCardScan'
import ShortMessage from '@/components/ebiz/question/ShortMessage.vue'
@@ -282,7 +282,7 @@ export default {
extra: {
title: title,
content: this.shareContent,
url: `${location.origin}/#/questions/detail/${this.problemDetail.id}/${this.problemDetail.issueType}?&token=${localStorage.token}&receiveType=${this.problemDetail.receiveType}`,
url: `${location.origin}/#/questions/detail/${this.problemDetail.id}/${this.problemDetail.issueType}?&token=${localStorage.token}&receiveType=${this.problemDetail.receiveType}&prtNo=${this.$route.query.prtNo}`,
img: this.$assetsUrl + 'images/logo.png'
}
})
@@ -335,6 +335,7 @@ export default {
if (!this.policyholderSigned || !this.insurantSigned) return this.$toast('请完成签名后继续操作')
}
}
// 短信校验
this.dialog = {
type: 'confirm',
show: true,
@@ -389,17 +390,23 @@ export default {
}
problemData.list = this.transfer.cardUploadResult
}
this.$toast.loading({
duration: 0, // 持续展示 toast
forbidClick: true, // 禁用背景点击
loadingType: 'spinner',
message: '加载中……'
})
// 更新
// 更新问题件数据
let res = await updateQuestionDetail(problemData)
this.$toast.clear()
console.dir(res)
if (res.result === '0') {
// 签名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: {
@@ -408,12 +415,15 @@ export default {
},
routerInfo: { path: `/questions/result/${res.result}` }
})
}
})
console.dir(res)
}
},
async getQuestionDetail() {
const rs = await getQuestionDetail({
id: this.$route.params.id
id: this.$route.params.id,
prtNo: this.$route.query.prtNo,
userType: Number(this.$route.query.receiveType)
})
this.problemDetail = rs.content.list[0]
this.problemDetail.receiveType = JSON.parse(localStorage.getItem('currentProblemItem')).receiveType