Merge branch 'dev_claim' into dev

This commit is contained in:
wangmingzhe
2019-12-10 18:17:17 +08:00
10 changed files with 103 additions and 131 deletions

View File

@@ -384,7 +384,7 @@ export default {
nextStep() {
console.log(this.userInfo)
if (localStorage.insuranceId) {
this.id = localStorage.getItem('insuranceId')
this.userInfo.id = localStorage.getItem('insuranceId')
}
this.$validator.validate().then(valid => {
if (true === valid) {

View File

@@ -1001,7 +1001,7 @@ export default {
save() {
console.log(this.userInfo)
if (localStorage.applyId) {
this.id = localStorage.getItem('applyId')
this.userInfo.id = localStorage.getItem('applyId')
}
let that = this
// switch (this.isPettyCase) {

View File

@@ -206,9 +206,7 @@ export default {
}
})
},
caseDetail() {
},
caseDetail() {},
tabChange(name,title) {
this.currentPage = 1
this.active = name

View File

@@ -23,7 +23,6 @@
<van-button type="danger" size="small" @click="sign(1)" v-no-more-click="1000" :disabled="isDisableInsured">{{
list.applyerSignState == '0' ? '签名' : '已签名'
}}</van-button>
<!-- <img class="img pl15" :src="base64" alt /> -->
</div>
</div>
</div>

View File

@@ -8,12 +8,12 @@
<van-field required :label="item.issueType | filterType" disabled />
</van-cell-group>
<div class="p10">
<span class="fs14">
<span class="fs14 red">
问题说明
<br />
{{item.issueContent}}
</span>
<div @click="test(item.issueType)">
<div @click="test(item.issueType,index)">
<van-uploader
:name="index"
v-model="fileList[index]"
@@ -62,7 +62,7 @@ export default {
},
data() {
return {
isDisabled: false, //待验证
isDisabled: true, //待验证
issueDetails: [], //后台返回需要上传的图片类型数组
len: '', //需要上传图片类型数组的length
// 理赔申请书
@@ -78,7 +78,9 @@ export default {
// accidentCause: '', //出险原因
// applyType: '', //申请类型
list: [], //给后台传的list
imageType: ''
imageType: '',
isDisabledStr: []
}
},
mounted() {
@@ -90,6 +92,10 @@ export default {
let item = []
this.fileList.push(item)
}
for (var i = 0; i < this.len; i++) {
let Status = true
this.isDisabledStr.push(Status)
}
},
beforeRouteLeave(to, from, next) {
document.body.style.backgroundColor = ''
@@ -169,9 +175,23 @@ export default {
}
})
},
test(type) {
test(type, index) {
let that = this
that.type = type
console.log(index)
if (this.fileList[index].length > 0) {
this.isDisabledStr.splice(index, 1, 'false')
} else {
this.isDisabledStr.splice(index, 1, 'true')
}
//循环查询isDisabledStr数组中还是否有true
for (let i = 0; i < this.isDisabledStr.length; i++) {
if (this.isDisabledStr[i] === 'true') {
this.isDisabled = true
} else {
this.isDisabled = false
}
}
},
// 下一步
nextStep() {
@@ -202,13 +222,12 @@ export default {
if (res.result == '0') {
console.log(res)
this.$toast.clear()
localStorage.removeItem('claimId', 'applyId', 'insuranceId')
// localStorage.removeItem('claimId', 'applyId', 'insuranceId')
this.$jump({
flag: 'h5',
extra: {
url: location.origin + '/#/claims/success',
forbidSwipeBack: '1',
pullRefresh: '1',
backToFirst: '1'
},
routerInfo: {
@@ -216,12 +235,12 @@ export default {
}
})
} else {
this.list = []
this.fileList = []
for (var i = 0; i < this.len; i++) {
let item = []
this.fileList.push(item)
}
// this.list = []
// this.fileList = []
// for (var i = 0; i < this.len; i++) {
// let item = []
// this.fileList.push(item)
// }
this.$toast(res.resultMessage)
}
})

View File

@@ -32,7 +32,7 @@
:after-read="afterRead"
@delete="deleteImg"
:before-delete="beforeDelete"
class="mt10 ml20"
class="mt10 ml20 img fileList02"
/>
</div>
</div>
@@ -48,7 +48,7 @@
:after-read="afterRead"
@delete="deleteImg"
:before-delete="beforeDelete"
class="mt10 ml20"
class="mt10 ml20 img fileList03"
/>
</div>
</div>
@@ -64,7 +64,7 @@
:after-read="afterRead"
@delete="deleteImg"
:before-delete="beforeDelete"
class="mt10 ml20"
class="mt10 ml20 img fileList04"
/>
</div>
</div>
@@ -79,7 +79,7 @@
:after-read="afterRead"
@delete="deleteImg"
:before-delete="beforeDelete"
class="mt10 ml20"
class="mt10 ml20 img fileList05"
/>
</div>
@@ -94,7 +94,7 @@
:after-read="afterRead"
@delete="deleteImg"
:before-delete="beforeDelete"
class="mt10 ml20"
class="mt10 ml20 img fileList06"
/>
</div>
</div>
@@ -110,7 +110,7 @@
:after-read="afterRead"
@delete="deleteImg"
:before-delete="beforeDelete"
class="mt10 ml20"
class="mt10 ml20 img fileList07"
/>
</div>
</div>
@@ -126,7 +126,7 @@
:after-read="afterRead"
@delete="deleteImg"
:before-delete="beforeDelete"
class="mt10 ml20"
class="mt10 ml20 img fileList08"
/>
</div>
</div>
@@ -144,7 +144,7 @@
:after-read="afterRead"
@delete="deleteImg"
:before-delete="beforeDelete"
class="mt10 ml20"
class="mt10 ml20 img fileList09"
/>
</div>
</div>
@@ -160,7 +160,7 @@
:after-read="afterRead"
@delete="deleteImg"
:before-delete="beforeDelete"
class="mt10 ml20"
class="mt10 ml20 img fileList10"
/>
</div>
</div>
@@ -176,7 +176,7 @@
:after-read="afterRead"
@delete="deleteImg"
:before-delete="beforeDelete"
class="mt10 ml20"
class="mt10 ml20 img fileList11"
/>
</div>
</div>
@@ -223,7 +223,7 @@ import { progressDetail, apply } from '@/api/ebiz/claims/claims'
export default {
data() {
return {
isDisabled: false, //待验证
isDisabled: true, //待验证
// 理赔申请书
// fileList01: [],
// 申请人有效身份证件
@@ -262,7 +262,9 @@ export default {
age: '', //被保人的年龄
applyerBirthday: '', //申请人的出生日期
a: []
classList: [],
DOMlist: [], //当前页面所有的上传框
isDisabledStr: []
}
},
mounted() {
@@ -275,6 +277,14 @@ export default {
}
let insuredBirthday = localStorage.getItem('insuredBirthday')
this.age = utils.jsGetAge(insuredBirthday)
this.$nextTick(function() {
let lists = []
this.DOMlist = document.querySelectorAll('.img')
this.DOMlist.forEach(function(item, index) {
lists.push(item.classList[3])
})
this.classList = lists //保存当前所有上传框的className
})
},
beforeRouteLeave(to, from, next) {
document.body.style.backgroundColor = ''
@@ -326,11 +336,11 @@ export default {
let formdata = new FormData()
formdata.append('imgPath', that.dataURLtoFile(that.file, that.imgName))
console.log('file-----------------', that.file)
console.log('name-----------------', that.imgName)
// console.log('file-----------------', that.file)
// console.log('name-----------------', that.imgName)
uploadImg(formdata).then(res => {
if (res.result == '0') {
console.log(res)
// console.log(res)
this.$toast.clear()
if (that.type == 'fileList01') {
this.imageType = '1'
@@ -424,7 +434,6 @@ export default {
test(type) {
let that = this
that.type = type
that.a.push(type)
},
// 下一步
nextStep() {
@@ -442,11 +451,10 @@ export default {
// },
claimImageReqDTO: {
businessNo: localStorage.businessNo, //业务号
claimImageInfoDTOS: this.list,
claimImageInfoDTOS: this.list
},
slaveStatus: 'claimApplyImage'
}
console.log(data)
apply(data).then(res => {
if (res.result == '0') {
this.$toast.clear()
@@ -464,7 +472,6 @@ export default {
}
})
} else {
this.list = []
this.$toast(res.resultMessage)
}
})
@@ -504,79 +511,23 @@ export default {
},
watch: {
listenChange(val) {
// console.log(JSON.stringify(val))
// this.a.map((item, index, array) => {
// console.log(val[item])
// if (val[item].length !=length) {
// this.isDisabled = false
// } else {
// return
// }
// })
// let that = this
// //申请类型存在身故时
// if (that.applyType.indexOf('04') >= 0) {
// if (val.fileList04.length != '0' && val.fileList05.length != '0' && val.fileList08.length != '0' && val.fileList11.length != '0') {
// that.isDisabled = false
// } else {
// that.isDisabled = true
// }
// }
// //申请类型不存在身故时
// if (that.applyType.indexOf('04') == -1) {
// //年龄小于18岁时判断被保险人有效身份证件及与申请人的关系证明
// if (that.age < 18) {
// //年龄小于18并且申请类型包含住院日额或医疗费用及重大疾病或中症或轻症或特定疾病
// if (
// (that.applyType.indexOf('01') || that.applyType.indexOf('02')) &&
// (that.applyType.indexOf('03') || that.applyType.indexOf('07') || that.applyType.indexOf('08') || that.applyType.indexOf('09'))
// ) {
// if (
// val.fileList02.length != '0' &&
// val.fileList03.length != '0' &&
// val.fileList05.length != '0' &&
// val.fileList06.length != '0' &&
// val.fileList07.length != '0' &&
// val.fileList09.length != '0'
// ) {
// that.isDisabled = false
// }
// }
// if (that.applyType.indexOf('01') || that.applyType.indexOf('02')) {
// //年龄小于18且申请类型包含住院日额或医疗费用时
// if (
// val.fileList02.length != '0' &&
// val.fileList03.length != '0' &&
// val.fileList05.length != '0' &&
// val.fileList06.length != '0' &&
// val.fileList07.length != '0'
// ) {
// that.isDisabled = false
// }
// //年龄小于18无其他附加条件时
// } else {
// if (val.fileList03.length != '0' && val.fileList02.length != '0' && val.fileList05.length != '0' && val.fileList06.length != '0') {
// that.isDisabled = false
// } else {
// that.isDisabled = true
// }
// }
// }
// // //申请类型没有身故时且年龄不小于18岁排除上面的一项
// // } else if (val.fileList02.length != '0' && val.fileList05.length != '0' && val.fileList06.length != '0') {
// // that.isDisabled = false
// // } else {
// // that.isDisabled = true
// // }
// // if (that.applyType.indexOf('01') >= 0) {
// // }
// //不存在身故且无任何附加条件
// if (val.fileList02.length != '0' && val.fileList05.length != '0' && val.fileList06.length != '0') {
// that.isDisabled = false
// } else {
// that.isDisabled = true
// }
// }
this.classList.map((item, index, array) => {
if (val[item].length > 0) {
//当对应fileList的length不为0时,替换isDisabledStr数组中对应下标的true为false
this.isDisabledStr.splice(index, 1, 'false')
} else {
//否则还是为true
this.isDisabledStr.splice(index, 1, 'true')
}
})
//循环查询isDisabledStr数组中还是否有true
for (let i = 0; i < this.isDisabledStr.length; i++) {
if (this.isDisabledStr[i] === 'true') {
this.isDisabled = true
} else {
this.isDisabled = false
}
}
}
},
components: {

View File

@@ -501,7 +501,7 @@ export default {
save() {
console.log(this.userInfo)
if (localStorage.claimId) {
this.id = localStorage.getItem('claimId')
this.userInfo.id = localStorage.getItem('claimId')
}
localStorage.setItem('insuredBirthday', this.userInfo.insuredBirthday)
this.$toast.loading({

View File

@@ -77,15 +77,15 @@ export default {
return {
// activeName: 'contract', //tab标签页通过标签指定的name进行匹配contract为契约、preservation为保全、claims为理赔
issues: [
{
claimNo: '', //赔案号
accidentDate: '', //出险日期
insuredName: '', //被保人姓名
issueContent: '', //问题件内容
issueType: '', //问题件类型
bussType: '', //影像业务类型
caseStatus:''//案件状态
}
// {
// claimNo: '', //赔案号
// accidentDate: '', //出险日期
// insuredName: '', //被保人姓名
// issueContent: '', //问题件内容
// issueType: '', //问题件类型
// bussType: '', //影像业务类型
// caseStatus:''//案件状态
// }
]
}
},
@@ -125,7 +125,8 @@ export default {
this.$jump({
flag: 'h5',
extra: {
url: location.origin + '/#/claims/FillImage'
url: location.origin + '/#/claims/FillImage',
forbidSwipeBack:'1'
},
routerInfo: {
path: '/claims/FillImage'

View File

@@ -107,7 +107,7 @@
</van-cell-group>
</van-cell-group>
<!-- 报案信息 -->
<van-cell-group>
<van-cell-group class="pb60">
<p style="border-bottom: 1px solid #ebedf0" class="fs15 fwb pl10 pv12">报案信息</p>
<select-radio
:radios="happenCause"
@@ -177,9 +177,12 @@
maxlength="200"
/>
</van-cell-group>
<!-- 字段选择 -->
<van-popup v-model="popupShow" position="bottom">
<van-picker show-toolbar :columns="columns" @confirm="onConfirm" @cancel="popupShow = false" />
</van-popup>
<!-- 地区选择 -->
<van-popup v-model="areaShow" position="bottom">
<van-area
@@ -189,6 +192,7 @@
@cancel="areaShow = false"
/>
</van-popup>
<div class="bottom-btn bg-white">
<van-button type="danger" size="large" @click="nextStep" v-no-more-click="1000">提交</van-button>
</div>
@@ -266,7 +270,7 @@ export default {
certiCode: '', //证件号码
certiType: '1', //证件类型
code: '', //验证码
smsId: '123456', //获取验证码时返回的
smsId: '', //获取验证码时返回的
insuredBirthday: '', //被保人出生日期
insuredName: '', //被保人姓名
// insuredNo: '', //被保人编号(当选择被保人本人时传输此数据)
@@ -494,7 +498,6 @@ export default {
this.$toast(res.resultMessage)
}
})
// 字段取值
},
//点击提交
nextStep() {
@@ -546,6 +549,7 @@ export default {
// name: '王某'
// },
accAddressInfo: this.accAddressInfo, //后端暂时需要,后面可能会删掉
accAddress: this.accAddress,
accCity: this.accCity,
accCounty: this.accCounty,

View File

@@ -6,7 +6,7 @@
<van-cell title="申请类型" :value="list.applyTypeName"></van-cell>
</van-cell-group>
<div>
<van-collapse v-model="activeNames" class="mt10" v-if="!isWeixin">
<!-- <van-collapse v-model="activeNames" class="mt10" v-if="!isWeixin">
<van-collapse-item name="1">
<div slot="title">
受托人
@@ -31,7 +31,7 @@
>开始</van-button>
</div>
</van-collapse-item>
</van-collapse>
</van-collapse> -->
<van-collapse v-model="activeNames" class="mt10 pb50">
<van-collapse-item name="2">
<div slot="title">