diff --git a/src/views/ebiz/claims/Accident.vue b/src/views/ebiz/claims/Accident.vue
index 0b405d603..09f4bd18e 100644
--- a/src/views/ebiz/claims/Accident.vue
+++ b/src/views/ebiz/claims/Accident.vue
@@ -165,6 +165,8 @@ import Hospital from '@/assets/js/utils/hospital'
import getAreaName from '@/assets/js/utils/get-area-name'
import DataDictionary from '@/assets/js/utils/data-dictionary.js'
import { apply } from '@/api/ebiz/claims/claims'
+import { getAgentInfo } from '@/api/ebiz/my/my'
+
export default {
name: 'accident',
components: {
@@ -236,7 +238,7 @@ export default {
popupShow: false, //用于字段选择的显示隐藏
pickerType: '', //用于区分是哪个字段选择
valueKey: '',
- columns: [], //用于字段选择绑定的数据
+ columns: [], //用于字段选择绑定的数据
applyType: [], //保存选择的申请类型数组
cause: '0', //通过该值判断出险原因
from: this.$route.query.from, //页面跳转来源
@@ -266,60 +268,33 @@ export default {
mandatorCertiCode: '', //证件号码
agentItem: '01', //代办事项
days: '', //新增委托天数
- businessNo: '', //业务号码
+ businessNo: '' //业务号码
}
}
},
mounted() {
document.body.style.backgroundColor = '#fff'
-
+ this.getAgentInfo()
//获取业务号码
- this.userInfo.businessNo = window.localStorage.getItem('businessNo')
- //获取委托人的信息
- let userModel = JSON.parse(window.localStorage.getItem('userModel'))
-
- //页面反显委托人信息
- this.userInfo.mandatorName = userModel.name
- this.userInfo.mandatorCertiType = userModel.idType
- this.userInfo.mandatorCertiCode = userModel.idno
+ this.userInfo.businessNo = sessionStorage.businessNo
+ console.log(this.userInfo.businessNo)
},
beforeRouteLeave(to, from, next) {
document.body.style.backgroundColor = ''
next()
},
methods: {
- // //点击下一步再次返回页面数据反显
- // ReturnShow() {
- // console.log(888888)
- // if (localStorage.insuranceId !== undefined && localStorage.insuranceId !== null && localStorage.insuranceId !== '') {
- // this.insuranceId = localStorage.insuranceId
- // let data = {
- // slaveStatus: this.slaveStatus,
- // id: this.insuranceId
- // }
- // query(data).then(res => {
- // // console.log(res.content.claimApplyRiskReqDTO.applyType)
- // // console.log(this.userInfo.accidentCause)
- // if (res.result == 0) {
- // this.userInfo = res.content.claimApplyRiskReqDTO
- // //保存后台返回的申请类型字符串
- // let ClassStr = res.content.claimApplyRiskReqDTO.applyType
- // //将字符串转换成数组
- // this.arr = ClassStr.split(',')
- // switch (this.userInfo.accidentCause) {
- // case '1':
- // this.cause = '0'
- // break
- // case '2':
- // this.cause = '1'
- // break
- // }
- // } else {
- // this.$toast(res.resultMessage)
- // }
- // })
- // }
- // },
+ //获取委托人信息
+ getAgentInfo() {
+ let data = {}
+ getAgentInfo(data).then(res => {
+ if (res.result == 0) {
+ this.userInfo.mandatorName = res.name
+ this.userInfo.mandatorCertiType = res.cardType
+ this.userInfo.mandatorCertiCode = res.cardNo
+ }
+ })
+ },
//出险日期
onDateConfirm(val) {
//如果录入日期晚于当前日期
diff --git a/src/views/ebiz/claims/ApplyInfo.vue b/src/views/ebiz/claims/ApplyInfo.vue
index 64392fe1f..345660721 100644
--- a/src/views/ebiz/claims/ApplyInfo.vue
+++ b/src/views/ebiz/claims/ApplyInfo.vue
@@ -206,16 +206,16 @@
placeholder="请选择"
@click="toSelect('5')"
/>
-