From 721f15b81e88cbdab0c33ca3bb1dbb52ea33a3f8 Mon Sep 17 00:00:00 2001 From: wangmingzhe Date: Tue, 31 Dec 2019 14:52:58 +0800 Subject: [PATCH] =?UTF-8?q?[IMP]=20=E7=90=86=E8=B5=94=E7=94=B3=E8=AF=B7?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E4=BC=A0=E5=8F=82=E6=9B=B4=E6=8D=A2=E4=B8=BA?= =?UTF-8?q?=E6=A0=B9=E6=8D=AE=E4=B8=9A=E5=8A=A1=E5=8F=B7=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=EF=BC=8C=E9=9A=90=E8=97=8F=E6=8A=A5=E6=A1=88=E5=88=97=E8=A1=A8?= =?UTF-8?q?,=E5=A7=94=E6=89=98=E4=BA=BA=E4=BF=A1=E6=81=AF=E6=9B=B4?= =?UTF-8?q?=E6=8D=A2=E4=B8=BA=E6=8E=A5=E5=8F=A3=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ebiz/claims/Accident.vue | 61 ++++++++------------------ src/views/ebiz/claims/ApplyInfo.vue | 63 +++++++-------------------- src/views/ebiz/claims/ClaimsList.vue | 48 +------------------- src/views/ebiz/claims/FillImage.vue | 6 --- src/views/ebiz/claims/ImageData.vue | 13 +----- src/views/ebiz/claims/InsuredInfo.vue | 31 ++++++------- 6 files changed, 50 insertions(+), 172 deletions(-) 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')" /> - + 银行卡扫描 - + - -
@@ -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' diff --git a/src/views/ebiz/claims/FillImage.vue b/src/views/ebiz/claims/FillImage.vue index 2e1df0451..ab3d644a1 100644 --- a/src/views/ebiz/claims/FillImage.vue +++ b/src/views/ebiz/claims/FillImage.vue @@ -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: { diff --git a/src/views/ebiz/claims/ImageData.vue b/src/views/ebiz/claims/ImageData.vue index 2c0cdc574..33f37d298 100644 --- a/src/views/ebiz/claims/ImageData.vue +++ b/src/views/ebiz/claims/ImageData.vue @@ -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: { diff --git a/src/views/ebiz/claims/InsuredInfo.vue b/src/views/ebiz/claims/InsuredInfo.vue index 9020a34ee..0ae531d9f 100644 --- a/src/views/ebiz/claims/InsuredInfo.vue +++ b/src/views/ebiz/claims/InsuredInfo.vue @@ -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: {