Commit 746dfc14 by 杨北旺

...

1 parent 57f57b8f
......@@ -48,7 +48,7 @@
<!-- 上传资料 -->
<div>
<upload-material :isDisabled="isDisabled" :insuranceAttachmentConfigs.sync="insuranceAttachmentConfigs"></upload-material>
<upload-material :lossTypeList.sync="lossTypeList" :isDisabled="isDisabled" :insuranceAttachmentConfigs.sync="insuranceAttachmentConfigs"></upload-material>
</div>
<!-- 案件补充说明 -->
......@@ -206,7 +206,8 @@ export default {
insuranceAttachmentConfigs: Array,
itemList: Array,
otherInfoData: Object,
isDisabled:Boolean
isDisabled:Boolean,
lossTypeList:Array
},
watch: {
'editForm.reportDate'(newVal, oldVal) {
......@@ -286,7 +287,15 @@ export default {
this.repotData.applyAmount = (total / 100).toFixed(2)
},
changeType(e){
// this.$emit('')
// if(!e.length){
// this.$message({
// message: '至少选一个服务类型',
// type: 'error'
// })
// return
// }
this.lossTypeList = e
this.$emit('getCurrentLoosType',e)
}
}
}
......
......@@ -80,6 +80,7 @@
</div>
<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>
<div class="egTag flex_cc">示例</div>
</div>
</div>
</div>
......@@ -303,6 +304,17 @@ export default {
background: #f5f5f5;
position: relative;
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>
......@@ -2,7 +2,7 @@
<div>
<div v-if="isGH" class="report-components gl-form-page">
<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">
<template v-for="(item, index) in serviceItemsList">
<div :key="index" class="wrapper">
......
......@@ -25,17 +25,17 @@
</div>
<div v-if="item.firstClassifyName.indexOf('细节') != -1" class="image_container">
<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">
<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-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>
<div class="">{{ img.secondClassifyName }}</div>
</div>
<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>
<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>
<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">
<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">
<div class="intext" slot="reference">{{ img.attachmentList[0].reasonForFailure }}</div>
</el-popover>
......@@ -56,18 +56,18 @@
<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 class="title flex_sc">
<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-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>
<div class="">{{ img.secondClassifyName }}</div>
</div>
<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>
<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>
<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">
<el-popover placement="top-start" width="200" trigger="hover" :content="img.attachmentList[0].reasonForFailure">
<div class="intext" slot="reference">{{ img.attachmentList[0].reasonForFailure }}</div>
</el-popover>
<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">
<div class="intext" slot="reference">{{ img.attachmentList[0].reasonForFailure }}</div>
</el-popover>
</div>
</div>
<div v-if="!isDisabled" class="footer_btn">
......@@ -93,8 +93,8 @@
<!-- <div v-if="img.auditStatus == 0" class="errMsg flex_cc">{{ img.reasonForFailure }}</div> -->
<div v-if="img.auditStatus == 0" class="errMsg flex_cc">
<el-popover placement="top-start" width="200" trigger="hover" :content="img.reasonForFailure">
<div class="intext" slot="reference">{{ img.reasonForFailure }}</div>
</el-popover>
<div class="intext" slot="reference">{{ img.reasonForFailure }}</div>
</el-popover>
</div>
</div>
<div v-if="!isDisabled" class="footer_btn">
......@@ -171,7 +171,8 @@ export default {
},
props: {
insuranceAttachmentConfigs: Array,
isDisabled: Boolean
isDisabled: Boolean,
lossTypeList: Array
},
mounted() {},
methods: {
......@@ -196,7 +197,15 @@ export default {
},
// type 1通过 0不通过 2 上传
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 = {
img,
index
......@@ -205,8 +214,7 @@ export default {
if (isOther) {
this.otherUploadIndex = index
}
if (type == 2&&isOther) {
this.otherUploadIndex = index
if (type == 2) {
return
}
if (type == 1) {
......@@ -389,17 +397,17 @@ export default {
z-index: 10;
word-break: break-all;
.intext {
box-sizing: border-box;
padding: 0 2px;
font-size: 12px;
font-weight: 400;
color: #ffffff;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
overflow: hidden;
text-overflow: ellipsis;
}
box-sizing: border-box;
padding: 0 2px;
font-size: 12px;
font-weight: 400;
color: #ffffff;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
overflow: hidden;
text-overflow: ellipsis;
}
}
}
.uplpad_pannel {
......
......@@ -151,6 +151,7 @@
</div>
<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>
<div class="egTag flex_cc">示例</div>
</div>
</div>
</div>
......
......@@ -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>
</template>
<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 v-else-if="(pageType == 5 && routeInfo.status > 10) || (routeInfo.status == 2 && pageType == 6)">
<div class="tab_wrap">
......@@ -13,7 +13,7 @@
<CheckClaims @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 :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-tabs>
</div>
......@@ -140,7 +140,8 @@ export default {
insuranceAttachmentConfigs: [],
itemList: [],
otherInfoData: {},
claimsAttachmentConfigs: []
claimsAttachmentConfigs: [],
lossTypeList:[]
}
},
mounted() {
......@@ -217,6 +218,11 @@ export default {
}
if (item.firstClassifyName.indexOf('定损细节照片') != -1) {
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)
})
item.services = [...new Set(services)]
......@@ -262,9 +268,9 @@ export default {
if (item.serviceItemCode == 'SC0006' && item.lossType) {
item.lossTypeList = item.lossType.split(',')
}
this.lossTypeList = item.lossTypeList
this.$set(item, 'checked', true)
})
this.itemList = res.itemsList
this.handlerWatch(this.repotData, 1)
this.handlerWatch(res.bankAccountDTO, 2)
......@@ -505,18 +511,19 @@ export default {
para.auditStatus = 0
para.reasonForFailureCode = this.noPassObj.reason
para.reasonForFailure = this.noPassObj.desc
let loading = this.createLoading()
this.$apis.claims.checkOrderApi(para).then(res => {
loading.close()
if (res) {
this.$message({
message: '操作成功',
type: 'success'
})
this.$router.push({ path: '/claims/ghIndex' })
}
this.cancleNoPass()
})
console.log(para);
// let loading = this.createLoading()
// this.$apis.claims.checkOrderApi(para).then(res => {
// loading.close()
// if (res) {
// this.$message({
// message: '操作成功',
// type: 'success'
// })
// this.$router.push({ path: '/claims/ghIndex' })
// }
// this.cancleNoPass()
// })
},
cancleNoPass() {
this.showNoPassDialog = false
......@@ -591,6 +598,7 @@ export default {
// 图片数据处理
hanlerImg() {
let imgs = []
let serviceImgs = []
if (this.orderMsg.status == 12 || this.orderMsg.status == 2) {
this.claimsAttachmentConfigs.forEach((item, index) => {
item.secondClassifyList.forEach(el => {
......@@ -603,13 +611,23 @@ export default {
} else {
this.insuranceAttachmentConfigs.forEach((item, index) => {
item.secondClassifyList.forEach(el => {
el.attachmentList.forEach(ele => {
ele.secondClassifyName = el.secondClassifyName
imgs.push(ele)
})
if(el.serviceItemName=='钥匙及车牌重置服务'&&this.lossTypeList.includes(el.lossType)){
el.attachmentList.forEach(ele => {
ele.secondClassifyName = el.secondClassifyName
serviceImgs.push(ele)
})
}else{
el.attachmentList.forEach(ele => {
ele.secondClassifyName = el.secondClassifyName
imgs.push(ele)
})
}
})
})
}
if(serviceImgs.length){
imgs = [...serviceImgs,...imgs]
}
let obj = {}
let type = this.orderMsg.status == 12 || this.orderMsg.status == 2 ? 2 : 1
imgs.forEach((item, index) => {
......@@ -641,6 +659,10 @@ export default {
})
return obj
},
// 获取车牌钥匙选择类型
getLossType(e){
this.lossTypeList = e
},
// 服务项目数据处理
handlerServices() {
let itemObj = {}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!