mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-21 20:36:43 +08:00
增加参数获取投保人被保人信息
This commit is contained in:
@@ -113,7 +113,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { Uploader, Checkbox, Field, Radio, RadioGroup, Popup, Overlay, Dialog } from 'vant'
|
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 { getQuestionDetail, updateQuestionDetail } from '@/api/ebiz/questions'
|
||||||
import BankCardScan from '@/components/ebiz/sale/BankCardScan'
|
import BankCardScan from '@/components/ebiz/sale/BankCardScan'
|
||||||
import ShortMessage from '@/components/ebiz/question/ShortMessage.vue'
|
import ShortMessage from '@/components/ebiz/question/ShortMessage.vue'
|
||||||
@@ -282,7 +282,7 @@ export default {
|
|||||||
extra: {
|
extra: {
|
||||||
title: title,
|
title: title,
|
||||||
content: this.shareContent,
|
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'
|
img: this.$assetsUrl + 'images/logo.png'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -335,6 +335,7 @@ export default {
|
|||||||
if (!this.policyholderSigned || !this.insurantSigned) return this.$toast('请完成签名后继续操作')
|
if (!this.policyholderSigned || !this.insurantSigned) return this.$toast('请完成签名后继续操作')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// 短信校验
|
||||||
this.dialog = {
|
this.dialog = {
|
||||||
type: 'confirm',
|
type: 'confirm',
|
||||||
show: true,
|
show: true,
|
||||||
@@ -389,17 +390,23 @@ export default {
|
|||||||
}
|
}
|
||||||
problemData.list = this.transfer.cardUploadResult
|
problemData.list = this.transfer.cardUploadResult
|
||||||
}
|
}
|
||||||
this.$toast.loading({
|
// 更新问题件数据
|
||||||
duration: 0, // 持续展示 toast
|
|
||||||
forbidClick: true, // 禁用背景点击
|
|
||||||
loadingType: 'spinner',
|
|
||||||
message: '加载中……'
|
|
||||||
})
|
|
||||||
// 更新
|
|
||||||
let res = await updateQuestionDetail(problemData)
|
let res = await updateQuestionDetail(problemData)
|
||||||
this.$toast.clear()
|
// 签名pdf
|
||||||
console.dir(res)
|
let data = {
|
||||||
if (res.result === '0') {
|
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({
|
this.$jump({
|
||||||
flag: 'h5',
|
flag: 'h5',
|
||||||
extra: {
|
extra: {
|
||||||
@@ -408,12 +415,15 @@ export default {
|
|||||||
},
|
},
|
||||||
routerInfo: { path: `/questions/result/${res.result}` }
|
routerInfo: { path: `/questions/result/${res.result}` }
|
||||||
})
|
})
|
||||||
}
|
})
|
||||||
|
console.dir(res)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async getQuestionDetail() {
|
async getQuestionDetail() {
|
||||||
const rs = await 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 = rs.content.list[0]
|
||||||
this.problemDetail.receiveType = JSON.parse(localStorage.getItem('currentProblemItem')).receiveType
|
this.problemDetail.receiveType = JSON.parse(localStorage.getItem('currentProblemItem')).receiveType
|
||||||
|
|||||||
@@ -138,10 +138,10 @@ export default {
|
|||||||
this.$jump({
|
this.$jump({
|
||||||
flag: 'h5',
|
flag: 'h5',
|
||||||
extra: {
|
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: {
|
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'">
|
<div class="fail" v-if="$route.params.result === '1'">
|
||||||
<van-icon name="clear" color="#FF6633" size="120" />
|
<van-icon name="clear" color="#FF6633" size="120" />
|
||||||
<p>提交失败</p>
|
<p>提交失败</p>
|
||||||
<div class="reason">
|
<div class="reason">失败原因: {{ reason }}</div>
|
||||||
失败原因: Lorem, ipsum dolor sit amet consectetur adipisicing elit.
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
reason: ''
|
||||||
|
}
|
||||||
|
},
|
||||||
created() {
|
created() {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
// eslint-disable-next-line no-undef
|
// eslint-disable-next-line no-undef
|
||||||
@@ -25,6 +28,9 @@ export default {
|
|||||||
}, 100)
|
}, 100)
|
||||||
// 筛选按钮的点击事件
|
// 筛选按钮的点击事件
|
||||||
window.appCallBack = this.appCallBack
|
window.appCallBack = this.appCallBack
|
||||||
|
if (this.$route.params.result === '1') {
|
||||||
|
this.reason = localStorage.getItem('failedReason')
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
appCallBack(data) {
|
appCallBack(data) {
|
||||||
|
|||||||
Reference in New Issue
Block a user