mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-21 13:36:45 +08:00
增加参数获取投保人被保人信息
This commit is contained in:
@@ -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)
|
||||
// 签名pdf
|
||||
let data = {
|
||||
orderType: 'SIGN_ORDER',
|
||||
orderDTO: {
|
||||
orderInfoDTO: {
|
||||
orderNo: ''
|
||||
},
|
||||
ebizSignDTOS: []
|
||||
}
|
||||
}
|
||||
saveInformation(data).then(res => {
|
||||
this.$toast.clear()
|
||||
console.dir(res)
|
||||
if (res.result === '0') {
|
||||
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
|
||||
|
||||
@@ -138,10 +138,10 @@ export default {
|
||||
this.$jump({
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
url: `${window.location.origin}/#/questions/detail/${item.id}/${item.businessType}?receiveType=${item.receiveType}`
|
||||
url: `${window.location.origin}/#/questions/detail/${item.id}/${item.businessType}?receiveType=${item.receiveType}&prtNo=${item.prtNo}`
|
||||
},
|
||||
routerInfo: {
|
||||
path: `/questions/detail/${item.id}/${item.businessType}?receiveType=${item.receiveType}`
|
||||
path: `/questions/detail/${item.id}/${item.businessType}?receiveType=${item.receiveType}&prtNo=${item.prtNo}`
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
@@ -7,14 +7,17 @@
|
||||
<div class="fail" v-if="$route.params.result === '1'">
|
||||
<van-icon name="clear" color="#FF6633" size="120" />
|
||||
<p>提交失败</p>
|
||||
<div class="reason">
|
||||
失败原因: Lorem, ipsum dolor sit amet consectetur adipisicing elit.
|
||||
</div>
|
||||
<div class="reason">失败原因: {{ reason }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
reason: ''
|
||||
}
|
||||
},
|
||||
created() {
|
||||
setTimeout(() => {
|
||||
// eslint-disable-next-line no-undef
|
||||
@@ -25,6 +28,9 @@ export default {
|
||||
}, 100)
|
||||
// 筛选按钮的点击事件
|
||||
window.appCallBack = this.appCallBack
|
||||
if (this.$route.params.result === '1') {
|
||||
this.reason = localStorage.getItem('failedReason')
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
appCallBack(data) {
|
||||
|
||||
Reference in New Issue
Block a user