mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-25 00:12:53 +08:00
Merge branch 'dev_claim' into dev
This commit is contained in:
@@ -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 }
|
||||
})
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -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 = ''
|
||||
|
||||
@@ -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'
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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 = ''
|
||||
|
||||
Reference in New Issue
Block a user