Commit 7fb4e918 by 杨北旺

跳转标题

1 parent 97cba01b
<template>
<div class="report-components gl-form-page">
<div class="title">报案信息(客户提交)</div>
<template v-if="[1, 3, 4].includes(pageType)&&!renewDisable">
<template v-if="[1, 3, 4,5,6].includes(pageType)&&!renewDisable">
<glsxCombiForm :regionData="regionData" class="edit-form-container" ref="editFormRefReport" labelWidth="154px" defaultWidth="432px" :formObj="editForm" :formData="editFormData" :formRules="editRule">
<div v-if="pageType == 1" style="display: inline-block" slot="syncBtn">
<el-button style="margin: 0 12px" type="primary" @click="toSearchOrderDetail">同步</el-button>
......
......@@ -78,7 +78,7 @@ const statusList = [
{
confId: 25,
confName: '核赔不通过'
},
}
]
export default {
name: 'index',
......@@ -92,7 +92,7 @@ export default {
return '去处理'
},
condition: row => {
return [0,19,22,25].includes(row.scope.status)
return [0, 19, 22, 25].includes(row.scope.status)
},
attrs: {
type: 'text',
......@@ -108,7 +108,7 @@ export default {
return '查看'
},
condition: row => {
return [1, 3, 4,21,24].includes(row.scope.status)
return [1, 3, 4, 21, 24].includes(row.scope.status)
},
attrs: {
type: 'text',
......@@ -147,7 +147,7 @@ export default {
fn: '运营经理审核'
},
listeners: {
click: row => this.handleEdit(4, row.scope)
click: row => this.handleEdit(5, row.scope)
}
},
{
......@@ -163,7 +163,7 @@ export default {
fn: '核赔审核'
},
listeners: {
click: row => this.handleEdit(4, row.scope)
click: row => this.handleEdit(6, row.scope)
}
}
],
......@@ -318,7 +318,7 @@ export default {
},
{
label: '操作',
width:200,
width: 200,
prop: '',
fixed: 'right',
addHtml: 'table-btns'
......@@ -346,7 +346,7 @@ export default {
this.showGh = href.indexOf('cgacar') != -1
if (!this.showGh) this.searchFormData[0].placeholder = '请输入客户名 | 合同号 | 报案号'
},
// 1.新增 2.查看 3.重新提交 4.去处理
// 1.新增 2.查看 3.重新提交 4.去处理 5.运营经理审核 6 核赔审核
handleEdit(editNo, row) {
let urlParam = {
editNo,
......@@ -360,7 +360,8 @@ export default {
urlParam.contractNo = editNo == 1 ? '' : row.writeOffCode
}
const temp = encodeURIComponent(JSON.stringify(urlParam))
this.$router.push({ path: '/claims/order/' + temp })
const title = this.jumpTitle(editNo)
this.$router.push({ path: '/claims/order/' + temp, query: { $title: title } })
},
handleOkFn() {
this.getParams()
......@@ -402,6 +403,35 @@ export default {
document.body.appendChild(a)
a.click()
})
},
// 页面跳转标题判断
//1.新增 2.查看 3.重新提交 4.去处理 5.运营经理审核 6 核赔审核
jumpTitle(addOrEdit) {
let title = '详情'
switch (addOrEdit) {
case 1:
title = '新增核赔'
break
case 2:
title = '查看'
break
case 3:
title = '重新提交'
break
case 4:
title = '去处理'
break
case 5:
title = '运营经理审核'
break
case 6:
title = '核赔审核'
break
default:
title = '详情'
break
}
return title
}
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!