Merge branch 'dev_claim' into dev

This commit is contained in:
wangmingzhe
2019-12-20 17:44:35 +08:00
6 changed files with 81 additions and 35 deletions

View File

@@ -81,7 +81,7 @@
@click="goApply"
>理赔申请</van-button>
<van-button
v-if="active == 'applying' && item.caseStatus != '3'"
v-if="active == 'applying' && item.caseStatus != '3' && item.nextSlaveStatus != '25'"
round
size="small"
class="mr5"
@@ -89,7 +89,7 @@
@click="goEdit(item.nextSlaveStatus, item.businessNo, item.claimId)"
>编辑</van-button>
<van-button
v-if="active == 'applying' && item.caseStatus != '3'"
v-if="active == 'applying' && item.caseStatus != '3' && item.nextSlaveStatus != '25'"
round
plain
size="small"
@@ -161,6 +161,11 @@ export default {
},
mounted() {
this.getOrderList()
//从成功页点击返回时候需要添加拦截
EWebBridge.webCallAppInJs('webview_left_button', {
intercept: '1' //是否拦截原生返回事件 1是 其他否
})
window.appCallBack = this.appCallBack
},
methods: {
//分页用
@@ -172,6 +177,13 @@ export default {
// }
// this.getOrderList(pageInfo)
// },
appCallBack(data) {
if (data.trigger == 'left_button_click') {
this.$jump({
flag: 'service'
})
}
},
//初始化列表
getOrderList() {
let data = {
@@ -274,11 +286,12 @@ export default {
}
})
},
goEdit(status, businessNo) {
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 = ''
switch (status) {
@@ -291,6 +304,7 @@ export default {
break
case '22': //填写理赔申请信息
url = '/claims/ApplyInfo?edit=1'
localStorage.setItem('claimId', claimId)
break
case '23': //上传影像页
url = '/claims/ImageData?edit=1'
@@ -308,7 +322,8 @@ export default {
extra: {
url: location.origin + `/#${url}`,
forbidSwipeBack: '1',
pullRefresh: '1'
pullRefresh: '1',
backToFirst: '1'
},
routerInfo: { path: url }
})

View File

@@ -293,18 +293,32 @@ export default {
}
})
} else {
this.$jump({
flag: 'h5',
extra: {
url: location.origin + '/#/claims/signatureConfirmation',
pullRefresh: '1',
refresh: '1',
backToFirst: this.$route.query.edit ? '1' : ''
},
routerInfo: {
path: '/claims/signatureConfirmation'
}
})
if (localStorage.claimFrom) {
this.$jump({
flag: 'h5',
extra: {
url: location.origin + '/#/claims/signatureConfirmation',
pullRefresh: '1',
refresh: '1',
backToFirst: '1'
},
routerInfo: {
path: '/claims/signatureConfirmation'
}
})
} else {
this.$jump({
flag: 'h5',
extra: {
url: location.origin + '/#/claims/signatureConfirmation',
pullRefresh: '1',
refresh: '1'
},
routerInfo: {
path: '/claims/signatureConfirmation'
}
})
}
}
} else {
that.$toast(res.resultMessage)

View File

@@ -467,6 +467,7 @@ export default {
url: location.origin + '/#/claims/SignatureConfirmation',
forbidSwipeBack: '1',
pullRefresh: '1',
backToFirst: this.$route.query.edit ? '1' : ''
},
routerInfo: {
path: '/claims/SignatureConfirmation'

View File

@@ -267,6 +267,8 @@ export default {
document.body.style.backgroundColor = '#fff'
// 筛选按钮的点击事件
window.appCallBack = this.appCallBack
//删除从进度查询点编辑的标识
localStorage.removeItem('claimFrom')
},
beforeRouteLeave(to, from, next) {
document.body.style.backgroundColor = ''

View File

@@ -78,8 +78,7 @@
v-no-more-click="1000"
v-if="!isWeixin"
:disabled="list.applyerSignState == 0"
>提交</van-button
>
>提交</van-button>
</div>
<UploadImageFile
:typeface="idcardData.typeface"
@@ -137,7 +136,7 @@ export default {
this.init()
},
mounted() {
if (!this.$route.query.edit) {
if (!this.$route.query.edit || localStorage.claimFrom == null) {
EWebBridge.webCallAppInJs('webview_left_button', {
img: this.$assetsUrl + 'images/del-close@3x.png',
intercept: '1' //是否拦截原生返回事件 1是 其他否
@@ -337,17 +336,30 @@ export default {
// 提交
next() {
let that = this
that.$jump({
flag: 'h5',
extra: {
url: location.origin + '/#/claims/Success',
forbidSwipeBack: '1',
backToFirst: '1'
},
routerInfo: {
path: '/claims/Success'
}
})
if (localStorage.claimFrom) {
that.$jump({
flag: 'h5',
extra: {
url: location.origin + '/#/claims/Success',
forbidSwipeBack: '1',
backToFirst: '1'
},
routerInfo: {
path: '/claims/Success'
}
})
} else {
that.$jump({
flag: 'h5',
extra: {
url: location.origin + '/#/claims/Success',
forbidSwipeBack: '1'
},
routerInfo: {
path: '/claims/Success'
}
})
}
}
}
}

View File

@@ -20,11 +20,13 @@ export default {
},
mounted() {
document.body.style.backgroundColor = '#fff'
EWebBridge.webCallAppInJs('webview_left_button', {
img: this.$assetsUrl + 'images/del-close@3x.png',
intercept: '1' //是否拦截原生返回事件 1是 其他否
})
window.appCallBack = this.appCallBack
if (!this.$route.query.edit || localStorage.claimFrom == null) {
EWebBridge.webCallAppInJs('webview_left_button', {
img: this.$assetsUrl + 'images/del-close@3x.png',
intercept: '1' //是否拦截原生返回事件 1是 其他否
})
window.appCallBack = this.appCallBack
}
},
beforeRouteLeave(to, from, next) {
document.body.style.backgroundColor = ''