[IMP] 理赔申请接口传参更换为根据业务号查询,隐藏报案列表,委托人信息更换为接口查询

This commit is contained in:
wangmingzhe
2019-12-31 14:52:58 +08:00
parent a20ee3fd7c
commit 721f15b81e
6 changed files with 50 additions and 172 deletions

View File

@@ -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) {
//如果录入日期晚于当前日期

View File

@@ -206,16 +206,16 @@
placeholder="请选择"
@click="toSelect('5')"
/>
<van-field
v-model="userInfo.applyerBankAccountNo"
label="银行卡号"
maxlength="19"
placeholder="请输入"
clearable
required
v-validate="'required|bankCard'"
data-vv-name="银行卡号"
>
<van-field
v-model="userInfo.applyerBankAccountNo"
label="银行卡号"
maxlength="19"
placeholder="请输入"
clearable
required
v-validate="'required|bankCard'"
data-vv-name="银行卡号"
>
<van-button
type="danger"
size="small"
@@ -224,7 +224,7 @@
@click="cardScanning('0')"
v-no-more-click="1000"
>银行卡扫描</van-button>
</van-field>
</van-field>
<!-- <select-radio
:radios="pennyRadio"
label="小额案件"
@@ -516,10 +516,8 @@ export default {
activeNames: ['1'],
slaveStatus: 'claimApplyInfo', //进行到的状态
applyId: '', //申请信息主键id
from: this.$route.query.from, //页面跳转来源
userInfo: {
id: '',
businessNo: localStorage.businessNo, //业务号
applyerRelation: '', //申请人身份
applyerName: '', //姓名
@@ -599,25 +597,6 @@ export default {
next()
},
methods: {
//点击下一步再次返回页面数据反显
// ReturnShow() {
// if (localStorage.applyId !== undefined && localStorage.applyId !== null && localStorage.applyId !== '') {
// this.applyId = localStorage.applyId
// let data = {
// slaveStatus: this.slaveStatus,
// id: this.applyId
// }
// query(data).then(res => {
// if (res.result == 0) {
// console.log(res)
// this.userInfo = res.content.claimApplyInfoReqDTO
// } else {
// this.$toast(res.resultMessage)
// }
// })
// }
// },
//监听名字变化
nameChange(name) {
this.userInfo.applyerName = name
@@ -692,7 +671,7 @@ export default {
this.DataIndex = Detail[0][1]
this.customerShowPicker = false
let data = {
customerNo: this.customerNo,
customerNo: this.customerNo
// surrenderType: '0'
}
customerInfo(data).then(res => {
@@ -766,8 +745,7 @@ export default {
//被保人信息主键id
let data = {
slaveStatus: 'claimApplyInsured',
businessNo: localStorage.businessNo
businessNo: localStorage.businessNo
}
query(data).then(res => {
if (res.result == 0) {
@@ -1007,9 +985,6 @@ export default {
},
save() {
console.log(this.userInfo)
if (localStorage.applyId) {
this.userInfo.id = localStorage.getItem('applyId')
}
let that = this
// switch (this.isPettyCase) {
// case '0':
@@ -1026,11 +1001,6 @@ export default {
message: '加载中……'
})
let data = {
// userModel: {
// id: '123456',
// name: '王某',
// mobile: '13592585978'
// },
slaveStatus: this.slaveStatus,
claimApplyInfoReqDTO: this.userInfo
}
@@ -1038,7 +1008,7 @@ export default {
if (res.result == 0) {
this.$toast.clear()
console.log(res)
localStorage.setItem('applyId', res.content.applyId)
localStorage.setItem('businessNo', res.content.businessNo)
this.$jump({
flag: 'h5',
extra: {
@@ -1085,7 +1055,7 @@ export default {
border-radius: 10px;
}
.van-cell {
align-items: center
align-items: center;
}
}
.Other-fees-list {
@@ -1100,5 +1070,4 @@ export default {
.border {
border: 1px dashed #cccccc;
}
</style>

View File

@@ -2,23 +2,12 @@
<div class="sale-list-container pb50">
<van-sticky>
<van-tabs :line-width="45" v-model="active" @change="tabChange" sticky>
<van-tab name="claimProgress" title="已报案"></van-tab>
<!-- <van-tab name="claimProgress" title="已报案"></van-tab> -->
<van-tab name="applying" title="申请中"></van-tab>
<van-tab name="claimProgress" title="未结案"></van-tab>
<van-tab name="claimProgress" title="已结案"></van-tab>
</van-tabs>
</van-sticky>
<!-- <van-list
v-model="loading"
:immediate-check="false"
:finished="finished"
:finished-text="finishedText"
error-text="请求失败点击重新加载"
:error.sync="error"
@load="loadMore"
class="pb45"
>-->
<div v-if="isSuccess">
<div v-if="claimsList.length > 0">
<div v-for="(item, index) in claimsList" :key="index">
@@ -148,13 +137,6 @@ export default {
active: 'claimProgress', //applying 待申请 claimProgress查进度
claimsList: [], //接口数据
actives: [], //查进度状态
// loading: false,
// finished: false,
// total: '', //总页数
// currentPage: 1, //当前页数
// error: false,
// finishedText: '没有更多了',
// pageSize: 5, //每页数据条数
isSuccess: false, //有无数据显示
caseStatus: '10' //案件状态
}
@@ -168,15 +150,6 @@ export default {
window.appCallBack = this.appCallBack
},
methods: {
//分页用
// loadMore() {
// let pageInfo = {
// pageNum: this.currentPage,
// pageSize: this.pageSize,
// progressStatus: this.active
// }
// this.getOrderList(pageInfo)
// },
appCallBack(data) {
if (data.trigger == 'left_button_click') {
this.$jump({
@@ -187,11 +160,6 @@ export default {
//初始化列表
getOrderList() {
let data = {
// userModel: {
// id: '123456',
// name: '王某',
// mobile: '13592585978'
// },
progressStatus: this.active,
caseStatus: this.caseStatus
}
@@ -215,9 +183,6 @@ export default {
this.isSuccess = false
}
} else {
// this.finished = true
// this.loading = false
// this.finishedText = res.resultMessage
this.$toast(res.resultMessage)
}
})
@@ -235,9 +200,6 @@ export default {
}
this.getOrderList()
//;[this.loading, this.finished] = [true, false]
// this.finishedText = '正在加载...'
//this.loadMore()
},
del(businessNo) {
Dialog.confirm({
@@ -271,9 +233,6 @@ export default {
})
},
goApply() {
localStorage.removeItem('claimId')
localStorage.removeItem('insuranceId')
localStorage.removeItem('applyId')
let that = this
that.$jump({
flag: 'h5',
@@ -288,9 +247,6 @@ export default {
},
goEdit(status, businessNo, claimId) {
let that = this
localStorage.removeItem('claimId')
localStorage.removeItem('insuranceId')
localStorage.removeItem('applyId')
localStorage.setItem('claimFrom', 'claimList')
localStorage.setItem('businessNo', businessNo)
let url = ''
@@ -300,11 +256,9 @@ export default {
break
case '21': //填写出险信息页
url = '/claims/Accident?edit=1'
localStorage.setItem('claimId', claimId)
break
case '22': //填写理赔申请信息
url = '/claims/ApplyInfo?edit=1'
localStorage.setItem('claimId', claimId)
break
case '23': //上传影像页
url = '/claims/ImageData?edit=1'

View File

@@ -210,11 +210,6 @@ export default {
message: '加载中……'
})
let data = {
// userModel: {
// id: '123456',
// name: '王某',
// mobile: '13592585978'
// },
claimImageInfoDTOS: this.list,
claimNo: this.imgClaimNo
}
@@ -222,7 +217,6 @@ export default {
if (res.result == '0') {
console.log(res)
this.$toast.clear()
// localStorage.removeItem('claimId', 'applyId', 'insuranceId')
this.$jump({
flag: 'h5',
extra: {

View File

@@ -253,14 +253,12 @@ export default {
// 图片名称
imgName: '',
// 是哪个证件类型
id: '',
type: '', //
accidentCause: '', //出险原因
applyType: '', //申请类型
list: [], //给后台传的list
imageType: '',
age: '', //被保人的年龄
applyerBirthday: '', //申请人的出生日期
classList: [],
DOMlist: [], //当前页面所有的上传框
@@ -432,8 +430,7 @@ export default {
})
},
test(type) {
let that = this
that.type = type
this.type = type
},
// 下一步
nextStep() {
@@ -444,11 +441,6 @@ export default {
message: '加载中……'
})
let data = {
// userModel: {
// id: '123456',
// name: '王某',
// mobile: '13592585978'
// },
claimImageReqDTO: {
businessNo: localStorage.businessNo, //业务号
claimImageInfoDTOS: this.list
@@ -458,9 +450,6 @@ export default {
apply(data).then(res => {
if (res.result == '0') {
this.$toast.clear()
localStorage.removeItem('claimId')
localStorage.removeItem('applyId')
localStorage.removeItem('insuranceId')
this.$jump({
flag: 'h5',
extra: {

View File

@@ -222,7 +222,6 @@ export default {
}
],
slaveStatus: 'claimApplyInsured', //进行到的状态
// claimId: '', //用于数据反显的id
currentDate: new Date(), //当前时间
from: this.$route.query.from, //跳转来源
columns: [],
@@ -350,19 +349,19 @@ export default {
})
that.isScan = false
},
// 点击去搜索页
toSearch() {
this.$jump({
flag: 'h5',
extra: {
url: location.origin + '/#/claims/searchCustomer?from=InsuredInfo',
backToFirst: '1'
},
routerInfo: {
path: '/claims/searchCustomer?from=InsuredInfo'
}
})
},
// 已有历史报案信息
// toSearch() {
// this.$jump({
// flag: 'h5',
// extra: {
// url: location.origin + '/#/claims/searchCustomer?from=InsuredInfo',
// backToFirst: '1'
// },
// routerInfo: {
// path: '/claims/searchCustomer?from=InsuredInfo'
// }
// })
// },
//确认选择字段
onConfirm(value) {
this.popupShow = false
@@ -549,9 +548,7 @@ export default {
console.log(res)
if (res.result == 0) {
this.$toast.clear()
localStorage.setItem('businessNo', res.content.businessNo)
let Data = JSON.stringify(res.content.userModel)
localStorage.setItem('userModel', Data)
sessionStorage.setItem('businessNo', res.content.businessNo)
this.$jump({
flag: 'h5',
extra: {