Commit 29a6f2c8 by 前端

Merge branch 'v3.18.0' into 'master'

V3.18.0

See merge request !42
2 parents 17273400 1d603b67
......@@ -89,6 +89,9 @@
<div>
<explanation :supplementList="repotData.supplementList2" :operatorName="repotData.updatedBy" :id="repotData.id"></explanation>
</div>
<div v-if="accountMatchResultList.length" class="widget">
<wraning style="margin-top:16px" :isWatchOrder="isWatchOrder" @getWarningData="getWarningData" :list="accountMatchResultList"></wraning>
</div>
</div>
</template>
<script type="text/ecmascript-6">
......@@ -97,12 +100,14 @@ const phoneReg = /^(13[0-9]|15[0-9]|16[0-9]|17[0-9]|18[0-9]|19[0-9]|14[0-9])[0-9
import glsxCombiForm from '@/components/glsx-combi-form'
import uploadMaterial from '../uploadMaterial.vue'
import explanation from '../explanation.vue'
import wraning from '../wraning/index.vue'
export default {
name: 'checkClaimsPage',
components: {
glsxCombiForm,
uploadMaterial,
explanation
explanation,
wraning
},
data() {
return {
......@@ -251,7 +256,9 @@ export default {
accountForm: Object,
itemsList: Array,
insuranceAttachmentConfigs: Array,
lossTypeList: Array
lossTypeList: Array,
accountMatchResultList: Array,
isWatchOrder: Boolean
},
watch: {
'accountForm.objectType': {
......@@ -326,6 +333,22 @@ export default {
return prev + +(curPrice * 100).toFixed(0)
}, 0)
this.repotData[type] = (total / 100).toFixed(2)
},
getWarningData(e) {
if (e) {
let arr = []
e.forEach(el => {
let obj = {
id: el.id,
verifyResultDesc: el.verifyResultDesc,
accountVerifyImagesList: el.accountVerifyImagesList,
matchType: el.matchType
}
arr.push(obj)
})
console.log(arr);
this.$emit('getWarningInfo', arr)
}
}
}
}
......
......@@ -3,7 +3,7 @@
<template>
<div class="tab_wrap">
<el-tabs v-model="activeNameTabs">
<el-tab-pane v-if="[1, 12, 13, 14, 2, 3, 4, 0, 10, 11, 8, 9, 7].includes(repotData.status)" class="bg" label="核赔信息" name="second">
<el-tab-pane v-if="[1, 12, 13, 14, 2, 3, 4, 0, 10, 11, 8, 9, 7, 26, 27, 28].includes(repotData.status)" class="bg" label="核赔信息" name="second">
<div class="widget">
<div class="title">维修信息</div>
<div class="content pad20">
......@@ -161,6 +161,9 @@
<div>
<explanation :isCheck="true" :supplementList="repotData.supplementList2" :operatorName="repotData.updatedBy" :id="repotData.id"></explanation>
</div>
<div v-if="accountMatchResultList.length" class="widget">
<wraning style="margin-top: 16px" :isWatchOrder="true" :list="accountMatchResultList"></wraning>
</div>
</el-tab-pane>
<el-tab-pane class="bg" label="定损信息" name="first">
<div class="widget">
......@@ -308,11 +311,13 @@
<script type="text/ecmascript-6">
import explanation from '../explanation.vue'
import otherInfo from '../otherInfo.vue'
import wraning from '../wraning/index.vue'
export default {
name: 'watchPage',
components: {
explanation,
otherInfo
otherInfo,
wraning
},
data() {
return {
......@@ -322,7 +327,7 @@ export default {
activeNameClaims: '0',
currentServicesIndex: 0,
activeNameTabs: 'first',
srcList:[]
srcList: []
}
},
props: {
......@@ -333,20 +338,18 @@ export default {
images: Array,
images2: Array,
otherInfoData: Object,
lossTypeList:Array
},
mounted() {
lossTypeList: Array,
accountMatchResultList: Array
},
watch:{
images(val){
mounted() {},
watch: {
images(val) {
this.getImgList(val[0])
},
activeNameTabs(val){
if(val=='first'){
activeNameTabs(val) {
if (val == 'first') {
this.getImgList(this.images[0])
}else{
} else {
this.getImgList(this.images2[0])
}
}
......@@ -359,20 +362,18 @@ export default {
this.activeName = e.index.toString()
this.currentIndx = e.index
this.getImgList(this.images[this.currentIndx])
},
changeTabss(e) {
this.activeNameClaims = e.index.toString()
this.currentIndxClaims = e.index
this.getImgList(this.images2[this.currentIndxClaims])
},
getImgList(data){
this.srcList=[]
data.secondClassifyList.forEach(item=>{
item.attachmentList.forEach(img=>{
getImgList(data) {
this.srcList = []
data.secondClassifyList.forEach(item => {
item.attachmentList.forEach(img => {
this.srcList.push(img.attachmentFile)
})
})
})
}
}
......
......@@ -170,7 +170,19 @@ const statusList = [
{
confId: 14,
confName: '核赔通过'
}
},
{
confId: 26,
confName: '待运营经理审核'
},
{
confId: 27,
confName: '运营经理审核通过'
},
{
confId: 28,
confName: '运营经理审核不通过'
},
]
const describeList = [
{
......@@ -192,16 +204,18 @@ const followList = [
confName: '全部'
}
]
const tableStatus = ['待提交国任', '待支付', '校验不通过', '支付成功', '支付失败', '待受理', '待定损', '定损不通过', '定损通过', '待主管审核', '主管审核不通过', '待客户签字授权', '待核赔', '核赔不通过', '核赔通过']
const colors = ['#FDB757', '#FDB757', '#EB4E4E', ' #2CCA74', '#EB4E4E', '#FDB757', '#FDB757', '#EB4E4E', ' #2CCA74', '#FDB757', '#EB4E4E', '#FDB757', '#FDB757', '#EB4E4E', '#2CCA74']
const tableStatus = ['待提交国任', '待支付', '校验不通过', '支付成功', '支付失败', '待受理', '待定损', '定损不通过', '定损通过', '待主管审核', '主管审核不通过', '待客户签字授权', '待核赔', '核赔不通过', '核赔通过','','','','','','','','','','','','待运营经理审核','运营经理审核通过','运营经理审核不通过']
const colors = ['#FDB757', '#FDB757', '#EB4E4E', ' #2CCA74', '#EB4E4E', '#FDB757', '#FDB757', '#EB4E4E', ' #2CCA74', '#FDB757', '#EB4E4E', '#FDB757', '#FDB757', '#EB4E4E', '#2CCA74','','','','','','','','','','','','#FDB757','#2CCA74','#EB4E4E']
// 操作对应状态
const WATCH = [5, 7, 13, 8, 9, 10, 11, 1, 3, 4] // 查看
const WATCH = [5, 7, 13, 8, 9, 10, 11, 1, 3, 4,26,27,28] // 查看
const FOLLOW_HISTORY = [5, 6, 12, 7, 13, 8, 9, 10, 11, 2, 1, 3] //跟进记录和历史赔付
const CHECK = [6, 12] // 审核
const CHECK = [6] // 定损审核
const CHECK_HP = [12] // 核赔审核
const RE_SUMBIT = [2] //重新提交
const RETURN_IT = [7, 13] // 撤销
const RETURN_IT = [7, 13,28] // 撤销
const UPLOAD_INFO = [11] // 上传资料
const TO_HANDLE = [0] // 去处理
const Operations_Mananger = [26] // 运营经理审核
export default {
name: 'index',
data() {
......@@ -215,20 +229,52 @@ export default {
{
type: 'GLButton',
name: row => {
return '审核'
return '定损审核'
},
condition: row => {
return CHECK.includes(row.scope.status)
},
attrs: {
type: 'text',
fn: '审核'
fn: '定损审核'
},
listeners: {
click: row => this.handleEdit(5, row.scope)
}
},
{
type: 'GLButton',
name: row => {
return '核赔审核'
},
condition: row => {
return CHECK_HP.includes(row.scope.status)
},
attrs: {
type: 'text',
fn: '核赔审核'
},
listeners: {
click: row => this.handleEdit(7, row.scope)
}
},
{
type: 'GLButton',
name: row => {
return '运营经理审核'
},
condition: row => {
return Operations_Mananger.includes(row.scope.status)
},
attrs: {
type: 'text',
fn: '运营经理审核'
},
listeners: {
click: row => this.handleEdit(8, row.scope)
}
},
{
type: 'el-button',
name: row => {
return '撤销'
......@@ -768,7 +814,7 @@ export default {
this.orderCount = res
})
},
// 1.新增 2.查看 6.重新提交 4.去处理 5.审核
// 1.新增 2.查看 6.重新提交 4.去处理 5.定损审核 7.核赔审核 8.运营经理审核
handleEdit(editNo, row) {
let urlParam = {}
const title = this.jumpTitle(editNo)
......@@ -904,7 +950,7 @@ export default {
})
},
jumpTitle(addOrEdit) {
let title = '审核'
let title = '详情'
switch (addOrEdit) {
case 1:
title = '新增核赔'
......@@ -919,10 +965,16 @@ export default {
title = '去处理'
break
case 5:
title = '审核'
title = '定损审核'
break
case 7:
title = '核赔审核'
break
case 8:
title = '运营经理审核'
break
default:
title = '审核'
title = '详情'
break
}
return title
......
<template>
<div class="order-container-page">
<template v-if="pageType == 2">
<WatchData :lossTypeList.sync="lossTypeList" :otherInfoData.sync="otherInfoData" :images="insuranceAttachmentConfigs" :images2="claimsAttachmentConfigs" :itemsList.sync="itemList" :repotData.sync="repotData" :accountList.sync="accountList" :watchData.sync="watchData"></WatchData>
<WatchData :accountMatchResultList="accountMatchResultList" :lossTypeList.sync="lossTypeList" :otherInfoData.sync="otherInfoData" :images="insuranceAttachmentConfigs" :images2="claimsAttachmentConfigs" :itemsList.sync="itemList" :repotData.sync="repotData" :accountList.sync="accountList" :watchData.sync="watchData"></WatchData>
</template>
<template v-else-if="pageType == 5 && routeInfo.status < 11">
<template v-else-if="(pageType == 5 || pageType == 7 || pageType == 8) && routeInfo.status < 11">
<CheckData @getCurrentLoosType="getLossType" :lossTypeList.sync="lossTypeList" :otherInfoData.sync="otherInfoData" :itemList.sync="itemList" :insuranceAttachmentConfigs.sync="insuranceAttachmentConfigs" :repotData.sync="repotData"></CheckData>
</template>
<template v-else-if="(pageType == 5 && routeInfo.status > 10) || (routeInfo.status == 2 && pageType == 6)">
<template v-else-if="((pageType == 5 || pageType == 7 || pageType == 8) && routeInfo.status > 10) || (routeInfo.status == 2 && pageType == 6)">
<div class="tab_wrap">
<el-tabs v-model="activeName">
<el-tab-pane class="bg" label="核赔信息" name="first">
<CheckClaims ref="checkclaims" @getCurrentLoosType="getLossType" :lossTypeList.sync="lossTypeList" @changeObjectType="changeObjectType" :insuranceAttachmentConfigs.sync="claimsAttachmentConfigs" :repotData.sync="repotData" :itemsList.sync="itemList" :accountForm.sync="accountForm"></CheckClaims>
<CheckClaims @getWarningInfo="getWarningInfo" :accountMatchResultList="accountMatchResultList" ref="checkclaims" @getCurrentLoosType="getLossType" :lossTypeList.sync="lossTypeList" @changeObjectType="changeObjectType" :insuranceAttachmentConfigs.sync="claimsAttachmentConfigs" :repotData.sync="repotData" :itemsList.sync="itemList" :accountForm.sync="accountForm"></CheckClaims>
</el-tab-pane>
<el-tab-pane class="bg" label="定损信息" name="second">
<CheckData @getCurrentLoosType="getLossType" :lossTypeList.sync="lossTypeList" :isDisabled="true" :otherInfoData.sync="otherInfoData" :itemList.sync="itemList" :insuranceAttachmentConfigs.sync="insuranceAttachmentConfigs" :repotData.sync="repotData"></CheckData>
......@@ -19,12 +19,17 @@
</div>
</template>
<!-- 底部按钮 -->
<div v-if="pageType != 2 && activeName != 'second'" class="btn-box">
<div v-if="pageType != 2 && activeName != 'second' && orderMsg.status != 26" class="btn-box">
<el-button plain class="btn-three" @click="toBackList">取消</el-button>
<el-button plain class="btn-three" @click="toSaveOrder">保存</el-button>
<el-button plain @click="toNoPassOrder">不通过</el-button>
<el-button type="primary" @click="toPassOrder">通过</el-button>
</div>
<div v-if="pageType != 2 && activeName != 'second' && orderMsg.status == 26" class="btn-box">
<el-button plain class="btn-three" @click="toBackList">取消</el-button>
<el-button plain @click="toNoPassOrder">不通过</el-button>
<el-button type="primary" @click="toPassOrderAddWarning">通过</el-button>
</div>
<qrCode :bottom="320" phone="400 6123 886" phoneTitle="定损及核赔服务咨询" :codeUrl="qrcodUrl"></qrCode>
<!-- 弹窗 -->
......@@ -135,13 +140,18 @@ export default {
maxlength: 200
}
],
isSave:true,
isSave: true,
testServiceList: [],
insuranceAttachmentConfigs: [],
itemList: [],
otherInfoData: {},
claimsAttachmentConfigs: [],
lossTypeList: []
lossTypeList: [],
accountMatchResultList: [],
orderMsg: {
id: 0,
status: 0
}
}
},
mounted() {
......@@ -201,7 +211,7 @@ export default {
attachments2: res.attachments2,
attachments3: res.attachments3,
claimsAttachmentConfigs2: res.claimsAttachmentConfigs2,
updatedBy:res.updatedBy
updatedBy: res.updatedBy
}
// 图片list
......@@ -285,9 +295,16 @@ export default {
if (res.bankAccountDTO) {
this.accountForm = res.bankAccountDTO
}
console.log(this.repotData,'----------------')
res.accountMatchResultList.forEach(el => {
let arr = []
el.accountVerifyImagesList.forEach(ele => {
let obj = { verifyImage: ele.verifyImage }
arr.push(obj)
})
el.accountVerifyImagesList = arr
})
this.accountMatchResultList = res.accountMatchResultList
})
},
// 处理查看状态下数据展示
handlerWatch(obj, type) {
......@@ -384,7 +401,7 @@ export default {
},
// 通过订单
toPassOrder() {
this.isSave =false
this.isSave = false
if (this.orderMsg.status == 12 || this.orderMsg.status == 2) {
const isPass = this.verifyImages(this.claimsAttachmentConfigs)
if (!isPass) {
......@@ -475,6 +492,17 @@ export default {
para.reasonForFailureCode = this.noPassObj.reason
para.reasonForFailure = this.noPassObj.desc
}
if (this.orderMsg.status == 26) {
let _accountMatchResultList = []
if (this.queryList && this.queryList.length > 0) {
const _temArr = JSON.stringify(this.queryList)
_accountMatchResultList = JSON.parse(_temArr)
_accountMatchResultList.forEach(el => {
delete el.matchType
})
}
para.accountMatchResultList = _accountMatchResultList
}
let loading = this.createLoading()
this.$apis.claims.checkClaimsOrderApi(para).then(res => {
loading.close()
......@@ -512,7 +540,7 @@ export default {
},
// 点击不通过
comfirmNoPass() {
if (this.orderMsg.status == 12 || this.orderMsg.status == 2) {
if (this.orderMsg.status == 12 || this.orderMsg.status == 2 || this.orderMsg.status == 26) {
this.hepeiPass(true)
return
}
......@@ -562,7 +590,7 @@ export default {
reimbursementProvinceCode: this.repotData.reimbursementProvinceCode,
reimbursementAddr: this.repotData.reimbursementAddr,
reimbursementProcess: this.repotData.reimbursementProcess,
applyAmount: this.repotData.applyAmount ? ((Number(this.repotData.applyAmount) * 10) *10).toFixed(0) : 0,
applyAmount: this.repotData.applyAmount ? (Number(this.repotData.applyAmount) * 10 * 10).toFixed(0) : 0,
signatureAuth: this.repotData.signatureAuth || ''
}
......@@ -583,7 +611,7 @@ export default {
[claimsId]: this.orderMsg.id,
[content]: item.content,
[suppType]: item.suppType,
[operation]:this.isSave&&!item.id?0:1
[operation]: this.isSave && !item.id ? 0 : 1
}
Object.assign(obj, temp)
})
......@@ -599,8 +627,7 @@ export default {
[claimsId]: this.orderMsg.id,
[content]: item.content,
[suppType]: item.suppType,
[operation]:this.isSave&&!item.id?0:1
[operation]: this.isSave && !item.id ? 0 : 1
}
Object.assign(obj, temp)
})
......@@ -716,8 +743,8 @@ export default {
[serviceItemName]: item.serviceItemName,
[writeOffCode]: this.repotData.writeOffCode,
[contractNo]: this.repotData.contractNo,
[approveAmount]: item.approveAmount ? ((Number(item.approveAmount) * 10) *10).toFixed(0) : 0,
[applyAmount]: item.applyAmount ? ((Number(item.applyAmount) * 10) *10).toFixed(0) : 0,
[approveAmount]: item.approveAmount ? (Number(item.approveAmount) * 10 * 10).toFixed(0) : 0,
[applyAmount]: item.applyAmount ? (Number(item.applyAmount) * 10 * 10).toFixed(0) : 0,
[claimsId]: this.orderMsg.id,
[lossType]: item.serviceItemCode == 'SC0006' ? item.lossTypeList.join(',') : item.lossType
}
......@@ -750,7 +777,7 @@ export default {
reimbursementProvinceCode: this.repotData.reimbursementProvinceCode,
reimbursementAddr: this.repotData.reimbursementAddr,
reimbursementProcess: this.repotData.reimbursementProcess,
applyAmount: this.repotData.applyAmount ? ((Number(this.repotData.applyAmount) * 10) *10).toFixed(0) : 0
applyAmount: this.repotData.applyAmount ? (Number(this.repotData.applyAmount) * 10 * 10).toFixed(0) : 0
}
let claims = {
operation,
......@@ -767,7 +794,7 @@ export default {
},
// 保存订单
toSaveOrder() {
this.isSave =true
this.isSave = true
let para = this.savePara()
const name = this.orderMsg.status == 12 || this.orderMsg.status == 2 ? 'saveClaimsCG' : 'saveCG'
let loading = this.createLoading()
......@@ -826,6 +853,13 @@ export default {
customClass: 'loadingClass'
})
return loading
},
// 预警信息版本
getWarningInfo(e) {
this.queryList = e
},
toPassOrderAddWarning() {
this.hepeiPass()
}
}
}
......
......@@ -26,8 +26,8 @@
<GLTable ref="equityRef" :pageSizes="sizeList" :getListApi="getListApi" :searchForm="searchParams" :tableParams="tableParams" :beforeSearchFn="beforeSearchFn" :pageConf="batchPageConf">
<div class="flex_sc" slot="colorStatus" slot-scope="scope">
<div class="table_point" :style="{ background: statusMap[scope.scope.status || 0].color }"></div>
<span>{{ statusMap[scope.scope.status || 0].name }}</span>
<div v-if="statusMap[scope.scope.status || 0]" class="table_point" :style="{ background: statusMap[scope.scope.status || 0].color }"></div>
<span v-if="statusMap[scope.scope.status || 0]">{{ statusMap[scope.scope.status || 0].name }}</span>
</div>
<div class="table-btns" slot="table-btns" slot-scope="scope">
<!-- <GLButton v-if="[0].includes(scope.scope.status)" fn="去处理" type="text" @click="handleEdit(4, scope.scope)">去处理</GLButton>
......@@ -373,6 +373,31 @@ export default {
25: {
name: '核赔不通过',
color: '#EB4E4E'
},
// 广汇的状态
6: {
name: '待定损',
color: '#5850FF'
},
7: {
name: '定损不通过',
color: '#EB4E4E'
},
8: {
name: '定损通过',
color: '#2CCA74'
},
12: {
name: '待核赔',
color: '#5850FF'
},
13: {
name: '核赔不通过',
color: '#EB4E4E'
},
14: {
name: '核赔通过',
color: '#2CCA74'
}
}
}
......
......@@ -556,7 +556,9 @@ export default {
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.3)'
})
params.equitySource = 2
if(!this.routeInfo.isGH){
params.equitySource = 2
}
this.$apis.claims.commitClaimsOrder(params).then(res => {
loading.close()
if (res) {
......@@ -572,7 +574,7 @@ export default {
message: type == 1 ? '提交成功' : '保存草稿成功',
type: 'success'
})
if (type != 1) {
if (type != 1 || !res.accountMatchResultList || !res.accountMatchResultList.length) {
this.handleCancel()
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!