Commit 746dfc14 by 杨北旺

...

1 parent 57f57b8f
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
<!-- 上传资料 --> <!-- 上传资料 -->
<div> <div>
<upload-material :isDisabled="isDisabled" :insuranceAttachmentConfigs.sync="insuranceAttachmentConfigs"></upload-material> <upload-material :lossTypeList.sync="lossTypeList" :isDisabled="isDisabled" :insuranceAttachmentConfigs.sync="insuranceAttachmentConfigs"></upload-material>
</div> </div>
<!-- 案件补充说明 --> <!-- 案件补充说明 -->
...@@ -206,7 +206,8 @@ export default { ...@@ -206,7 +206,8 @@ export default {
insuranceAttachmentConfigs: Array, insuranceAttachmentConfigs: Array,
itemList: Array, itemList: Array,
otherInfoData: Object, otherInfoData: Object,
isDisabled:Boolean isDisabled:Boolean,
lossTypeList:Array
}, },
watch: { watch: {
'editForm.reportDate'(newVal, oldVal) { 'editForm.reportDate'(newVal, oldVal) {
...@@ -286,7 +287,15 @@ export default { ...@@ -286,7 +287,15 @@ export default {
this.repotData.applyAmount = (total / 100).toFixed(2) this.repotData.applyAmount = (total / 100).toFixed(2)
}, },
changeType(e){ changeType(e){
// this.$emit('') // if(!e.length){
// this.$message({
// message: '至少选一个服务类型',
// type: 'error'
// })
// return
// }
this.lossTypeList = e
this.$emit('getCurrentLoosType',e)
} }
} }
} }
......
...@@ -80,6 +80,7 @@ ...@@ -80,6 +80,7 @@
</div> </div>
<div v-if="img.exampleUrl" class="img_pannel flex_cc"> <div v-if="img.exampleUrl" class="img_pannel flex_cc">
<el-image :preview-src-list="[img.exampleUrl]" style="width: 216px; height: 135px; border-radius: 4px" :src="img.exampleUrl" :fit="fit"></el-image> <el-image :preview-src-list="[img.exampleUrl]" style="width: 216px; height: 135px; border-radius: 4px" :src="img.exampleUrl" :fit="fit"></el-image>
<div class="egTag flex_cc">示例</div>
</div> </div>
</div> </div>
</div> </div>
...@@ -303,6 +304,17 @@ export default { ...@@ -303,6 +304,17 @@ export default {
background: #f5f5f5; background: #f5f5f5;
position: relative; position: relative;
border-radius: 4px; border-radius: 4px;
.egTag {
position: absolute;
right: 8px;
top: 8px;
width: 36px;
height: 18px;
color: #666;
font-size: 12px;
border-radius: 2px;
background: #e5e5e5;
}
} }
} }
</style> </style>
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div> <div>
<div v-if="isGH" class="report-components gl-form-page"> <div v-if="isGH" class="report-components gl-form-page">
<div class="title">报案信息(店面补充)</div> <div class="title">报案信息(店面补充)</div>
<glsx-combi-form :labelPaddingRight="0" :isinline="false" class="edit-form-container" ref="handlerRef" :formRules="accountRule" labelWidth="154px" defaultWidth="432px" :formObj="accountForm" :formData="handlerForm"> <glsx-combi-form :labelPaddingRight="0" :isInline="false" class="edit-form-container" ref="handlerRef" :formRules="accountRule" labelWidth="154px" defaultWidth="432px" :formObj="accountForm" :formData="handlerForm">
<div slot="serviceApply" class="serviceApply_container"> <div slot="serviceApply" class="serviceApply_container">
<template v-for="(item, index) in serviceItemsList"> <template v-for="(item, index) in serviceItemsList">
<div :key="index" class="wrapper"> <div :key="index" class="wrapper">
......
...@@ -25,17 +25,17 @@ ...@@ -25,17 +25,17 @@
</div> </div>
<div v-if="item.firstClassifyName.indexOf('细节') != -1" class="image_container"> <div v-if="item.firstClassifyName.indexOf('细节') != -1" class="image_container">
<template v-for="(img, i) in insuranceAttachmentConfigs[currentIndx].secondClassifyList"> <template v-for="(img, i) in insuranceAttachmentConfigs[currentIndx].secondClassifyList">
<div v-if="img.serviceItemName == item.services[currentServicesIndex]" :key="i" class="img_box"> <div v-if="img.serviceItemName == '钥匙及车牌重置服务' && img.serviceItemName == item.services[currentServicesIndex] ? lossTypeList.includes(img.lossType) : img.serviceItemName == item.services[currentServicesIndex]" :key="i" class="img_box">
<div class="title flex_sc"> <div class="title flex_sc">
<i v-if="img.attachmentList.length&&img.attachmentList[0].auditStatus == 1" class="el-icon-success success"></i> <i v-if="img.attachmentList.length && img.attachmentList[0].auditStatus == 1" class="el-icon-success success"></i>
<i v-else-if="img.attachmentList.length&&img.attachmentList[0].auditStatus == 0" class="el-icon-error error"></i> <i v-else-if="img.attachmentList.length && img.attachmentList[0].auditStatus == 0" class="el-icon-error error"></i>
<div class="">{{ img.secondClassifyName }}</div> <div class="">{{ img.secondClassifyName }}</div>
</div> </div>
<div class="img_pannel flex_cc" :class="[{ errBorder: img.attachmentList.length&&img.attachmentList[0].auditStatus == 0 }]"> <div class="img_pannel flex_cc" :class="[{ errBorder: img.attachmentList.length && img.attachmentList[0].auditStatus == 0 }]">
<el-image :preview-src-list="[img.attachmentList[0].attachmentFile]" v-if="img.attachmentList.length&&img.attachmentList[0].attachmentFile" style="width: 216px; height: 135px; border-radius: 4px" :src="img.attachmentList[0].attachmentFile" :fit="fit"></el-image> <el-image :preview-src-list="[img.attachmentList[0].attachmentFile]" v-if="img.attachmentList.length && img.attachmentList[0].attachmentFile" style="width: 216px; height: 135px; border-radius: 4px" :src="img.attachmentList[0].attachmentFile" :fit="fit"></el-image>
<img v-else :src="cameraUrl" style="width: 40px; height: 40px" /> <img v-else :src="cameraUrl" style="width: 40px; height: 40px" />
<!-- <div v-if="img.attachmentList.length&&img.attachmentList[0].auditStatus == 0" class="errMsg flex_cc">{{ img.attachmentList[0].reasonForFailure }}</div> --> <!-- <div v-if="img.attachmentList.length&&img.attachmentList[0].auditStatus == 0" class="errMsg flex_cc">{{ img.attachmentList[0].reasonForFailure }}</div> -->
<div v-if="img.attachmentList.length&&img.attachmentList[0].auditStatus == 0" class="errMsg flex_cc"> <div v-if="img.attachmentList.length && img.attachmentList[0].auditStatus == 0" class="errMsg flex_cc">
<el-popover placement="top-start" width="200" trigger="hover" :content="img.attachmentList[0].reasonForFailure"> <el-popover placement="top-start" width="200" trigger="hover" :content="img.attachmentList[0].reasonForFailure">
<div class="intext" slot="reference">{{ img.attachmentList[0].reasonForFailure }}</div> <div class="intext" slot="reference">{{ img.attachmentList[0].reasonForFailure }}</div>
</el-popover> </el-popover>
...@@ -56,15 +56,15 @@ ...@@ -56,15 +56,15 @@
<div v-for="(img, i) in insuranceAttachmentConfigs[currentIndx].secondClassifyList" :key="i" class="img_box"> <div v-for="(img, i) in insuranceAttachmentConfigs[currentIndx].secondClassifyList" :key="i" class="img_box">
<div v-if="img.serviceItemName" class="service_title">{{ img.serviceItemName }}</div> <div v-if="img.serviceItemName" class="service_title">{{ img.serviceItemName }}</div>
<div class="title flex_sc"> <div class="title flex_sc">
<i v-if="img.attachmentList.length&&img.attachmentList[0].auditStatus == 1" class="el-icon-success success"></i> <i v-if="img.attachmentList.length && img.attachmentList[0].auditStatus == 1" class="el-icon-success success"></i>
<i v-else-if="img.attachmentList.length&&img.attachmentList[0].auditStatus == 0" class="el-icon-error error"></i> <i v-else-if="img.attachmentList.length && img.attachmentList[0].auditStatus == 0" class="el-icon-error error"></i>
<div class="">{{ img.secondClassifyName }}</div> <div class="">{{ img.secondClassifyName }}</div>
</div> </div>
<div class="img_pannel flex_cc" :class="[{ errBorder: img.attachmentList.length&&img.attachmentList[0].auditStatus == 0 }]"> <div class="img_pannel flex_cc" :class="[{ errBorder: img.attachmentList.length && img.attachmentList[0].auditStatus == 0 }]">
<el-image :preview-src-list="[img.attachmentList[0].attachmentFile]" v-if="img.attachmentList.length&&img.attachmentList[0].attachmentFile" style="width: 216px; height: 135px; border-radius: 4px" :src="img.attachmentList[0].attachmentFile" :fit="fit"></el-image> <el-image :preview-src-list="[img.attachmentList[0].attachmentFile]" v-if="img.attachmentList.length && img.attachmentList[0].attachmentFile" style="width: 216px; height: 135px; border-radius: 4px" :src="img.attachmentList[0].attachmentFile" :fit="fit"></el-image>
<img v-else :src="cameraUrl" style="width: 40px; height: 40px" /> <img v-else :src="cameraUrl" style="width: 40px; height: 40px" />
<!-- <div v-if="img.attachmentList.length&&img.attachmentList[0].auditStatus == 0" class="errMsg flex_cc">{{ img.attachmentList[0].reasonForFailure }}</div> --> <!-- <div v-if="img.attachmentList.length&&img.attachmentList[0].auditStatus == 0" class="errMsg flex_cc">{{ img.attachmentList[0].reasonForFailure }}</div> -->
<div v-if="img.attachmentList.length&&img.attachmentList[0].auditStatus == 0" class="errMsg flex_cc"> <div v-if="img.attachmentList.length && img.attachmentList[0].auditStatus == 0" class="errMsg flex_cc">
<el-popover placement="top-start" width="200" trigger="hover" :content="img.attachmentList[0].reasonForFailure"> <el-popover placement="top-start" width="200" trigger="hover" :content="img.attachmentList[0].reasonForFailure">
<div class="intext" slot="reference">{{ img.attachmentList[0].reasonForFailure }}</div> <div class="intext" slot="reference">{{ img.attachmentList[0].reasonForFailure }}</div>
</el-popover> </el-popover>
...@@ -171,7 +171,8 @@ export default { ...@@ -171,7 +171,8 @@ export default {
}, },
props: { props: {
insuranceAttachmentConfigs: Array, insuranceAttachmentConfigs: Array,
isDisabled: Boolean isDisabled: Boolean,
lossTypeList: Array
}, },
mounted() {}, mounted() {},
methods: { methods: {
...@@ -196,7 +197,15 @@ export default { ...@@ -196,7 +197,15 @@ export default {
}, },
// type 1通过 0不通过 2 上传 // type 1通过 0不通过 2 上传
toHandlerImage(img, index, type, isOther = false) { toHandlerImage(img, index, type, isOther = false) {
if(!img.attachmentList.length&&!isOther)return if(!img.attachmentList.length){
img.attachmentList[0] = {
...img,
attachmentFile:'',
auditStatus:null,
reasonForFailure:''
}
}
// if (!img.attachmentList.length && !isOther) return
this.uploadObj = { this.uploadObj = {
img, img,
index index
...@@ -205,8 +214,7 @@ export default { ...@@ -205,8 +214,7 @@ export default {
if (isOther) { if (isOther) {
this.otherUploadIndex = index this.otherUploadIndex = index
} }
if (type == 2&&isOther) { if (type == 2) {
this.otherUploadIndex = index
return return
} }
if (type == 1) { if (type == 1) {
......
...@@ -151,6 +151,7 @@ ...@@ -151,6 +151,7 @@
</div> </div>
<div v-if="img.exampleUrl" class="img_pannel flex_cc"> <div v-if="img.exampleUrl" class="img_pannel flex_cc">
<el-image :preview-src-list="[img.exampleUrl]" style="width: 216px; height: 135px; border-radius: 4px" :src="img.exampleUrl" :fit="fit"></el-image> <el-image :preview-src-list="[img.exampleUrl]" style="width: 216px; height: 135px; border-radius: 4px" :src="img.exampleUrl" :fit="fit"></el-image>
<div class="egTag flex_cc">示例</div>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<WatchData :otherInfoData.sync="otherInfoData" :images="insuranceAttachmentConfigs" :images2="claimsAttachmentConfigs" :itemsList.sync="itemList" :repotData.sync="repotData" :accountList.sync="accountList" :watchData.sync="watchData"></WatchData> <WatchData :otherInfoData.sync="otherInfoData" :images="insuranceAttachmentConfigs" :images2="claimsAttachmentConfigs" :itemsList.sync="itemList" :repotData.sync="repotData" :accountList.sync="accountList" :watchData.sync="watchData"></WatchData>
</template> </template>
<template v-else-if="pageType == 5 && routeInfo.status < 11"> <template v-else-if="pageType == 5 && routeInfo.status < 11">
<CheckData :otherInfoData.sync="otherInfoData" :itemList.sync="itemList" :insuranceAttachmentConfigs.sync="insuranceAttachmentConfigs" :repotData.sync="repotData"></CheckData> <CheckData @getCurrentLoosType="getLossType" :lossTypeList.sync="lossTypeList" :otherInfoData.sync="otherInfoData" :itemList.sync="itemList" :insuranceAttachmentConfigs.sync="insuranceAttachmentConfigs" :repotData.sync="repotData"></CheckData>
</template> </template>
<template v-else-if="(pageType == 5 && routeInfo.status > 10) || (routeInfo.status == 2 && pageType == 6)"> <template v-else-if="(pageType == 5 && routeInfo.status > 10) || (routeInfo.status == 2 && pageType == 6)">
<div class="tab_wrap"> <div class="tab_wrap">
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<CheckClaims @changeObjectType="changeObjectType" :insuranceAttachmentConfigs.sync="claimsAttachmentConfigs" :repotData.sync="repotData" :itemsList.sync="itemList" :accountForm.sync="accountForm"></CheckClaims> <CheckClaims @changeObjectType="changeObjectType" :insuranceAttachmentConfigs.sync="claimsAttachmentConfigs" :repotData.sync="repotData" :itemsList.sync="itemList" :accountForm.sync="accountForm"></CheckClaims>
</el-tab-pane> </el-tab-pane>
<el-tab-pane class="bg" label="定损信息" name="second"> <el-tab-pane class="bg" label="定损信息" name="second">
<CheckData :isDisabled="true" :otherInfoData.sync="otherInfoData" :itemList.sync="itemList" :insuranceAttachmentConfigs.sync="insuranceAttachmentConfigs" :repotData.sync="repotData"></CheckData> <CheckData :lossTypeList.sync="lossTypeList" :isDisabled="true" :otherInfoData.sync="otherInfoData" :itemList.sync="itemList" :insuranceAttachmentConfigs.sync="insuranceAttachmentConfigs" :repotData.sync="repotData"></CheckData>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
</div> </div>
...@@ -140,7 +140,8 @@ export default { ...@@ -140,7 +140,8 @@ export default {
insuranceAttachmentConfigs: [], insuranceAttachmentConfigs: [],
itemList: [], itemList: [],
otherInfoData: {}, otherInfoData: {},
claimsAttachmentConfigs: [] claimsAttachmentConfigs: [],
lossTypeList:[]
} }
}, },
mounted() { mounted() {
...@@ -217,6 +218,11 @@ export default { ...@@ -217,6 +218,11 @@ export default {
} }
if (item.firstClassifyName.indexOf('定损细节照片') != -1) { if (item.firstClassifyName.indexOf('定损细节照片') != -1) {
item.secondClassifyList.forEach(el => { item.secondClassifyList.forEach(el => {
if(el.secondClassifyName.indexOf('钥匙')!=-1&&el.serviceItemCode=='SC0006'){
el.lossType = '3'
}else if(el.secondClassifyName.indexOf('车牌')!=-1&&el.serviceItemCode=='SC0006'){
el.lossType = '4'
}
services.push(el.serviceItemName) services.push(el.serviceItemName)
}) })
item.services = [...new Set(services)] item.services = [...new Set(services)]
...@@ -262,9 +268,9 @@ export default { ...@@ -262,9 +268,9 @@ export default {
if (item.serviceItemCode == 'SC0006' && item.lossType) { if (item.serviceItemCode == 'SC0006' && item.lossType) {
item.lossTypeList = item.lossType.split(',') item.lossTypeList = item.lossType.split(',')
} }
this.lossTypeList = item.lossTypeList
this.$set(item, 'checked', true) this.$set(item, 'checked', true)
}) })
this.itemList = res.itemsList this.itemList = res.itemsList
this.handlerWatch(this.repotData, 1) this.handlerWatch(this.repotData, 1)
this.handlerWatch(res.bankAccountDTO, 2) this.handlerWatch(res.bankAccountDTO, 2)
...@@ -505,18 +511,19 @@ export default { ...@@ -505,18 +511,19 @@ export default {
para.auditStatus = 0 para.auditStatus = 0
para.reasonForFailureCode = this.noPassObj.reason para.reasonForFailureCode = this.noPassObj.reason
para.reasonForFailure = this.noPassObj.desc para.reasonForFailure = this.noPassObj.desc
let loading = this.createLoading() console.log(para);
this.$apis.claims.checkOrderApi(para).then(res => { // let loading = this.createLoading()
loading.close() // this.$apis.claims.checkOrderApi(para).then(res => {
if (res) { // loading.close()
this.$message({ // if (res) {
message: '操作成功', // this.$message({
type: 'success' // message: '操作成功',
}) // type: 'success'
this.$router.push({ path: '/claims/ghIndex' }) // })
} // this.$router.push({ path: '/claims/ghIndex' })
this.cancleNoPass() // }
}) // this.cancleNoPass()
// })
}, },
cancleNoPass() { cancleNoPass() {
this.showNoPassDialog = false this.showNoPassDialog = false
...@@ -591,6 +598,7 @@ export default { ...@@ -591,6 +598,7 @@ export default {
// 图片数据处理 // 图片数据处理
hanlerImg() { hanlerImg() {
let imgs = [] let imgs = []
let serviceImgs = []
if (this.orderMsg.status == 12 || this.orderMsg.status == 2) { if (this.orderMsg.status == 12 || this.orderMsg.status == 2) {
this.claimsAttachmentConfigs.forEach((item, index) => { this.claimsAttachmentConfigs.forEach((item, index) => {
item.secondClassifyList.forEach(el => { item.secondClassifyList.forEach(el => {
...@@ -603,13 +611,23 @@ export default { ...@@ -603,13 +611,23 @@ export default {
} else { } else {
this.insuranceAttachmentConfigs.forEach((item, index) => { this.insuranceAttachmentConfigs.forEach((item, index) => {
item.secondClassifyList.forEach(el => { item.secondClassifyList.forEach(el => {
if(el.serviceItemName=='钥匙及车牌重置服务'&&this.lossTypeList.includes(el.lossType)){
el.attachmentList.forEach(ele => {
ele.secondClassifyName = el.secondClassifyName
serviceImgs.push(ele)
})
}else{
el.attachmentList.forEach(ele => { el.attachmentList.forEach(ele => {
ele.secondClassifyName = el.secondClassifyName ele.secondClassifyName = el.secondClassifyName
imgs.push(ele) imgs.push(ele)
}) })
}
}) })
}) })
} }
if(serviceImgs.length){
imgs = [...serviceImgs,...imgs]
}
let obj = {} let obj = {}
let type = this.orderMsg.status == 12 || this.orderMsg.status == 2 ? 2 : 1 let type = this.orderMsg.status == 12 || this.orderMsg.status == 2 ? 2 : 1
imgs.forEach((item, index) => { imgs.forEach((item, index) => {
...@@ -641,6 +659,10 @@ export default { ...@@ -641,6 +659,10 @@ export default {
}) })
return obj return obj
}, },
// 获取车牌钥匙选择类型
getLossType(e){
this.lossTypeList = e
},
// 服务项目数据处理 // 服务项目数据处理
handlerServices() { handlerServices() {
let itemObj = {} let itemObj = {}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!